/* Ubuntu Theme Variables & Resets */
body.ubuntu-theme {
    background: linear-gradient(135deg, #E30066 0%, #DD4814 100%);
    background-color: #300A24; /* Fallback Aubergine */
    font-family: 'Ubuntu', 'Segoe UI', sans-serif;
    color: #333;
}

body.ubuntu-theme .theme-btn {
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    padding: 8px 12px;
}
body.ubuntu-theme .theme-btn:active {
    box-shadow: none;
    transform: translateY(1px);
    padding: 8px 12px;
}

body.ubuntu-theme #desktop {
    padding-top: 40px; /* Space for top bar */
}

body.ubuntu-theme .desktop-icon .icon-label {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    font-size: 13px;
}

body.ubuntu-theme .desktop-icon:focus .icon-label,
body.ubuntu-theme .desktop-icon:active .icon-label {
    background-color: #E95420; /* Ubuntu Orange */
    border: 1px solid transparent;
    border-radius: 3px;
}

/* Taskbar -> Top Bar */
body.ubuntu-theme #taskbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 28px;
    background-color: rgba(30, 30, 30, 0.95);
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
    color: #fff;
}

body.ubuntu-theme #start-button {
    background: transparent;
    border: none;
    color: #fff;
    box-shadow: none;
    font-weight: normal;
}
body.ubuntu-theme #start-button:hover {
    background: rgba(255,255,255,0.1);
}
body.ubuntu-theme #start-button b {
    font-weight: normal;
}
body.ubuntu-theme #start-button img {
    display: none; /* Hide win logo */
}
body.ubuntu-theme #start-button::before {
    content: "Activities";
    font-weight: bold;
}
body.ubuntu-theme #start-button b {
    display: none;
}

body.ubuntu-theme .taskbar-app-btn {
    background: transparent;
    border: none;
    color: #fff;
    box-shadow: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
}
body.ubuntu-theme .taskbar-app-btn.active {
    background: rgba(255,255,255,0.1);
    border-bottom: 2px solid #E95420; /* Orange indicator */
    padding: 0 5px; /* reset win98 padding */
}

body.ubuntu-theme #system-tray {
    border: none;
    box-shadow: none;
    background: transparent;
}

/* Windows */
body.ubuntu-theme .win98-window {
    background-color: #f6f6f6;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 8px 8px 0 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    padding: 0;
    overflow: hidden;
}

body.ubuntu-theme .title-bar {
    background: #3d3d3d; /* Dark grey titlebar */
    padding: 8px;
    border-radius: 8px 8px 0 0;
    justify-content: center; /* Center text in Ubuntu */
    position: relative;
}

body.ubuntu-theme .win98-window.inactive .title-bar {
    background: #2d2d2d;
    color: #888;
}

body.ubuntu-theme .title-bar-text {
    flex-grow: 0;
    font-weight: normal;
    text-align: center;
}

body.ubuntu-theme .title-bar-controls {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    gap: 6px;
}

body.ubuntu-theme .title-bar-controls button {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    box-shadow: none;
    background-color: #888;
    color: transparent;
}

body.ubuntu-theme .title-bar-controls button:hover {
    filter: brightness(1.2);
}

body.ubuntu-theme .title-bar-controls .close-btn {
    background-color: #E95420; /* Orange close btn */
}
body.ubuntu-theme .title-bar-controls .close-btn::before {
    display: none;
}

body.ubuntu-theme .window-body {
    border: none;
    box-shadow: none;
    background-color: #ffffff;
    margin-top: 0;
    padding: 15px;
}
