/* ==========================================================================
   INTERFAZ OFICIAL Y SISTEMA DE DISEÑO WINDOWS 11 (FLUENT DESIGN SYSTEM)
   ABC Training - Elaborado por Lic. Victor Elias Sellis Zeballos
   Basado fielmente en capturas reales del sistema operativo
   ========================================================================== */

:root {
    --win11-font: 'Segoe UI Variable', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    --win11-accent: #0067c0;
    --win11-accent-hover: #005fb8;
    --win11-accent-active: #0053a4;
    --win11-taskbar-height: 48px;
    
    /* Efecto Mica & Acrílico Claro */
    --win11-bg-blur: rgba(243, 243, 243, 0.84);
    --win11-bg-solid: #f9f9f9;
    --win11-card-bg: rgba(255, 255, 255, 0.72);
    --win11-card-hover: rgba(255, 255, 255, 0.95);
    --win11-border: rgba(0, 0, 0, 0.08);
    --win11-border-subtle: rgba(0, 0, 0, 0.05);
    --win11-text: #1a1a1a;
    --win11-text-secondary: #5f5f5f;
    --win11-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    --win11-shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.1);
    --win11-radius: 8px;
    --win11-radius-lg: 12px;
    --win11-radius-xl: 16px;
    --win11-radius-pill: 24px;
}

/* Modo Oscuro Fluent */
body.dark-theme {
    --win11-bg-blur: rgba(32, 32, 32, 0.86);
    --win11-bg-solid: #1e1e1e;
    --win11-card-bg: rgba(255, 255, 255, 0.06);
    --win11-card-hover: rgba(255, 255, 255, 0.12);
    --win11-border: rgba(255, 255, 255, 0.08);
    --win11-border-subtle: rgba(255, 255, 255, 0.04);
    --win11-text: #f5f5f5;
    --win11-text-secondary: #a0a0a0;
    --win11-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

/* ==========================================================================
   ESCRITORIO WINDOWS 11
   ========================================================================== */
#desktop-area {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: url('../assets/wallpaper.jpg') center/cover no-repeat;
    overflow: hidden;
    user-select: none;
    transition: background-image 0.4s ease;
    font-family: var(--win11-font);
}

/* Iconos de Escritorio */
.desktop-shortcuts {
    position: absolute;
    top: 24px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 10;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 82px;
    padding: 8px 4px;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.15s, border-color 0.15s;
    border: 1px solid transparent;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.35);
}

.dark-theme .desktop-icon:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.18);
}

.desktop-icon svg, .desktop-icon img {
    margin-bottom: 4px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.35));
}

.desktop-icon span {
    font-size: 11.5px;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
    line-height: 1.25;
    word-break: break-word;
}

/* ==========================================================================
   BARRA DE TAREAS (TASKBAR) NATIVA WINDOWS 11
   ========================================================================== */
#taskbar {
    position: fixed !important;
    bottom: 0 !important;
    top: auto !important;
    left: 0 !important;
    width: 100% !important;
    height: var(--win11-taskbar-height) !important;
    background: rgba(243, 243, 243, 0.85);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    z-index: 10000 !important;
}

.dark-theme #taskbar {
    background: rgba(30, 30, 30, 0.88);
    border-top-color: rgba(255, 255, 255, 0.08);
}

/* Extremo Izquierdo: Widgets del Clima */
.taskbar-left {
    display: flex;
    align-items: center;
    min-width: 170px;
}

.taskbar-widget-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    border: none;
    transition: background 0.15s;
    color: inherit;
    font-family: inherit;
}

.taskbar-widget-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.dark-theme .taskbar-widget-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.widget-temp {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.widget-desc {
    font-size: 10.5px;
    color: var(--win11-text-secondary);
    line-height: 1.2;
}

/* Centro de la barra de tareas */
.taskbar-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.taskbar-center.aligned-left {
    justify-content: flex-start;
    padding-left: 10px;
}

.taskbar-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    border: none;
    transition: background 0.15s, transform 0.1s;
    position: relative;
    color: inherit;
}

.taskbar-item:hover {
    background: rgba(255, 255, 255, 0.55);
}

.dark-theme .taskbar-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

.taskbar-item:active {
    transform: scale(0.92);
}

/* Barra indicadora inferior para apps activas */
.taskbar-item.has-indicator::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 6px;
    height: 3px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 2px;
    transition: all 0.2s;
}

.dark-theme .taskbar-item.has-indicator::after {
    background: rgba(255, 255, 255, 0.4);
}

.taskbar-item.running-active::after {
    width: 16px;
    background: var(--win11-accent);
}

/* Píldora de Búsqueda Moderna en la Barra de Tareas */
.taskbar-search-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 16px 0 12px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--win11-radius-pill);
    cursor: pointer;
    transition: all 0.15s;
    font-size: 12px;
    color: var(--win11-text-secondary);
}

.taskbar-search-pill:hover {
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.dark-theme .taskbar-search-pill {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    color: #bbb;
}

.dark-theme .taskbar-search-pill:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* Bandeja del sistema (derecha) */
.taskbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    min-width: 240px;
}

.taskbar-tray-btn {
    width: 26px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    border: none;
    color: inherit;
    transition: background 0.15s;
}

.taskbar-tray-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.dark-theme .taskbar-tray-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.taskbar-tray-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.taskbar-tray-group:hover {
    background: rgba(255, 255, 255, 0.5);
}

.dark-theme .taskbar-tray-group:hover {
    background: rgba(255, 255, 255, 0.12);
}

.taskbar-clock {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: 2px 8px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    line-height: 1.25;
    transition: background 0.15s;
}

.taskbar-clock:hover {
    background: rgba(255, 255, 255, 0.5);
}

.dark-theme .taskbar-clock:hover {
    background: rgba(255, 255, 255, 0.12);
}

.show-desktop-sliver {
    width: 6px;
    height: 36px;
    border-left: 1px solid rgba(0, 0, 0, 0.15);
    margin-left: 2px;
    cursor: pointer;
}

.dark-theme .show-desktop-sliver {
    border-left-color: rgba(255, 255, 255, 0.15);
}

.show-desktop-sliver:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   MENÚ INICIO (START MENU) 1:1 CON WINDOWS 11
   ========================================================================== */
#start-menu {
    position: absolute;
    bottom: calc(var(--win11-taskbar-height) + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(24px) scale(0.96);
    width: 620px;
    max-height: 650px;
    background: var(--win11-bg-blur);
    border: 1px solid var(--win11-border);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: var(--win11-radius-lg);
    box-shadow: var(--win11-shadow);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    padding: 26px 32px 14px 32px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark-theme #start-menu {
    background: var(--win11-bg-dark-blur);
    border-color: var(--win11-border-dark);
}

#start-menu.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
}

.start-search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: var(--win11-radius-pill);
    padding: 8px 18px;
    margin-bottom: 22px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.dark-theme .start-search-box {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.12);
}

.start-search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    font-family: inherit;
    width: 100%;
    color: inherit;
}

.start-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.start-section-title {
    font-size: 13.5px;
    font-weight: 700;
}

.start-btn-link {
    font-size: 11.5px;
    color: var(--win11-accent);
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 600;
    padding: 3px 6px;
    border-radius: 4px;
}

.start-btn-link:hover {
    background: rgba(0, 103, 192, 0.08);
}

.dark-theme .start-btn-link {
    color: #60cdff;
}

/* Cuadrícula de Apps Ancladas (6 columnas) */
.start-pinned-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px 4px;
    margin-bottom: 20px;
}

.start-app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 2px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    font-size: 11px;
    border: 1px solid transparent;
}

.start-app-item:hover {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(0, 0, 0, 0.05);
}

.dark-theme .start-app-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.08);
}

.start-app-item:active {
    transform: scale(0.95);
}

.start-app-item svg, .start-app-item img {
    margin-bottom: 6px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.start-app-item span {
    line-height: 1.2;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Sección de Recomendados / Recientes */
.start-recommended-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 16px;
    margin-bottom: 14px;
}

.start-rec-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
    border: 1px solid transparent;
}

.start-rec-item:hover {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(0, 0, 0, 0.05);
}

.dark-theme .start-rec-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.08);
}

.start-rec-text {
    display: flex;
    flex-direction: column;
}

.rec-title {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
}

.rec-time {
    font-size: 10.5px;
    color: var(--win11-text-secondary);
}

/* Pie del Menú Inicio: Usuario y Apagado */
.start-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 12px;
    margin-top: auto;
}

.dark-theme .start-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.start-user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

.start-user-pill:hover {
    background: rgba(255, 255, 255, 0.55);
}

.dark-theme .start-user-pill:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #0067c0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name-text {
    font-size: 12.5px;
    font-weight: 600;
}

.start-power-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    transition: background 0.15s;
    position: relative;
}

.start-power-btn:hover {
    background: rgba(255, 255, 255, 0.55);
}

.dark-theme .start-power-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   FLYOUTS DE WINDOWS 11 (Ocultos por defecto, anclados a la barra de tareas)
   ========================================================================== */
.win11-flyout {
    position: absolute;
    bottom: calc(var(--win11-taskbar-height) + 12px);
    background: var(--win11-bg-blur);
    border: 1px solid var(--win11-border);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: var(--win11-radius-lg);
    box-shadow: var(--win11-shadow);
    z-index: 10001;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.96);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark-theme .win11-flyout {
    background: var(--win11-bg-dark-blur);
    border-color: var(--win11-border-dark);
}

.win11-flyout.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* ==========================================================================
   AJUSTES RÁPIDOS (WIN + A) - 1:1 CON WINDOWS 11
   ========================================================================== */
#quick-settings-flyout {
    right: 80px;
    width: 380px;
    padding: 16px;
}

.quick-tiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.quick-tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 64px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--win11-radius);
    cursor: pointer;
    font-size: 11px;
    transition: all 0.15s;
}

.dark-theme .quick-tile {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
}

.quick-tile.active {
    background: var(--win11-accent);
    color: #fff;
    border-color: var(--win11-accent);
}

.quick-tile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quick-tile-label {
    font-weight: 600;
    line-height: 1.2;
}

.quick-tile-sub {
    font-size: 10px;
    opacity: 0.8;
}

.quick-sliders-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 16px;
}

.slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.slider-row input[type=range] {
    flex: 1;
    height: 4px;
    accent-color: var(--win11-accent);
    cursor: pointer;
}

.quick-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 12px;
    font-size: 11.5px;
}

.dark-theme .quick-footer {
    border-top-color: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   CALENDARIO Y NOTIFICACIONES (WIN + N) - 1:1 CON WINDOWS 11
   ========================================================================== */
#calendar-flyout {
    right: 12px;
    width: 360px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#widgets-flyout {
    left: 12px;
    width: 480px;
    max-height: 580px;
    overflow-y: auto;
    padding: 20px;
}

#clipboard-flyout {
    left: 50%;
    transform: translateX(-50%) translateY(20px) scale(0.96);
    width: 340px;
    max-height: 420px;
    overflow-y: auto;
    padding: 16px;
}

#clipboard-flyout.active {
    transform: translateX(-50%) translateY(0) scale(1);
}

.notif-section-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--win11-radius);
    padding: 12px;
}

.dark-theme .notif-section-card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

.notif-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
}

.notif-item {
    display: flex;
    gap: 10px;
    padding: 6px 0;
    font-size: 11.5px;
}

.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.cal-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
    font-size: 11px;
    margin-bottom: 12px;
}

.cal-day-name {
    font-weight: 700;
    color: var(--win11-text-secondary);
    padding: 4px 0;
}

.cal-day-cell {
    padding: 6px 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.15s;
}

.cal-day-cell:hover {
    background: rgba(0, 0, 0, 0.08);
}

.dark-theme .cal-day-cell:hover {
    background: rgba(255, 255, 255, 0.12);
}

.cal-day-cell.today {
    background: var(--win11-accent);
    color: #fff;
    font-weight: 700;
}

.cal-focus-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
}

.dark-theme .cal-focus-bar {
    background: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   SNAP LAYOUTS (WIN + Z) - LAS 6 PLANTILLAS REALES DE WINDOWS 11
   ========================================================================== */
.snap-layouts-popup {
    position: absolute;
    top: 38px;
    right: 44px;
    background: var(--win11-bg-blur);
    border: 1px solid var(--win11-border);
    backdrop-filter: blur(35px);
    border-radius: var(--win11-radius-lg);
    padding: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    z-index: 99999;
}

.dark-theme .snap-layouts-popup {
    background: var(--win11-bg-dark-blur);
    border-color: var(--win11-border-dark);
}

.snap-layouts-popup.visible {
    display: grid;
}

.snap-template-card {
    width: 84px;
    height: 56px;
    border: 1.5px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 4px;
    display: flex;
    gap: 3px;
    background: rgba(255, 255, 255, 0.5);
    transition: border-color 0.15s;
}

.dark-theme .snap-template-card {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.snap-zone {
    background: rgba(0, 0, 0, 0.09);
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.15s;
    height: 100%;
}

.dark-theme .snap-zone {
    background: rgba(255, 255, 255, 0.12);
}

.snap-zone:hover {
    background: var(--win11-accent) !important;
}

/* ==========================================================================
   VISTA DE TAREAS Y ESCRITORIOS VIRTUALES (WIN + TAB)
   ========================================================================== */
#taskview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 99998;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 60px calc(var(--win11-taskbar-height) + 20px) 60px;
    user-select: none;
}

#taskview-overlay.active {
    display: flex;
}

.taskview-windows-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.taskview-window-card {
    width: 320px;
    height: 200px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s, box-shadow 0.15s;
}

.taskview-window-card:hover {
    transform: scale(1.03);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.taskview-card-header {
    height: 32px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 600;
    background: #f1f1f1;
}

.taskview-card-body {
    flex: 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #666;
}

.taskview-desktops-bar {
    height: 110px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(30px);
    border-radius: var(--win11-radius-lg);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.dark-theme .taskview-desktops-bar {
    background: rgba(30, 30, 30, 0.85);
}

.desktop-thumbnail-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.desktop-thumb-box {
    width: 100px;
    height: 60px;
    border-radius: 6px;
    background: url('../assets/wallpaper.jpg') center/cover;
    border: 2px solid transparent;
    transition: border-color 0.15s;
}

.desktop-thumbnail-pill.active .desktop-thumb-box {
    border-color: var(--win11-accent);
}

.desktop-thumb-label {
    font-size: 11.5px;
    font-weight: 600;
}

.desktop-add-btn {
    width: 100px;
    height: 60px;
    border-radius: 6px;
    border: 1.5px dashed rgba(0, 0, 0, 0.25);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    color: inherit;
    transition: background 0.15s;
}

.desktop-add-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   VENTANA DE CONFIGURACIÓN 1:1 CON WINDOWS 11
   ========================================================================== */
#settings-window {
    width: 980px;
    height: 640px;
    top: 60px;
    left: calc(50% - 490px);
}

.settings-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Barra Lateral Izquierda de Configuración */
.settings-nav {
    width: 260px;
    background: #f4f4f4;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.dark-theme .settings-nav {
    background: #252525;
    border-right-color: rgba(255, 255, 255, 0.08);
}

.settings-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    margin-bottom: 12px;
}

.settings-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.settings-user-name {
    font-size: 13px;
    font-weight: 700;
}

.settings-user-email {
    font-size: 11px;
    color: var(--win11-text-secondary);
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12.5px;
    cursor: pointer;
    transition: background 0.15s;
    border: 1px solid transparent;
}

.settings-nav-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.dark-theme .settings-nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.settings-nav-item.active {
    background: rgba(0, 103, 192, 0.1);
    color: var(--win11-accent);
    font-weight: 600;
}

.dark-theme .settings-nav-item.active {
    background: rgba(96, 205, 255, 0.15);
    color: #60cdff;
}

/* Área de Contenido Principal de Configuración */
.settings-content {
    flex: 1;
    padding: 24px 32px;
    overflow-y: auto;
    background: #fbfbfb;
}

.dark-theme .settings-content {
    background: #1e1e1e;
}

.settings-page {
    display: none;
    flex-direction: column;
    gap: 10px;
}

.settings-page.active {
    display: flex;
}

/* Tarjeta Hero de PC (Sección Sistema) */
.settings-pc-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--win11-radius);
    padding: 16px 20px;
    margin-bottom: 14px;
}

.dark-theme .settings-pc-hero {
    background: #282828;
    border-color: rgba(255, 255, 255, 0.08);
}

.pc-hero-thumb {
    width: 80px;
    height: 52px;
    border-radius: 6px;
    background: url('../assets/wallpaper.jpg') center/cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.pc-hero-details h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.pc-hero-details p {
    font-size: 11.5px;
    color: var(--win11-text-secondary);
}

/* Fila interactiva tipo Windows 11 Settings (Card con chevron) */
.settings-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: var(--win11-radius);
    padding: 12px 18px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.dark-theme .settings-item-row {
    background: #252525;
    border-color: rgba(255, 255, 255, 0.07);
}

.settings-item-row:hover {
    background: #f7f7f7;
    border-color: rgba(0, 0, 0, 0.12);
}

.dark-theme .settings-item-row:hover {
    background: #2d2d2d;
    border-color: rgba(255, 255, 255, 0.12);
}

.settings-item-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.settings-item-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--win11-accent);
}

.settings-item-title {
    font-size: 13px;
    font-weight: 600;
}

.settings-item-sub {
    font-size: 11.5px;
    color: var(--win11-text-secondary);
}

.settings-chevron {
    color: var(--win11-text-secondary);
    font-size: 16px;
}

/* Cuadrícula de Temas de Personalización */
.themes-picker-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.theme-card-thumb {
    height: 72px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
    background-size: cover;
    background-position: center;
}

.theme-card-thumb:hover {
    transform: scale(1.04);
}

.theme-card-thumb.active {
    border-color: var(--win11-accent);
}

/* ==========================================================================
   VENTANAS ESTÁNDAR WINDOWS 11
   ========================================================================== */
.win11-window {
    position: absolute;
    width: 760px;
    height: 520px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: var(--win11-radius);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.2s, height 0.2s, transform 0.2s, border-radius 0.2s;
}

.dark-theme .win11-window {
    background: #202020;
    border-color: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.win11-window.open {
    display: flex;
}

.win11-window.maximized {
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: calc(100vh - var(--win11-taskbar-height)) !important;
    border-radius: 0 !important;
    border: none !important;
}

.win11-window.snapped-left {
    top: 0 !important;
    left: 0 !important;
    width: 50vw !important;
    height: calc(100vh - var(--win11-taskbar-height)) !important;
    border-radius: 0 !important;
}

.win11-window.snapped-right {
    top: 0 !important;
    left: 50vw !important;
    width: 50vw !important;
    height: calc(100vh - var(--win11-taskbar-height)) !important;
    border-radius: 0 !important;
}

.win-titlebar {
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 12px;
    background: #f3f3f3;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    cursor: default;
    position: relative;
}

.dark-theme .win-titlebar {
    background: #2b2b2b;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.win-title-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
}

.win-controls {
    display: flex;
    height: 100%;
}

.win-ctrl-btn {
    width: 44px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: inherit;
    position: relative;
    transition: background 0.15s;
}

.win-ctrl-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}

.dark-theme .win-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.win-ctrl-btn.close-btn:hover {
    background: #e81123;
    color: #fff;
}

/* Toast de Notificaciones del Sistema */
.win11-toast {
    position: fixed;
    bottom: calc(var(--win11-taskbar-height) + 16px);
    right: 16px;
    width: 320px;
    background: var(--win11-bg-blur);
    border: 1px solid var(--win11-border);
    backdrop-filter: blur(30px);
    border-radius: var(--win11-radius);
    padding: 12px 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    z-index: 99999;
}

.toast-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--win11-accent);
}

.toast-body {
    font-size: 12px;
    line-height: 1.35;
}

/* ==========================================================================
   EXPLORADOR DE ARCHIVOS WINDOWS 11 (DISEÑO 1:1 CON PESTAÑAS INTEGRADAS)
   ========================================================================== */
#explorer-window {
    width: 920px;
    height: 580px;
    background: #fbfbfb;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--win11-radius-lg);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
    display: none;
    flex-direction: column;
    overflow: hidden;
    color: #1a1a1a;
    font-family: var(--win11-font);
    z-index: 100;
}

.dark-theme #explorer-window {
    background: #191919;
    border-color: rgba(255, 255, 255, 0.1);
    color: #f3f3f3;
}

#explorer-window.open {
    display: flex;
}

/* Barra de Pestañas Integrada Mica (Fila Superior) */
.explorer-titlebar-mica {
    height: 42px;
    background: #e9e9e9;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 0 0 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    user-select: none;
    position: relative;
    cursor: default;
}

.dark-theme .explorer-titlebar-mica {
    background: #202020;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.explorer-tabs-container {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0;
    flex: 1;
}

.explorer-tabs-list {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 100%;
}

.explorer-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    min-width: 170px;
    max-width: 240px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    font-size: 12px;
    color: #3b3b3b;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    position: relative;
}

.dark-theme .explorer-tab {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.05);
    border-bottom: none;
    color: #b5b5b5;
}

.explorer-tab:hover {
    background: rgba(255, 255, 255, 0.75);
    color: #111;
}

.dark-theme .explorer-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.explorer-tab.active {
    background: #ffffff;
    color: #000;
    font-weight: 500;
    border-color: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #ffffff;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.03);
    z-index: 2;
    margin-bottom: -1px;
}

.dark-theme .explorer-tab.active {
    background: #252525;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid #252525;
}

.tab-title-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
}

.tab-close-btn {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: none;
    background: transparent;
    color: inherit;
    font-size: 11px;
    cursor: pointer;
    opacity: 0.65;
    transition: background 0.15s, opacity 0.15s;
}

.tab-close-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    opacity: 1;
}

.dark-theme .tab-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.tab-add-btn {
    width: 28px;
    height: 28px;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #444;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.dark-theme .tab-add-btn {
    color: #ccc;
}

.tab-add-btn:hover {
    background: rgba(0, 0, 0, 0.07);
    color: #000;
}

.dark-theme .tab-add-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Fila 2: Barra de Navegación, Dirección (Breadcrumbs) y Búsqueda */
.explorer-nav-toolbar {
    height: 48px;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dark-theme .explorer-nav-toolbar {
    background: #252525;
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.nav-history-controls {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-arrow-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #333;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.dark-theme .nav-arrow-btn {
    color: #ddd;
}

.nav-arrow-btn:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.06);
}

.dark-theme .nav-arrow-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}

.nav-arrow-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

/* Barra de Dirección con Breadcrumbs */
.explorer-address-bar {
    flex: 1;
    height: 34px;
    background: #f5f5f5;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 6px;
    font-size: 12.5px;
    transition: background 0.15s, border-color 0.15s;
}

.dark-theme .explorer-address-bar {
    background: #1f1f1f;
    border-color: rgba(255, 255, 255, 0.1);
    color: #eee;
}

.explorer-address-bar:hover {
    background: #f0f0f0;
    border-color: rgba(0, 0, 0, 0.16);
}

.dark-theme .explorer-address-bar:hover {
    background: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.16);
}

.address-icon {
    display: flex;
    align-items: center;
}

.address-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.crumb-item {
    padding: 3px 6px;
    border-radius: 4px;
    cursor: pointer;
    color: #444;
    transition: background 0.15s;
}

.dark-theme .crumb-item {
    color: #bbb;
}

.crumb-item:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #000;
}

.dark-theme .crumb-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.crumb-item.active {
    font-weight: 600;
    color: #111;
}

.dark-theme .crumb-item.active {
    color: #fff;
}

.crumb-separator {
    color: #999;
    font-size: 12px;
}

.address-dropdown-btn,
.address-refresh-btn {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 4px;
    color: #666;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.dark-theme .address-dropdown-btn,
.dark-theme .address-refresh-btn {
    color: #aaa;
}

.address-dropdown-btn:hover,
.address-refresh-btn:hover {
    background: rgba(0, 0, 0, 0.07);
    color: #000;
}

.dark-theme .address-dropdown-btn:hover,
.dark-theme .address-refresh-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* Barra de Búsqueda Windows 11 */
.explorer-search-bar {
    width: 260px;
    height: 34px;
    background: #f5f5f5;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding: 0 8px 0 10px;
    gap: 8px;
    color: #666;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.dark-theme .explorer-search-bar {
    background: #1f1f1f;
    border-color: rgba(255, 255, 255, 0.1);
    color: #aaa;
}

.explorer-search-bar:focus-within {
    background: #fff;
    border-color: var(--win11-accent);
    box-shadow: 0 0 0 1px var(--win11-accent);
}

.dark-theme .explorer-search-bar:focus-within {
    background: #141414;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 12px;
    color: inherit;
}

.search-input::placeholder {
    color: #888;
}

.search-arrow-btn {
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 11px;
    padding: 2px 4px;
    border-radius: 4px;
    opacity: 0.6;
}

.search-arrow-btn:hover {
    opacity: 1;
}

/* Fila 3: Command Bar Moderna de Windows 11 (Ribbon Superior) */
.explorer-command-bar {
    height: 46px;
    background: #f8f8f8;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 4px;
}

.dark-theme .explorer-command-bar {
    background: #1f1f1f;
    border-bottom-color: rgba(255, 255, 255, 0.07);
}

.cmd-group {
    display: flex;
    align-items: center;
    gap: 2px;
}

.cmd-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 34px;
    padding: 0 10px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 12px;
    color: #222;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    user-select: none;
}

.dark-theme .cmd-btn {
    color: #e5e5e5;
}

.cmd-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.dark-theme .cmd-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.cmd-arrow {
    opacity: 0.6;
    margin-left: 2px;
}

.cmd-separator {
    width: 1px;
    height: 18px;
    background: rgba(0, 0, 0, 0.12);
    margin: 0 6px;
}

.dark-theme .cmd-separator {
    background: rgba(255, 255, 255, 0.12);
}

.cmd-icons-bar {
    display: flex;
    align-items: center;
    gap: 2px;
}

.cmd-icon-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 6px;
    color: #333;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.dark-theme .cmd-icon-btn {
    color: #e0e0e0;
}

.cmd-icon-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.dark-theme .cmd-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cmd-icon-btn.cmd-delete:hover {
    background: rgba(232, 17, 35, 0.1);
    color: #d13438;
}

/* Fila 4: Cuerpo Principal (Sidebar + Files View) */
.explorer-body {
    flex: 1;
    display: flex;
    overflow: hidden;
    background: #ffffff;
}

.dark-theme .explorer-body {
    background: #191919;
}

/* Panel Lateral de Navegación */
.explorer-sidebar {
    width: 220px;
    min-width: 220px;
    background: #f7f7f7;
    border-right: 1px solid rgba(0, 0, 0, 0.07);
    padding: 10px 8px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dark-theme .explorer-sidebar {
    background: #1e1e1e;
    border-right-color: rgba(255, 255, 255, 0.07);
}

.sidebar-section-title {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    padding: 6px 10px 4px 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dark-theme .sidebar-section-title {
    color: #999;
}

.sidebar-tree-item,
.sidebar-tree-subitem {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12.5px;
    color: #2b2b2b;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
    user-select: none;
}

.dark-theme .sidebar-tree-item,
.dark-theme .sidebar-tree-subitem {
    color: #d5d5d5;
}

.sidebar-tree-subitem {
    padding-left: 28px;
}

.sidebar-tree-item:hover,
.sidebar-tree-subitem:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #000;
}

.dark-theme .sidebar-tree-item:hover,
.dark-theme .sidebar-tree-subitem:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.sidebar-tree-item.active {
    background: rgba(0, 103, 192, 0.1);
    color: var(--win11-accent);
    font-weight: 600;
}

.dark-theme .sidebar-tree-item.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.sidebar-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    margin: 6px 8px;
}

.dark-theme .sidebar-divider {
    background: rgba(255, 255, 255, 0.06);
}

/* Área de Archivos: Vista de Detalles */
.explorer-content-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
}

.dark-theme .explorer-content-view {
    background: #191919;
}

.file-view-header {
    height: 32px;
    display: grid;
    grid-template-columns: 2.2fr 1.3fr 1.5fr 0.9fr;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    background: #fafafa;
    user-select: none;
}

.dark-theme .file-view-header {
    background: #202020;
    border-bottom-color: rgba(255, 255, 255, 0.07);
}

.col-head {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    padding-right: 8px;
}

.dark-theme .col-head {
    color: #9e9e9e;
}

.col-head:hover {
    color: #111;
}

.dark-theme .col-head:hover {
    color: #fff;
}

.file-list-body {
    flex: 1;
    overflow-y: auto;
    padding: 4px 8px;
}

.file-row {
    display: grid;
    grid-template-columns: 2.2fr 1.3fr 1.5fr 0.9fr;
    align-items: center;
    height: 36px;
    padding: 0 8px;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
    user-select: none;
}

.file-row:hover {
    background: rgba(0, 0, 0, 0.04);
}

.dark-theme .file-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.file-row.active-selected {
    background: #e5f1fb;
    border-color: #70b3e6;
}

.dark-theme .file-row.active-selected {
    background: rgba(0, 103, 192, 0.35);
    border-color: rgba(0, 103, 192, 0.7);
}

.col-cell {
    font-size: 12px;
    color: #2b2b2b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 8px;
}

.dark-theme .col-cell {
    color: #e0e0e0;
}

.col-cell.col-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-name-text {
    font-weight: 500;
}

.col-cell.col-date,
.col-cell.col-type,
.col-cell.col-size {
    color: #666;
    font-size: 11.5px;
}

.dark-theme .col-cell.col-date,
.dark-theme .col-cell.col-type,
.dark-theme .col-cell.col-size {
    color: #9e9e9e;
}

/* Fila 5: Barra de Estado Inferior */
.explorer-status-bar {
    height: 28px;
    background: #f7f7f7;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    font-size: 11.5px;
    color: #666;
}

.dark-theme .explorer-status-bar {
    background: #1f1f1f;
    border-top-color: rgba(255, 255, 255, 0.06);
    color: #aaa;
}

.status-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-sep {
    opacity: 0.4;
}

.status-right {
    display: flex;
    align-items: center;
    gap: 2px;
}

.status-view-btn {
    width: 24px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 4px;
    color: #666;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.dark-theme .status-view-btn {
    color: #aaa;
}

.status-view-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #111;
}

.dark-theme .status-view-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.status-view-btn.active {
    background: rgba(0, 0, 0, 0.08);
    color: var(--win11-accent);
}

.dark-theme .status-view-btn.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* ==========================================================================
   MENÚ CONTEXTUAL MODERNO DE WINDOWS 11 (1:1)
   ========================================================================== */
#custom-context-menu,
#taskbar-context-menu {
    position: fixed;
    z-index: 999999;
    width: 250px;
    background: var(--win11-bg-blur);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--win11-border);
    border-radius: var(--win11-radius-lg);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 2px;
    font-family: var(--win11-font);
    animation: fadeIn 0.12s ease-out;
}

#taskbar-context-menu {
    bottom: 54px;
}

.dark-theme #custom-context-menu,
.dark-theme #taskbar-context-menu {
    background: var(--win11-bg-dark-blur);
    border-color: var(--win11-border-dark);
}

#custom-context-menu.active,
#taskbar-context-menu.active {
    display: flex;
}

.ctx-quick-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 4px 2px 6px 2px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 4px;
}

.dark-theme .ctx-quick-actions-bar {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.ctx-action-icon {
    width: 34px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    border-radius: 6px;
    color: inherit;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.ctx-action-icon:hover {
    background: rgba(0, 0, 0, 0.06);
    transform: scale(1.08);
}

.dark-theme .ctx-action-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.ctx-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 12.5px;
    color: inherit;
    cursor: pointer;
    transition: background 0.12s;
}

.ctx-menu-item:hover {
    background: rgba(0, 103, 192, 0.1);
    color: var(--win11-accent);
}

.dark-theme .ctx-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

