/* assets/css/style.css */
:root { 
    --primary: #3182ce; 
    --primary-dark: #2b6cb0;
    --bg: #edf2f7; 
    --panel: #ffffff;
    --text: #2d3748; 
    --border: #cbd5e0; 
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background: var(--bg); 
    color: var(--text); 
    margin: 0; 
    padding: 0; 
}

/* Barra de navegación global */
.navbar { 
    background: #1a202c; 
    color: white; 
    padding: 15px 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar .brand {
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* Contenedores y Tarjetas */
.container { 
    max-width: 1200px; 
    margin: 30px auto; 
    padding: 0 20px; 
}

.card { 
    background: var(--panel); 
    padding: 25px; 
    border-radius: 8px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.05); 
    margin-bottom: 20px; 
    border: 1px solid var(--border);
}

/* Formularios y Botones */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #4a5568;
}

input[type="email"],
input[type="password"],
input[type="text"],
textarea { 
    width: 100%; 
    padding: 12px; 
    border: 1px solid var(--border); 
    border-radius: 4px; 
    box-sizing: border-box; 
    font-family: inherit;
}

.btn { 
    background: var(--primary); 
    color: white; 
    border: none; 
    padding: 12px 20px; 
    border-radius: 5px; 
    cursor: pointer; 
    font-weight: bold; 
    width: 100%; 
    font-size: 1rem;
    transition: background 0.3s;
}

.btn:hover {
    background: var(--primary-dark);
}

/* Layout específico para el Login */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-box {
    width: 100%;
    max-width: 400px;
}

/* Ajuste para fórmulas LaTeX (MathJax) */
.MathJax { 
    font-size: 1.1rem; 
}

/* =========================================
   MENÚ LATERAL (OFF-CANVAS) LOGIN
   ========================================= */
.menu-toggle {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary);
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s;
}

.menu-toggle:hover {
    transform: scale(1.1);
}

.sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    background: #1a202c; /* Color oscuro institucional */
    color: #fff;
    box-shadow: 4px 0 15px rgba(0,0,0,0.3);
    transition: left 0.3s ease;
    z-index: 1002;
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #4a5568;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h2 {
    margin: 0;
    color: #bee3f8;
    font-size: 1.2rem;
}

.close-btn {
    background: none;
    border: none;
    color: #fc8181;
    font-size: 1.5rem;
    cursor: pointer;
}

.sidebar-content {
    padding: 20px;
}

.sidebar-content h3 {
    color: #cbd5e0;
    border-bottom: 2px solid #3182ce;
    padding-bottom: 5px;
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.sidebar-content p, .sidebar-content li {
    color: #a0aec0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.sidebar-content ul {
    padding-left: 20px;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    display: block;
}