/* style.css */
:root {
  --accent-color: #1e90ff; /* Default Blue */
  --bg-dark: #1a1a1a;
  --bg-light: #f0f0f0;
}

/* GLOBAL & BOOT */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.hidden { display: none !important; }
.screen { width: 100vw; height: 100vh; position: absolute; top: 0; left: 0; overflow: hidden; }

/* BOOT SCREEN */
#boot-screen { display: flex; justify-content: center; align-items: center; background: #000; color: white; z-index: 10000; }
.boot-center { text-align: center; }
.boot-logo-img { width: 120px; margin-bottom: 20px; animation: pulse 2s infinite; }
.boot-spinner { border: 3px solid rgba(255,255,255,0.1); border-top: 3px solid var(--accent-color); border-radius: 50%; width: 30px; height: 30px; animation: spin 0.8s linear infinite; margin: 0 auto; }
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 0.8; } 50% { opacity: 1; } }

/* LOGIN SCREEN */
#login-screen { display: flex; justify-content: center; align-items: center; background: #000; z-index: 9000; }
.login-box { background: rgba(20, 20, 20, 0.9); padding: 40px; border-radius: 12px; width: 320px; text-align: center; border: 1px solid #333; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.login-box h2 { color: #fff; margin-bottom: 20px; font-weight: 300; letter-spacing: 1px; }
.login-box input { width: 100%; padding: 12px; margin: 8px 0; background: #111; border: 1px solid #333; color: white; border-radius: 6px; outline: none; transition: 0.2s; }
.login-box input:focus { border-color: var(--accent-color); }
.login-box button { width: 100%; padding: 12px; margin-top: 15px; background: var(--accent-color); border: none; color: white; border-radius: 6px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.login-box button:hover { filter: brightness(1.2); }
#toggle-auth { color: #888; font-size: 12px; text-decoration: none; display: inline-block; margin-top: 15px; }

/* DESKTOP */
#desktop { width: 100vw; height: 100vh; background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop') no-repeat center center/cover; position: relative; }
#desktop-icons { padding: 20px; display: flex; flex-direction: column; gap: 15px; flex-wrap: wrap; height: 90vh; width: fit-content; }
.desk-icon { width: 80px; text-align: center; color: white; text-shadow: 0 1px 4px rgba(0,0,0,0.8); cursor: pointer; padding: 5px; border-radius: 5px; transition: 0.2s; }
.desk-icon:hover { background: rgba(255,255,255,0.1); }
.icon-label { font-size: 12px; margin-top: 5px; word-wrap: break-word; }

/* WINDOW MANAGER */
.app-window { position: absolute; top: 100px; left: 100px; background: #1a1a1a; border: 1px solid #333; border-radius: 8px; box-shadow: 0 15px 40px rgba(0,0,0,0.5); display: flex; flex-direction: column; overflow: hidden; min-width: 200px; min-height: 150px; }
.title-bar { height: 32px; background: #252525; border-bottom: 1px solid #333; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; color: #ccc; font-size: 13px; user-select: none; }
.close-btn { width: 14px; height: 14px; background: #ff5f56; border-radius: 50%; border: none; cursor: pointer; display: block; }
.close-btn:hover { background: #ff3b30; }
.win-resizer { position: absolute; bottom: 0; right: 0; width: 16px; height: 16px; cursor: se-resize; background: linear-gradient(135deg, transparent 50%, #555 50%); z-index: 10; }

/* TASKBAR */
/* TASKBAR CONTAINER */
#taskbar { 
    position: absolute; 
    bottom: 10px; 
    left: 50%; 
    transform: translateX(-50%); 
    height: 50px; 
    background: rgba(20,20,20,0.7); 
    backdrop-filter: blur(15px); 
    border: 1px solid rgba(255,255,255,0.1); 
    border-radius: 16px; 
    display: flex; 
    align-items: center; 
    padding: 0 10px; 
    width: auto; 
    min-width: 300px; 
    gap: 10px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); 
    z-index: 5000; 
}

/* START BUTTON */
#start-button { 
    font-size: 20px; 
    color: #fff; 
    padding: 0 10px; 
    cursor: pointer; 
    transition: 0.2s; 
    display: flex; 
    align-items: center; 
}
#start-button:hover { 
    color: var(--accent-color); 
    transform: scale(1.1); 
}
#start-button svg { 
    width: 24px; 
    height: 24px; 
    pointer-events: none; 
}

/* DOCK APPS */
.dock { 
    display: flex; 
    gap: 8px; 
}
.dock-item { 
    width: 38px; 
    height: 38px; 
    background: rgba(255,255,255,0.1); 
    border-radius: 10px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    transition: 0.2s; 
    position: relative; 
}
.dock-item:hover { 
    background: rgba(255,255,255,0.2); 
    transform: translateY(-5px); 
}
.dock-item svg { 
    width: 24px; 
    height: 24px; 
    pointer-events: none; 
}
.dock-item.running::after { 
    content: ''; 
    position: absolute; 
    bottom: -6px; 
    width: 4px; 
    height: 4px; 
    background: #fff; 
    border-radius: 50%; 
}

/* RIGHT TRAY */
#taskbar-right { 
    margin-left: auto; 
    display: flex; 
    align-items: center; 
    color: white; 
    gap: 8px; /* Tighter gap for better fit */
    font-size: 13px; 
    padding-right: 6px; 
}

/* SYSTEM ICONS GROUP */
.sys-group { 
    display: flex; 
    align-items: center; 
    background: rgba(255, 255, 255, 0.1); 
    border-radius: 20px; 
    padding: 2px 6px; 
    margin-right: 8px; 
}
.sys-btn { 
    background: transparent; 
    border: none; 
    cursor: pointer; 
    padding: 6px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    transition: 0.2s; 
}
.sys-btn:hover { 
    background: rgba(255, 255, 255, 0.2); 
}
.sys-btn svg { 
    width: 18px; 
    height: 18px; 
    fill: white; 
}

/* --- FIXED PROFILE PILL --- */
#taskbar-profile {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    height: 40px; /* Fixed height matching dock */
    padding: 4px 12px 4px 4px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 12px;
}
#taskbar-profile:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* PREVENT AVATAR SQUASHING */
#taskbar-profile img, 
#taskbar-profile .profile-avatar {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px; /* Critical fix */
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0; /* Prevents flexbox from shrinking image */
}

/* ALIGN TEXT PROPERLY */
.profile-name {
    color: white;
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

/* SETTINGS APP STYLES */
.settings-container { display: flex; height: 100%; }
.settings-sidebar { width: 140px; background: #222; border-right: 1px solid #333; padding: 15px 10px; display: flex; flex-direction: column; gap: 5px; }
.settings-nav-item { padding: 8px 12px; color: #aaa; border-radius: 6px; cursor: pointer; font-size: 13px; transition: 0.2s; }
.settings-nav-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.settings-nav-item.active { background: var(--accent-color); color: white; font-weight: 500; }
.settings-content { flex: 1; padding: 20px; overflow-y: auto; color: #ddd; }
.st-group { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #333; }
.st-label { display: block; font-size: 12px; font-weight: 600; color: #888; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.st-input { width: 100%; padding: 8px; background: #111; border: 1px solid #444; color: white; border-radius: 4px; outline: none; }
.st-input:focus { border-color: var(--accent-color); }
.st-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.st-btn { padding: 8px 16px; background: #333; border: 1px solid #444; color: white; border-radius: 4px; cursor: pointer; transition: 0.2s; }
.st-btn.primary { background: var(--accent-color); border-color: transparent; }
.st-btn:hover { filter: brightness(1.1); }
.st-btn.danger { background: #d63031; color: white; border: none; }

.sm-app-label {
    color: #ffffff !important; /* Bright White */
    text-shadow: 0 1px 3px rgba(0,0,0,0.8); /* Shadow for contrast */
    font-weight: 600;
}

.sm-search-input {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
}

#logout-confirm-overlay h3,
#logout-confirm-overlay p {
    color: #ffffff !important;
    text-shadow: none;
}

/* style.css Partial Update for Start Menu */

/* style.css Start Button Fixes */

#start-button { 
    font-size: 20px; 
    color: #fff; 
    padding: 0 14px; /* Increased Hitbox */
    cursor: pointer; 
    transition: 0.2s; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    border-radius: 8px; /* Smooth corners on hover */
    z-index: 5002; /* Higher than taskbar bg */
}

#start-button:hover { 
    background: rgba(255, 255, 255, 0.1); /* Glow effect */
    color: var(--accent-color); 
    transform: scale(1.05);
}

#start-button:active {
    transform: scale(0.95); /* Click feedback */
    background: rgba(255, 255, 255, 0.2);
}

#start-button svg { 
    width: 26px; /* Slightly bigger icon */
    height: 26px; 
    pointer-events: none; 
}

/* Ensure Menu is always visible above dock */
/* Update style.css completely or replace these sections */

/* START MENU - FIXED POSITION */
#start-menu {
    position: absolute;
    bottom: 70px; /* Just above taskbar */
    left: 10px;   /* Align with start button */
    width: 500px;
    height: 400px;
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    z-index: 6000;
    overflow: hidden;
    padding: 0;
    /* Ensure text is white */
    color: white;
}

.sm-grid-container {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 90px);
    gap: 15px;
    padding: 30px;
}

.sm-app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}
.sm-app-card:hover { transform: translateY(-5px); }

.sm-icon-square {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.sm-icon-square svg { width: 30px; height: 30px; }

/* START BUTTON - VISUAL FEEDBACK */
#start-button { 
    font-size: 20px; 
    color: #fff; 
    padding: 0 14px;
    cursor: pointer; 
    transition: 0.2s; 
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
}
#start-button:hover { 
    background: rgba(255, 255, 255, 0.1); 
    color: var(--accent-color); 
}
#start-button:active {
    background: rgba(255, 255, 255, 0.2); 
    transform: scale(0.95);
}

/* --- START MENU FOOTER FIX --- */
.sm-system-bar {
    height: 60px;
    background: rgba(0, 0, 0, 0.3); /* Darker footer background */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex !important; /* Force Flexbox */
    align-items: center !important; /* Vertically center items */
    justify-content: space-between !important; /* Space out User and Power btn */
    padding: 0 20px;
    margin-top: auto; /* Push to bottom if using flex column */
}

/* User Profile Group */
.sm-user-info {
    display: flex;
    align-items: center;
    gap: 12px; /* Space between circle and name */
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background 0.2s;
}

.sm-user-info:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* User Avatar Circle */
.sm-avatar-circle {
    width: 36px;
    height: 36px;
    background: var(--accent-color, #1e90ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 16px;
    flex-shrink: 0; /* Prevent squashing */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* User Name Text */
.sm-user-info span {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
}

/* Power Button */
.sm-power-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #ff5f56; /* Red icon */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.sm-power-btn:hover {
    background: #ff5f56;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 95, 86, 0.4);
}

/* --- SHUTDOWN OVERLAY STYLES --- */
#shutdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95); /* Deep dark background */
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000; /* Highest possible Z-index */
    color: white;
    opacity: 0; /* Control opacity via JS class for fade */
    transition: opacity 0.3s ease;
}

#shutdown-box {
    background: #18181a;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    border: 1px solid #333;
    animation: popIn 0.3s ease-out; /* Uses keyframe from main.js */
}
#shutdown-box h2 {
    margin-bottom: 25px;
    font-weight: 500;
    font-size: 24px;
}
#shutdown-box button {
    padding: 12px 24px;
    margin: 8px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    min-width: 120px;
}
#shutdown-btn { background: #ff4757; color: white; }
#restart-btn { background: var(--accent-color, #1e90ff); color: white; }
#cancel-shutdown { background: #444; color: white; }
#shutdown-btn:hover, #restart-btn:hover { filter: brightness(1.2); }
#cancel-shutdown:hover { background: #555; }

/* --- 3D BOOT FLIP ANIMATION --- */

/* Enable 3D space on the container */
body.flipping-mode {
    perspective: 1500px;
    overflow: hidden;
    background: #000; /* Seamless background */
}

/* Common physics for both screens during flip */
#boot-screen, #login-screen {
    backface-visibility: hidden; /* Hide the back side when rotated */
    transform-style: preserve-3d;
    transition: transform 1.2s cubic-bezier(0.7, 0, 0.3, 1); /* Cinematic easing */
    position: absolute;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
}

/* Initial state for Login Screen (Hidden "behind" the boot screen) */
.prepare-flip {
    transform: rotateY(180deg);
    display: flex !important;
    opacity: 1 !important;
    z-index: 9500;
}

/* End state: Boot screen rotates away */
.do-flip-out {
    transform: rotateY(-180deg);
}

/* End state: Login screen rotates in */
.do-flip-in {
    transform: rotateY(0deg);
}

/* --- FIXED 3D BOOT FLIP --- */

/* 1. Steady Background (Apply to Body) */
body {
    background-color: #000;
}

/* 2. Containers stay still, just provide 3D space */
#boot-screen, #login-screen {
    background: transparent !important; /* Don't flip the black bg */
    perspective: 1500px;
    position: absolute;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    overflow: hidden;
    /* Ensure they stack properly */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 3. The Elements that actually flip */
.boot-center, .login-box {
    backface-visibility: hidden; /* Hide back side during flip */
    transform-style: preserve-3d;
    transition: transform 1.0s cubic-bezier(0.7, 0, 0.3, 1);
}

/* Initial States */
.boot-center {
    transform: rotateY(0deg); /* Front of card */
    position: absolute; /* Lock position to center */
}

.login-box {
    transform: rotateY(180deg); /* Back of card (Start hidden) */
    position: absolute; /* Lock position to center */
    /* Ensure it has a background */
    background: rgba(20, 20, 20, 0.95);
    z-index: 50;
}

/* 4. Animation Classes */
.flip-out {
    transform: rotateY(-180deg) !important; /* Rotate Logo away */
    opacity: 0; /* Fade out slightly at end */
}

.flip-in {
    transform: rotateY(0deg) !important; /* Rotate Login in */
}

body {
    background-color: #000 !important; /* The Void */
}

/* Ensure Wallpaper container can be hidden */
#desktop.hidden {
    display: none !important;
    opacity: 0 !important;
}

/* Boot & Login Containers */
#boot-screen, #login-screen {
    position: absolute;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
    background: transparent !important;
}

/* Flip Physics */
.boot-center, .login-box {
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: transform 1.2s cubic-bezier(0.6, 0, 0.4, 1);
    z-index: 10;
}

.boot-center { transform: rotateY(0deg); }

/* Login Box starts flipped */
.login-box {
    transform: rotateY(180deg);
    background: rgba(28, 28, 30, 0.95); /* Dark Glass */
    border: 1px solid rgba(255,255,255,0.1);
    /* No wallpaper visible behind this because desktop is hidden */
}

/* Animation Classes */
.flip-logo-away { transform: rotateY(-180deg) !important; opacity: 0; }
.flip-box-in { transform: rotateY(0deg) !important; }

/* style.css (append to end) */
/* --- CLOCK APP STYLES --- */
.clock-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #1e1e1e;
}
.clock-tabs {
    display: flex;
    background: #252525;
    border-bottom: 1px solid #333;
}
.clock-tab-btn {
    padding: 10px 15px;
    color: #888;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.2s;
}
.clock-tab-btn:hover {
    color: #fff;
}
.clock-tab-btn.active {
    color: var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 7px;
}
.clock-tab-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    color: #ddd;
}
.clock-main-display {
    text-align: center;
    font-size: 6em;
    font-weight: 200;
    margin-top: 30px;
    color: var(--accent-color);
    font-family: monospace;
}
.clock-main-date {
    text-align: center;
    font-size: 1.2em;
    color: #aaa;
    margin-top: -10px;
}
.time-zone-item {
    padding: 10px 0;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.time-zone-name {
    font-weight: 600;
}
.time-zone-time {
    font-size: 1.8em;
    color: var(--accent-color);
    font-family: monospace;
}
.timer-controls, .stopwatch-controls {
    text-align: center;
    margin-top: 20px;
}
.timer-input, .timer-controls button, .stopwatch-controls button {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.timer-input {
    background: #2b2b2b;
    color: white;
    width: 180px;
    text-align: center;
    font-size: 1.5em;
    border: 1px solid #444;
}
.timer-controls button.primary, .stopwatch-controls button.primary {
    background: var(--accent-color);
    color: white;
}
.timer-controls button.danger {
    background: #d63031;
    color: white;
}
.stopwatch-laps {
    margin-top: 20px;
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #333;
    border-radius: 6px;
}
.stopwatch-lap-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 15px;
    border-bottom: 1px solid #222;
}
.stopwatch-lap-item:last-child { border-bottom: none; }
.stopwatch-lap-label { color: #888; }

/* style.css (Append or replace previous ::selection block) */

/* Target the whole body to apply selection styling globally */
body ::selection {
    background-color: #555; /* Use a neutral, non-distracting dark gray */
    color: #fff;
    text-shadow: none;
}
/* Firefox compatibility */
body ::-moz-selection {
    background-color: #555;
    color: #fff;
    text-shadow: none;
}

/* Optional: Also remove the default focus outline which is often blue */
:focus {
    outline-color: var(--accent-color); /* Use accent color for non-intrusive focus */
    outline-offset: 2px;
}

/* style.css (Replace the vertical slider styles with this horizontal block) */

/* Volume Popup Container: Minimalist Horizontal Alignment */
/* style.css (Replace the previous horizontal volume styles with this updated block) */

/* Volume Popup Container: Final Professional Design */
#volume-popup {
    z-index: 9999;
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px 15px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    width: 160px; 
    display: flex;
    flex-direction: column; /* Stack slider and percentage vertically */
    align-items: center;
    gap: 5px; /* Space between slider and text */
}

/* Hide the redundant icon state */
#volume-popup .vol-icon-state {
    display: none; 
}

.vol-slider-wrap {
    width: 100%;
}

.vol-range {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
    border-radius: 4px;

    /* CRUCIAL: Dynamic background for filled track */
    background: linear-gradient(
        to right,
        var(--accent-color) 0%,
        var(--accent-color) var(--vol-level, 50%), /* Filled part (dynamic) */
        #333 var(--vol-level, 50%),
        #333 100% /* Unfilled part (static dark gray) */
    );
}

/* Custom Thumb (Knob) Styling */
.vol-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px; 
    height: 18px;
    border-radius: 50%;
    background: #fff; /* White knob */
    border: 2px solid var(--accent-color); /* Blue border for design */
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

/* style.css - Additions for Traffic Lights */

/* Traffic Lights Container */
.traffic-lights {
    display: flex;
    gap: 8px;
    align-items: center;
    padding-left: 0px; /* Adjust alignment */
}

/* Individual Buttons */
.tl-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 0;
    outline: none;
}

/* Colors */
.tl-close { background: #ff5f57; border: 1px solid #e0443e; }
.tl-min   { background: #febc2e; border: 1px solid #dba520; }
.tl-max   { background: #28c840; border: 1px solid #1aa030; }

/* Hover Symbols (X, -, +) */
.traffic-lights:hover .tl-close::after { content: '×'; position: absolute; top: -2px; left: 3px; color: #4e0002; font-size: 10px; font-weight: bold; }
.traffic-lights:hover .tl-min::after   { content: '–'; position: absolute; top: -3px; left: 3px; color: #664d02; font-size: 10px; font-weight: bold; }
.traffic-lights:hover .tl-max::after   { content: '+'; position: absolute; top: -2px; left: 3px; color: #003606; font-size: 10px; font-weight: bold; }

/* Update Title Bars to accommodate Traffic Lights */
.title-bar {
    padding-left: 12px !important; /* Give space on the left */
    display: flex;
    align-items: center;
}
/* Push the title text to the center or right if needed */
.title-bar span { margin-left: 10px; font-weight: 500; opacity: 0.8; }