/* =========================================================
   1. RESET E ESTILOS GERAIS (Base para todas as páginas)
   ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
}

/* =========================================================
   2. NAVBAR FIXA (Comum a todas)
   ========================================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: rgba(0, 0, 0, 0.95);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #222;
}

.logo { display: flex; flex-direction: column; font-weight: 900; text-decoration: none; color: #fff; }
.logo-text { font-size: 1.4rem; letter-spacing: 2px; }
.logo-sub { font-size: 0.6rem; color: #ff6600; letter-spacing: 1px; }

nav ul { display: flex; list-style: none; }
nav ul li a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 0.75rem;
    font-weight: 700;
    transition: 0.3s;
}
nav ul li a:hover, nav ul li a.active { color: #ff6600; }

.btn-matricula {
    background: #ff6600;
    color: #fff;
    padding: 8px 18px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.75rem;
    transition: 0.3s;
}

/* =========================================================
   3. PÁGINA INICIAL (INDEX) - Estilos Específicos
   ========================================================= */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.9)), 
                url('fundo.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    padding-top: 40px; /* Alinhado à altura */
    
    
    /* Ajuste da imagem de fundo para não cortar o topo */
    background-attachment: fixed;
    /*background-position: center top;  Força a imagem a alinhar pelo topo background-size: cover;*/
    
}

.hero-content h1 { font-size: clamp(3rem, 10vw, 6rem); font-weight: 900; letter-spacing: 8px; margin: 0; }
.hero-content .subtitle { font-size: 1.2rem; letter-spacing: 10px; color: #ccc; }
.hero-content .slogan { color: #ff6600; font-weight: bold; margin-top: 15px; letter-spacing: 2px; }

/* Grid de Planos na Index */
.plans-container { margin-top: 40px; width: 90%; max-width: 1100px; }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

.plan-card {
    background: #fff; color: #000; padding: 25px; border-radius: 8px; transition: 0.3s;
}
.plan-card:hover { transform: translateY(-10px); }
.plan-card h3 { font-size: 1.1rem; margin-bottom: 10px; border-bottom: 2px solid #ff6600; display: inline-block; }
.plan-card .price { font-size: 1.8rem; font-weight: 900; margin: 15px 0; }
.plan-card ul { list-style: none; text-align: left; font-size: 0.85rem; }

/* =========================================================
   4. FORMULÁRIOS (Matrícula, Login e Dashboard)
   ========================================================= */
/* Adicionamos um padding-top para o conteúdo não ficar escondido atrás da navbar */
.registration-main, .dashboard-main {
    padding-top: 120px; 
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}



/* Garante que o select tenha a mesma altura e estilo dos inputs de texto */
.matricula-form select {
    appearance: none; /* Remove o estilo padrão do Windows/Mac */
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e"); /* Adiciona uma setinha branca personalizada */
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    cursor: pointer;
}

/* Evita que o campo de data fique com largura estranha no mobile */
input[type="date"] {
    min-height: 45px;
}


.registration-container {
    background: #111;
    width: 90%;
    max-width: 700px;
    padding: 40px;
    border-radius: 10px;
    border: 1px solid #222;
}

/* Campos de entrada */
.form-group { margin-bottom: 15px; width: 100%; text-align: left;}
.form-group label { display: block; font-size: 0.8rem; margin-bottom: 5px; color: #ff6600; font-weight: bold;}
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 10px; background: #222; border: 1px solid #333; color: #fff; border-radius: 4px;
}

.btn-submit {
    width: 100%; padding: 12px; background: #ff6600; border: none; color: #fff; 
    font-weight: 900; cursor: pointer; border-radius: 4px; margin-top: 10px;
}

/* =========================================================
   5. DASHBOARD PHP (Área Logada)
   ========================================================= */
.user-info-card {
    background: #1a1a1a; border-left: 5px solid #ff6600;
    padding: 25px; width: 90%; max-width: 1100px; border-radius: 8px; margin-bottom: 20px;
}
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; }
.console-output {
    background: #050505; color: #00ff00; font-family: monospace;
    padding: 15px; width: 100%; max-width: 1200px; border-radius: 8px; border: 1px solid #111;
}

/* =========================================================
   6. FOOTER
   ========================================================= */
footer { padding: 30px; text-align: center; font-size: 0.7rem; color: #555; background: #000; }

/* =========================================================
   7. MEDIA QUERIES (AJUSTES PARA CELULAR E TABLET)
   ========================================================= */

/* Tablets e Celulares Grandes (Até 992px) */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 4rem; /* Diminui o título principal */
    }
    
    .plans-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
}

/* Celulares (Até 768px) */
@media (max-width: 768px) {
    /* Ajuste da Navbar */
    .navbar {
        flex-direction: column; /* Empilha logo e botões */
        padding: 10px;
    }
    
    nav ul {
        margin: 10px 0;
        flex-wrap: wrap; /* Permite que os links quebrem linha */
        justify-content: center;
    }
    
    nav ul li a {
        margin: 0 8px;
        font-size: 0.7rem;
    }

    /* Ajuste da Hero */
    .hero-content h1 {
        font-size: 3rem;
        letter-spacing: 4px;
    }

    /* Ajuste dos Formulários e Dashboard */
    .form-row {
        grid-template-columns: 1fr; /* Transforma 2 colunas em 1 */
        gap: 0;
    }

    .registration-container, .user-info-card, .console-output {
        width: 95%; /* Ocupa quase toda a tela no mobile */
        padding: 20px;
    }

    .info-grid {
        grid-template-columns: 1fr; /* Informações do aluno uma abaixo da outra */
    }
}

/* Celulares Pequenos (Até 480px) */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .btn-matricula {
        width: 100%;
        text-align: center;
    }
}