/* Estilos Globais */
:root {
    --deep-charcoal: #1D2729;
    --white: #FFFFFF;
    --light-blue: #C7E8ED;
    --soft-silver: #C6CFD4;
    --warm-peach: #FFBE7C;
    --cool-gray: #A7AEB2;
    --royal-blue: #065194;
    --slate-gray: #2F3F42;
    --error-red: #D32F2F;
    --success-green: #2E7D32;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Sora', sans-serif;
}

body {
    background-color: #f7f8fa;
    color: var(--deep-charcoal);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Formulário */
.form-container {
    background-color: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.form-header {
    background-color: var(--deep-charcoal);
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
}

.form-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.form-body {
    padding: 2rem;
}

.form-step h2 {
    font-size: 1.25rem;
    color: var(--slate-gray);
    margin-bottom: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--slate-gray);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.form-group input {
    border: 1px solid var(--soft-silver);
    border-radius: 0.25rem;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--royal-blue);
}

.form-buttons {
    display: flex;
    justify-content: space-between;
}

.btn-primary {
    background-color: var(--royal-blue);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #054578;
}

.btn-secondary {
    background-color: var(--soft-silver);
    color: var(--deep-charcoal);
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    background-color: #b4bdc2;
}

.btn-success {
    background-color: #4CAF50;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-success:hover {
    background-color: #3e8e41;
}

.message-container {
    margin: 1rem 0;
}

.message-error {
    background-color: #FFEBEE;
    color: var(--error-red);
    padding: 0.75rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.message-success {
    background-color: #E8F5E9;
    color: var(--success-green);
    padding: 0.75rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

/* Dashboard */
.dashboard-container {
    background-color: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.dashboard-header {
    background-color: var(--deep-charcoal);
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
}

.dashboard-content {
    padding: 2rem;
}

.section-title {
    font-size: 1.2rem;
    color: var(--slate-gray);
    text-align: center;
    margin: 1.5rem 0 1rem;
}

.subsection-title {
    font-size: 1rem;
    color: var(--deep-charcoal);
    margin: 1.5rem 0 0.75rem;
}

.chart-container {
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
}

.chart-area {
    flex: 1;
    min-width: 300px;
    height: 300px;
    display: flex;

    justify-content: center;
}

.chart-legend {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    margin-right: 8px;
}

.legend-text {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
}

.legend-value {
    text-align: right;
    margin-left: 10px;
}

.legend-value-amount {
    font-weight: 600;
}

.legend-value-percentage {
    font-size: 0.8rem;
    color: var(--slate-gray);
}

.bar-chart-container {
    width: 100%;
    height: 300px;
}

.indicators-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

@media (min-width: 768px) {
    .indicators-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.indicator-card {
    border: 1px solid var(--soft-silver);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
}

.indicator-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.indicator-description {
    font-size: 0.85rem;
    color: var(--slate-gray);
}

.info-box {
    background-color: var(--light-blue);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    margin: 1.5rem 0;
    font-weight: 500;
}

.limit-container {
    position: relative;
    margin: 2rem 0 1rem;
}

.limit-line {
    width: 100%;
    border-top: 2px dashed var(--warm-peach);
    margin-bottom: 1rem;
}

.limit-info {
    background-color: var(--light-blue);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.limit-label {
    color: var(--warm-peach);
    font-weight: 700;
    margin-right: 0.5rem;
}

.limit-value {
    font-weight: 600;
    margin-right: 0.5rem;
}

.analysis-box {
    background-color: var(--soft-silver);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.analysis-box h3 {
    margin-bottom: 1rem;
}

.analysis-box p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.dashboard-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--slate-gray);
    font-size: 0.875rem;
}

/* Utilidades */
.hidden {
    display: none;
}

/* Formulário de agendamento */
.calendar-section {
    background-color: var(--light-blue);
    padding: 2rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.date-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
}

.time-slot {
    background-color: var(--white);
    border: 1px solid var(--soft-silver);
    border-radius: 0.25rem;
    padding: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.time-slot:hover {
    background-color: var(--royal-blue);
    color: var(--white);
}

.time-slot.selected {
    background-color: var(--royal-blue);
    color: var(--white);
    border-color: var(--royal-blue);
}

.time-slot.disabled {
    background-color: var(--soft-silver);
    color: var(--slate-gray);
    cursor: not-allowed;
    opacity: 0.6;
}

.confirmation-box {
    background-color: var(--white);
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: none;
    margin-top: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.confirmation-box.visible {
    display: block;
}

.confirmation-details {
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--royal-blue);
    padding-left: 1rem;
}

/* Formulário com múltiplos passos */
.form-step {
    animation: fadeEffect 0.5s;
}

@keyframes fadeEffect {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Responsividade */
@media (max-width: 576px) {
    .form-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-primary, .btn-secondary, .btn-success {
        width: 100%;
    }
    
    .dashboard-actions {
        flex-direction: column;
    }
    
    .dashboard-actions button, .dashboard-actions a {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}