/* ==========================================================================
   Windows 7 Aero Midnight (Obsidian Dark Glass Edition)
   Award-Winning Dark Aero Theme - Eye-Comfort & High Contrast Design
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Segoe+UI:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

:root {
    --win7-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --win7-glass-bg: rgba(15, 23, 42, 0.85);
    --win7-glass-active-bg: rgba(15, 23, 42, 0.92);
    --win7-glass-blur: blur(18px);
    --win7-glass-border: 1px solid rgba(255, 255, 255, 0.16);
    --win7-glass-inner-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
    --win7-glass-shadow: 0 16px 45px rgba(0, 0, 0, 0.75), 0 3px 12px rgba(0, 0, 0, 0.5);
    
    /* Dark Surface Colors - Eye-Comfort */
    --win7-window-bg: #0b1120;
    --win7-card-bg: #151f32;
    --win7-card-border: rgba(148, 163, 184, 0.14);
    --win7-item-hover-bg: #1c2a42;
    --win7-item-hover-border: #38bdf8;
    --win7-item-selected-bg: #1d3557;
    --win7-item-selected-border: #60a5fa;

    /* Text Colors */
    --win7-text-main: #f1f5f9;
    --win7-text-muted: #94a3b8;
    --win7-text-link: #38bdf8;
    --win7-text-heading: #7dd3fc;

    /* Dark Aero Titanium Button Gradients */
    --win7-btn-grad: linear-gradient(180deg, #27364b 0%, #1e293b 50%, #162030 51%, #1f2c3d 100%);
    --win7-btn-hover: linear-gradient(180deg, #334b6e 0%, #1e3a5f 50%, #152b47 51%, #24466f 100%);
    --win7-btn-active: linear-gradient(180deg, #182e4a 0%, #122238 50%, #0d1a2c 51%, #162b46 100%);
}

* {
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: #334155 #090e17;
}

/* Windows 7 Aero Midnight Custom Scrollbars */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #090e17;
    border-left: 1px solid #1e293b;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 2px;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.08);
}

::-webkit-scrollbar-thumb:hover {
    background: #2e415b;
    border-color: #38bdf8;
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.2), 0 0 6px rgba(56, 189, 248, 0.3);
}

::-webkit-scrollbar-thumb:active {
    background: #142844;
    border-color: #0284c7;
}

::-webkit-scrollbar-corner {
    background: #090e17;
}

body.win7-desktop-body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    font-family: var(--win7-font);
    font-size: 12px;
    color: var(--win7-text-main);
    user-select: none;
    background: #020617;
    background-image: 
        radial-gradient(ellipse at 50% 25%, rgba(30, 58, 95, 0.7) 0%, rgba(15, 23, 42, 0.95) 50%, #020617 100%),
        linear-gradient(135deg, #091322 0%, #020617 100%);
    background-attachment: fixed;
    background-size: cover;
}

/* Windows 7 Desktop Container */
.win7-desktop {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Subtle Midnight Aurora Rays */
.win7-desktop::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: 
        radial-gradient(circle at 50% 20%, rgba(56, 189, 248, 0.08) 0%, transparent 45%),
        linear-gradient(60deg, transparent 40%, rgba(56, 189, 248, 0.05) 50%, transparent 60%),
        linear-gradient(120deg, transparent 42%, rgba(129, 140, 248, 0.05) 52%, transparent 62%);
    z-index: 1;
}

/* Desktop Workspace Area */
.win7-workspace {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    padding-bottom: 52px;
    z-index: 2;
    overflow: hidden;
}

/* ==========================================================================
   Aero Glass Window System (Obsidian Edition)
   ========================================================================== */

.win7-window {
    position: relative;
    background: var(--win7-glass-bg);
    backdrop-filter: var(--win7-glass-blur);
    -webkit-backdrop-filter: var(--win7-glass-blur);
    border: var(--win7-glass-border);
    border-radius: 8px;
    box-shadow: var(--win7-glass-shadow), var(--win7-glass-inner-shadow);
    display: flex;
    flex-direction: column;
    max-width: 100%;
    max-height: 100%;
    z-index: 10;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.win7-window.active {
    background: var(--win7-glass-active-bg);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.85), 0 4px 16px rgba(0, 0, 0, 0.6), var(--win7-glass-inner-shadow);
}

.win7-window.maximized {
    position: fixed;
    inset: 0 0 40px 0;
    max-width: none !important;
    max-height: none !important;
    width: 100vw !important;
    height: calc(100vh - 40px) !important;
    border-radius: 0;
    margin: 0 !important;
    z-index: 20;
}

/* Window Top Glass Highlight */
.win7-window::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    border-radius: 7px 7px 0 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Window Title Bar */
.win7-titlebar {
    position: relative;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px 0 12px;
    z-index: 2;
    cursor: default;
    user-select: none;
}

.win7-titlebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: #f8fafc;
    text-shadow: 
        0 0 10px rgba(56, 189, 248, 0.7),
        0 0 14px rgba(56, 189, 248, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.2px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: calc(100% - 80px);
}

.win7-titlebar-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Window Control Buttons */
.win7-controls {
    display: flex;
    align-items: center;
    border-radius: 0 0 5px 5px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: none;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.win7-btn-control {
    all: unset;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    width: 30px;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.15s, box-shadow 0.15s;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(0, 0, 0, 0.2) 51%, rgba(255, 255, 255, 0.08) 100%);
}

.win7-btn-control:last-child {
    border-right: none;
    width: 48px;
}

.win7-btn-control svg line,
.win7-btn-control svg rect {
    stroke: #cbd5e1;
}

/* Minimize & Maximize Hover */
.win7-btn-min:hover,
.win7-btn-max:hover {
    background: 
        radial-gradient(circle at bottom, #38bdf8 0%, transparent 65%),
        linear-gradient(180deg, #1e3a5f 50%, #0c203a 51%, #0284c7 100%);
    box-shadow: 0 0 10px #0284c7, inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.win7-btn-min:hover svg line,
.win7-btn-max:hover svg rect {
    stroke: #ffffff;
}

/* Close Button Hover (Glowing Red Glass) */
.win7-btn-close {
    background: 
        linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 45%, rgba(0, 0, 0, 0.2) 50%, rgba(255, 255, 255, 0.1) 100%),
        linear-gradient(180deg, #991b1b 0%, #7f1d1d 50%, #991b1b 51%, #b91c1c 100%);
}

.win7-btn-close:hover {
    background: 
        linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.1) 45%, rgba(0, 0, 0, 0.1) 50%, rgba(255, 255, 255, 0.2) 100%),
        radial-gradient(circle at 50% 150%, #fca5a5 0%, transparent 60%),
        linear-gradient(180deg, #ef4444 0%, #dc2626 50%, #b91c1c 51%, #991b1b 100%) !important;
    box-shadow: 0 0 12px #ef4444, inset 0 0 0 1px rgba(255, 255, 255, 0.5) !important;
}

.win7-btn-close:hover svg line {
    stroke: #ffffff;
}

/* Window Body (Dark Slate Surface) */
.win7-window-body {
    position: relative;
    background: var(--win7-window-bg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0 0 4px 4px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.5);
    margin: 0 6px 6px 6px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1 1 0;
    min-height: 0;
    height: calc(100% - 38px);
}

/* ==========================================================================
   Explorer Chrome (Dark Titanium Edition)
   ========================================================================== */

.win7-explorer-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: linear-gradient(180deg, #1e293b 0%, #172132 45%, #0f172a 50%, #152033 100%);
    border-bottom: 1px solid #2a384c;
}

/* Circular Back/Forward buttons */
.win7-nav-buttons {
    display: flex;
    align-items: center;
    gap: 3px;
}

.win7-circle-btn {
    all: unset;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 35% 35%, #334b6e 0%, #1e3a5f 55%, #152b47 80%, #0d1f36 100%);
    border: 1px solid #38bdf8;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.25), 0 2px 4px rgba(0,0,0,0.35);
    color: #7dd3fc;
    transition: transform 0.1s, box-shadow 0.15s;
}

.win7-circle-btn:hover {
    background: radial-gradient(circle at 35% 35%, #476899 0%, #294d7d 55%, #1b385e 80%, #122a4a 100%);
    box-shadow: 0 0 8px #38bdf8, inset 0 1px 2px rgba(255,255,255,0.4);
    color: #ffffff;
}

.win7-circle-btn:active {
    background: radial-gradient(circle at 50% 50%, #1a3252 0%, #12233b 70%, #0b1727 100%);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.6);
}

.win7-circle-btn:disabled,
.win7-circle-btn.disabled {
    opacity: 0.4;
    filter: grayscale(0.8);
    cursor: default;
    pointer-events: none;
    border-color: #475569;
}

/* Breadcrumb Address Bar */
.win7-address-bar {
    flex: 1;
    height: 26px;
    background: #090e17;
    border: 1px solid #334155;
    border-radius: 3px;
    display: flex;
    align-items: center;
    padding: 0 6px;
    box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.win7-address-icon {
    display: flex;
    align-items: center;
    padding: 0 4px;
    color: #38bdf8;
}

.win7-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.win7-breadcrumbs::-webkit-scrollbar {
    display: none;
}

.win7-crumb-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 11.5px;
    color: #e2e8f0;
    text-decoration: none;
    cursor: pointer;
}

.win7-crumb-item:hover {
    background: #1e293b;
    border: 1px solid #38bdf8;
    color: #38bdf8;
    padding: 1px 5px;
}

.win7-crumb-sep {
    color: #64748b;
    font-size: 10px;
    padding: 0 1px;
}

.win7-address-refresh {
    all: unset;
    cursor: pointer;
    padding: 2px 6px;
    color: #7dd3fc;
    border-radius: 2px;
    display: flex;
    align-items: center;
}

.win7-address-refresh:hover {
    background: #1e293b;
    color: #38bdf8;
}

/* Instant Search Box */
.win7-search-box {
    width: 220px;
    height: 26px;
    background: #090e17;
    border: 1px solid #334155;
    border-radius: 3px;
    display: flex;
    align-items: center;
    padding: 0 6px;
    box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.45);
    position: relative;
}

.win7-search-box input {
    all: unset !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    flex: 1 !important;
    font-size: 11.5px !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-family: var(--win7-font) !important;
    padding: 0 4px !important;
}

.win7-search-box input::placeholder {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    font-style: italic !important;
}

.win7-search-icon {
    color: #7dd3fc;
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* Explorer Command Bar (Toolbar) */
.win7-command-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 8px;
    background: linear-gradient(180deg, #1e293b 0%, #152033 50%, #0f172a 51%, #152033 100%);
    border-bottom: 1px solid #2a384c;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    gap: 4px;
    flex-wrap: wrap;
}

.win7-command-group {
    display: flex;
    align-items: center;
    gap: 3px;
}

.win7-tool-btn {
    all: unset;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    font-size: 11.5px;
    color: #cbd5e1;
    border: 1px solid transparent;
    border-radius: 3px;
    transition: background 0.15s, border-color 0.15s;
    user-select: none;
}

.win7-tool-btn:hover {
    background: linear-gradient(180deg, #2a3d56 0%, #1d2f46 50%, #142337 51%, #1f334d 100%);
    border-color: #38bdf8;
    color: #f8fafc;
    box-shadow: 0 0 6px rgba(56, 189, 248, 0.35);
}

.win7-tool-btn:active,
.win7-tool-btn.active {
    background: linear-gradient(180deg, #16273b 0%, #0f1c2d 50%, #091321 51%, #122133 100%);
    border-color: #0284c7;
    color: #38bdf8;
}

.win7-tool-sep {
    width: 1px;
    height: 18px;
    background: #334155;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0 3px;
}

/* ==========================================================================
   Explorer Layout: Navigation Tree Pane + Content Area + Details Pane
   ========================================================================== */

.win7-explorer-main {
    display: flex;
    flex: 1 1 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    background: var(--win7-window-bg);
    position: relative;
}

/* Left Navigation Pane (Dark Obsidian) */
.win7-nav-pane {
    width: 220px;
    min-width: 220px;
    background: #090e17;
    border-right: 1px solid #1e293b;
    padding: 8px 6px;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    flex-shrink: 0;
    scrollbar-width: thin;
    scrollbar-color: #334155 #090e17;
    transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.22s cubic-bezier(0.4, 0, 0.2, 1), padding 0.2s ease, opacity 0.15s ease;
}

.win7-nav-pane.collapsed {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Tree Section Headers (Collapsible with Disclosure Arrow) */
.win7-tree-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 5px 6px;
    font-size: 11px;
    font-weight: 700;
    color: #7dd3fc;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    cursor: pointer;
    border-radius: 3px;
    user-select: none;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.win7-tree-header:hover {
    background: rgba(56, 189, 248, 0.12);
    color: #ffffff;
}

.win7-tree-header-title {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.win7-tree-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    font-size: 8px;
    color: #64748b;
    transition: transform 0.2s ease, color 0.15s;
}

.win7-tree-header:hover .win7-tree-arrow {
    color: #38bdf8;
}

.win7-tree-header.collapsed .win7-tree-arrow {
    transform: rotate(-90deg);
}

.win7-tree-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 340px;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: #334155 #090e17;
}

.win7-tree-group.collapsed {
    display: none !important;
}

/* Navigation Pane Top Header */
.win7-nav-pane-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 4px 6px 4px;
    margin-bottom: 2px;
    border-bottom: 1px solid #1e293b;
    font-size: 10.5px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.5px;
}

.win7-nav-collapse-btn {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 2px;
    color: #94a3b8;
    cursor: pointer;
    width: 17px;
    height: 17px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 1;
    transition: all 0.15s;
}

.win7-nav-collapse-btn:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 5px rgba(56, 189, 248, 0.4);
}

/* Smaller Floating / Edge Uncollapse Button when Nav Pane is Collapsed */
.win7-nav-uncollapse-btn {
    position: absolute;
    top: 8px;
    left: 0;
    z-index: 50;
    width: 16px;
    height: 22px;
    padding: 0;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #38bdf8;
    border-left: none;
    border-radius: 0 3px 3px 0;
    color: #38bdf8;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 1px 2px 6px rgba(0, 0, 0, 0.5);
    transition: background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.win7-nav-uncollapse-btn:hover {
    background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 1px 3px 8px rgba(37, 99, 235, 0.5);
    transform: translateX(1px);
}

.win7-nav-uncollapse-btn.show {
    display: flex !important;
}

/* Compact Navigation Toggle Button for Command Bars */
.win7-tool-btn-sm {
    padding: 2px 6px !important;
    font-size: 11px !important;
    gap: 4px !important;
}

.win7-tree-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px 4px 18px;
    border-radius: 3px;
    color: #cbd5e1;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.1s, border-color 0.1s;
}

.win7-tree-item:hover {
    background: var(--win7-item-hover-bg);
    border-color: var(--win7-item-hover-border);
    color: #ffffff;
}

.win7-tree-item.active {
    background: var(--win7-item-selected-bg);
    border-color: var(--win7-item-selected-border);
    color: #38bdf8;
    font-weight: 600;
}

.win7-tree-item-left {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.win7-badge {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 9px;
    background: #1e293b;
    color: #7dd3fc;
    border: 1px solid #334155;
}

/* Main Content Area */
.win7-content-area {
    flex: 1 1 0;
    min-height: 0;
    height: 100%;
    overflow-y: auto;
    padding: 12px;
    background: #0b1120;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   Bookmark Item Cards (Dark, Soothing, Zero-Glare)
   ========================================================================== */

.win7-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.win7-item-card {
    background: var(--win7-card-bg);
    border: 1px solid var(--win7-card-border);
    border-radius: 5px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.win7-item-card:hover {
    background: var(--win7-item-hover-bg);
    border-color: var(--win7-item-hover-border);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.25), 0 4px 16px rgba(0, 0, 0, 0.5);
}

.win7-item-card.selected {
    background: var(--win7-item-selected-bg);
    border-color: var(--win7-item-selected-border);
    box-shadow: 0 0 16px rgba(96, 165, 250, 0.35);
}

.win7-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
}

.win7-item-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    overflow: hidden;
}

.win7-item-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #0f172a;
    border: 1px solid #334155;
}

.win7-item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--win7-text-heading);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.win7-item-title:hover {
    color: #ffffff;
    text-decoration: underline;
}

.win7-item-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 10.5px;
    color: var(--win7-text-muted);
}

.win7-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    background: #0f172a;
    color: #7dd3fc;
    border: 1px solid #1e3a5f;
    border-radius: 3px;
    font-size: 10.5px;
}

.win7-tag-pill {
    padding: 1px 6px;
    background: #0f172a;
    color: #94a3b8;
    border: 1px solid #334155;
    border-radius: 3px;
    font-size: 10px;
}

/* Interactive Tag Selector Chips (Modal Dialog) */
.win7-tag-choice {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    background: #151f32;
    border: 1px solid #334155;
    border-radius: 3px;
    font-size: 11.5px;
    color: #94a3b8;
    cursor: pointer;
    user-select: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.15s ease;
}

.win7-tag-choice:hover {
    background: #1c2a42;
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.win7-tag-choice:active {
    transform: translateY(1px);
}

.win7-tag-choice.selected,
.win7-tag-choice:has(input:checked) {
    background: linear-gradient(180deg, #1e3a5f 0%, #152c48 50%, #0e1e34 51%, #183354 100%) !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.win7-tag-choice.selected:hover,
.win7-tag-choice:has(input:checked):hover {
    background: linear-gradient(180deg, #254b7a 0%, #1b385c 50%, #122844 51%, #1f426c 100%) !important;
    border-color: #7dd3fc !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.win7-tag-choice input[type="checkbox"] {
    accent-color: #0284c7;
    cursor: pointer;
    width: 13px;
    height: 13px;
    margin: 0;
}

.win7-tag-choice.selected input[type="checkbox"],
.win7-tag-choice:has(input:checked) input[type="checkbox"] {
    accent-color: #38bdf8;
}

/* Active Filter Chips Bar */
.win7-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 7px;
    background: #0b1120;
    border: 1px solid #334155;
    border-radius: 3px;
    font-size: 11px;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.15s ease;
}

.win7-filter-chip:hover {
    background: #1e293b;
    border-color: #f87171;
    color: #f87171;
    box-shadow: 0 0 6px rgba(248, 113, 113, 0.3);
}

.win7-filter-chip i:last-child {
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

.win7-filter-chip:hover i:last-child {
    opacity: 1;
    color: #ef4444;
}

.win7-item-desc {
    font-size: 11.5px;
    color: var(--win7-text-muted);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.win7-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 6px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    margin-top: 2px;
    gap: 4px;
    flex-wrap: wrap;
}

/* Details Pane at Bottom */
.win7-details-pane {
    background: linear-gradient(180deg, #152033 0%, #0d1524 100%);
    border-top: 1px solid #2a384c;
    padding: 6px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11.5px;
    color: #cbd5e1;
    min-height: 48px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Status Bar */
.win7-statusbar {
    background: #090e17;
    border-top: 1px solid #1e293b;
    padding: 3px 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: #94a3b8;
}

.win7-status-section {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-right: 1px solid #1e293b;
    padding-right: 10px;
}

.win7-status-section:last-child {
    border-right: none;
}

/* ==========================================================================
   Push Buttons & Form Inputs (Dark Titanium Edition)
   ========================================================================== */

.win7-btn {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 23px;
    min-width: 75px;
    padding: 0 12px;
    font-family: var(--win7-font);
    font-size: 11.5px;
    color: #f1f5f9;
    cursor: pointer;
    background: var(--win7-btn-grad);
    border: 1px solid #475569;
    border-radius: 3px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    user-select: none;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.win7-btn:hover {
    background: var(--win7-btn-hover);
    border-color: #38bdf8;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.win7-btn:active {
    background: var(--win7-btn-active);
    border-color: #0284c7;
    box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.win7-btn.default {
    border-color: #38bdf8;
    background: var(--win7-btn-hover);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 0 6px 1px rgba(56, 189, 248, 0.5);
    font-weight: 600;
}

/* All Form Text Inputs, Textareas, Selects (Obsidian Dark - High Contrast & Visibility) */
input[type="text"],
input[type="url"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select,
.win7-input,
.win7-select {
    background: #090e17 !important;
    background-color: #090e17 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border: 1px solid #334155 !important;
    border-radius: 3px !important;
    padding: 5px 8px !important;
    font-family: var(--win7-font) !important;
    font-size: 12px !important;
    box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.6) !important;
    outline: none !important;
    caret-color: #38bdf8 !important;
    box-sizing: border-box !important;
}

input[type="text"]:focus,
input[type="url"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus,
.win7-input:focus,
.win7-select:focus {
    background: #0d1524 !important;
    background-color: #0d1524 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.6), inset 1px 1px 3px rgba(0, 0, 0, 0.6) !important;
}

/* Clear visible placeholder */
input::placeholder,
textarea::placeholder,
.win7-input::placeholder {
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
    opacity: 1 !important;
    font-style: italic !important;
}

/* Disabled input fields */
input:disabled,
textarea:disabled,
select:disabled,
.win7-input:disabled {
    background: #060a12 !important;
    background-color: #060a12 !important;
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    border-color: #1e293b !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    opacity: 0.85 !important;
}

/* Select dropdown options */
select option,
.win7-select option {
    background: #0f172a !important;
    background-color: #0f172a !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    padding: 4px !important;
}

/* WebKit autofill override so Chrome/Edge doesn't force white or yellow */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px #090e17 inset !important;
    box-shadow: 0 0 0px 1000px #090e17 inset !important;
    transition: background-color 5000s ease-in-out 0s !important;
    caret-color: #38bdf8 !important;
}

/* ==========================================================================
   Taskbar & Start Menu (Obsidian Dark Glass)
   ========================================================================== */

.win7-taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: rgba(10, 16, 28, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2px 0 6px;
    z-index: 1000;
    user-select: none;
}

.win7-start-orb {
    all: unset;
    cursor: pointer;
    width: 48px;
    height: 48px;
    margin-top: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #38bdf8 0%, #0284c7 60%, #0c284e 100%);
    box-shadow: 
        0 2px 12px rgba(0, 0, 0, 0.7),
        inset 0 2px 3px rgba(255, 255, 255, 0.6),
        inset 0 -2px 3px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
    position: relative;
    z-index: 1002;
}

.win7-start-orb:hover {
    box-shadow: 
        0 0 18px #38bdf8,
        0 2px 14px rgba(0, 0, 0, 0.8),
        inset 0 2px 4px rgba(255, 255, 255, 0.8),
        inset 0 -2px 4px rgba(0, 0, 0, 0.5);
    filter: brightness(1.2);
}

.win7-start-orb:active {
    transform: scale(0.96);
    filter: brightness(0.95);
}

.win7-orb-logo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    transform: rotate(10deg);
}

.win7-orb-flag {
    width: 7px;
    height: 7px;
    border-radius: 1px;
}
.win7-flag-red { background: linear-gradient(135deg, #ff6b6b, #ee3232); }
.win7-flag-green { background: linear-gradient(135deg, #51cf66, #2b8a3e); }
.win7-flag-blue { background: linear-gradient(135deg, #4dabf7, #1c7ed6); }
.win7-flag-yellow { background: linear-gradient(135deg, #fcc419, #e67700); }

.win7-taskbar-apps {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 10px;
    flex: 1;
}

.win7-task-tab {
    all: unset;
    cursor: pointer;
    height: 32px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 3px;
    font-size: 11.5px;
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: background 0.15s, border-color 0.15s;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    position: relative;
    overflow: hidden;
}

.win7-task-tab:hover {
    background: rgba(56, 189, 248, 0.22);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.win7-task-tab.active {
    background: rgba(56, 189, 248, 0.28);
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 0 8px rgba(56, 189, 248, 0.3);
}

.win7-task-tab.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
}

.win7-system-tray {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 6px;
    color: #ffffff;
    font-size: 11px;
}

.win7-tray-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    opacity: 0.8;
    cursor: pointer;
}

.win7-tray-icon:hover {
    opacity: 1;
    color: #38bdf8;
}

.win7-tray-clock {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    font-size: 11px;
    padding: 0 4px;
    cursor: default;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.win7-show-desktop {
    all: unset;
    cursor: pointer;
    width: 12px;
    height: 38px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.15s;
}

.win7-show-desktop:hover {
    background: rgba(56, 189, 248, 0.3);
    box-shadow: 0 0 8px #38bdf8;
}

/* ==========================================================================
   Start Menu (Dark Glass Edition)
   ========================================================================== */

.win7-startmenu {
    position: fixed;
    bottom: 42px;
    left: 4px;
    width: 380px;
    height: 480px;
    background: rgba(10, 16, 28, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 7px 7px 0 0;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
    display: none;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
}

.win7-startmenu.open {
    display: flex;
}

.win7-start-columns {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Left Column (Programs List) */
.win7-start-left {
    flex: 1.3;
    background: #0f172a;
    border-radius: 4px 0 0 0;
    margin: 6px 0 6px 6px;
    border: 1px solid #1e293b;
    display: flex;
    flex-direction: column;
    padding: 6px;
    gap: 2px;
    overflow-y: auto;
}

.win7-start-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 3px;
    text-decoration: none;
    color: #f1f5f9;
    font-size: 11.5px;
    border: 1px solid transparent;
    transition: background 0.1s;
}

.win7-start-item:hover {
    background: var(--win7-item-hover-bg);
    border-color: var(--win7-item-hover-border);
}

.win7-start-item-title {
    font-weight: 600;
    color: var(--win7-text-heading);
}

.win7-start-item-sub {
    font-size: 10px;
    color: var(--win7-text-muted);
}

/* Right Column (Pinned System Items) */
.win7-start-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px 8px;
    gap: 4px;
    background: #090e17;
}

.win7-avatar-box {
    align-self: center;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    background: #1e293b;
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.win7-start-sys-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 3px;
    text-decoration: none;
    color: #cbd5e1;
    font-size: 11.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    border: 1px solid transparent;
}

.win7-start-sys-item:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}

.win7-start-bottom {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    background: #080d15;
    border-top: 1px solid #1e293b;
}

.win7-start-search {
    flex: 1;
    margin-right: 10px;
    height: 24px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 2px;
    display: flex;
    align-items: center;
    padding: 0 6px;
}

.win7-start-search input {
    all: unset;
    width: 100%;
    font-size: 11px;
    color: #f1f5f9;
}

.win7-btn-shutdown {
    all: unset;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(180deg, #991b1b 0%, #7f1d1d 50%, #581313 51%, #881e1e 100%);
    border: 1px solid #b91c1c;
    border-radius: 3px;
    color: #ffffff;
    font-size: 11.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.win7-btn-shutdown:hover {
    background: linear-gradient(180deg, #b91c1c 0%, #991b1b 50%, #7f1d1d 51%, #a82424 100%);
    box-shadow: 0 0 8px #ef4444;
}

/* ==========================================================================
   Aero Modal Dialogs & SweetAlert2 Custom Theme
   ========================================================================== */

.win7-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 12px;
    overflow-y: auto;
    z-index: 2000;
}

.win7-dialog {
    width: 520px;
    max-width: 95vw;
    max-height: 90vh;
    margin: auto;
    background: var(--win7-glass-active-bg);
    backdrop-filter: var(--win7-glass-blur);
    border: var(--win7-glass-border);
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), var(--win7-glass-inner-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: win7DialogPop 0.18s cubic-bezier(0.1, 0.9, 0.2, 1);
}

@keyframes win7DialogPop {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.win7-dialog-body {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0 0 4px 4px;
    margin: 0 6px 6px 6px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #f1f5f9;
    overflow-y: auto;
    max-height: calc(90vh - 45px);
}

.win7-dialog-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #1e293b;
    margin-top: 6px;
}

/* SweetAlert2 Aero Integration (Dark) - Always on Top of Modals & Dialogs */
.swal2-container {
    z-index: 99999 !important;
}

.swal2-container.swal2-backdrop-show,
.swal2-container.swal2-noanimation {
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(4px) !important;
}

.swal2-popup.win7-swal {
    font-family: var(--win7-font) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 20px rgba(56, 189, 248, 0.35) !important;
    background: #0f172a !important;
    padding: 18px !important;
    color: #f1f5f9 !important;
}

.swal2-popup.win7-swal .swal2-title {
    font-size: 15px !important;
    color: #7dd3fc !important;
    font-weight: 600 !important;
}

.swal2-popup.win7-swal .swal2-html-container {
    font-size: 12px !important;
    color: #cbd5e1 !important;
}

.swal2-popup.win7-swal .swal2-confirm {
    background: var(--win7-btn-hover) !important;
    border: 1px solid #38bdf8 !important;
    color: #ffffff !important;
    font-family: var(--win7-font) !important;
    font-size: 11.5px !important;
    border-radius: 3px !important;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.4) !important;
    padding: 4px 16px !important;
}

.swal2-popup.win7-swal .swal2-cancel {
    background: var(--win7-btn-grad) !important;
    border: 1px solid #475569 !important;
    color: #cbd5e1 !important;
    font-family: var(--win7-font) !important;
    font-size: 11.5px !important;
    border-radius: 3px !important;
    padding: 4px 16px !important;
}

/* ==========================================================================
   Windows 7 Control Panel Layout (Dark)
   ========================================================================== */

.win7-control-panel {
    display: flex;
    flex: 1 1 0;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    background: #0b1120;
}

.win7-cp-sidebar {
    width: 200px;
    min-width: 200px;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    flex-shrink: 0;
    background: #090e17;
    border-right: 1px solid #1e293b;
    padding: 14px 10px;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: thin;
    scrollbar-color: #334155 #090e17;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 11.5px;
    position: relative;
    transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.22s cubic-bezier(0.4, 0, 0.2, 1), padding 0.2s ease, opacity 0.15s ease;
}

.win7-cp-sidebar.collapsed {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.win7-cp-link {
    color: #7dd3fc;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 6px;
    border-radius: 3px;
}

.win7-cp-link:hover {
    background: #1e293b;
    color: #ffffff;
    text-decoration: underline;
}

.win7-cp-content {
    flex: 1;
    padding: 20px 24px;
    overflow-y: auto;
    color: #f1f5f9;
}

.win7-cp-header {
    border-bottom: 1px solid #1e293b;
    padding-bottom: 10px;
    margin-bottom: 16px;
}

.win7-cp-title {
    font-size: 16px;
    font-weight: 600;
    color: #7dd3fc;
    margin: 0;
}

.win7-cp-subtitle {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

/* ==========================================================================
   Windows 7 Event Table (Dark)
   ========================================================================== */

.win7-event-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11.5px;
    font-family: var(--win7-font);
    background: #0f172a;
}

.win7-event-table th {
    background: linear-gradient(180deg, #1e293b 0%, #152033 100%);
    border: 1px solid #2a384c;
    padding: 5px 8px;
    text-align: left;
    font-weight: 600;
    color: #7dd3fc;
    cursor: default;
}

.win7-event-table td {
    border: 1px solid #1e293b;
    padding: 5px 8px;
    color: #e2e8f0;
}

.win7-event-table tr:hover td {
    background: var(--win7-item-hover-bg);
}

.win7-event-table tr.selected td {
    background: var(--win7-item-selected-bg);
    border-color: var(--win7-item-selected-border);
}

/* ==========================================================================
   Checkbox Visibility & Reset (Overrides 7.css opacity:0)
   ========================================================================== */
#bm-is-private,
.win7-privacy-box input[type="checkbox"],
.win7-tag-choice input[type="checkbox"],
input[type="checkbox"].win7-checkbox {
    appearance: checkbox !important;
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    cursor: pointer !important;
    position: static !important;
    z-index: 10 !important;
}

/* Suppress 7.css pseudo-element fake checkboxes in privacy box */
.win7-privacy-box input[type="checkbox"] + label::before,
.win7-privacy-box input[type="checkbox"] + label::after,
.win7-privacy-box label::before,
.win7-privacy-box label::after,
#bm-is-private + label::before,
#bm-is-private + label::after {
    display: none !important;
    content: none !important;
}

/* ==========================================================================
   Windows 7 Related Bookmarks Modal Styles
   ========================================================================== */
.win7-related-modal-item {
    background: #151f32;
    border: 1px solid #293950;
    border-radius: 4px;
    padding: 8px 10px;
    margin-bottom: 8px;
    transition: border-color 0.15s ease;
}

.win7-related-modal-item:hover {
    border-color: #38bdf8;
}

.win7-related-modal-item.editing {
    border-color: #f59e0b;
    background: #1c2738;
}

.win7-related-desc-box {
    margin-top: 4px;
    padding: 4px 8px;
    background: #0b1120;
    border: 1px solid #1e293b;
    border-left: 3px solid #38bdf8;
    border-radius: 0 3px 3px 0;
    font-size: 11px;
    color: #e2e8f0;
    line-height: 1.4;
}


