/**
 * Game House - Sistema de Diseño Premium
 * Tema oscuro moderno con glassmorphism y micro-animaciones
 */

/* ══════════════════════════════════════════════
   VARIABLES & RESET
   ══════════════════════════════════════════════ */
:root {
    /* Paleta de colores */
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-card: #16213e;
    --bg-card-hover: #1a2744;
    --bg-input: #0f1629;
    --bg-sidebar: #0d1117;
    
    --text-primary: #e8eaf0;
    --text-secondary: #8b92a5;
    --text-muted: #5a6178;
    
    --accent-primary: #6c5ce7;
    --accent-primary-light: #a29bfe;
    --accent-secondary: #00cec9;
    
    --color-success: #00b894;
    --color-success-bg: rgba(0, 184, 148, 0.15);
    --color-warning: #fdcb6e;
    --color-warning-bg: rgba(253, 203, 110, 0.15);
    --color-danger: #ff6b6b;
    --color-danger-bg: rgba(255, 107, 107, 0.15);
    --color-info: #74b9ff;
    --color-info-bg: rgba(116, 185, 255, 0.15);
    
    --border-color: rgba(255, 255, 255, 0.06);
    --border-focus: var(--accent-primary);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(108, 92, 231, 0.3);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    --sidebar-width: 260px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: var(--accent-primary-light); text-decoration: none; }
a:hover { color: var(--accent-primary); }

/* ══════════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════════ */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: var(--transition);
}

.sidebar-header {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
    font-size: 2rem;
    animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
    from { filter: drop-shadow(0 0 4px rgba(108, 92, 231, 0.4)); }
    to   { filter: drop-shadow(0 0 12px rgba(108, 92, 231, 0.8)); }
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary-light), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    background: transparent;
    text-decoration: none;
    width: 100%;
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(108, 92, 231, 0.1);
}

.nav-item.active {
    color: var(--accent-primary-light);
    background: rgba(108, 92, 231, 0.15);
    border-left: 3px solid var(--accent-primary);
}

.nav-item .material-symbols-rounded {
    font-size: 22px;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0 12px;
}

.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
}

.user-name {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
}

.user-role {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logout-btn {
    color: var(--color-danger) !important;
    font-size: 0.85rem;
}

.logout-btn:hover {
    background: var(--color-danger-bg) !important;
}

/* ══════════════════════════════════════════════
   MAIN CONTENT
   ══════════════════════════════════════════════ */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    padding: 30px;
    max-width: 1400px;
    width: 100%;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-header h2 .material-symbols-rounded {
    color: var(--accent-primary-light);
    font-size: 28px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* ══════════════════════════════════════════════
   TARJETAS DE TVs (DASHBOARD)
   ══════════════════════════════════════════════ */
.tv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.tv-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.tv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-success);
    transition: var(--transition);
}

.tv-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Estados de TV */
.tv-card.estado-disponible::before {
    background: var(--color-success);
}

.tv-card.estado-activo {
    border-color: rgba(116, 185, 255, 0.3);
}

.tv-card.estado-activo::before {
    background: linear-gradient(90deg, var(--color-info), var(--accent-primary));
    height: 3px;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.tv-card.estado-alerta {
    border-color: rgba(253, 203, 110, 0.4);
}

.tv-card.estado-alerta::before {
    background: var(--color-warning);
}

.tv-card.estado-finalizado {
    border-color: rgba(255, 107, 107, 0.4);
}

.tv-card.estado-finalizado::before {
    background: var(--color-danger);
    height: 4px;
}

/* Parpadeos */
.parpadeo-amarillo {
    animation: parpadeo-amber 1.2s infinite;
}

@keyframes parpadeo-amber {
    0%, 100% { box-shadow: 0 0 0 rgba(253, 203, 110, 0); }
    50% { box-shadow: 0 0 20px rgba(253, 203, 110, 0.3); }
}

.parpadeo-rojo {
    animation: parpadeo-red 0.8s infinite;
}

@keyframes parpadeo-red {
    0%, 100% { box-shadow: 0 0 0 rgba(255, 107, 107, 0); border-color: rgba(255, 107, 107, 0.2); }
    50% { box-shadow: 0 0 25px rgba(255, 107, 107, 0.4); border-color: rgba(255, 107, 107, 0.6); }
}

.tv-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.tv-nombre {
    font-size: 1.15rem;
    font-weight: 700;
}

.tv-estado-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--color-success-bg);
    color: var(--color-success);
}

.estado-activo .tv-estado-badge,
.estado-alerta .tv-estado-badge,
.estado-finalizado .tv-estado-badge {
    background: var(--color-info-bg);
    color: var(--color-info);
}

.tv-consola {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.tv-consola .material-symbols-rounded {
    font-size: 18px;
    color: var(--accent-primary-light);
}

/* Cronómetro dentro de la tarjeta */
.tv-cronometro {
    text-align: center;
    padding: 16px 0;
}

.cronometro-display {
    font-size: 2.4rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.estado-finalizado .cronometro-display {
    background: linear-gradient(135deg, var(--color-danger), #ff9999);
    -webkit-background-clip: text;
    background-clip: text;
}

.cronometro-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cronometro-trabajador {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.cronometro-trabajador .material-symbols-rounded {
    font-size: 16px;
}

/* TV disponible */
.tv-disponible-msg {
    text-align: center;
    padding: 20px 0;
    color: var(--text-muted);
}

.tv-icono-disponible {
    font-size: 48px !important;
    color: var(--color-success);
    display: block;
    margin-bottom: 8px;
    opacity: 0.6;
}

.tv-acciones {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.tv-acciones .btn {
    flex: 1;
}

/* ══════════════════════════════════════════════
   TARIFA SELECTION (MODAL)
   ══════════════════════════════════════════════ */
.tarifa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.tarifa-opcion input { display: none; }

.tarifa-card {
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.tarifa-card:hover {
    border-color: var(--accent-primary);
    background: rgba(108, 92, 231, 0.05);
}

.tarifa-opcion input:checked + .tarifa-card {
    border-color: var(--accent-primary);
    background: rgba(108, 92, 231, 0.15);
    box-shadow: var(--shadow-glow);
}

.tarifa-icono {
    font-size: 28px !important;
    color: var(--accent-primary-light);
}

.tarifa-precio {
    font-weight: 700;
    color: var(--color-success);
    font-size: 1rem;
}

.tarifa-card small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Método de pago (similar a tarifas) */
.metodo-pago-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.metodo-opcion input { display: none; }

.metodo-card {
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 8px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
}

.metodo-card:hover {
    border-color: var(--accent-primary);
}

.metodo-opcion input:checked + .metodo-card {
    border-color: var(--color-success);
    background: var(--color-success-bg);
}

.metodo-card .material-symbols-rounded {
    font-size: 24px;
    color: var(--accent-primary-light);
}

/* Cobro resumen */
.cobro-resumen {
    text-align: center;
    padding: 20px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.cobro-info h4 { font-size: 1.1rem; margin-bottom: 8px; }
.cobro-tiempo { font-size: 1rem; color: var(--text-secondary); }
.cobro-tiempo strong { color: var(--accent-primary-light); font-size: 1.2rem; }

/* ══════════════════════════════════════════════
   MODALES
   ══════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 520px;
    max-height: 92vh;          /* Nunca sobrepasa la pantalla */
    display: flex;
    flex-direction: column;    /* Header/body/footer en columna */
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--color-danger);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;           /* El cuerpo scrollea, no el modal entero */
    flex: 1;                    /* Ocupa el espacio disponible entre header y footer */
    -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
}

.modal-tv-nombre {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-primary-light);
    margin-bottom: 16px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ══════════════════════════════════════════════
   BOTONES
   ══════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 0.87rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn .material-symbols-rounded { font-size: 18px; }

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), #5a4bd6);
    color: #fff;
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
    color: #fff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-success {
    background: linear-gradient(135deg, var(--color-success), #00a381);
    color: #fff;
}

.btn-success:hover { box-shadow: 0 0 15px rgba(0, 184, 148, 0.3); color: #fff; }

.btn-danger {
    background: linear-gradient(135deg, var(--color-danger), #e55555);
    color: #fff;
}

.btn-danger:hover { box-shadow: 0 0 15px rgba(255, 107, 107, 0.3); color: #fff; }

.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn-xs { padding: 5px 10px; font-size: 0.78rem; }

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Filtros */
.btn-filtro {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.82rem;
}

.btn-filtro.active, .btn-filtro:hover {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}

/* ══════════════════════════════════════════════
   FORMULARIOS
   ══════════════════════════════════════════════ */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group label .material-symbols-rounded {
    font-size: 18px;
    color: var(--accent-primary-light);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.9rem;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

input::placeholder, textarea::placeholder {
    color: var(--text-muted);
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.password-toggle:hover {
    color: var(--accent-primary-light);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.checkbox-label {
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem !important;
    color: var(--text-primary) !important;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-primary);
}

.input-fecha {
    max-width: 160px;
}

.form-group-btn {
    display: flex;
    align-items: flex-end;
}

/* ══════════════════════════════════════════════
   TABLAS
   ══════════════════════════════════════════════ */
.table-responsive {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.tabla {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.87rem;
}

.tabla thead {
    background: rgba(108, 92, 231, 0.08);
}

.tabla th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.tabla td {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    color: var(--text-primary);
}

.tabla tbody tr {
    transition: var(--transition);
}

.tabla tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.monto-cell { font-weight: 700; color: var(--color-success); }
.acciones-cell { display: flex; gap: 6px; }

.log-detalles {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.log-ip {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ══════════════════════════════════════════════
   BADGES
   ══════════════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-primary { background: rgba(108, 92, 231, 0.15); color: var(--accent-primary-light); }
.badge-success { background: var(--color-success-bg); color: var(--color-success); }
.badge-warning { background: var(--color-warning-bg); color: var(--color-warning); }
.badge-danger  { background: var(--color-danger-bg);  color: var(--color-danger); }
.badge-info    { background: var(--color-info-bg);    color: var(--color-info); }
.badge-secondary { background: rgba(255,255,255,0.06); color: var(--text-secondary); }
.badge-log-accion { background: rgba(108, 92, 231, 0.1); color: var(--accent-primary-light); font-family: monospace; font-size: 0.72rem; }

/* ══════════════════════════════════════════════
   CARDS y SECCIONES
   ══════════════════════════════════════════════ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
}

.form-card {
    border-left: 3px solid var(--accent-primary);
}

.form-card h3 {
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.filtros-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.filtros-rapidos {
    display: flex;
    gap: 8px;
}

.filtros-personalizado {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.filtros-card {
    margin-bottom: 24px;
}

.filtros-form .form-row {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    align-items: end;
}

.filtros-form .form-group {
    margin-bottom: 0;
}

/* Resumen Financiero */
.resumen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.resumen-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.resumen-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.resumen-card .material-symbols-rounded {
    font-size: 36px;
    padding: 10px;
    border-radius: var(--radius-sm);
}

.resumen-total .material-symbols-rounded { background: var(--color-success-bg); color: var(--color-success); }
.resumen-sesiones .material-symbols-rounded { background: var(--color-info-bg); color: var(--color-info); }
.resumen-promedio .material-symbols-rounded { background: rgba(108,92,231,0.1); color: var(--accent-primary-light); }
.resumen-mayor .material-symbols-rounded { background: var(--color-warning-bg); color: var(--color-warning); }

.resumen-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resumen-valor {
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 2px;
}

.seccion-finanzas {
    margin-bottom: 28px;
}

.seccion-finanzas h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

/* ══════════════════════════════════════════════
   ALERTAS (FLASH)
   ══════════════════════════════════════════════ */
.alerta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease;
    transition: var(--transition);
    position: relative;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.alerta-exito { background: var(--color-success-bg); color: var(--color-success); border: 1px solid rgba(0,184,148,0.2); }
.alerta-error { background: var(--color-danger-bg); color: var(--color-danger); border: 1px solid rgba(255,107,107,0.2); }
.alerta-info  { background: var(--color-info-bg); color: var(--color-info); border: 1px solid rgba(116,185,255,0.2); }

.alerta-cerrar {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0.6;
}

.alerta-cerrar:hover { opacity: 1; }

/* ══════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ══════════════════════════════════════════════ */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.87rem;
    font-weight: 500;
    min-width: 280px;
    max-width: 420px;
    box-shadow: var(--shadow-md);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    opacity: 0.95;
}

.toast-visible {
    transform: translateX(0);
}

.toast-exito { background: #065f46; color: #a7f3d0; }
.toast-error { background: #7f1d1d; color: #fecaca; }
.toast-info  { background: #1e3a5f; color: #bfdbfe; }
.toast-warning { background: #78350f; color: #fde68a; }

.toast .material-symbols-rounded { font-size: 20px; }

.toast-cerrar {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.6;
    padding: 0 4px;
}

.toast-cerrar:hover { opacity: 1; }

/* ══════════════════════════════════════════════
   SPINNER
   ══════════════════════════════════════════════ */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ══════════════════════════════════════════════
   LOGIN PAGE
   ══════════════════════════════════════════════ */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-primary);
    background-image: 
        radial-gradient(ellipse at 20% 50%, rgba(108, 92, 231, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 206, 201, 0.08) 0%, transparent 50%);
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 12px;
    animation: pulse-glow 2s infinite alternate;
}

.login-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary-light), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

.login-form .form-group {
    margin-bottom: 22px;
}

.login-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.login-footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ══════════════════════════════════════════════
   HAMBURGER MENU (MOBILE)
   ══════════════════════════════════════════════ */
.menu-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1001;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.sidebar-overlay.visible {
    display: block;
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.abierto {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 20px 16px;
        padding-top: 70px;
    }

    .menu-toggle {
        display: flex;
    }

    .tv-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .resumen-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filtros-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filtros-personalizado {
        flex-wrap: wrap;
    }

    .page-header {
        flex-direction: column;
    }

    .metodo-pago-grid {
        grid-template-columns: 1fr;
    }

    /* En móvil: bottom-sheet que sube desde abajo */
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .modal {
        margin: 0;
        max-width: 100%;
        max-height: 88vh;
        border-radius: 20px 20px 0 0;
        animation: slideUpMobile 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    /* Handle visual de bottom-sheet */
    .modal::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: rgba(255,255,255,0.2);
        border-radius: 2px;
        margin: 12px auto 0;
        flex-shrink: 0;
    }

    @keyframes slideUpMobile {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }

    .modal-footer {
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 480px) {
    .resumen-grid {
        grid-template-columns: 1fr;
    }

    .tarifa-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cronometro-display {
        font-size: 1.8rem;
    }

    .login-card {
        padding: 28px 24px;
    }

    /* Modal más compacto en pantallas muy pequeñas */
    .modal-header {
        padding: 14px 16px;
    }

    .modal-body {
        padding: 14px 16px;
    }

    .modal-footer {
        padding: 12px 16px;
        flex-direction: row;     /* Botones en fila */
        gap: 8px;
    }

    .modal-footer .btn {
        flex: 1;                 /* Botones ocupan todo el ancho disponible */
        justify-content: center;
    }

    /* Widget de agregar productos más compacto */
    .caja-recarga-directa > div {
        flex-direction: column !important;
    }

    .caja-recarga-directa select,
    .caja-recarga-directa input[type="number"] {
        width: 100% !important;
        min-width: unset !important;
    }

    .caja-recarga-directa input[type="number"] {
        width: 100% !important;
    }
}

/* ══════════════════════════════════════════════
   SCROLLBAR
   ══════════════════════════════════════════════ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ══════════════════════════════════════════════
   SELECTION
   ══════════════════════════════════════════════ */
::selection {
    background: rgba(108, 92, 231, 0.3);
    color: #fff;
}

/* ══════════════════════════════════════════════
   SISTEMA DE DISEÑO GAME HOUSE V2 - COMPONENTES
   ══════════════════════════════════════════════ */

/* overrides de tarjetas de resumen financiero */
.resumen-card.resumen-total {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.16), rgba(108, 92, 231, 0.03)) !important;
    border-color: rgba(108, 92, 231, 0.22) !important;
}
.resumen-card.resumen-sesiones {
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.16), rgba(0, 184, 148, 0.03)) !important;
    border-color: rgba(0, 184, 148, 0.22) !important;
}
.resumen-card.resumen-promedio {
    background: linear-gradient(135deg, rgba(0, 206, 201, 0.16), rgba(0, 206, 201, 0.03)) !important;
    border-color: rgba(0, 206, 201, 0.22) !important;
}
.resumen-card.resumen-mayor {
    background: linear-gradient(135deg, rgba(116, 185, 255, 0.16), rgba(116, 185, 255, 0.03)) !important;
    border-color: rgba(116, 185, 255, 0.22) !important;
}

/* ── MÓDULO DE CAJA (ARQUEOS Y TURNOS) ── */
.caja-modulo-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.caja-abrir-card {
    max-width: 460px;
    margin: 40px auto;
    text-align: center;
    padding: 36px !important;
    border-radius: var(--radius-lg);
}

.caja-estado-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.caja-estado-badge.cerrada {
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

.caja-estado-badge.abierta {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.caja-fecha-apertura {
    font-size: 0.82rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 4px 0 20px 0;
}

.caja-cajero-tag {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.caja-header-activa {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.saldos-caja-lista {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.saldo-caja-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.saldo-caja-item.subseccion {
    padding-left: 28px;
    background: rgba(255, 255, 255, 0.01);
    font-size: 0.85rem;
    border-style: dashed;
}

.saldo-caja-item.total-esperado {
    background: rgba(0, 184, 148, 0.05);
    border-color: rgba(0, 184, 148, 0.2);
    font-size: 1.05rem;
    padding: 16px;
}

.saldo-caja-item strong {
    font-variant-numeric: tabular-nums;
}

.caja-abierta-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
}

.form-caja {
    margin-top: 16px;
}

.input-monto-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.moneda-previa {
    position: absolute;
    left: 14px;
    font-weight: 700;
    color: var(--text-secondary);
}

.input-monto-wrapper input {
    padding-left: 28px !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
}

.help-text {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.text-error {
    color: var(--color-danger) !important;
}

.arqueo-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
}

.arqueo-badge.cuadrado {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.arqueo-badge.faltante {
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

.arqueo-badge.sobrante {
    background: var(--color-info-bg);
    color: var(--color-info);
}


/* ── MÓDULO DE PUNTO DE VENTA (POS TERMINAL) ── */
.pos-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    align-items: start;
}

.pos-filtros-bar {
    margin-bottom: 20px;
}

.pos-productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 8px;
}

.pos-prod-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    transition: var(--transition);
}

.pos-prod-card:hover {
    border-color: rgba(108, 92, 231, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.pos-prod-card.agotado {
    opacity: 0.6;
}

.prod-nombre {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
}

.prod-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.prod-precio {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-success);
}

.prod-stock {
    color: var(--text-secondary);
}

.prod-stock.bajo {
    color: var(--color-warning);
}

.btn-add-pos {
    width: 100%;
    border-radius: var(--radius-md) !important;
}

/* Carrito de Compras en POS */
.pos-caja-compra {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 24px;
}

.pos-carrito-lista {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 260px;
    overflow-y: auto;
    padding-right: 6px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.carrito-vacio {
    text-align: center;
    padding: 30px 0;
    color: var(--text-muted);
}

.carrito-vacio .material-symbols-rounded {
    font-size: 40px;
    margin-bottom: 8px;
    opacity: 0.5;
}

.carrito-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.01);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    gap: 10px;
}

.item-detalles {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-nombre {
    font-size: 0.88rem;
    font-weight: 600;
}

.item-precio-sub {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.item-controles {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-cantidad-pos {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-cantidad-pos:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.item-cantidad-num {
    font-size: 0.88rem;
    font-weight: 700;
    min-width: 16px;
    text-align: center;
}

.btn-eliminar-pos {
    background: none;
    border: none;
    color: var(--color-danger);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0 4px;
    transition: var(--transition);
}

.btn-eliminar-pos:hover {
    color: #ff3333;
}

.pos-totales-seccion {
    padding: 8px 0;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-row span {
    font-size: 1rem;
    font-weight: 600;
}

.total-row strong {
    font-size: 1.6rem;
    color: var(--color-success);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

/* Slick tab toggles for POS (Venta vs Consumos) */
.pos-tipo-venta-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 4px;
    gap: 4px;
}

.btn-toggle-label {
    cursor: pointer;
}

.btn-toggle-label input {
    display: none;
}

.toggle-btn-design {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.btn-toggle-label input:checked + .toggle-btn-design {
    background: var(--accent-primary);
    color: #fff;
}

.form-control-select {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-control-select:focus {
    outline: none;
    border-color: var(--accent-primary);
}


/* ── MÓDULO DE INVENTARIO ── */
.inventario-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    align-items: start;
}

.search-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
}

.search-group input {
    padding-left: 40px !important;
}

.search-form {
    width: 100%;
}

.search-group .btn {
    position: absolute;
    right: 4px;
    padding: 6px 12px;
}

.search-group .btn-muted {
    position: absolute;
    right: 80px;
    background: rgba(255,255,255,0.05);
    color: var(--text-secondary);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
}

.stock-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-block;
}

.stock-badge.normal {
    background: rgba(0, 184, 148, 0.12);
    color: var(--color-success);
}

.stock-badge.critico {
    background: rgba(253, 203, 110, 0.12);
    color: var(--color-warning);
}

.stock-badge.agotado {
    background: rgba(255, 107, 107, 0.12);
    color: var(--color-danger);
}

.fila-alerta {
    background: rgba(253, 203, 110, 0.02) !important;
}

.fila-alerta td {
    border-bottom: 1px solid rgba(253, 203, 110, 0.15) !important;
}

.btn-accion {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: pointer;
}

.btn-accion:hover {
    color: var(--text-primary);
}

.btn-accion.edit:hover {
    background: rgba(116, 185, 255, 0.12);
    color: var(--color-info);
    border-color: rgba(116, 185, 255, 0.2);
}

.btn-accion.delete:hover {
    background: rgba(255, 107, 107, 0.12);
    color: var(--color-danger);
    border-color: rgba(255, 107, 107, 0.2);
}


/* ── PAGINACIÓN GLOBAL ── */
.paginacion-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
}

.paginacion {
    display: flex;
    gap: 6px;
    align-items: center;
}

.btn-pag {
    min-width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-pag:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
}

.btn-pag.active {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.btn-pag .material-symbols-rounded {
    font-size: 20px;
}

.pag-separador {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0 4px;
}


/* ── BADGES FINANCIEROS Y LOGS DE AUDITORÍA ── */
.badge-tv {
    background: rgba(108, 92, 231, 0.12) !important;
    color: var(--accent-primary-light) !important;
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.badge-tienda {
    background: rgba(0, 206, 201, 0.12) !important;
    color: var(--accent-secondary) !important;
    border: 1px solid rgba(0, 206, 201, 0.2);
}

.tabla-logs td.log-detalles {
    max-width: 400px;
    word-break: break-word;
    font-size: 0.85rem;
}


/* ══════════════════════════════════════════════
   MEDIA QUERIES DE ADAPTABILIDAD MÓVIL ADICIONAL
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .pos-layout {
        grid-template-columns: 1fr;
    }
    
    .pos-carrito-col .pos-caja-compra {
        position: static;
        margin-top: 20px;
    }

    .inventario-layout {
        grid-template-columns: 1fr;
    }

    .inventario-formulario-col {
        margin-top: 20px;
    }
}

@media (max-width: 992px) {
    .caja-abierta-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 16px !important;
        margin-left: 0 !important;
        padding-top: 80px !important;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(4px);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .sidebar-overlay.visible {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 576px) {
    .pos-productos-grid {
        grid-template-columns: 1fr;
    }

    .metodo-pago-grid.sm {
        grid-template-columns: 1fr;
    }
}

/* Sidebar collapsed states for desktop */
@media (min-width: 769px) {
    body.sidebar-collapsed {
        --sidebar-width: 76px;
    }
    
    body.sidebar-collapsed .sidebar-title,
    body.sidebar-collapsed .nav-item span:not(.material-symbols-rounded),
    body.sidebar-collapsed .user-details,
    body.sidebar-collapsed .logout-btn span:not(.material-symbols-rounded) {
        display: none !important;
    }
    
    body.sidebar-collapsed .sidebar-header {
        justify-content: center;
        padding: 24px 0;
        gap: 0;
    }
    
    body.sidebar-collapsed .sidebar-logo {
        font-size: 1.8rem;
    }
    
    body.sidebar-collapsed .desktop-sidebar-toggle {
        position: static !important;
        margin-top: 10px;
    }
    
    body.sidebar-collapsed .nav-item {
        justify-content: center;
        padding: 12px;
        border-radius: 50%;
        width: 44px;
        height: 44px;
        margin: 4px auto;
    }

    body.sidebar-collapsed .sidebar-footer {
        padding: 16px 0;
        align-items: center;
        gap: 15px;
    }
    
    body.sidebar-collapsed .user-info {
        justify-content: center;
        gap: 0;
    }
    
    body.sidebar-collapsed .logout-btn {
        margin: 0 auto;
        width: 44px;
        height: 44px;
        justify-content: center;
        border-radius: 50%;
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .desktop-sidebar-toggle {
        display: none !important;
    }
}

