:root {
    --primary: #00d2ff;
    --primary-glow: rgba(0, 210, 255, 0.6);
    --secondary: #9d50bb;
    --accent: #6e48aa;
    --bg-dark: #050505;
    --glass: rgba(15, 15, 25, 0.7);
    --glass-border: rgba(255, 255, 255, 0.12);
    --text-main: #ffffff;
    --text-dim: #a0a0b0;
    --font-main: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --panel-blur: 30px;
    --blur: 25px;
    --transition-speed: 0.3s;
    --shadow-main: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    user-select: none;
    outline: none;
}

/* Custom Elite Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
    background-clip: padding-box;
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

body {
    background: #000;
    overflow: hidden;
    color: var(--text-main);
}

/* Background & Particles */
#desktop {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #1a0b2a 0%, #050505 100%);
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('logo.jpeg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover, 40%;
    z-index: 1;
    transition: filter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#desktop::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
    z-index: -1;
}

.bg-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
    z-index: 2;
}

canvas#particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.4;
}

/* Top Bar */
#top-bar {
    position: absolute;
    top: 0;
    width: 100%;
    height: 32px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    font-size: 13px;
    font-weight: 500;
}

.system-brand {
    letter-spacing: 2px;
    font-weight: 700;
    color: #fff;
}

.brand-accent {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.top-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.status-icon {
    opacity: 0.8;
    cursor: pointer;
    transition: opacity 0.2s;
    position: relative;
}

.status-icon:hover { opacity: 1; }

.pulse-ring {
    display: none;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 20px; height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* Desktop Icons */
.desktop-icons {
    position: absolute;
    top: 60px;
    left: 40px;
    display: grid;
    grid-template-columns: repeat(1, 100px);
    grid-auto-rows: 110px;
    gap: 15px;
    z-index: 5;
    pointer-events: none; /* Let clicks pass through to wallpaper if needed, but icons will have pointer-events: auto */
}

.desktop-icon {
    width: 90px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    pointer-events: auto;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.icon-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
}

.desktop-icon span {
    font-size: 11px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    text-align: center;
}

/* Icon Variants */
.explorer-icon { background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%); }
.about-icon { background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); }
.bin-icon { background: linear-gradient(135deg, #434343 0%, #000000 100%); }
.term-icon { background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%); }

.icon-img svg { width: 24px; height: 24px; color: #fff; }

/* Windows */
#window-container {
    position: absolute;
    inset: 32px 0 60px 0;
    z-index: 100;
    pointer-events: none;
}

.window {
    position: absolute;
    pointer-events: auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    animation: winIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transition: transform var(--transition-speed) cubic-bezier(0.16, 1, 0.3, 1), opacity var(--transition-speed), width var(--transition-speed), height var(--transition-speed), top var(--transition-speed), left var(--transition-speed);
}

.window.minimized {
    transform: scale(0.7) translateY(100px) translateX(-50%);
    opacity: 0;
    pointer-events: none;
}

.window.maximized {
    border-radius: 0 !important;
    border: none !important;
}

@keyframes winIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.glass-window {
    background: var(--glass);
    backdrop-filter: blur(var(--blur));
}

.window-header {
    height: 40px;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
}

.window-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.min-btn, .max-btn, .close-btn {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex; justify-content: center; align-items: center;
    transition: all 0.2s;
}

.min-btn:hover { background: rgba(255, 255, 255, 0.1); }
.max-btn:hover { background: rgba(255, 255, 255, 0.1); }
.close-btn:hover { background: #ff4444; }

/* Sentinel AI Window */
.sentinel-window { border: 1px solid var(--primary-glow); }
.sentinel-orb {
    width: 10px; height: 10px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
    animation: orbPulse 2s infinite ease-in-out;
}

@keyframes orbPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 10px var(--primary); }
    50% { transform: scale(1.3); box-shadow: 0 0 20px var(--primary); }
}

.sentinel-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 400px;
}

.ai-status {
    font-size: 12px;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 5px;
}

.msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.ai-msg {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 2px;
}

.user-msg {
    align-self: flex-end;
    background: var(--primary);
    border-bottom-right-radius: 2px;
}

.ai-input-area {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 12px;
}

.ai-input-area input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
}

.mic-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s;
}

.mic-btn:active { transform: scale(0.9); }

/* About Window Styling */
.about-content {
    padding: 40px 20px;
    text-align: center;
}

.logo-glow-container {
    position: relative;
    width: 130px; height: 130px;
    margin: 0 auto 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
}

.logo-glow-container::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: var(--primary);
    filter: blur(20px);
    opacity: 0.3;
    border-radius: 50%;
}

.about-logo-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    filter: drop-shadow(0 0 15px var(--primary-glow));
}

.logo-inner {
    width: 86px; height: 86px;
    background: #111;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 2px;
}

.about-content h2 { font-size: 24px; margin-bottom: 4px; }
.version-tag { color: var(--text-dim); font-size: 12px; margin-bottom: 25px; }

.spec-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-dim);
}

.spec-item span:last-child { color: #fff; font-weight: 600; }

.glow-hr { border: none; height: 1px; background: linear-gradient(to right, transparent, var(--glass-border), transparent); margin-bottom: 20px;}

.registered-label { font-size: 10px; letter-spacing: 2px; color: #666; }
.owner-name { font-size: 16px; font-weight: 700; margin: 5px 0 25px; color: var(--primary); }
.copyright { font-size: 10px; color: #444; }

/* Terminal Styling */
.terminal-window { background: #0c0c0c; }
.term-dot { width: 10px; height: 10px; background: #00ff41; border-radius: 50%; box-shadow: 0 0 5px #00ff41; }

.terminal-body {
    flex: 1;
    padding: 15px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: #00ff41;
    overflow-y: auto;
}

.input-line { display: flex; gap: 10px; align-items: center; margin-top: 5px;}
.prompt { color: #00a2ed; font-weight: bold; }
.terminal-body input {
    flex: 1;
    background: transparent;
    border: none;
    color: #00ff41;
    font-family: var(--font-mono);
}

/* Explorer Styling */
.explorer-window { background: #121214; }
.folder-dot { width: 10px; height: 10px; background: #ffd700; border-radius: 50%; }

.explorer-layout { display: flex; height: calc(100% - 40px); }

.explorer-sidebar {
    width: 200px;
    background: #18181b;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
}

.nav-section { display: flex; flex-direction: column; margin-bottom: 20px; }
.nav-section-title { padding: 0 20px; font-size: 11px; color: #555; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }

.nav-item {
    padding: 8px 20px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-dim);
}

.nav-item:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.nav-item.active { background: rgba(0, 162, 237, 0.1); color: var(--secondary); border-left: 3px solid var(--secondary); padding-left: 17px; }

.explorer-main { flex: 1; display: flex; flex-direction: column; }

.explorer-toolbar {
    height: 50px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: #1e1e21;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.path-bar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 5px;
    background: #121214;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.path-btn { background: transparent; border: none; color: #fff; padding: 0 8px; cursor: pointer; }
.path-input { font-size: 13px; color: #888; padding-left: 10px; }

.search-box input {
    background: #121214;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 6px 12px;
    color: #fff;
    width: 200px;
    font-size: 13px;
}

.explorer-grid {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}
/* Boot Screen */
#boot-screen {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.cyber-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.boot-logo-img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    filter: drop-shadow(0 0 30px var(--primary-glow));
    animation: logoPulse 4s infinite ease-in-out;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); filter: brightness(1) drop-shadow(0 0 30px var(--primary-glow)); }
    50% { transform: scale(1.05); filter: brightness(1.2) drop-shadow(0 0 50px var(--secondary)); }
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) scale(1); filter: brightness(1); }
    50% { transform: translateY(-10px) scale(1.05); filter: brightness(1.3); }
}

.boot-loader {
    width: 200px; height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.boot-bar {
    width: 0%; height: 100%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    transition: width 0.5s;
}

.boot-status {
    font-size: 12px;
    color: #666;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.boot-pct {
    color: var(--primary);
    font-family: var(--font-mono);
    margin-left: 10px;
    font-weight: 700;
    text-shadow: 0 0 10px var(--primary-glow);
}

/* Login Screen */
#login-screen {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, #1a0b1a 0%, #000 100%);
    z-index: 99998;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    width: 350px;
    padding: 50px 30px;
    text-align: center;
    border: 1px solid var(--glass-border);
}

.user-avatar-large {
    width: 90px; height: 90px;
    background: var(--primary);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex; justify-content: center; align-items: center;
    font-size: 32px; font-weight: 700;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.login-box h2 { font-size: 20px; margin-bottom: 5px; }
.login-box p { font-size: 13px; color: #666; margin-bottom: 30px; }

.login-box input {
    width: 100%;
    padding: 12px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.login-box button:hover { background: #ff1a53; transform: scale(1.02); }
.login-box button:active { transform: scale(0.98); }

.drive-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.drive-icon-large { font-size: 40px; }
.drive-details h3 { font-size: 15px; margin-bottom: 8px; }
.progress-container { width: 300px; height: 6px; background: #333; border-radius: 3px; margin-bottom: 6px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--secondary); box-shadow: 0 0 10px var(--secondary); }
.drive-details span { font-size: 12px; color: #666; }

.file-table-header {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #666;
    font-size: 12px;
    margin-bottom: 10px;
}

.file-row {
    display: flex;
    padding: 10px 0;
    font-size: 13px;
    color: #ddd;
    border-radius: 6px;
    cursor: pointer;
}

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

.h-name, .col-name { flex: 3; display: flex; align-items: center; gap: 10px; }
.h-date, .col-date { flex: 1.5; }
.h-type, .col-type { flex: 1.5; }
.h-size, .col-size { flex: 1; text-align: right; }

.f-icon { width: 18px; height: 18px; border-radius: 4px; }
.c-file { background: #00a2ed; }
.h-file { background: #ff4444; }
.a-file { background: #ff8c00; }
.cfg-file { background: #888; }

/* Start Menu */
#start-menu {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    max-height: 520px;
    padding: 30px;
    z-index: 2000;
    border: 1px solid var(--primary-glow);
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    animation: startUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes startUp {
    from { opacity: 0; transform: translateX(-50%) translateY(50px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.start-search input {
    width: 100%;
    padding: 14px 25px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 25px;
    border-bottom: 2px solid var(--secondary);
    color: #fff;
    font-size: 15px;
    margin-bottom: 40px;
}

.section-label { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 20px; }

.apps-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.app-item:hover { transform: translateY(-5px); }

.app-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex; justify-content: center; align-items: center;
    font-size: 24px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.app-item span { font-size: 11px; color: var(--text-dim); }

.explorer-bg { background: #ffcc00; }
.term-bg { background: #1e1e1e; border: 1px solid #444; }
.ai-bg { background: var(--primary); }
.settings-bg { background: #4a4a4a; }
.browser-bg { background: #2b5797; }
.about-bg { background: #2d89ef; }

.recommended-files { flex: 1; }
.rec-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
}

.rec-item:hover { background: rgba(255, 255, 255, 0.05); }
.rec-icon { font-size: 24px; }
.rec-name { font-size: 13px; font-weight: 600; }
.rec-time { font-size: 11px; color: #666; }

.start-footer {
    height: 70px;
    background: rgba(0, 0, 0, 0.4);
    margin: 0 -40px -40px -40px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 16px 16px;
}

.user-pill { display: flex; align-items: center; gap: 12px; }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); display: flex; justify-content: center; align-items: center; font-weight: 700;}
.user-name { font-size: 13px; font-weight: 600; }

.power-off-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}

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

/* Taskbar */
#taskbar {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    height: 60px;
    width: max-content;
    min-width: 300px;
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(30px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid var(--primary-glow);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    z-index: 5000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    gap: 20px;
}

.dock-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dock-item {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; justify-content: center; align-items: center;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dock-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-8px) scale(1.1);
}

.dock-separator { width: 1px; height: 30px; background: rgba(255, 255, 255, 0.1); margin: 0 5px; }

.devil-logo-mini {
    width: 28px; height: 28px;
    object-fit: cover;
    border-radius: 50%;
    filter: drop-shadow(0 0 5px var(--primary-glow));
    transition: transform 0.3s;
}

.dock-item:hover .devil-logo-mini {
    transform: rotate(360deg) scale(1.2);
}

.system-tray {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(255,255,255,0.1);
}
.tray-pill { text-align: right; line-height: 1.2; }
#tray-clock { font-size: 14px; font-weight: 700; display: block; }
.tray-date { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }

/* Notifications */
#notification-container {
    position: absolute;
    top: 50px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10000;
}

/* Glass Panel General */
.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(var(--panel-blur));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-main);
}

/* Context Menu */
#context-menu {
    position: fixed;
    width: 180px;
    padding: 8px;
    z-index: 10000;
}

.menu-item {
    padding: 10px 15px;
    font-size: 13px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.menu-item:hover { background: rgba(255, 255, 255, 0.1); }
.menu-separator { height: 1px; background: var(--glass-border); margin: 5px 0; }

/* Control Center */
#control-center {
    position: absolute;
    top: 45px;
    right: 20px;
    width: 320px;
    padding: 25px;
    z-index: 6000;
}

.cc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.cc-tile {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.cc-tile.active { background: var(--primary); color: #000; }
.cc-icon { font-size: 20px; }
.cc-tile span:last-child { font-size: 11px; font-weight: 600; }

.cc-sliders { display: flex; flex-direction: column; gap: 20px; }
.cc-slider-item { display: flex; flex-direction: column; gap: 8px; }
.cc-slider-item span { font-size: 11px; color: var(--text-dim); }

.cc-slider-item input[type=range] {
    -webkit-appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.cc-slider-item input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px; height: 18px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

.cc-footer {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.cc-footer button {
    padding: 8px 15px;
    background: #ff4444;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 11px;
    cursor: pointer;
}

/* Calendar Panel */
#calendar-panel {
    position: absolute;
    top: 45px;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
    padding: 25px;
    z-index: 6000;
}

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

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    text-align: center;
}

.cal-day { font-size: 12px; padding: 8px; border-radius: 8px; cursor: pointer; }
.cal-day:hover { background: rgba(255, 255, 255, 0.1); }
.cal-day.today { background: var(--primary); color: #000; font-weight: 700; }
.cal-weekday { font-size: 10px; color: var(--text-dim); font-weight: 600; padding-bottom: 10px; }

@keyframes notifyIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Dynamic Effects */
.bg-blur { filter: blur(10px); pointer-events: none; }

@keyframes notifyIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

/* --- NEW COMPONENTS --- */

/* Cyber Logo */
.cyber-logo-container {
    width: 200px; height: 200px;
    margin-bottom: 20px;
}
.cyber-d-logo {
    width: 100%; height: 100%;
    filter: drop-shadow(0 0 20px var(--primary-glow));
    animation: cyberFloat 4s infinite ease-in-out;
}
@keyframes cyberFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

/* Monitor Window */
.monitor-body { padding: 25px; display: flex; flex-direction: column; gap: 20px; }
.stat-group { display: flex; flex-direction: column; gap: 8px; }
.stat-label { font-size: 11px; font-weight: 700; color: var(--text-dim); letter-spacing: 1px; }
.stat-bar { height: 6px; background: rgba(255,255,255,0.05); border-radius: 3px; overflow: hidden; }
.stat-fill { height: 100%; box-shadow: 0 0 10px currentColor; }
.cpu-fill { background: var(--primary); color: var(--primary); }
.mem-fill { background: var(--secondary); color: var(--secondary); }
.gpu-fill { background: #00ff41; color: #00ff41; }
.stat-val { font-size: 12px; color: #fff; text-align: right; }
.monitor-graph { height: 100px; margin-top: 10px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 10px; }
.graph-svg { width: 100%; height: 100%; }

/* Settings Window */
.settings-layout { display: flex; height: calc(100% - 40px); }
.settings-sidebar { width: 180px; background: rgba(255,255,255,0.03); border-right: 1px solid rgba(255,255,255,0.05); padding: 20px 0; }
.set-item { padding: 10px 20px; font-size: 13px; color: var(--text-dim); cursor: pointer; transition: all 0.2s; }
.set-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.set-item.active { background: var(--primary-glow); color: #fff; border-left: 3px solid var(--primary); padding-left: 17px; }

.settings-main { flex: 1; padding: 30px; }
.settings-main h3 { font-size: 18px; margin-bottom: 25px; }

.theme-selector { display: flex; gap: 15px; margin-bottom: 30px; }
.theme-box { width: 40px; height: 40px; border-radius: 8px; cursor: pointer; border: 2px solid transparent; transition: transform 0.2s; }
.theme-box:hover { transform: scale(1.1); }
.theme-box.active { border-color: #fff; box-shadow: 0 0 15px rgba(255,255,255,0.3); }

.toggle-group { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.toggle { width: 40px; height: 20px; background: #333; border-radius: 10px; position: relative; cursor: pointer; transition: background 0.3s; }
.toggle::after { content: ''; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: left 0.3s; }
.toggle.active { background: var(--primary); }
.toggle.active::after { left: 22px; }

/* Note Pad */
.notepad-window { background: #fff !important; color: #333 !important; }
.notepad-window .window-header { background: #f0f0f0 !important; color: #333 !important; border-bottom: 1px solid #ddd !important; }
.notepad-window .close-btn { color: #333 !important; }
.notepad-window .close-btn:hover { background: #ff4444; color: #fff !important; }
.note-dot { width: 10px; height: 10px; background: #ffcc00; border-radius: 50%; }
.notepad-body { flex: 1; display: flex; }
.notepad-body textarea {
    flex: 1;
    border: none;
    padding: 20px;
    font-size: 16px;
    resize: none;
    background: transparent;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}
.save-btn { background: transparent; border: none; font-size: 18px; cursor: pointer; margin-right: 10px; }
.dev-team {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 15px 0 25px;
}
.dev-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.dev-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}
.dev-card span {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}
.note-bg { background: #ffcc00; }

.dock-item.win-min {
    opacity: 0.5;
    transform: scale(0.8);
}
.dock-item.win-min::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--primary-glow);
}

.info-list { margin-top: 20px; }
.info-item { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 14px; }
.info-item span:first-child { color: var(--text-dim); }
.set-tab h3 { margin-bottom: 20px; font-size: 20px; color: var(--primary); }
.update-status { background: rgba(255,255,255,0.05); padding: 20px; border-radius: 12px; margin-top: 10px; border-left: 4px solid var(--primary); }

.tab-item {
    padding: 8px 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px 8px 0 0;
    color: var(--text-dim);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
    border-bottom: none;
    max-width: 150px;
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.2s;
}

.tab-item.active {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-top: 2px solid var(--primary);
}

.tab-item button {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
}

.tab-item button:hover { color: #ff4444; }
.add-tab-btn:hover { color: var(--primary); transform: scale(1.1); }

/* Chrome-like Browser Design */
.browser-window {
    background: #202124 !important; /* Chrome Dark Theme */
    border: 1px solid rgba(255,255,255,0.1);
}

.chrome-tab-bar {
    display: flex;
    align-items: flex-end;
    padding: 8px 10px 0;
    background: #202124;
    gap: 0;
}

.chrome-tab {
    height: 32px;
    padding: 0 20px;
    background: #35363a;
    color: #9aa0a6;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    margin-right: -10px;
    position: relative;
    clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
    min-width: 160px;
    cursor: pointer;
    transition: background 0.2s;
}

.chrome-tab.active {
    background: #35363a;
    color: #fff;
    z-index: 2;
}

.chrome-toolbar {
    background: #35363a;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chrome-omnibox {
    flex: 1;
    background: #202124;
    border-radius: 20px;
    padding: 6px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
}

.chrome-omnibox:focus-within {
    border-color: var(--primary);
}

.chrome-omnibox input {
    background: transparent;
    border: none;
    color: #fff;
    width: 100%;
    font-size: 13px;
}

.chrome-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chrome-btn:hover { opacity: 1; background: rgba(255,255,255,0.1); border-radius: 50%; }

.chrome-bookmarks {
    color: #fff;
    cursor: default;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.bookmark-item {
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    color: #bdc1c6;
}

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

.menu-item {
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
    color: #fff;
}

.menu-item:hover {
    background: var(--primary-glow);
    color: #000;
}

.chrome-star {
    cursor: pointer;
    font-size: 14px;
    color: #bdc1c6;
    transition: color 0.2s;
    margin-right: 5px;
}

.chrome-star:hover { color: #ffcc00; }

/* Control Center Styling */
.cc-tile {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 11px;
}

.cc-tile.active {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px var(--primary-glow);
    border-color: transparent;
}

.cc-tile.active span, .cc-tile.active .cc-icon { color: #000 !important; }

.cc-sliders input[type="range"] {
    -webkit-appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    cursor: pointer;
}

.cc-sliders input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    border: 2px solid var(--primary);
}

.password-hint {
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 20px;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.password-hint .highlight {
    color: var(--primary);
    font-weight: 700;
    text-shadow: 0 0 10px var(--primary-glow);
    padding: 2px 8px;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid var(--primary-glow);
    border-radius: 4px;
    margin-left: 5px;
}
