* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #E3C053;
    --dark: #000000;
    --white: #FFFFFF;
    --gray: #2a2a2a;
    --light-gray: #f5f5f5;
    --fraco: #ff6b6b;
    --medio: #ffa500;
    --bom: #4ecdc4;
    --otimo: #2ecc71;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--light-gray) 0%, #f0f0f0 100%);
    color: var(--dark);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: var(--dark);
    color: var(--white);
    padding: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.tabs {
    display: flex;
    gap: 15px;
}

.tab-btn {
    background: transparent;
    border: 2px solid transparent;
    color: var(--white);
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background: rgba(227, 192, 83, 0.1);
    border-color: var(--primary);
}

.tab-btn.active {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
    padding: 40px 0;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--dark);
}

.tab-content h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--dark);
}

/* Data Atual */
.data-atual {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    text-align: center;
}

.data-atual p {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

/* Hábitos Grid */
.habitos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.habito-card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid var(--primary);
}

.habito-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.habito-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--dark);
}

.habito-info {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 15px;
}

.habito-horario {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 15px;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #e8f5e9;
    color: #2ecc71;
}

.status-badge.realizado {
    background: #e8f5e9;
    color: #2ecc71;
    border: 1px solid #d4f5dc;
}

.status-badge.nao-realizado {
    background: #ffebee;
    color: #ff6b6b;
    border: 1px solid #f3b6b6;
}

/* Resumo do Dia */
.resumo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.resumo-card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.resumo-card .label {
    display: block;
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 600;
}

.resumo-card .valor {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

/* Hábitos Cards */
.habitos-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.habito-card-completo {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.habito-card-completo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.habito-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
}

.habito-header h3 {
    font-size: 18px;
    color: var(--dark);
}

.habito-horario-badge {
    background: var(--primary);
    color: var(--dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.habito-detalhes {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 15px;
}

.habito-progresso {
    margin: 15px 0;
}

.progresso-label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
}

.progresso-bar {
    width: 100%;
    height: 8px;
    background: var(--light-gray);
    border-radius: 4px;
    overflow: hidden;
}

.progresso-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
}

/* Estatísticas Grid */
.estatisticas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.estatistica-card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--primary);
}

.estatistica-card.fraco {
    border-top-color: var(--fraco);
}

.estatistica-card.medio {
    border-top-color: var(--medio);
}

.estatistica-card.bom {
    border-top-color: var(--bom);
}

.estatistica-card.otimo {
    border-top-color: var(--otimo);
}

.estatistica-titulo {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark);
}

.estatistica-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
}

.estatistica-item:last-child {
    border-bottom: none;
}

.estatistica-label {
    font-size: 14px;
    opacity: 0.7;
}

.estatistica-valor {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.nota-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 15px;
}

.nota-badge.fraco {
    background: rgba(255, 107, 107, 0.1);
    color: var(--fraco);
}

.nota-badge.medio {
    background: rgba(255, 165, 0, 0.1);
    color: var(--medio);
}

.nota-badge.bom {
    background: rgba(78, 205, 196, 0.1);
    color: var(--bom);
}

.nota-badge.otimo {
    background: rgba(46, 204, 113, 0.1);
    color: var(--otimo);
}

/* Carregando */
.carregando {
    text-align: center;
    padding: 40px;
    color: var(--primary);
    font-weight: 600;
    grid-column: 1 / -1;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 20px;
    margin-top: 60px;
}

/* Responsivo */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 15px;
    }

    .tabs {
        flex-wrap: wrap;
        justify-content: center;
    }

    .tab-btn {
        font-size: 12px;
        padding: 6px 12px;
    }

    .habitos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .estatisticas-grid {
        grid-template-columns: 1fr;
    }

    .tab-content h2 {
        font-size: 22px;
    }
}
