/* XP Theme by Zach Matcham */
:root {
    --xp-blue: #245edb;
    --xp-blue-light: #3f8cf3;
    --xp-blue-dark: #003ea5;
    --xp-green: #3a8123;
    --xp-green-light: #5eac45;
    --window-bg: #ece9d8;
    --text-main: #000000;
    --text-desktop: #ffffff;
    --menu-bg: #ffffff;
    --menu-hover: #316ac5;
    --font-xp: Tahoma, 'Trebuchet MS', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-xp);
    /*background-image: linear-gradient(to bottom, #3a8de1 0%, #7dbbf0 50%, #68b04d 51%, #3b8728 100%);*/
    background-image: url('../../assets/images/wallpapers/vortec_space.jpg');
    background-size: cover;
    height: 100vh;
    overflow: hidden;
    user-select: none;
}

/* desktop + icons */
.desktop {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 25px;
    align-content: flex-start;
    height: calc(100vh - 30px);
    position: relative;
}

.icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 75px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-desktop);
    cursor: pointer;
    text-align: center;
    padding: 4px;
    border-radius: 2px;
}

.icon:hover, .icon.selected {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px dotted rgba(255, 255, 255, 0.6);
}

.icon span {
    font-size: 11px;
    text-shadow: 1px 1px 2px #000;
    margin-top: 6px;
}

.icon svg {
    width: 36px;
    height: 36px;
    filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, 0.4));
}

/* Drag Selection Box */
.selection-box {
    position: absolute;
    border: 1px dotted rgba(255, 255, 255, 0.8);
    background-color: rgba(49, 106, 197, 0.4);
    z-index: 1000;
    pointer-events: none;
    display: none;
}

/* Context, Start, Clock menus */
.popup-menu {
    position: absolute;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
    padding: 2px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    cursor: default;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.15s ease-out, transform 0.15s ease-out, visibility 0.15s;
}
.popup-menu.visible {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
#contextMenu {
    background: var(--menu-bg);
    border: 1px solid #aca899;
}

/* Context Menu */
.context-menu {
    min-width: 150px;
}

.context-item {
    padding: 4px 15px 4px 25px;
    font-size: 11px;
    color: var(--text-main);
    position: relative;
    list-style: none;
}

.context-item-disabled, .context-item:disabled {
    color: grey;
}

.context-item:hover {
    background-color: var(--menu-hover);
    color: #ffffff;
}

.context-divider {
    height: 1px;
    background-color: #aca899;
    margin: 3px 2px;
}

/* Start Menu */
.start-menu {
    bottom: 30px;
    left: 0;
    width: 380px;
    border: 1px solid #245edb;
    border-radius: 5px 5px 0 0;
    box-shadow: 2px -2px 10px rgba(0, 0, 0, 0.5);
    z-index: 99999;
    transform: translateY(20px);
}

.start-header {
    background: linear-gradient(to bottom, #245edb 0%, #3f8cf3 10%, #245edb 100%);
    padding: 8px;
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.start-avatar {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 3px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.start-header span {
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 1px 1px 2px #000;
}

.start-body {
    display: flex;
    height: 300px;
}

.start-left {
    flex: 1;
    padding: 5px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
}

.start-right {
    flex: 1;
    padding: 5px;
    background: #d3e5fa;
    border-left: 1px solid #95bcee;
    display: flex;
    flex-direction: column;
}

.start-item {
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-main);
    cursor: pointer;
}

.start-item:hover {
    background: var(--menu-hover);
    color: white;
}

.start-item.bold {
    font-weight: bold;
}

.start-footer {
    background: linear-gradient(to bottom, #245edb 0%, #3f8cf3 10%, #245edb 100%);
    padding: 8px 15px;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.footer-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.footer-btn:hover {
    text-decoration: underline;
}

/* Clock Calendar Menu */
.clock-menu {
    bottom: 30px;
    right: 0;
    width: 220px;
    padding: 10px;
    text-align: center;
    background: #ffffff;
}

.clock-menu h3 {
    font-size: 14px;
    color: var(--xp-blue-dark);
    margin-bottom: 10px;
    font-weight: normal;
    border-bottom: 1px solid #aca899;
    padding-bottom: 5px;
}

.clock-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    font-size: 11px;
}

.clock-grid div {
    padding: 4px;
}

.clock-grid .header {
    font-weight: bold;
    color: var(--xp-blue);
}

.clock-grid .today {
    background: var(--xp-blue);
    color: white;
    border-radius: 50%;
}

/* taskbar */
.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, #245edb 0%, #3f8cf3 9%, #245edb 18%, #245edb 92%, #333 100%);
    display: flex;
    align-items: center;
    z-index: 9000;
}

.start-btn {
    background: radial-gradient(circle at 30% 30%, var(--xp-green-light) 0%, var(--xp-green) 100%);
    border: none;
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 0 10px 10px 0;
    color: white;
    font-family: 'Trebuchet MS', italic, sans-serif;
    font-style: italic;
    font-weight: bold;
    font-size: 16px;
    padding: 0 15px 0 10px;
    height: 100%;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.5), 2px 0 3px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 5px;
}

.start-btn:active, .start-btn.active {
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.taskbar-apps {
    display: flex;
    flex-grow: 1;
    padding: 0 10px;
    gap: 2px;
    overflow: hidden;
}

.taskbar-btn {
    background: linear-gradient(to bottom, #3a82f7 0%, #1a51c4 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    color: white;
    font-family: var(--font-xp);
    font-size: 11px;
    padding: 0 10px;
    height: 24px;
    min-width: 120px;
    max-width: 160px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: inset 1px 1px 1px rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.taskbar-btn:hover {
    background: linear-gradient(to bottom, #5392f9 0%, #2b65d9 100%);
}

.taskbar-btn.active {
    background: linear-gradient(to bottom, #1341a3 0%, #1f58c7 100%);
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.4);
    color: #e0e0e0;
}

.system-tray {
    flex-shrink: 0;
    background: linear-gradient(to bottom, #0c59b9 0%, #139ee9 10%, #18b5f2 50%, #139ee9 90%, #0c59b9 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
    cursor: pointer;
    color: white;
    font-size: 11px;
    box-shadow: inset 1px 0 2px rgba(0, 0, 0, 0.2);
}

.system-tray:hover {
    background: linear-gradient(to bottom, #1366c9 0%, #1ab1fa 10%, #2ac1fb 50%, #1ab1fa 90%, #1366c9 100%);
}

.system-tray.active {
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Window Styling */
.window {
    position: absolute;
    background: var(--xp-blue);
    border: 3px solid var(--xp-blue-dark);
    border-radius: 8px 8px 0 0;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    min-width: 350px;
    min-height: 250px;
    overflow: hidden;

    /* Hw accelerated transitions */
    transform-origin: center center;
    transition: opacity 0.2s cubic-bezier(0.1, 0.9, 0.2, 1),
    transform 0.2s cubic-bezier(0.1, 0.9, 0.2, 1),
    width 0.2s ease-out, height 0.2s ease-out,
    top 0.2s ease-out, left 0.2s ease-out;
}

/* Window States */
.window.opening { opacity: 0; transform: scale(0.85); pointer-events: none; }
.window.closing { opacity: 0; transform: scale(0.85); pointer-events: none; }

/* XP Minimize "Swoosh" */
.window.minimized {
    opacity: 0;
    transform: scale(0.9) translateY(40vh); /* Pulls it down towards the taskbar */
    pointer-events: none;
}

/* Maximize State */
.window.maximized {
    top: 0 !important; left: 0 !important;
    width: 100vw !important; height: calc(100vh - 30px) !important;
    border-radius: 0; border-width: 0 0 1px 0;
    transform: none !important;
}

/* disable animation physics during manual drag/resize to prevent rubber-banding */
.window.is-dragging, .window.is-resizing {
    transition: none !important;
}

.title-bar {
    background: linear-gradient(to bottom, var(--xp-blue-light) 0%, var(--xp-blue) 100%);
    padding: 4px 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: grab;
}
.title-bar:active {
    cursor: grabbing;
}

.window.active .title-bar {
    background: linear-gradient(to bottom, #0058e6 0%, #3a93ff 9%, #288cff 18%, #127dff 92%, #036bdf 100%);
}

.window.inactive .title-bar {
    background: linear-gradient(to bottom, #7697e7 0%, #7e9ee3 100%);
}

.title-text {
    color: white;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    pointer-events: none;
    letter-spacing: 0.3px;
}

.window-controls {
    display: flex;
    gap: 2px;
}

.win-btn {
    width: 22px;
    height: 22px;
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 3px;
    color: white;
    font-weight: bold;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: inset -1px -1px 1px rgba(0, 0, 0, 0.4), inset 1px 1px 1px rgba(255, 255, 255, 0.8);
}

.win-btn.close {
    background: linear-gradient(to bottom, #e4725e 0%, #e04428 100%);
    border-radius: 4px; /* XP close buttons were slightly wider/rounder */
    width: 24px;
}

.win-btn.close:active {
    background: #c2381e;
}

.win-btn.other {
    background: linear-gradient(to bottom, #598ce4 0%, #3069d6 100%);
}

.win-btn.other:active {
    background: #2251ad;
}

.window.inactive .win-btn {
    filter: grayscale(40%) opacity(0.8);
}

.window-body {
    background: var(--window-bg);
    padding: 2px;
    flex-grow: 1;
    border: 1px solid var(--xp-blue-dark);
    border-top: none;
    display: flex;
    flex-direction: column;
}

.window-content {
    background: #ffffff;
    border: 1px solid #7f9db9;
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    color: var(--text-main);
    user-select: text;
}

/* Inner Content Styling */
.window-content h1 {
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: normal;
}

.window-content h2 {
    font-size: 15px;
    margin: 15px 0 10px;
    color: var(--xp-blue);
    border-bottom: 1px solid #ccc;
    padding-bottom: 4px;
}

.window-content p {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.window-content ul {
    padding-left: 20px;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* explorer grid (For My Computer) */
.explorer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
}

.explorer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    padding: 5px;
    border: 1px solid transparent;
    font-size: 11px;
}

.explorer-item:hover {
    background: rgba(49, 106, 197, 0.1);
    border-color: rgba(49, 106, 197, 0.3);
}

.explorer-item svg {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
}

/* window resixing handles */
.resize-handle { position: absolute; z-index: 100; }
.resize-e { top: 0; right: -3px; width: 6px; height: 100%; cursor: e-resize; }
.resize-s { bottom: -3px; left: 0; width: 100%; height: 6px; cursor: s-resize; }
.resize-se { bottom: -3px; right: -3px; width: 10px; height: 10px; cursor: se-resize; z-index: 101; }

/* Prevent text selection while resizing */
.is-resizing { user-select: none; pointer-events: none; }

/* control panel (disp propetties) */
.xp-tabs { display: flex; border-bottom: 1px solid #91a0c0; padding-top: 10px; margin-bottom: 15px; }
.xp-tab {
    padding: 4px 10px; margin-right: 2px; background: #ece9d8;
    border: 1px solid #91a0c0; border-bottom: none; border-radius: 3px 3px 0 0;
    cursor: pointer; font-size: 12px; margin-bottom: -1px; z-index: 1;
}
.xp-tab.active { background: #ffffff; padding-top: 6px; font-weight: bold; z-index: 3; }

.display-preview {
    background: #2f65c2; width: 160px; height: 120px; margin: 0 auto 15px;
    border: 15px solid #ece9d8; border-radius: 5px; box-shadow: inset 0 0 5px rgba(0,0,0,0.5), 0 2px 5px rgba(0,0,0,0.3);
    background-size: cover; background-position: center; transition: background-image 0.3s;
}

.wallpaper-list {
    background: white; border: 1px solid #7f9db9; height: 100px; overflow-y: auto;
    list-style: none; padding: 2px; font-size: 12px; margin-bottom: 15px;
}
.wallpaper-item { padding: 2px 5px; cursor: pointer; display: flex; align-items: center; gap: 5px; }
.wallpaper-item:hover { background: #316ac5; color: white; }
.wallpaper-item.selected { background: #316ac5; color: white; }

.dialog-buttons { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; border-top: 1px solid #aca899; padding-top: 15px; }
.xp-button {
    padding: 4px 15px; background: #f0f0ea; border: 1px solid #003c74;
    border-radius: 3px; cursor: pointer; font-family: var(--font-xp); font-size: 12px;
    box-shadow: inset 1px 1px 1px #fff;
}
.xp-button:hover { background: #e4e4e4; }
.xp-button:active { box-shadow: inset 1px 1px 2px rgba(0,0,0,0.3); padding: 5px 14px 3px 16px; }

.overlay { position: fixed; inset:0; background: #000; z-index:9999; display: flex; align-items: center; justify-content: center; }
.overlay.hidden { display: none; }
.preloader { width:360px; height:200px; color: #fff; font-family: "Tahoma", "Segoe UI", sans-serif; text-align: center; position: relative; }
.preloader .xp-logo { font-size:28px; font-weight:700; letter-spacing:0.5px; color: #fff; }
.preloader .xp-logo span { color: #66b3ff; }
.preloader .boot-text { margin-top:16px; font-size:12px; opacity:0.85; }
.preloader .bar { margin:24px auto 0; width:240px; height:12px; border:1px solid #fff; border-radius:2px; overflow: hidden; background: #111; }
.preloader .bar .fill { height:100%; width:100%; background: repeating-linear-gradient( 90deg, #008e35 0, #0e4e00 12px, #0b2d6b 12px, #54ff90 24px ); animation: xp-boot1.2s linear infinite; }
.preloader .copyright { position: absolute; bottom:0; width:100%; font-size:10px; opacity:0.6; }
@keyframes xp-boot { 0% { transform: translateX(-50%); } 100% { transform: translateX(50%); } }

/* alt+tab menu */
.alt-tab-switcher {
    position: fixed;
    left: 50%;
    top: 35%;
    transform: translate(-50%, -50%);
    min-width: 260px;
    max-width: 520px;
    padding: 8px;
    background: linear-gradient(to bottom, #f4f2e8 0%, #e2dfd0 100%);
    border: 1px solid #7a786d;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
    z-index: 100001;
    display: none;
}

.alt-tab-switcher.visible {
    display: block;
}

.alt-tab-window-list {
    display: flex;
    gap: 6px;
    padding: 6px;
    background: #ffffff;
    border: 1px solid #aca899;
}

.alt-tab-item {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    background: #f8f8f4;
}

.alt-tab-item.selected {
    border-color: #003ea5;
    background: #cfe4ff;
    box-shadow: inset 0 0 0 1px #ffffff;
}

.alt-tab-icon {
    font-size: 22px;
    line-height: 1;
}

.alt-tab-window-title {
    margin-top: 6px;
    padding: 4px 6px;
    font-size: 12px;
    color: #000000;
    background: #ffffff;
    border: 1px solid #aca899;
    text-align: center;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(to bottom, #f7f5ec, #ece9d8);
    border: 1px solid #d6d2c2;
    border-radius: 3px;
    margin-bottom: 12px;
}
.panel-header-icon {
    font-size: 28px;
    line-height: 1;
}
.panel-header h1 {
    font-size: 16px !important;
    font-weight: bold;
    margin: 0 !important;
    color: #003399;
}
.panel-header-sub {
    font-size: 11px !important;
    color: #666 !important;
    margin: 2px 0 0 !important;
}

.panel-toolbar {
    display: flex;
    gap: 6px;
    padding: 6px 0;
    margin-bottom: 8px;
    border-bottom: 1px solid #d6d2c2;
}

/* Software Projects window */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.project-entry {
    padding: 10px 12px;
    border: 1px solid #e0ddd0;
    border-radius: 3px;
    background: #fafaf7;
    transition: background 0.15s;
}
.project-entry:hover {
    background: #f0eedf;
    border-color: #c8c4b4;
}
.project-entry-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 4px;
}
.project-entry-icon {
    font-size: 20px;
    line-height: 1;
    margin-top: 1px;
}
.project-entry h2 {
    font-size: 13px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    color: #003399 !important;
    display: inline;
}
.project-entry p {
    font-size: 12px !important;
    color: #333;
    margin: 4px 0 0 !important;
    line-height: 1.5 !important;
}

/* Tags */
.project-tag {
    display: inline-block;
    font-size: 9px;
    font-weight: bold;
    padding: 1px 6px;
    border-radius: 2px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    vertical-align: middle;
    margin-left: 2px;
}
.tag-prod { background: #d4edda; color: #155724; border: 1px solid #b7dfbf; }
.tag-wip  { background: #fff3cd; color: #856404; border: 1px solid #ffeaa7; }
.tag-uni  { background: #d6e9f8; color: #1a4971; border: 1px solid #b8d4ea; }

/* IT Projects / hw window */
.hw-section {
    margin-bottom: 16px;
}
.hw-section-header {
    font-size: 14px;
    font-weight: bold;
    color: #003399;
    padding: 6px 10px;
    background: linear-gradient(to right, #d6e9f8, #eef5fc);
    border: 1px solid #b0c4de;
    border-radius: 3px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hw-section-intro {
    font-size: 11px !important;
    color: #666 !important;
    margin: 0 0 10px 0 !important;
    font-style: italic;
}
.hw-entry {
    padding: 8px 12px;
    border-left: 3px solid #b0c4de;
    margin-bottom: 6px;
    margin-left: 8px;
    background: #fbfbf9;
}
.hw-entry:hover {
    background: #f3f2ea;
    border-left-color: #245edb;
}
.hw-entry h3 {
    font-size: 12px;
    font-weight: bold;
    color: #222;
    margin: 0 0 3px;
}
.hw-entry p {
    font-size: 11px !important;
    color: #444;
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* My Work window */
.work-section {
    margin-bottom: 16px;
}
.work-section-title {
    font-size: 14px;
    font-weight: bold;
    color: #003399;
    padding: 6px 10px;
    background: linear-gradient(to right, #e8dff5, #f5f0fc);
    border: 1px solid #c4b5d9;
    border-radius: 3px;
    margin-bottom: 10px;
}
.work-entry {
    display: flex;
    gap: 12px;
    margin-bottom: 2px;
}
.work-entry-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 12px;
    flex-shrink: 0;
    padding-top: 5px;
}
.work-entry-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #245edb;
    border: 1.5px solid #003ea5;
    flex-shrink: 0;
}
.work-entry-line {
    width: 1.5px;
    flex-grow: 1;
    background: #c4b5d9;
    margin-top: 3px;
}
.work-entry-body {
    flex: 1;
    padding: 6px 10px 10px;
    border: 1px solid #e8e4d8;
    border-radius: 3px;
    background: #fafaf7;
    margin-bottom: 4px;
}
.work-entry-body:hover {
    background: #f3f0ea;
    border-color: #d0ccc0;
}
.work-entry-body h3 {
    font-size: 13px;
    font-weight: bold;
    color: #222;
    margin: 0 0 2px;
}
.work-role {
    display: inline-block;
    font-size: 10px;
    color: #666;
    font-style: italic;
    margin-bottom: 4px;
}
.work-entry-body p {
    font-size: 11px !important;
    color: #333;
    margin: 4px 0 0 !important;
    line-height: 1.5 !important;
}

/*
   XP explorer layout, luna theme
*/

/* explorer shell */
.xp-explorer {
    display: flex;
    height: 100%;
    margin: -20px; /* counteract .window-content padding */
    font-family: Tahoma, 'Trebuchet MS', sans-serif;
}

/* sidebar / task pane */
.xp-explorer-sidebar {
    width: 180px;
    min-width: 180px;
    background: linear-gradient(to bottom, #6b89d4 0%, #4e72c7 3%, #3561b8 6%, #6b89d4 100%);
    border-right: 1px solid #3a5ca8;
    padding: 8px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.xp-task-group {
    background: linear-gradient(to bottom, #ffffff 0%, #f3f5fb 100%);
    border: 1px solid #8dabd8;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.xp-task-group-header {
    background: linear-gradient(to bottom, #fefefe 0%, #d6dff7 100%);
    padding: 6px 10px;
    font-size: 11px;
    font-weight: bold;
    color: #21519b;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #b9c9e8;
    cursor: default;
}
.xp-task-group-header span {
    font-size: 14px;
}

.xp-task-group-body {
    padding: 6px 8px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.xp-task-link {
    font-size: 11px;
    color: #21519b;
    text-decoration: none;
    padding: 3px 6px;
    border-radius: 2px;
    cursor: pointer;
    display: block;
    line-height: 1.4;
}
.xp-task-link:hover {
    color: #143a7a;
    text-decoration: underline;
    background: #e8eff9;
}

.xp-detail-text {
    font-size: 10px;
    color: #555;
    line-height: 1.5;
    padding: 1px 6px;
}

/* main content area */
.xp-explorer-main {
    flex: 1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* address bar */
.xp-address-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 6px;
    background: linear-gradient(to bottom, #f6f8fc 0%, #e8ecf4 100%);
    border-bottom: 1px solid #b5bdc9;
}
.xp-address-label {
    font-size: 10px;
    color: #000;
    font-weight: normal;
    white-space: nowrap;
}
.xp-address-field {
    flex: 1;
    background: #ffffff;
    border: 1px solid #7f9db9;
    border-radius: 0;
    padding: 2px 6px;
    font-size: 11px;
    color: #000;
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.08);
}

.xp-group-banner {
    font-size: 12px;
    font-weight: bold;
    color: #21519b;
    padding: 8px 10px 4px;
    border-bottom: 1px solid #c0d0e8;
    background: linear-gradient(to bottom, #ffffff 0%, #eef2fa 100%);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Details view */
.xp-list-view {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.xp-list-header {
    display: flex;
    background: linear-gradient(to bottom, #ffffff 0%, #e8e6d5 50%, #d6d4c2 51%, #e8e6d5 100%);
    border-bottom: 1px solid #c8c6b5;
    padding: 2px 0;
    position: sticky;
    top: 0;
    z-index: 2;
}
.xp-list-header span {
    font-size: 11px;
    font-weight: normal;
    color: #000;
    padding: 2px 8px;
    border-right: 1px solid #c8c6b5;
    cursor: default;
}

.xp-col-name  { flex: 2; display: flex; align-items: center; gap: 4px; }
.xp-col-status { flex: 1; }
.xp-col-type  { flex: 1; }

.xp-list-row {
    display: flex;
    align-items: flex-start;
    padding: 4px 0;
    border-bottom: 1px solid #f0efe8;
    cursor: default;
    font-size: 11px;
    color: #000;
}
.xp-list-row span {
    padding: 2px 8px;
    font-size: 11px;
}
.xp-list-row-alt {
    background: #f7f6f0;
}
.xp-list-row:hover {
    background: #e8e8e0;
}

.xp-file-icon {
    font-size: 14px;
    vertical-align: middle;
    margin-right: 2px;
}

/* Expandable detail row beneath each list item */
.xp-list-detail {
    font-size: 10px;
    color: #555;
    line-height: 1.5;
    padding: 2px 8px 6px 32px;
    border-bottom: 1px solid #f0efe8;
    background: #fafaf6;
}

/* statii */
.xp-status-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: bold;
    padding: 1px 5px;
    border-radius: 2px;
    letter-spacing: 0.2px;
}
.xp-status-live {
    background: #e6f5d0;
    color: #3a7a19;
    border: 1px solid #b5d99a;
}
.xp-status-wip {
    background: #fff8dc;
    color: #8a6d14;
    border: 1px solid #e8d47a;
}
.xp-status-uni {
    background: #dce8f8;
    color: #2d5a8a;
    border: 1px solid #a8c4e0;
}

.xp-statusbar {
    padding: 3px 8px;
    font-size: 10px;
    color: #555;
    background: linear-gradient(to bottom, #ece9d8 0%, #dedad0 100%);
    border-top: 1px solid #c8c6b5;
    box-shadow: inset 0 1px 0 #ffffff;
    flex-shrink: 0;
}

/* My Work window */
.xp-work-list {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.xp-work-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid #ece9d8;
    cursor: default;
}
.xp-work-item:nth-child(even) {
    background: #f7f6f0;
}
.xp-work-item:hover {
    background: #eff4fc;
}

.xp-work-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.xp-work-body {
    flex: 1;
    min-width: 0;
}

.xp-work-title {
    font-size: 12px;
    font-weight: bold;
    color: #000;
    margin-bottom: 2px;
}

.xp-work-role {
    font-weight: normal;
    color: #666;
    font-size: 10px;
    font-style: italic;
}

.xp-work-desc {
    font-size: 11px;
    color: #333;
    line-height: 1.5;
}

/* responsive: collapse sidebar on small windows*/
@media (max-width: 500px) {
    .xp-explorer-sidebar {
        display: none;
    }
}