:root {
    --primary-color: #662483;
    --primary-dark: #4d1b63;
    --secondary-color: #8dc63f;
    --secondary-dark: #6fa030;
    --bg-light: #f8fafb;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --glass-bg: rgba(255, 255, 255, 1);
    --glass-border: #e9ecef;
}

body {
    background-color: var(--bg-light);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #1e293b;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.5s ease-out forwards; }

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.form-control {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}
.form-control:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    border-color: var(--primary-color);
}

/* Login */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}
.login-card { max-width: 400px; width: 100%; padding: 2.5rem; }
.login-logo {
    width: 80px; height: 80px;
    background: var(--primary-color);
    border-radius: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    color: white; font-size: 2rem;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.3);
}

/* Sidebar base — el toggle CSS vive en includes/menu.php */
.sidebar {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    min-height: 100vh;
    width: 260px;
    min-width: 260px;
    position: sticky;
    top: 0;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}
.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    margin: 0.2rem 0.8rem;
    transition: all 0.3s;
}
.sidebar .nav-link:hover { color: white; background: rgba(255,255,255,0.05); }
.sidebar .nav-link.active {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(141,198,63,0.4);
}
.sidebar-brand {
    padding: 2rem 1.5rem;
    font-weight: 700;
    font-size: 1.15rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
}

.top-navbar {
    background: white;
    border-bottom: 1px solid #eef1f4;
    padding: 0.75rem 2rem;
}

.main-content { padding: 2rem; }

.stat-card { padding: 1.5rem; transition: transform 0.3s ease; }
.stat-card:hover { transform: translateY(-5px); }
