:root {
    --cor-laranja: #f97316;
    --cor-texto-principal: #1f2937;
    --cor-texto-secundario: #6b7280;
    --cor-fundo-pagina: #f3f4f6;
    --cor-fundo-card: #ffffff;
    --sombra-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

body.app-body {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-color: var(--cor-fundo-pagina);
    font-family: 'Inter', sans-serif;
}

.main-header {
    width: 100%;
}

.dashboard-main-area {
    padding: 24px 32px;
    background-color: var(--cor-fundo-pagina);
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.dashboard-header h1 {
    font-size: 24px;
    font-weight: 500;
    color: var(--cor-texto-principal);
    margin: 0;
}

.dashboard-header p {
    font-size: 16px;
    color: var(--cor-texto-secundario);
    margin-top: 4px;
}

.card {
    background-color: var(--cor-fundo-card);
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: var(--sombra-card);
    border: 1px solid #e5e7eb;
}

.stats-row-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stats-row-top .card h4 {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--cor-texto-secundario);
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-row-top .card h4 .fa-solid {
    color: var(--cor-texto-principal);
}

.stats-row-top .card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--cor-texto-principal);
}

.charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.card-chart {
    min-height: 300px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-chart img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.card-stats-rapidas h4 {
    font-size: 18px;
    color: var(--cor-texto-principal);
    margin-top: 0;
    margin-bottom: 24px;
}

.stats-rapidas-content {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    height: calc(100% - 48px);
}

.stat-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.stat-column .line {
    height: 12px;
    background-color: #e5e7eb;
    border-radius: 4px;
}
.stat-column .line:nth-child(1) { width: 95%; }
.stat-column .line:nth-child(2) { width: 75%; }
.stat-column .line:nth-child(3) { width: 85%; }

.performance-row h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--cor-texto-principal);
}

.performance-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.performance-cards .card {
    text-align: center;
}

.performance-cards .card h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--cor-texto-secundario);
}

.performance-cards .card .stat-value-large {
    font-size: 48px;
    font-weight: 700;
    color: var(--cor-texto-principal);
    display: block;
    margin-top: 12px;
}

.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--cor-laranja);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    z-index: 1000;
}

.fab:hover {
    transform: scale(1.05);
}

.fab-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc2626;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--cor-fundo-card);
}

@media (max-width: 1024px) {
    .charts-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-row-top,
    .performance-cards {
        grid-template-columns: 1fr;
    }

    .dashboard-main-area {
        padding: 16px;
    }

    .performance-cards .card .stat-value-large {
        font-size: 36px;
    }

    .fab {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }
    .fab-badge {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
}