/* pauta.css - Design Moderno 2025 */

:root {
    --primary-color: #2c3e50; /* Azul escuro moderno */
    --secondary-color: #34495e; /* Azul um pouco mais claro */
    --accent-color: #00b894; /* Verde vibrante para destaques */
    --light-bg: #f0f3f4; /* Cinza claro para fundo */
    --white: #ffffff;
    --text-dark: #333;
    --text-light: #777;
    --border-color: #ddd;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
}

body {
    font-family: 'Poppins', sans-serif; /* Usar uma fonte moderna como Poppins */
    background-color: var(--light-bg);
    color: var(--text-dark);
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 20px;
    padding: 30px;
    width: 95%;
    max-width: 960px;
}

.header-institutional {
    text-align: center;
    margin-bottom: 30px;
}

.header-institutional img {
    width: 80px;
    margin-bottom: 15px;
}

.header-institutional h1 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.header-institutional p {
    font-size: 16px;
    color: var(--text-light);
    margin: 0;
}

.info-aluno {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.info-aluno p {
    margin: 5px 0;
    font-size: 18px;
    font-weight: 500;
}

.info-aluno span {
    font-weight: 400;
}

.pauta-table-container {
    overflow-x: auto; /* Permite scroll horizontal em telemóveis */
    margin-bottom: 30px;
}

.pauta-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    border: 1px solid var(--border-color);
}

.pauta-table th,
.pauta-table td {
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    text-align: center;
}

.pauta-table thead th {
    background-color: var(--secondary-color);
    color: var(--white);
    font-weight: 600;
    white-space: nowrap;
}

.pauta-table tbody tr:nth-child(even) {
    background-color: var(--light-bg);
}

.pauta-table td {
    font-weight: 400;
}

.pauta-table .discipline-name {
    text-align: left;
    font-weight: 500;
    color: var(--text-dark);
}

.nota-baixa {
    color: var(--danger-color);
    font-weight: 600;
}

.nota-suficiente {
    color: var(--success-color);
    font-weight: 600;
}

.resumo-notas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

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

.resumo-card h4 {
    margin-top: 0;
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.resumo-card .value {
    font-size: 24px;
    font-weight: 600;
}

.resumo-card.aprovado .value {
    color: var(--success-color);
}

.resumo-card.reprovado .value {
    color: var(--danger-color);
}

.resumo-card.conselho .value {
    color: var(--warning-color);
}

.observacao-final {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.observacao-final.observacao-aprovado {
    background-color: var(--success-color);
}

.observacao-final.observacao-reprovado {
    background-color: var(--danger-color);
}

.observacao-final.observacao-conselho {
    background-color: var(--warning-color);
    color: var(--text-dark);
}

/* Responsividade para Telemóveis */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        margin: 10px;
        padding: 20px;
    }

    .header-institutional h1 {
        font-size: 24px;
    }

    .header-institutional p {
        font-size: 14px;
    }

    .info-aluno {
        padding: 15px;
        text-align: center;
        justify-content: center;
    }

    .info-aluno p {
        font-size: 16px;
        margin: 8px 0;
    }

    .pauta-table {
        font-size: 14px;
    }

    .pauta-table th,
    .pauta-table td {
        padding: 10px;
        white-space: nowrap; /* Evita quebra de texto em células menores */
    }

    .resumo-notas {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
        margin-bottom: 20px;
    }

    .resumo-card {
        padding: 15px;
    }

    .resumo-card h4 {
        font-size: 16px;
        margin-bottom: 5px;
    }

    .resumo-card .value {
        font-size: 20px;
    }

    .observacao-final {
        font-size: 18px;
        padding: 15px;
    }
}

/* Mais ajustes para telas ainda menores */
@media (max-width: 480px) {
    .header-institutional img {
        width: 60px;
        margin-bottom: 10px;
    }

    .header-institutional h1 {
        font-size: 20px;
    }

    .info-aluno p {
        font-size: 14px;
    }

    .pauta-table th,
    .pauta-table td {
        padding: 8px;
    }
}