/**
 * Agenda de Turmas - CSS
 * Visual moderno estilo Google Calendar
 */

/* ===========================
   CONTAINER PRINCIPAL
   =========================== */
.agenda-turmas-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    padding: 1.5rem;
    height: 100%;
    box-sizing: border-box;
}

/* ===========================
   HEADER DO CALENDÁRIO
   =========================== */
.agenda-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.agenda-navegacao {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.agenda-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: 2px solid #dee2e6;
}

.agenda-nav-btn:hover:not(:disabled) {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    transform: scale(1.05);
}

.agenda-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.agenda-mes-ano {
    text-align: center;
    min-width: 150px;
}

.agenda-mes {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1;
}

.agenda-ano {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.agenda-acoes .btn {
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.agenda-acoes .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* ===========================
   LOADING
   =========================== */
.agenda-loading {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.agenda-loading i {
    font-size: 1.5rem;
}

/* ===========================
   CALENDÁRIO
   =========================== */
.agenda-calendario {
    margin-bottom: 1rem;
}

/* Cabeçalho dos dias da semana */
.agenda-dias-semana {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 0.5rem;
}

.agenda-dia-semana {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    padding: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Grade do calendário */
.agenda-grade {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #e9ecef;
    border-radius: 8px;
    padding: 1px;
    overflow: hidden;
}

/* ===========================
   CÉLULAS DOS DIAS
   =========================== */
.agenda-dia {
    background: white;
    min-height: 80px;
    padding: 0.5rem;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.agenda-dia:hover {
    background-color: #f8f9ff;
    border-color: #007bff;
    transform: scale(1.02);
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

/* Estados dos dias */
.agenda-dia-outro-mes {
    background-color: #f8f9fa !important;
    color: #ced4da;
}

.agenda-dia-outro-mes:hover {
    background-color: #f0f0f0 !important;
    border-color: #dee2e6 !important;
    transform: none;
    box-shadow: none;
}

.agenda-dia-hoje {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    color: white;
}

.agenda-dia-hoje .agenda-numero-dia {
    color: white;
    font-weight: 700;
}

.agenda-dia-selecionado {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    color: white;
    border-color: #20c997 !important;
}

.agenda-dia-selecionado .agenda-numero-dia {
    color: white;
    font-weight: 700;
}

.agenda-dia-com-turmas {
    border-left: 4px solid #28a745;
}

/* ===========================
   ELEMENTOS DOS DIAS
   =========================== */
.agenda-numero-dia {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.3rem;
    line-height: 1;
}

/* Indicadores de turmas */
.agenda-turmas-indicadores {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin-top: auto;
}

.agenda-turma-ponto {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.agenda-turma-ponto:hover {
    transform: scale(1.5);
    border-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.agenda-mais-turmas {
    font-size: 0.7rem;
    color: #6c757d;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 0.1rem 0.3rem;
    cursor: pointer;
    border: 1px solid #dee2e6;
}

/* Contador de turmas abertas */
.agenda-contador-abertas {
    position: absolute;
    top: 0.3rem;
    right: 0.3rem;
    background: #28a745;
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    border: 2px solid white;
}

/* ===========================
   LEGENDA
   =========================== */
.agenda-legenda {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
    margin-bottom: 1rem;
}

.agenda-legenda-titulo {
    margin-bottom: 0.5rem;
}

.agenda-legenda-items {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.agenda-legenda-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.agenda-legenda-cor {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* ===========================
   RESUMO DA DATA SELECIONADA
   =========================== */
.agenda-resumo {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    padding: 1rem;
    border-left: 4px solid #007bff;
}

.agenda-resumo-header h6 {
    color: #2c3e50;
    font-weight: 600;
}

.agenda-estatisticas {
    background: white;
    border-radius: 6px;
    padding: 0.8rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.agenda-stat {
    text-align: center;
}

.agenda-stat-numero {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.agenda-stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.2rem;
}

/* ===========================
   RESPONSIVIDADE
   =========================== */
@media (max-width: 768px) {
    .agenda-turmas-container {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .agenda-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .agenda-navegacao {
        justify-content: center;
    }
    
    .agenda-mes {
        font-size: 1.1rem;
    }
    
    .agenda-dia {
        min-height: 60px;
        padding: 0.3rem;
    }
    
    .agenda-numero-dia {
        font-size: 0.9rem;
    }
    
    .agenda-legenda-items {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .agenda-dia {
        min-height: 50px;
        padding: 0.2rem;
    }
    
    .agenda-turma-ponto {
        width: 6px;
        height: 6px;
    }
    
    .agenda-contador-abertas {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
    }
}

/* ===========================
   ANIMAÇÕES
   =========================== */
@keyframes pulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

.agenda-dia-com-turmas:hover {
    animation: pulseGreen 1.5s infinite;
}

/* ===========================
   TEMAS ESCUROS (OPCIONAL)
   =========================== */
@media (prefers-color-scheme: dark) {
    .agenda-turmas-container {
        background: #2c3e50;
        border-color: #34495e;
        color: #ecf0f1;
    }
    
    .agenda-dia {
        background: #34495e;
        color: #ecf0f1;
    }
    
    .agenda-dia-outro-mes {
        background-color: #2c3e50 !important;
        color: #7f8c8d;
    }
    
    .agenda-numero-dia {
        color: #ecf0f1;
    }
    
    .agenda-resumo {
        background: linear-gradient(135deg, #34495e, #2c3e50);
    }
    
    .agenda-estatisticas {
        background: #2c3e50;
    }
} 