}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ✅ Header responsivo (quebra no mobile) */ header {
    position: sticky;
    top: 0;
    z-index: 20;

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 12px;

    padding: 10px 16px;
    background: linear-gradient(180deg,#020617,#020617);
    border-bottom: 1px solid rgba(30,41,59,.9);
    box-shadow: 0 10px 30px rgba(0,0,0,.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* lado esquerdo */ header .left {
    display:flex;
    align-items:center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

/* logo/imagem */ header .brand {
    display:flex;
    align-items:center;
    gap: 10px;
    min-width: 0;
}

header .brand img {
    height: 40px;
    width: auto;
    display:block;
}

/* badge “editando aluno” */ .impersonation-badge {
    font-size: 12px;
    color: rgba(250,204,21,.95);
    white-space: nowrap;
}

/* form do select */ header .row-inline {
    display:flex;
    align-items:center;
    gap: 10px;
    margin: 0;
}

/* lado direito */ header .user {
    display:flex;
    align-items:center;
    gap: 10px;
    font-size: 13px;
    min-width: 0;
}

header .user img {
    width: 34px;
    height: 34px;
    border-radius: 0;
    border: 1px solid rgba(56,189,248,.8);
    object-fit: cover;
    background: #020617;
}

header .user .who {
    display:flex;
    flex-direction:column;
    gap: 2px;
    min-width: 0;
}

header .user .who strong {
    max-width: 70vw;
}

header a.logout {
    color: rgba(248,113,113,.95);
    text-decoration:none;
    font-size: 12px;
}

header a.logout:hover {
    text-decoration: underline;
}

/* ✅ Mobile: empilha tudo (um abaixo do outro) */ @media (max-width: 820px) {
    header{
    flex-direction: column;
    align-items: stretch;
}

header .left {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

header .row-inline {
    width: 100%;
}

header .row-inline select {
    width: 100%;
}

.impersonation-badge {
    white-space: normal;
}

header .user {
    width: 100%;
    justify-content: space-between;
}

} .site-menu {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.site-menu a {
    color: #e5e7eb;
    text-decoration: none;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.4);
    font-size: 0.9rem;
}

.site-menu a:hover {
    background: rgba(56,189,248,0.12);
    border-color: #38bdf8;
}

main {
    padding: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(148,163,184,0.3);
    font-size: 0.8rem;
    color: #9ca3af;
    text-align: center;
}

/* ========================================= VARIÁVEIS E CONFIGURAÇÕES GERAIS ========================================= */ :root {
    --primary-color: #4A90E2;
    --secondary-color: #2c3e50;
    --success-color: #27ae60;
    --bg-light: #f4f7f6;
    --text-dark: #333;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Navegação Auxiliar (Demo) */ .main-nav {
    background: var(--secondary-color);
    padding: 1rem;
    display: flex;
    justify-content: center;
    gap: 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav button {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    color: var(--white);
    padding: 8px 18px;
    cursor: pointer;
    border-radius: 20px;
    transition: var(--transition);
}

.main-nav button:hover {
    background: var(--white);
    color: var(--secondary-color);
}

.section {
    display: none; min-height: 90vh;
}

.active-section {
    display: block; animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px);
}

to {
    opacity: 1; transform: translateY(0);
}

} /* ========================================= 1. TELA DE LOGIN ========================================= */ .login-container {
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-form {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-form h2 {
    margin-bottom: 10px; color: var(--primary-color);
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    margin: 12px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline-color: var(--primary-color);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* ========================================= 2. SISTEMA DE BUSCA E CURSOS ========================================= */ .search-container {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-bottom: 1px solid #eee;
}

.search-bar {
    width: 90%;
}

.search-bar input {
    flex: 1;
    padding: 15px 25px;
    border: 2px solid #eee;
    border-radius: 30px 0 0 30px;
    font-size: 16px;
}

.search-bar button {
    padding: 15px 30px;
    border-radius: 0 30px 30px 0;
    border: none;
    background: var(--primary-color);
    color: var(--white);
    font-weight: bold;
    cursor: pointer;
}

.course-grid {
    padding: 20px;
}

.course-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-8px);
}

.thumb {
    height: 180px;
    background: linear-gradient(45deg, #34495e, #4A90E2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 20px;
}

.course-info {
    padding: 25px;
}

.category {
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.course-info h3 {
    margin: 10px 0; font-size: 20px;
}

.price {
    display: block;
    margin: 15px 0;
    font-size: 18px;
    font-weight: bold;
    color: var(--success-color);
}

/* ========================================= 3. ÁREA DO ALUNO (DASHBOARD) ========================================= */ .dashboard {
    display: flex;
}

.sidebar {
    width: 100%; height: auto;
}

.sidebar h3 {
    margin-bottom: 30px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.sidebar nav p {
    padding: 15px;
    cursor: pointer;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar nav p:hover {
    background: rgba(255,255,255,0.1);
}

.content {
    flex: 1; padding: 50px;
}

.progress-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
    box-shadow: var(--shadow);
}

.progress-bar-bg {
    background: #eef2f3;
    height: 14px;
    border-radius: 7px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-bar-fill {
    background: linear-gradient(90deg, var(--success-color), #58d68d);
    height: 100%;
    width: 65%;
    border-radius: 7px;
}

/* Responsividade para Celulares */ @media (max-width: 768px) {
    .dashboard { flex-direction: column;
}