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

:root {
    --cor-manhã: #FDB750;
    --cor-tarde: #4ECDC4;
    --cor-noite: #2C3E50;
    --cor-terapia: #E74C3C;
    
    --tempo-1: #FFE5B4;
    --tempo-2: #FFDAB9;
    --tempo-3: #FFD4A3;
    --tempo-4: #FFC08D;
    --tempo-5: #FFAA77;
    --tempo-6: #FF9461;
    --tempo-7: #FF7E4B;
    --tempo-8: #FF6835;
    --tempo-9: #FF521F;
    --tempo-10: #FF3C09;
    --tempo-11: #E63200;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px 0;
}

/* Relógio em Tempo Real */
.relogio-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    animation: slideInRight 0.6s ease-out;
}

.relogio-digital {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 3px solid white;
}

#hora-digital {
    font-size: 1.5em;
    font-weight: 700;
    color: white;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

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

/* Header */
.rotina-header {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.6s ease-out;
}

.rotina-header h1 {
    font-size: 3em;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
}

.rotina-header .subtitle {
    font-size: 1.2em;
    color: #7f8c8d;
    font-weight: 500;
}

/* Selector de Período */
.periodo-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.periodo-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    color: #2c3e50;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.periodo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.periodo-btn.ativo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.05);
}

/* Seções de Período */
.periodo-section {
    display: none;
    animation: fadeIn 0.4s ease-in;
}

.periodo-section.ativo {
    display: block;
}

.periodo-title {
    background: white;
    padding: 20px 30px;
    border-radius: 15px;
    margin-bottom: 25px;
    font-size: 1.8em;
    color: #2c3e50;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-left: 8px solid #667eea;
}

/* Grid de Atividades */
.atividades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Cards de Atividades */
.atividade-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 6px solid #667eea;
    position: relative;
    overflow: hidden;
}

.atividade-card.concluida {
    opacity: 0.6;
}

.atividade-card.concluida .atividade-nome,
.atividade-card.concluida .horario {
    text-decoration: line-through;
    color: #95a5a6;
}

/* Checkbox Tarefa */
.checkbox-tarefa {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-tarefa:checked {
    accent-color: #27ae60;
}

.atividade-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    animation: shimmer 2s infinite;
}

.atividade-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Cores de Tempo (gradiente) */
.atividade-card.tempo-1 { background: linear-gradient(135deg, #FFE5B4 0%, #FFDAB9 100%); border-left-color: #FDB750; }
.atividade-card.tempo-2 { background: linear-gradient(135deg, #FFDAB9 0%, #FFD4A3 100%); border-left-color: #FDB750; }
.atividade-card.tempo-3 { background: linear-gradient(135deg, #FFD4A3 0%, #FFC08D 100%); border-left-color: #FDB750; }
.atividade-card.tempo-4 { background: linear-gradient(135deg, #FFC08D 0%, #FFAA77 100%); border-left-color: #FDB750; }
.atividade-card.tempo-5 { background: linear-gradient(135deg, #FFAA77 0%, #FF9461 100%); border-left-color: #FDB750; }
.atividade-card.tempo-6 { background: linear-gradient(135deg, #FF9461 0%, #FF7E4B 100%); border-left-color: #FDB750; }
.atividade-card.tempo-7 { background: linear-gradient(135deg, #FF7E4B 0%, #FF6835 100%); border-left-color: #FDB750; }
.atividade-card.tempo-8 { background: linear-gradient(135deg, #FF6835 0%, #FF521F 100%); border-left-color: #FDB750; }
.atividade-card.tempo-9 { background: linear-gradient(135deg, #FF521F 0%, #FF3C09 100%); border-left-color: #FDB750; }
.atividade-card.tempo-10 { background: linear-gradient(135deg, #FF3C09 0%, #E63200 100%); border-left-color: #FDB750; }
.atividade-card.tempo-11 { background: linear-gradient(135deg, #E63200 0%, #CC2A00 100%); border-left-color: #FDB750; }

.atividade-card.destaque {
    background: linear-gradient(135deg, #FF6B6B 0%, #E74C3C 100%) !important;
    border-left-color: #E74C3C !important;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.atividade-card.destaque:hover {
    box-shadow: 0 12px 35px rgba(231, 76, 60, 0.4);
}

/* Elementos do Card */
.horario {
    font-size: 1.3em;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.7);
    padding: 8px 15px;
    border-radius: 20px;
}

.icone-grande {
    font-size: 3.5em;
    margin: 15px 0;
    display: block;
    animation: bounce 2s infinite;
}

.atividade-card.tempo-1 .icone-grande { animation-delay: 0s; }
.atividade-card.tempo-2 .icone-grande { animation-delay: 0.1s; }
.atividade-card.tempo-3 .icone-grande { animation-delay: 0.2s; }
.atividade-card.tempo-4 .icone-grande { animation-delay: 0.3s; }
.atividade-card.tempo-5 .icone-grande { animation-delay: 0.4s; }
.atividade-card.tempo-6 .icone-grande { animation-delay: 0.5s; }
.atividade-card.tempo-7 .icone-grande { animation-delay: 0.6s; }
.atividade-card.tempo-8 .icone-grande { animation-delay: 0.7s; }
.atividade-card.tempo-9 .icone-grande { animation-delay: 0.8s; }
.atividade-card.tempo-10 .icone-grande { animation-delay: 0.9s; }
.atividade-card.tempo-11 .icone-grande { animation-delay: 1s; }

.atividade-nome {
    font-size: 1.3em;
    font-weight: 700;
    color: #2c3e50;
    margin: 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.atividade-card small {
    display: block;
    color: #34495e;
    font-size: 0.9em;
    margin-top: 8px;
    font-weight: 500;
}

.dica {
    background: rgba(46, 204, 113, 0.2);
    color: #27ae60;
    padding: 8px 12px;
    border-radius: 10px;
    margin-top: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

/* Seção de Dicas */
.dicas-section {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    margin-top: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dicas-section h3 {
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 3px solid #667eea;
    padding-bottom: 15px;
}

.dicas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.dica-card {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border-left: 5px solid #667eea;
    transition: all 0.3s ease;
}

.dica-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.dica-icone {
    font-size: 2.5em;
    display: block;
    margin-bottom: 15px;
}

.dica-card strong {
    display: block;
    font-size: 1.1em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.dica-card p {
    color: #555;
    font-size: 0.95em;
    line-height: 1.6;
}

/* Animações */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .relogio-container {
        top: 10px;
        right: 10px;
    }

    .relogio-digital {
        padding: 10px 15px;
    }

    #hora-digital {
        font-size: 1.1em;
    }

    .rotina-header h1 {
        font-size: 2em;
    }

    .rotina-header {
        padding: 25px 20px;
    }

    .periodo-selector {
        flex-direction: column;
        gap: 10px;
    }

    .periodo-btn {
        width: 100%;
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .atividades-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .icone-grande {
        font-size: 2.5em;
    }

    .atividade-nome {
        font-size: 1.1em;
    }

    .periodo-title {
        font-size: 1.3em;
        padding: 15px 20px;
    }

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

    .rotina-container {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px 0;
    }

    .relogio-container {
        top: 5px;
        right: 5px;
    }

    .relogio-digital {
        padding: 8px 12px;
    }

    #hora-digital {
        font-size: 0.9em;
    }

    .rotina-header h1 {
        font-size: 1.6em;
    }

    .rotina-header .subtitle {
        font-size: 1em;
    }

    .atividade-card {
        padding: 15px;
    }

    .icone-grande {
        font-size: 2em;
    }

    .atividade-nome {
        font-size: 0.95em;
    }

    .horario {
        font-size: 1.1em;
    }

    .checkbox-tarefa {
        width: 20px;
        height: 20px;
        top: 5px;
        right: 5px;
    }
}
