/* ==========================================================================
   ESTUDANTE.HTML - Portal do Aluno / Área Académica (Atualizado 2026)
   ========================================================================== */

:root {
    --primary: #007bff;
    --primary-light: #3b82f6;
    --primary-dark: #0056b3;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --bg-light: #f8fafc;
}

/* --------------------------------------------------------------------------
   Cabeçalho Otimizado - Compacto, Elegante e Sem Espaços Mortos
   -------------------------------------------------------------------------- */
.page-header {
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.9)), url('../img/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    padding: 20px 0 !important;       /* Altura reduzida para eliminar espaço desnecessário */
    margin-bottom: 35px !important;   /* Espaço controlado antes de começar o portal */
    border-bottom: 3px solid var(--primary);
}

/* --------------------------------------------------------------------------
   Efeitos Interativos e Modernos (Grid de Recursos)
   -------------------------------------------------------------------------- */
.hover-effect {
    background: #ffffff;
    border: 1px solid var(--border-color) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08) !important;
    border-color: rgba(0, 123, 255, 0.2) !important;
    text-decoration: none;
}

.hover-effect i {
    transition: transform 0.3s ease;
}

.hover-effect:hover i {
    transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   Cartão de Perfil Resumido
   -------------------------------------------------------------------------- */
.student-profile-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.student-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    background-color: #f1f5f9;
}

.student-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.student-meta-item {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.student-meta-item strong {
    color: #334155;
}

/* --------------------------------------------------------------------------
   Blocos de Notas e Pautas
   -------------------------------------------------------------------------- */
.grade-table {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.grade-table thead th {
    background-color: var(--text-dark);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 12px 15px;
}

.grade-table tbody td {
    padding: 14px 15px;
    font-size: 0.9rem;
    color: #334155;
    vertical-align: middle;
}

/* Badge de Aproveitamento / Nota */
.grade-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
}

.grade-approved { background-color: #dcfce7; color: #15803d; }
.grade-reproved { background-color: #fee2e2; color: #b91c1c; }
.grade-resource { background-color: #fef9c3; color: #a16207; }

/* --------------------------------------------------------------------------
   Widgets de Assiduidade (Frequência às aulas)
   -------------------------------------------------------------------------- */
.attendance-widget {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.attendance-percentage {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

/* Ajustes de Responsividade */
@media (max-width: 767.98px) {
    .page-header {
        padding: 15px 0 !important;
    }
    .page-header h3 {
        font-size: 1.6rem !important;
    }
}