:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #3f37c9;
    --accent: #4895ef;
    --success: #4cc9f0;
    --danger: #bf0603;
    --warning: #f8961e;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
}

*{
    font-family: 'Poppins', Tahoma, Geneva, Verdana, sans-serif;
    
}
body {
    background-color: #f8f9fa;
}



/* Login Page Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo img {
    width: 110px;
    height: auto;
    margin-bottom: 15px;
}

.logo h1 {
    color: var(--primary);
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.alert.error {
    background-color: rgba(247, 37, 133, 0.1);
    color: var(--danger);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input {
    width: 92%;
    padding: 12px 15px;
    border: 1px solid #c0c0c0;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(72, 149, 239, 0.2);
}

input::placeholder, input:-webkit-input-placeholder,
input:-moz-placeholder, input::-moz-placeholder, input:-ms-input-placeholder {
  color: #8b8c89;
  font-weight: 300;
}

.btn-login {
    width: 100%;
    padding: 15px 12px;
    margin-top: 10px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.btn-login:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-login:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .form-group input {
        width: 90%;
    }
    
    .login-container {
        max-height: 70%;
    }

    .login-card {
        padding: 30px 20px;
    }
    
    .logo img {
        width: 100px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
}



/* Dashboard Styles */

.dashboard-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    /* min-height: 100vh; */
    min-height: 80vh;
    border-radius: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2)
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 5px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    /*
    position: relative;
    overflow: hidden;
    */
}
/*
.dashboard-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}
*/
.info-colegio {
    display: flex; 
    justify-content:space-between; 
    align-items: center;
    padding:7px 15px; 
    background-color:white; 
    border-radius:15px; 
    margin-bottom:10px
}

.dados-colegio > h1 {
    font-size: 1.5rem;
}

.user-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.bem-vindo {
    font-weight: 300;
    font-size: 1rem;
}

.nome-aluno {
    font-size: 1rem;
}

.serie-aluno {
    font-size: 1rem;
    font-weight: 400;
}

.user-info h1 {
    color: var(--primary);
    font-size: 1.8rem;
    margin: 0;
}

.logout-btn {
    background: var(--danger);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: #800e13;
}

.dashboard-content {
    display: grid;
    gap: 10px;
}

.disciplines-section h2,
.final-grades h2 {
    color: #1d3557;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.discipline-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.discipline-card {
    background-image: linear-gradient(#003f88, #00296b) !important;
    border-radius: 12px;
    padding: 20px 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    color: white;
    display: block;
    position: relative;
    overflow: hidden;
}

/*
.discipline-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}
*/
.discipline-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.discipline-card h3 {
    margin: auto;
    color:rgb(255, 255, 255);
    font-size: 0.8rem;
    text-align: center;
    font-weight: 300;

}

.discipline-stats {
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

.discipline-stats .stat {
    text-align: center;
}

.discipline-stats .stat span {
    display: block;
    font-size: 0.7rem;
    color: var(--gray);
}

.discipline-stats .stat strong {
    font-size: 1.1rem;
    color: var(--primary);
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

table th {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    /* text-transform: uppercase; */
    font-size: 0.8rem;
    letter-spacing: 1px;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

table tr:hover {
    background-color: #f1f5ff;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

th {
    background-color: var(--primary);
    color: white;
}

tr:hover {
    background-color: #f5f5f5;
}

.status-aprovado {
    color: #2ecc71;
    font-weight: 500;
}

.status-reprovado {
    color: #e74c3c;
    font-weight: 500;
}

.status-recuperacao {
    color: #f39c12;
    font-weight: 500;
}






/* Boletim Styles */


.boletim-content {
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.aluno-info {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
}

.info-label {
    font-weight: 600;
    color: var(--primary);
}

.info-value {
    color: var(--dark);
}

.boletim-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.boletim-table th {
    background: var(--primary);
    color: white;
    padding: 12px;
    text-align: center;
}

.boletim-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.boletim-table tr:hover {
    background-color: #f5f8ff;
}

.status-aprovado {
    color: #2ecc71;
    font-weight: 600;
}

.status-reprovado {
    color: #e74c3c;
    font-weight: 600;
}

.status-recuperacao {
    color: #f39c12;
    font-weight: 600;
}

.no-data {
    text-align: center;
    padding: 20px;
    color: var(--gray);
}

.quick-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(90deg, #0d3b66, #006466, #006400);
    padding: 25px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden; */
}
/*
.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--success));
}
*/
.action-btn:hover {
    background-image: linear-gradient(90deg, #006400, #006466, #0d3b66);
    transform: translateY(-3px);
}

.action-btn i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.action-btn span {
    font-weight: 500;
}

.disciplina-content {
    display: grid;
    gap: 30px;
}

.disciplina-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.disciplina-info > h1 {
    font-size: 1.3rem;
}

.voltar-btn {
    background: #ca6702;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.voltar-btn:hover {
    background: #bb3e03;
}

.provas-section h2,
.bonificacao-section h2 {
    color: #1d3557;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}




.provas-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 0.85rem;
}

.provas-table th {
    background: #0e9594;
    color: white;
    padding: 8px 10px;
    text-align: left;
}

.provas-table td {
    /* padding: 10px 12px; */
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
}

.provas-table tr:last-child td {
    border-bottom: none;
}

.provas-table tr:hover {
    background-color: #f5f8ff;
}

.bonificacao-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* margin-top: 20px; */
    font-size: 0.85rem;
}

.bonificacao-table th {
    background: #0e9594;
    color: white;
    padding: 8px 10px;
    text-align: left;
}

.bonificacao-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
}

.bonificacao-table tr:last-child td {
    border-bottom: none;
}

.bonificacao-table tr:hover {
    background-color: #f5f8ff;
}

@media (max-width: 768px) {

    .dashboard-container{
        padding: 10px;
    }
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 20px;
        gap: 7px;
    }

    .dados-colegio > h1 {
        font-size: 1rem;
    }
    
    .discipline-cards {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        flex-direction: column;
        margin-top: 15px;
    }
    
    .prova-details {
        flex-direction: column;
        gap: 10px;
    }


    .provas-table, 
    .bonificacao-table {
        font-size: 0.6rem;
    }
    
    .provas-table th, 
    .bonificacao-table th {
        padding: 5px 8px;
        font-size: 0.5rem;
    }
    
    .provas-table td,
    .bonificacao-table td {
        padding: 5px 8px;
    }

    .voltar-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }




    .bem-vindo {
        font-size: 0.8rem;
    }
    
    .nome-aluno {
        font-size: 0.8rem;
    }
    
    .serie-aluno {
        font-size: 0.8rem;
    }

    .logout-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

@media (max-width: 600px) {  
    .discipline-cards {  
        grid-template-columns: repeat(2, 1fr); /* Define 2 colunas */ 
        gap: 10px; 
    }  

    .discipline-card {
        padding: 15px 2px;
    }

    .provas-table {
        font-size: 0.4rem;
    }
}  

/* Carrossel de Banners */
.banner-carousel {
    margin: 20px 0;
    width: 100%;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-slide {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 25%; /* Mantém aspect-ratio 4/1 */
}

.carousel-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide img.active {
    opacity: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: white;
}

@media (max-width: 768px) {
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}
