/* ===========================================
   ESCOLA DE IDIOMAS - Estilos da Aplicação
   Mobile-first - Layout responsivo
   =========================================== */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --bg-soft: #f5f7fa;
    --border-soft: #e5e7eb;
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-soft);
    color: #1f2937;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   AUTH (Login, Recuperação)
   ============================================ */
.auth-body {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.auth-header h2 {
    font-weight: 600;
    margin: 0;
    color: #111;
}

@media (min-width: 768px) {
    .auth-card { padding: 2.5rem; }
}

/* ============================================
   ÁREA DO ALUNO
   ============================================ */
.aluno-body {
    padding-top: 56px;
    padding-bottom: 70px;
}

@media (min-width: 768px) {
    .aluno-body { padding-bottom: 0; }
}

.aluno-main { min-height: calc(100vh - 56px); }

.welcome-card {
    background: #fff;
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.modulo-card {
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.modulo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.modulo-bloqueado {
    opacity: 0.7;
    background: #fafafa;
}

.aula-numero-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.pdf-viewer {
    width: 100%;
    height: 500px;
}

@media (min-width: 768px) {
    .pdf-viewer { height: 700px; }
}

/* ============================================
   BOTTOM NAV (Mobile)
   ============================================ */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--border-soft);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    z-index: 1030;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.bottom-nav-item {
    flex: 1;
    text-align: center;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.75rem;
    padding: 0.25rem;
}

.bottom-nav-item i {
    display: block;
    font-size: 1.25rem;
    margin-bottom: 0.15rem;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--primary);
}

/* ============================================
   PAINEL ADMIN
   ============================================ */
.admin-body { padding-top: 56px; }

.admin-sidebar { background: #1f2937; color: #fff; }
.admin-sidebar .nav-link {
    color: #d1d5db;
    padding: 0.75rem 1rem;
    border-radius: 0;
    border-left: 3px solid transparent;
}
.admin-sidebar .nav-link:hover {
    background: #374151;
    color: #fff;
    border-left-color: var(--primary);
}
.admin-sidebar .nav-link i { width: 20px; margin-right: 0.5rem; }

.admin-sidebar-desktop {
    position: fixed;
    top: 56px; left: 0; bottom: 0;
    width: 230px;
    background: #1f2937;
    overflow-y: auto;
    z-index: 100;
}

.admin-sidebar-desktop .nav-link {
    color: #d1d5db;
    padding: 0.75rem 1.25rem;
    border-left: 3px solid transparent;
}
.admin-sidebar-desktop .nav-link:hover {
    background: #374151;
    color: #fff;
    border-left-color: var(--primary);
}
.admin-sidebar-desktop .nav-link i { width: 20px; margin-right: 0.5rem; }

.admin-main {
    min-height: calc(100vh - 56px);
}

@media (min-width: 992px) {
    .admin-main { margin-left: 230px; }
}

/* Stat Cards */
.stat-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-2px); }

.stat-card .card-body { padding: 1.25rem; }

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.stat-numero {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    color: #6b7280;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* ============================================
   UTILITÁRIOS
   ============================================ */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.card { border: 1px solid var(--border-soft); }
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}
