.form-check-input.col-toggle {
    width: 22px;
    height: 12px;
    min-width: 22px;
    min-height: 12px;
    font-size: 0.7em;
    transition: background 0.2s, border 0.2s;
}
/* Switches de selección de columnas: relleno naranja cuando están activos */
.form-check-input.col-toggle:checked {
    background-color: #ff9800 !important;
    border-color: #ff9800 !important;
}
.form-check-input.col-toggle {
    transition: background 0.2s, border 0.2s;
}
/* === ESTILO UNIFICADO PARA TODOS LOS BOTONES DE ACCIONES Y MENÚ === */
.btn-sirio, .sidebar-menu .btn-sirio, .toolbar-header .btn-sirio, .sidebar-menu .btn, .toolbar-header .btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 6px 8px !important;
    font-size: 12px !important;
    height: 32px;
    transition: all 0.3s ease;
    gap: 0 !important;
    background: var(--ds-bg-element, #181818);
    border: 1px solid var(--ds-border-light, #333);
    color: #e0e0e0;
    border-radius: var(--ds-radius-sm, 6px);
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

/* El texto siempre visible, color placeholder por defecto */
.btn-sirio .btn-text, .sidebar-menu .btn .btn-text, .toolbar-header .btn .btn-text {
    color: #b0b0b0;
    opacity: 1;
    margin-left: 6px;
    max-width: 90px;
    display: inline-block;
    transition: color 0.3s, opacity 0.3s;
    vertical-align: middle;
}

/* Al pasar el mouse o activo, texto blanco */
.btn-sirio:hover .btn-text,
.btn-sirio.active .btn-text,
.sidebar-menu .btn:hover .btn-text,
.sidebar-menu .btn.active .btn-text,
.toolbar-header .btn:hover .btn-text,
.toolbar-header .btn.active .btn-text {
    color: #fff;
}

/* Iconos siempre visibles y alineados */
.btn-sirio i, .sidebar-menu .btn i, .toolbar-header .btn i {
    margin-left: 0 !important;
    margin-right: 0 !important;
    font-size: 1em;
    vertical-align: middle;
}
/* Efecto acordeón en botones de análisis avanzado (excepto filtro y exportar) */
.toolbar-header .btn-sirio[data-analisis]:not([id="btn-filtros"]):not([id="btn-exportar"]) {
    width: 100px;
    background: transparent;
    color: #fff !important;
    transition: none;
    overflow: hidden;
    white-space: nowrap;
}
.toolbar-header .btn-sirio[data-analisis]:not([id="btn-filtros"]):not([id="btn-exportar"]):hover {
    color: #fff !important;
    background: transparent;
}
.toolbar-header .btn-sirio.active[data-analisis]:not([id="btn-filtros"]):not([id="btn-exportar"]) {
    width: 100px;
    background: #cd7b00;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(255,152,0,0.12);
    z-index: 2;
}
/* Botones de análisis avanzado: color de texto personalizado */
.btn-sirio[data-analisis="sentimiento"],
.btn-sirio[data-analisis="topics"],
.btn-sirio[data-analisis="entidades"],
.btn-sirio[data-analisis="ngramas"],
.btn-sirio[data-analisis="clustering"] {
    color: #44444470 !important;
}
.btn-sirio[data-analisis="sentimiento"]:hover,
.btn-sirio[data-analisis="topics"]:hover,
.btn-sirio[data-analisis="entidades"]:hover,
.btn-sirio[data-analisis="ngramas"]:hover,
.btn-sirio[data-analisis="clustering"]:hover {
    color: #fff !important;
}
/* Prevenir smooth scrolling que causa desplazamiento no deseado */
html {
    scroll-behavior: auto !important;
}

/* Personalización del switch para que el punto (thumb) sea naranja siempre */
.form-switch .form-check-input {
    position: relative;
    background-color: #181818;
    border: 2px solid var(--ds-accent-primary);
    box-shadow: none;
    width: 2.5em;
    height: 0.85em;
}
.form-switch .form-check-input:focus {
    box-shadow: 0 0 0 2px var(--ds-accent-alpha);
    border-color: var(--ds-accent-primary);
    background-image: none;
}
.form-switch .form-check-input:checked {
    background-color: #181818;
    border: 2px solid var(--ds-accent-primary);
    background-image: none;
}
.form-switch .form-check-input::before {
    content: '';
    display: block;
    width: 0.85em;
    height: 0.85em;
    background: var(--ds-accent-primary);
    border-radius: 50%;
    position: absolute;
    left: 0.15em;
    top: 50%;
    transform: translateY(-50%);
    transition: left 0.2s ease-in-out;
}
.form-switch .form-check-input:checked::before {
    left: calc(100% - 1em);
    background: var(--ds-accent-primary);
}
.form-switch .form-check-input::-webkit-slider-thumb {
    background: var(--ds-accent-primary) !important;
}
.form-switch .form-check-input:checked::-webkit-slider-thumb {
    background: var(--ds-accent-primary) !important;
}
.form-switch .form-check-input::-moz-range-thumb {
    background: var(--ds-accent-primary) !important;
}
.form-switch .form-check-input:checked::-moz-range-thumb {
    background: var(--ds-accent-primary) !important;
}
.form-switch .form-check-input::-ms-thumb {
    background: var(--ds-accent-primary) !important;
}
.form-switch .form-check-input:checked::-ms-thumb {
    background: var(--ds-accent-primary) !important;
}
/* Punto naranja decorativo para labels de referencia */
/* ============================================================
   DESIGN_SYSTEM.CSS - Core Desktop Theme
   Project: hesiOX Desktop
   Description: Overrides and standardizes the application look
   to resemble a native desktop software (VS Code, Adobe, etc.)
   ============================================================ */

/* === 1. TOKENS & VARIABLES === */
:root {
    /* --- COLOR PALETTE (Dark Professional) --- */
    --ds-bg-app:        #0f0f0f; /* Main background (deepest) */
    --ds-bg-sidebar:    #181818; /* Sidebar/Panels */
    --ds-bg-panel:      #1e1e1e; /* Cards/Containers */
    --ds-bg-element:    #2b2b2b; /* Inputs/Buttons default */
    --ds-bg-hover:      #333333; /* Hover state */
    
    --ds-border-color:  #333333; /* Subtle borders */
    --ds-border-light:  #444444; /* Slightly clearer borders */
    
    /* --- ACCENT COLORS (Sirio Orange + Productivity Blue) --- */
    --ds-accent-primary: #ff9800;
    --ds-accent-hover:   #ffa726;
    --ds-accent-alpha:   rgba(255, 152, 0, 0.15);
    
    --ds-info:           #2196f3;
    --ds-success:        #4caf50;
    --ds-danger:         #f44336;
    --ds-warning:        #ffc107;

    /* --- TYPOGRAPHY --- */
    /* --- TYPOGRAPHY --- */
    --ds-font-ui:        'JetBrains Mono', 'Courier New', Consolas, monospace; /* Typewriter preference */
    --ds-font-mono:      'JetBrains Mono', Consolas, monospace;
    --ds-font-headers:   'Roboto Condensed', sans-serif;

    /* --- DIMENSIONS & SHAPES --- */
    --ds-radius-sm:      0px;  /* Sharp corners for professional look */
    --ds-radius-md:      2px;  /* Micro-rounding for softness if needed */
    --ds-radius-lg:      4px;  
    
    --ds-spacing-xs:     4px;
    --ds-spacing-sm:     8px;
    --ds-spacing-md:     16px;
    
    --ds-header-height:  48px;
    --ds-sidebar-width:  210px; /* Reduced from 260px for more space */
    --ds-footer-height:  28px;
    
    /* --- SHADOWS --- */
    --ds-shadow-panel:   0 2px 8px rgba(0,0,0,0.4);
    --ds-shadow-float:   0 8px 24px rgba(0,0,0,0.5);
    --ds-shadow-inset:   inset 0 1px 2px rgba(0,0,0,0.3);
}

/* === 2. RESET & BASE === */
body.desktop-body {
    background-color: var(--ds-bg-app);
    color: #e0e0e0;
    font-family: var(--ds-font-ui);
    overflow: hidden; /* App-like behavior */
    height: 100vh;
    font-size: 12px; /* Smaller, dense text */
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

/* Reset scrollbars to look like IDE */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
    background: var(--ds-bg-app);
}
::-webkit-scrollbar-thumb {
    background: #444;
    border: 2px solid var(--ds-bg-app);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
    border-color: var(--ds-bg-app);
}

/* === 3. LAYOUT STRUCTURE === */
.desktop-wrapper {
    display: flex !important;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* SIDEBAR */
.desktop-sidebar {
    width: var(--ds-sidebar-width);
    background: var(--ds-bg-sidebar);
    border-right: 1px solid var(--ds-border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 1100; /* Mayor que el footer para evitar solapamientos */
}

.sidebar-logo {
    height: 165px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid var(--ds-border-color);
    background: #111;
}
.sidebar-logo img {
    height: 120px;
    opacity: 0.9;
}

.sidebar-logo-links a {
  color: #ff9800 !important;
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  transition: none !important;
}
.sidebar-logo-links a:hover,
.sidebar-logo-links a:focus {
  color: #ff9800 !important;
  background: none !important;
  box-shadow: none !important;
  border: none !important;
}
.sidebar-logo-links a .fa-terminal,
.sidebar-logo-links a .fa-circle-question,
.sidebar-logo-links a .fa-power-off {
  cursor: default;
  transition: cursor 0.2s;
}
.sidebar-logo-links a:hover .fa-terminal,
.sidebar-logo-links a:hover .fa-circle-question,
.sidebar-logo-links a:hover .fa-power-off {
  cursor: pointer;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    color: #a0a0a0;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
    cursor: default; /* Desktop feel */
}

.nav-item:hover {
    background-color: var(--ds-bg-hover);
    color: #fff;
}

.nav-item.active {
    background-color: #252526;
    color: #fff;
    border-left-color: var(--ds-accent-primary);
}

.nav-item i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
    opacity: 0.8;
}

.nav-separator {
    height: 1px;
    background: var(--ds-border-color);
    margin: 8px 16px;
    opacity: 0.5;
}

.nav-label {
    flex: 1;
}

/* SUBMENU */
.collapse.show {
    background: #111; 
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}
.nav-item.active-sub {
    color: var(--ds-accent-primary);
    font-weight: 600;
}

/* MAIN AREA */
.desktop-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevent overflow */
    background: var(--ds-bg-app);
    position: relative; /* Added for absolute overlays */
}

/* HEADER */
.desktop-header {
    height: var(--ds-header-height);
    background: var(--ds-bg-sidebar);
    border-bottom: 1px solid var(--ds-border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    z-index: 90;
}

.page-title {
    font-family: var(--ds-font-headers);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CONTENT AREA */
.desktop-content {
    flex: 1;
    overflow-y: auto;
    position: relative; 
    /* Padding is handled by specific views or inner containers */
    padding: 0; 
}

/* STATUS BAR */
.desktop-footer {
    height: var(--ds-footer-height);
    background: #0a0a0a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px !important;
    font-size: 11px;
    color: #888;
    font-family: var(--ds-font-ui);
    user-select: none;
    z-index: 1000;
    width: 100%;
    max-width: 100%;
    position: static !important;
    margin: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
}
.desktop-footer strong { 
    color: var(--ds-accent-primary); 
    opacity: 0.9;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
    transition: max-width 0.3s ease, background 0.2s;
    cursor: help;
}

.desktop-footer strong:hover {
    max-width: 400px;
    background: rgba(255, 152, 0, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    z-index: 9999;
    position: relative;
}

.status-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    flex-shrink: 1;
    min-width: 0;
}

.status-item strong {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
    white-space: nowrap;
}

.status-left, .status-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
}

.status-left {
    flex: 0 0 auto;
    max-width: 35%;
    overflow: hidden;
}

.status-right {
    flex: 0 1 auto;
    justify-content: flex-end;
    max-width: 60%;
    overflow: hidden;
    margin-left: auto;
}

.status-separator {
    height: 14px;
    width: 1px;
    background: var(--ds-border-light);
    opacity: 0.5;
    margin: 0 4px;
}

/* === 4. UI COMPONENTS === */

/* CARDS */
.card-panel {
    background: var(--ds-bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--ds-radius-lg);
    box-shadow: var(--ds-shadow-float);
    margin-bottom: 1.5rem;
    /* overflow: hidden;  REMOVED to allow dropdowns to spill out */
    position: relative; /* Ensure z-index context if needed */
}

.card-header-panel {
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ds-accent-primary);
    
/* Manually replicate radius since overflow is visible */
    border-top-left-radius: var(--ds-radius-lg);
    border-top-right-radius: var(--ds-radius-lg);
}


/* BUTTONS */
.btn-sirio {
    background: var(--ds-bg-element);
    border: 1px solid var(--ds-border-light);
    color: #e0e0e0;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    border-radius: var(--ds-radius-sm);
    transition: all 0.1s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.btn-sirio:hover {
    background: var(--ds-bg-hover);
    border-color: #666;
    color: #fff;
}

.btn-sirio-primary {
    background: #cd7b00; /* Darker orange */
    border-color: #ff9800;
    color: #fff;
}

.btn-sirio-primary:hover {
    background: #e68a00;
}

/* FORMS */
.form-control-sirio {
    background: var(--ds-bg-app) !important;
    border: 1px solid var(--ds-border-color) !important;
    color: #ddd !important;
    font-size: 13px;
    font-family: var(--ds-font-mono); /* Monospace fit for data */
    padding: 8px;
    border-radius: var(--ds-radius-sm);
    box-shadow: var(--ds-shadow-inset);
}
.form-control-sirio:focus {
    border-color: var(--ds-accent-primary) !important;
    box-shadow: 0 0 0 1px var(--ds-accent-primary) !important;
    outline: none;
}

label.form-label-sirio {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    color: #888;
    margin-bottom: 4px;
    display: block;
    letter-spacing: 0.5px;
}

/* TABLES (Data Grid Look) */
.table-sirio {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.table-sirio thead th {
    background: #ff9800;
    color: #000000;
    font-weight: 600;
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid var(--ds-border-color);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}
.table-sirio tbody td {
    padding: 8px 12px;
    border-bottom: 1px solid #2a2a2a;
    color: #ccc;
    vertical-align: middle;
}
.table-sirio tbody tr:hover {
    background: rgba(255, 152, 0, 0.05);
}
.table-sirio td .badge {
    border-radius: 2px; /* Square badges */
    padding: 2px 6px;
    font-weight: 500;
    font-size: 10px;
}

/* UTILS */
.text-accent { color: var(--ds-accent-primary) !important; }
.bg-dark-panel { background-color: var(--ds-bg-panel) !important; }
.border-b { border-bottom: 1px solid var(--ds-border-color); }
.shadow-z2 { box-shadow: var(--ds-shadow-float); }

/* --- 5. PAGE SPECIFIC OVERRIDES --- */

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 16px;
}
.dashboard-stat-card {
    background: var(--ds-bg-panel);
    border: 1px solid var(--ds-border-color);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100px;
    position: relative;
    overflow: hidden;
}
.dashboard-stat-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 2px;
    background: var(--ds-accent-primary);
    opacity: 0.5;
}
.stat-value {
    font-family: var(--ds-font-headers);
    font-size: 28px;
    color: #fff;
    font-weight: 700;
}
.stat-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
}

/* Responsive */
@media (max-width: 900px) {
    .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === 6. DASHBOARD & WIDGETS === */

/* METRICS STRIP */
.metric-strip {
    display: flex;
    background: var(--ds-bg-panel);
    border: 1px solid var(--ds-border-color);
    border-radius: var(--ds-radius-md);
    overflow: hidden;
    margin-bottom: 16px;
}
.metric-compact {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--ds-bg-panel);
    border-right: 1px solid var(--ds-border-color);
}
.metric-compact:last-child { border-right: none; }

.metric-label { 
    font-size: 10px; 
    color: #888; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    margin-bottom: 4px;
    display: block;
}
.metric-value { 
    font-size: 20px; 
    font-weight: 700; 
    color: #e0e0e0; 
    font-family: var(--ds-font-headers);
    line-height: 1;
}
.metric-icon { color: #333; font-size: 20px; transition: color 0.2s; }
.metric-compact:hover .metric-icon { color: var(--ds-accent-primary); }

/* DENSE LISTS (Logs) */
.list-group-dense {
    display: flex;
    flex-direction: column;
}
.list-item-dense {
    padding: 8px 12px;
    border-bottom: 1px solid var(--ds-border-color);
    font-size: 12px;
    display: flex;
    align-items: center;
    color: #bbb;
    text-decoration: none;
    transition: background 0.1s;
}
.list-item-dense:hover { background: var(--ds-bg-hover); color: #fff; }
.list-item-dense:last-child { border-bottom: none; }
.list-item-time { font-family: var(--ds-font-mono); font-size: 10px; color: #666; margin-left: auto; }

/* QUICK LINKS MENU */
.quick-link {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: #bbb;
    text-decoration: none;
    font-size: 12px;
    border-radius: var(--ds-radius-sm);
    transition: all 0.1s;
    border: 1px solid transparent;
}
.quick-link:hover { 
    background: var(--ds-bg-hover); 
    color: #fff; 
    border-color: #333;
}
.quick-link i { width: 24px; text-align: center; margin-right: 8px; color: #666; font-size: 14px; }
.quick-link:hover i { color: var(--ds-accent-primary); }

/* === 7. PROJECT CARDS (Studio Look) === */
.project-card-hero {
    background: linear-gradient(145deg, #1a1a1a 0%, #111 100%);
    border: 1px solid var(--ds-border-color);
    border-left: 4px solid var(--ds-accent-primary);
    position: relative;
    overflow: hidden;
    border-radius: var(--ds-radius-md);
}

.project-card-archive {
    background: var(--ds-bg-panel);
    border: 1px solid var(--ds-border-color);
    transition: all 0.2s;
    border-radius: var(--ds-radius-md);
    position: relative;
}
.project-card-archive:hover {
    border-color: #666;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.stat-pill {
    background: rgba(0,0,0,0.3);
    border: 1px solid #333;
    padding: 6px 10px;
    font-size: 11px;
    color: #aaa;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: var(--ds-radius-sm);
}

/* === 8. FORM OVERRIDES (Global) === */
/* Force standard bootstrap forms to look like Sirio Desktop */
.form-control, .form-select {
    background-color: var(--ds-bg-app) !important;
    border: 1px solid var(--ds-border-color) !important;
    color: #e0e0e0 !important;
    border-radius: var(--ds-radius-sm) !important;
    font-size: 13px !important;
}
.form-control:focus, .form-select:focus {
    box-shadow: none !important;
    border-color: var(--ds-accent-primary) !important;
}
.input-group-text {
    background-color: #222 !important;
    border-color: #333 !important;
    color: #888 !important;
}

/* Choices.js Dropdown Highlight Fix */
.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
    background-color: var(--ds-accent-primary) !important;
    color: #000 !important;
}

/* KEYBOARD SHORTCUTS PANEL */
.shortcuts-help {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background: var(--ds-bg-panel);
    border: 1px solid var(--ds-border-light);
    border-radius: var(--ds-radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    overflow: hidden;
    animation: slideInUp 0.3s ease;
}

.shortcuts-header {
    background: var(--ds-bg-element);
    padding: 12px 16px;
    border-bottom: 1px solid var(--ds-border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--ds-accent-primary);
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.shortcuts-header button {
    background: none;
    border: none;
    color: var(--ds-text-muted);
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}

.shortcuts-header button:hover {
    color: #fff;
}

.shortcuts-list {
    padding: 10px 0;
}

.shortcut-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.shortcut-item:last-child {
    border-bottom: none;
}

.shortcut-item kbd {
    background: #333;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 2px 6px;
    color: #fff;
    font-family: var(--ds-font-mono);
    font-size: 11px;
    min-width: 24px;
    text-align: center;
    display: inline-block;
}

.shortcut-item span {
    color: var(--ds-text-secondary);
    font-size: 12px;
}

@keyframes slideInUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* === 9. NOTIFICATIONS & ALERTS === */

/* Draft Notification (Borrador recuperado) */
.draft-notification {
    background: var(--ds-bg-panel);
    border: 1px solid var(--ds-accent-primary);
    border-left: 4px solid var(--ds-accent-primary);
    color: #fff;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: var(--ds-radius-md);
    box-shadow: var(--ds-shadow-float);
    animation: slideInUp 0.3s ease;
}

.draft-notification strong {
    color: var(--ds-accent-primary);
    font-family: var(--ds-font-headers);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Autosave Indicator */
.autosave-indicator {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--ds-border-color);
    color: #888;
    padding: 6px 12px;
    border-radius: var(--ds-radius-sm);
    font-size: 11px;
    z-index: 2000;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    pointer-events: none;
    display: flex;
    align-items: center;
}
.autosave-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

/* Bootstrap Alert Overrides */
.alert {
    background: var(--ds-bg-panel);
    border: 1px solid var(--ds-border-color);
    color: #ccc;
    border-radius: var(--ds-radius-md);
    box-shadow: var(--ds-shadow-panel);
    font-size: 13px;
}

.alert-success {
    border-left: 4px solid var(--ds-success);
    background: linear-gradient(to right, rgba(76, 175, 80, 0.1), transparent);
}
.alert-success .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

.alert-warning {
    border-left: 4px solid var(--ds-warning);
    background: linear-gradient(to right, rgba(255, 193, 7, 0.1), transparent);
}
.alert-warning .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

.alert-danger {
    border-left: 4px solid var(--ds-danger);
    background: linear-gradient(to right, rgba(244, 67, 54, 0.1), transparent);
}
.alert-danger .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

.alert-info {
    border-left: 4px solid var(--ds-info);
    background: linear-gradient(to right, rgba(33, 150, 243, 0.1), transparent);
}
.alert-info .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }
/* === 10. IMMERSIVE VISUALIZATION LAYOUT === */
/* Used for Maps and Networks where content should fill the screen */

.immersive-layout .desktop-header {
    background: rgba(18, 18, 18, 0.85) !important;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    z-index: 1000;
    padding-left: 0 !important;
    margin-left: 0 !important;
    padding-right: 16px !important;
}

.immersive-layout.desktop-main {
    padding: 0 !important;
    margin: 0 !important;
}

.immersive-layout .header-left {
    margin: 0 !important;
    padding: 0 !important;
}

.immersive-layout .page-title {
    margin: 0 !important;
    padding-left: 10px !important; /* Balanced with panel offset */
}

.immersive-layout .desktop-footer {
    position: absolute !important;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.85) !important;
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-left: 20px !important; /* Más padding para alejar del borde */
}

.immersive-layout .desktop-content {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    overflow: hidden !important;
    z-index: 1;
}

/* Ensure the wrapper doesn't limit the absolute content */
.immersive-layout {
    height: 100%;
}/* === 11. TOOLTIPS & PREVIEWS (Sirio Aesthetic) === */

/* Standard Bootstrap Tooltips */
.tooltip {
    z-index: 10000;
}

.tooltip-inner {
    background-color: #0c0c0c !important;
    color: #e0e0e0 !important;
    border: 1px solid var(--ds-accent-primary) !important;
    border-radius: 2px !important;
    padding: 6px 10px !important;
    font-family: var(--ds-font-mono) !important;
    font-size: 11px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before { border-top-color: var(--ds-accent-primary) !important; }
.tooltip.bs-tooltip-bottom .tooltip-arrow::before { border-bottom-color: var(--ds-accent-primary) !important; }
.tooltip.bs-tooltip-start .tooltip-arrow::before { border-left-color: var(--ds-accent-primary) !important; }
.tooltip.bs-tooltip-end .tooltip-arrow::before { border-right-color: var(--ds-accent-primary) !important; }

/* Custom Article Preview (The Authority) */
.tooltip-preview {
    position: fixed;
    background: #111;
    border: 1px solid var(--ds-accent-primary);
    border-left: 5px solid var(--ds-accent-primary);
    padding: 16px;
    width: 480px;
    max-width: 90vw;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
    z-index: 9999;
    color: #ccc;
    font-family: var(--ds-font-ui);
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    border-radius: 2px;
}

.tooltip-preview.show { opacity: 1; transform: translateY(0); }
.tooltip-preview.fijo {
    border-color: var(--ds-warning);
    border-left-color: var(--ds-warning);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.9);
}

.tooltip-preview hr { border-color: rgba(255, 255, 255, 0.1); margin: 12px 0; }
.tooltip-preview strong { color: #fff; font-family: var(--ds-font-headers); font-size: 15px; text-transform: uppercase; }
.tooltip-preview em { color: var(--ds-accent-primary); font-style: normal; font-weight: bold; }

.tooltip-scroll {
    max-height: 220px;
    overflow-y: auto;
    margin: 12px 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13px;
    line-height: 1.6;
    color: #bbb;
    scrollbar-width: thin;
    scrollbar-color: var(--ds-accent-primary) rgba(255, 255, 255, 0.05);
}

/* Scrollbar personalizado para Webkit (Chrome, Safari) */
.tooltip-scroll::-webkit-scrollbar {
    width: 8px;
}

.tooltip-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.tooltip-scroll::-webkit-scrollbar-thumb {
    background: var(--ds-accent-primary);
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.5);
}

.tooltip-scroll::-webkit-scrollbar-thumb:hover {
    background: #ffa726;
    box-shadow: 0 0 8px rgba(255, 152, 0, 0.4);
}

.tooltip-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    justify-content: flex-end;
}

.copiar-btn {
    background: var(--ds-bg-element);
    border: 1px solid var(--ds-border-light);
    color: #fff;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.1s;
}

.copiar-btn:hover { 
    background: var(--ds-accent-primary); 
    color: #000; 
    border-color: var(--ds-accent-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}
.copiar-btn.leer-btn { 
    background: rgba(33, 150, 243, 0.15); 
    color: #64b5f6; 
    border-color: rgba(33, 150, 243, 0.4); 
}
.copiar-btn.leer-btn:hover { 
    background: #0074d3; 
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(11, 82, 139, 0.4);
}

/* Scrollbar para el modal de vista completa */
.modal-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--ds-accent-primary) rgba(255, 255, 255, 0.05);
}

.modal-scroll::-webkit-scrollbar {
    width: 10px;
}

.modal-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.modal-scroll::-webkit-scrollbar-thumb {
    background: var(--ds-accent-primary);
    border-radius: 5px;
    border: 2px solid rgba(0, 0, 0, 0.5);
}

.modal-scroll::-webkit-scrollbar-thumb:hover {
    background: #ffa726;
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
}

/* Cambiar cursor a pointer en enlaces del menú lateral */
.sidebar-nav a .fa-mouse-pointer {
  cursor: default;
  transition: cursor 0.2s;
}
.sidebar-nav a:hover .fa-mouse-pointer {
  cursor: pointer;
}
