/* 
    Healthy & Modern Design System 
    Author: Antigravity
*/

:root {
    --primary: #7FA393;
    --primary-dark: #5F7A6E;
    --secondary: #A3BFB0;
    --accent: #D4A373;
    --bg-light: #F9F8F1;
    --white: #ffffff;
    --text-main: #2D3E35;
    --text-muted: #6B7C75;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --radius-lg: 20px;
    --radius-md: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme='dark'] {
    --bg-light: #121A16;
    --white: #1C2721;
    --text-main: #E2E8E5;
    --text-muted: #A0AEA8;
    --glass-bg: rgba(28, 39, 33, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(127, 163, 147, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(212, 163, 115, 0.05) 0%, transparent 20%);
}

/* Glassmorphism Components */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(127, 163, 147, 0.3);
}

/* Auth Pages */
.auth-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    text-align: center;
}

.logo-brand {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid #e0e0e0;
    background: rgba(255, 255, 255, 0.8);
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(127, 163, 147, 0.1);
}

/* Sidebar Navigation */
.nav-menu { 
    margin-top: 10px; 
    list-style: none; 
    padding: 0;
}

.nav-link { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    padding: 9px 14px; 
    text-decoration: none; 
    color: var(--text-muted); 
    border-radius: var(--radius-md); 
    transition: var(--transition); 
    font-weight: 500;
    font-size: 0.92rem;
}

/* Ocultar scrollbar del sidebar y nav-menu manteniendo scroll funcional */
.sidebar, .nav-menu {
    scrollbar-width: none !important;       /* Firefox */
    -ms-overflow-style: none !important;    /* IE/Edge */
}
.sidebar::-webkit-scrollbar, .nav-menu::-webkit-scrollbar {
    display: none !important;               /* Chrome/Safari */
}

/* Sidebar Navigation Layout on Desktop */
@media (min-width: 993px) {
    .sidebar {
        width: 280px !important;
        flex-shrink: 0 !important;
        height: 100vh !important;
        position: sticky !important;
        top: 0 !important;
        background: var(--white) !important;
        z-index: 100 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        padding: 30px 20px !important;
        border-right: 1px solid var(--glass-border) !important;
    }
}

.nav-link:hover {
    background: rgba(127, 163, 147, 0.1);
    color: var(--primary);
}

.nav-link.active { 
    background: var(--primary); 
    color: var(--white); 
    box-shadow: 0 4px 15px rgba(127, 163, 147, 0.2);
}

.logout-btn { 
    color: #d32f2f; 
    text-decoration: none; 
    font-weight: 600; 
    padding: 15px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin-top: auto; 
    transition: var(--transition);
}

.logout-btn:hover {
    transform: translateX(5px);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}
