:root {
    /* Colores */
    --primary: #3B82F6;
    --primary-dark: #2563EB;
    --primary-light: #DBEAFE;
    
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    
    /* Grises */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Layout */
    --sidebar-width: 260px;
    --sidebar-width-collapsed: 80px;
    --header-height: 60px;
    --content-padding: 2rem;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-full: 9999px;
    
    --sidebar-width: 260px;
    --sidebar-width-collapsed: 80px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--gray-700);
    background: var(--gray-50);
}

/* Layout base */
.main-container {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: var(--content-padding);
    transition: margin-left 0.3s ease;
}

/* Sidebar Base */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: #1E293B;
    color: #CBD5E1;
    z-index: 50;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Header del Sidebar */
.sidebar-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 70px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
}

.brand i {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    color: #60A5FA;
}

/* Navegación */
.sidebar-nav {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Secciones */
.nav-section {
    margin-bottom: 2rem;
}

.nav-section-title {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748B;
    letter-spacing: 0.05em;
}

/* Items de navegación */
.nav-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #CBD5E1;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    gap: 0.75rem;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    background: #3B82F6;
    color: white;
}

.nav-item i {
    font-size: 1.25rem;
    width: 1.5rem;
    text-align: center;
}

/* Estado de suscripción */
.subscription-status {
    margin: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.subscription-info {
    display: flex;
    flex-direction: column;
}

.subscription-type {
    font-weight: 500;
}

.subscription-days {
    font-size: 0.875rem;
    opacity: 0.8;
}

.subscription-premium {
    background: rgba(79, 70, 229, 0.2);
    color: #818CF8;
}

.subscription-trial {
    background: rgba(245, 158, 11, 0.2);
    color: #FBBF24;
}

.subscription-expired {
    background: rgba(239, 68, 68, 0.2);
    color: #F87171;
}

/* Footer del Sidebar */
.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Sidebar colapsado */
.sidebar.collapsed {
    width: var(--sidebar-width-collapsed);
}

.sidebar.collapsed .brand span,
.sidebar.collapsed .nav-section-title,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .subscription-info {
    display: none;
}

.sidebar.collapsed .nav-item {
    padding: 0.75rem;
    justify-content: center;
}

.sidebar.collapsed .nav-item i {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: var(--sidebar-width-collapsed);
    }

    .brand span,
    .nav-section-title,
    .nav-item span,
    .subscription-info {
        display: none;
    }

    .nav-item {
        padding: 0.75rem;
        justify-content: center;
    }

    .nav-item i {
        margin: 0;
    }
}

/* Utilidades */
.hidden {
    display: none;
}