/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Ubuntu', sans-serif;
    font-size: 14px;
    user-select: none;
    -webkit-user-select: none;
}

body {
    background: #300A24;
}

.hidden {
    display: none !important;
}

/* Boot Screen */
#boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #2C001E;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.5s ease;
}

.boot-content {
    text-align: center;
}

.ubuntu-logo {
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.boot-text {
    color: white;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 8px;
    margin-bottom: 40px;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.loading-dots span {
    width: 10px;
    height: 10px;
    background: #E95420;
    border-radius: 50%;
    animation: loadingDot 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0; }
.loading-dots span:nth-child(4) { animation-delay: 0.16s; }
.loading-dots span:nth-child(5) { animation-delay: 0.32s; }

@keyframes loadingDot {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Desktop */
#desktop {
    width: 100%;
    height: 100%;
    /* Official Ubuntu gradient wallpaper */
    background: linear-gradient(135deg, #E95420 0%, #772953 50%, #2C001E 100%);
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Top Bar - GNOME Shell Style */
#top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 26px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    color: white;
    font-size: 12px;
    font-weight: 400;
}

.top-bar-left {
    display: flex;
    align-items: center;
    height: 100%;
}

.top-bar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    height: 100%;
}

.top-bar-right {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Activities Button - Hot Corner Style */
#activities-btn {
    background: none;
    border: none;
    color: white;
    font-family: 'Ubuntu', sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 0 12px;
    height: 100%;
    transition: background 0.15s;
}

#activities-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

#activities-btn.active {
    background: rgba(255, 255, 255, 0.2);
}

/* App Menu Button (shows current app name) */
.app-menu-btn {
    background: none;
    border: none;
    color: white;
    font-family: 'Ubuntu', sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 0 10px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s;
}

.app-menu-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.app-menu-btn .app-icon {
    font-size: 14px;
}

/* Clock/Calendar Button */
#clock-btn {
    background: none;
    border: none;
    color: white;
    font-family: 'Ubuntu', sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    padding: 0 12px;
    height: 100%;
    transition: background 0.15s;
}

#clock-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

#clock-btn.active {
    background: rgba(255, 255, 255, 0.2);
}

/* System Tray Area */
.system-tray {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 4px;
    cursor: pointer;
    transition: background 0.15s;
    gap: 2px;
}

.system-tray:hover {
    background: rgba(255, 255, 255, 0.15);
}

.system-tray.active {
    background: rgba(255, 255, 255, 0.2);
}

.tray-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    opacity: 0.95;
}

.tray-icon svg {
    width: 14px;
    height: 14px;
    fill: white;
}

/* Power Button in tray */
.power-indicator {
    padding: 0 8px;
}

/* System Menu - GNOME Quick Settings Style */
#system-menu {
    position: fixed;
    top: 26px;
    right: 0;
    width: 360px;
    background: #3d3d3d;
    border-radius: 0 0 12px 12px;
    padding: 0;
    z-index: 1001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    color: white;
    overflow: hidden;
}

.system-menu-header {
    padding: 16px 20px;
    background: #2d2d2d;
    font-weight: 500;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Quick Toggles Grid */
.quick-toggles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 12px;
}

.quick-toggle {
    background: #4d4d4d;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-toggle:hover {
    background: #5d5d5d;
}

.quick-toggle.active {
    background: #E95420;
}

.quick-toggle-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.quick-toggle-label {
    font-size: 12px;
    font-weight: 500;
}

/* Sliders */
.system-slider {
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.system-slider-icon {
    font-size: 16px;
    width: 24px;
    text-align: center;
    opacity: 0.8;
}

.system-slider input[type="range"] {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    background: #5d5d5d;
    border-radius: 2px;
    outline: none;
}

.system-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.system-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 13px;
}

.system-menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.system-menu-item-icon {
    font-size: 16px;
    width: 24px;
    text-align: center;
    opacity: 0.8;
}

.system-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 4px 0;
}

/* Power Row at bottom */
.system-menu-power-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: #2d2d2d;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.power-btn {
    background: none;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.15s;
}

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

/* Toggle Switch - GNOME Style */
.toggle-switch {
    width: 40px;
    height: 22px;
    background: #5d5d5d;
    border-radius: 11px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
    margin-left: auto;
}

.toggle-switch.active {
    background: #E95420;
}

.toggle-knob {
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.toggle-switch.active .toggle-knob {
    transform: translateX(18px);
}

/* Calendar Dropdown */
#calendar-dropdown {
    position: fixed;
    top: 26px;
    left: 50%;
    transform: translateX(-50%);
    width: 340px;
    background: #3d3d3d;
    border-radius: 0 0 12px 12px;
    z-index: 1001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    color: white;
    overflow: hidden;
}

.calendar-header {
    padding: 16px 20px;
    text-align: center;
    background: #2d2d2d;
}

.calendar-date {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 4px;
}

.calendar-day {
    font-size: 13px;
    opacity: 0.7;
}

.calendar-grid {
    padding: 12px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 11px;
    opacity: 0.6;
    margin-bottom: 8px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.calendar-day-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.calendar-day-cell:hover {
    background: rgba(255,255,255,0.1);
}

.calendar-day-cell.today {
    background: #E95420;
    font-weight: 600;
}

.calendar-day-cell.other-month {
    opacity: 0.3;
}

/* Notifications Section */
.notifications-section {
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.notifications-header {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    margin-bottom: 8px;
}

.no-notifications {
    text-align: center;
    padding: 20px;
    opacity: 0.5;
    font-size: 13px;
}

/* Dock - Ubuntu Dash Style */
#dock {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 68px;
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    z-index: 100;
    border-radius: 0 12px 12px 0;
    box-shadow: 2px 0 8px rgba(0,0,0,0.3);
}

.dock-item {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    margin: 4px 0;
    position: relative;
}

.dock-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

.dock-item:active {
    transform: scale(0.92);
}

/* Running app indicator dot */
.dock-item.active::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 3px;
    background: #E95420;
    border-radius: 50%;
}

/* Focused window indicator - longer bar */
.dock-item.focused::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: #E95420;
    border-radius: 2px;
}

.dock-icon {
    font-size: 26px;
    transition: transform 0.15s;
}

.dock-item:hover .dock-icon {
    transform: scale(1.1);
}

/* Dock bounce animation for launching */
@keyframes dockBounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-8px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-4px); }
}

.dock-item.launching .dock-icon {
    animation: dockBounce 0.6s ease;
}

/* Tooltip */
.dock-tooltip {
    position: absolute;
    left: 60px;
    background: #3d3d3d;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s, transform 0.15s;
    transform: translateX(-5px);
    box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.dock-item:hover .dock-tooltip {
    opacity: 1;
    transform: translateX(0);
}

.dock-separator {
    width: 36px;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 8px 0;
}

/* Show Apps Button */
.dock-show-apps {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-top: auto;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.dock-show-apps:hover {
    opacity: 1;
}

.dock-show-apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 6px);
    grid-template-rows: repeat(3, 6px);
    gap: 3px;
}

.dock-show-apps-grid span {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 1px;
}

/* Desktop Area */
#desktop-area {
    position: fixed;
    top: 26px;
    left: 68px;
    right: 0;
    bottom: 0;
    padding: 20px;
}

/* Desktop Icons Grid for dragging */
.desktop-icon {
    width: 90px;
    height: 100px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s;
    position: absolute;
    user-select: none;
}

.desktop-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.desktop-icon.selected {
    background: rgba(233, 84, 32, 0.35);
    outline: 1px solid rgba(233, 84, 32, 0.6);
}

.desktop-icon.dragging {
    opacity: 0.7;
    z-index: 1000;
    cursor: grabbing;
}

.desktop-icon .icon {
    font-size: 48px;
    margin-bottom: 4px;
    pointer-events: none;
}

.desktop-icon .icon-label {
    color: white;
    font-size: 11px;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
    word-break: break-word;
    line-height: 1.2;
    max-width: 100%;
    pointer-events: none;
}

/* Context Menu */
#context-menu {
    position: fixed;
    background: rgba(40, 40, 40, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 6px 0;
    min-width: 200px;
    z-index: 2000;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.context-item {
    padding: 8px 16px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.15s;
}

.context-item:hover {
    background: rgba(233, 84, 32, 0.6);
}

.context-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 4px 0;
}

/* Windows Container */
#windows-container {
    position: fixed;
    top: 26px;
    left: 68px;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 500;
}

#windows-container .window {
    pointer-events: auto;
}

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

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

::selection {
    background: #E95420;
    color: white;
}

/* Brightness Overlay */
#brightness-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

/* Enhanced System Menu */
#system-menu {
    position: fixed;
    top: 32px;
    right: 10px;
    width: 320px;
    background: rgba(36, 36, 36, 0.98);
    backdrop-filter: blur(30px);
    border-radius: 12px;
    padding: 8px 0;
    z-index: 1001;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255,255,255,0.1);
    color: white;
}

.system-menu-header {
    padding: 12px 16px;
    font-weight: 500;
    font-size: 14px;
    color: white;
}

.system-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s;
}

.system-menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.menu-label {
    flex: 1;
}

.system-menu-item input[type="range"] {
    width: 100px;
    accent-color: #E95420;
    cursor: pointer;
}

.system-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 6px 0;
}

/* Toggle Switch */
.toggle-switch {
    width: 40px;
    height: 22px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 11px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.toggle-switch.active {
    background: #E95420;
}

.toggle-knob {
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.toggle-switch.active .toggle-knob {
    transform: translateX(18px);
}

/* Dock Tooltips */
.dock-item {
    position: relative;
}

.dock-tooltip {
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s, transform 0.15s;
    z-index: 1000;
}

.dock-tooltip::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: rgba(0, 0, 0, 0.9);
    border-left: none;
}

.dock-item:hover .dock-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(5px);
}

/* Terminal Icon Style */
.terminal-icon {
    background: #300A24;
    width: 32px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 16px;
    color: white;
}

/* Lock Screen */
#lock-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a0a14 0%, #2c001e 50%, #1a0a14 100%);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: fadeIn 0.5s ease;
}

.lock-content {
    text-align: center;
    color: white;
}

.lock-time {
    font-size: 96px;
    font-weight: 200;
    letter-spacing: -2px;
    margin-bottom: 10px;
}

.lock-date {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 60px;
    opacity: 0.8;
}

.lock-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E95420, #C34113);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    margin: 0 auto 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.lock-name {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 30px;
}

.lock-hint {
    font-size: 14px;
    opacity: 0.6;
    animation: pulse 2s infinite;
}

/* Dock bounce animation */
@keyframes dockBounce {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-8px); }
    50% { transform: translateY(-4px); }
    75% { transform: translateY(-6px); }
}

.dock-item.bouncing {
    animation: dockBounce 0.5s ease;
}

/* Window opening from dock animation */
@keyframes windowOpenFromDock {
    from {
        opacity: 0;
        transform: scale(0.3) translateY(100px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.window.opening-from-dock {
    animation: windowOpenFromDock 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Power Dialog */
.power-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.power-dialog {
    background: #2D2D2D;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    min-width: 320px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.power-dialog-title {
    font-size: 20px;
    color: white;
    margin-bottom: 10px;
}

.power-dialog-message {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

.power-dialog-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.power-btn-option {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Ubuntu', sans-serif;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.power-btn-option:hover {
    background: #E95420;
}

.power-btn-option.cancel {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* Shutdown Screen */
#shutdown-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #2C001E;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    animation: fadeIn 0.5s ease;
}

.shutdown-content {
    text-align: center;
}

.shutdown-text {
    color: white;
    font-size: 18px;
    margin-top: 20px;
    opacity: 0.8;
}

/* Activities Overview - GNOME Style */
#activities-overview {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(30px);
    z-index: 900;
    display: grid;
    grid-template-rows: auto 1fr auto;
    animation: activitiesIn 0.25s ease;
}

@keyframes activitiesIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Search Bar */
.activities-search {
    padding: 30px 50px 0;
    display: flex;
    justify-content: center;
}

.activities-search input {
    width: 100%;
    max-width: 600px;
    padding: 14px 20px;
    border: none;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    font-size: 16px;
    font-family: 'Ubuntu', sans-serif;
    outline: none;
    transition: background 0.2s;
}

.activities-search input:focus {
    background: rgba(255, 255, 255, 0.18);
}

.activities-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Window Previews */
.activities-windows {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: center;
    padding: 40px 100px;
    overflow-y: auto;
}

.activity-window-preview {
    width: 280px;
    height: 180px;
    background: #2D2D2D;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    position: relative;
}

.activity-window-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(233, 84, 32, 0.3);
}

.activity-window-preview .preview-header {
    background: #1a1a1a;
    padding: 8px 12px;
    font-size: 11px;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-window-preview .preview-content {
    padding: 12px;
    color: rgba(255,255,255,0.5);
    font-size: 11px;
}

/* Close button on preview hover */
.activity-window-preview .preview-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #E95420;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.activity-window-preview:hover .preview-close {
    opacity: 1;
}

/* Workspace Indicator */
.workspaces-indicator {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.workspace-thumb {
    width: 80px;
    height: 50px;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    border: 2px solid transparent;
}

.workspace-thumb:hover {
    background: rgba(255,255,255,0.12);
}

.workspace-thumb.active {
    border-color: #E95420;
}

.workspace-thumb.add-workspace {
    background: transparent;
    border: 2px dashed rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: rgba(255,255,255,0.3);
}

/* App Grid */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 100px);
    gap: 20px;
    justify-content: center;
    padding: 40px;
}

.app-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s;
}

.app-grid-item:hover {
    background: rgba(255,255,255,0.1);
}

.app-grid-item .app-icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.app-grid-item .app-name {
    color: white;
    font-size: 12px;
    text-align: center;
}

/* Ubuntu App Grid Overlay - Real Ubuntu Style */
.ubuntu-app-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ubuntuGridIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes ubuntuGridIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.ubuntu-app-grid-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-top: 60px;
}

.ubuntu-search-container {
    display: flex;
    justify-content: center;
    padding: 20px 40px 30px;
}

.ubuntu-search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 500px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    transition: all 0.2s;
}

.ubuntu-search-box:focus-within {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 2px rgba(233, 84, 32, 0.3);
}

.ubuntu-search-icon {
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}

.ubuntu-search-box input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: white;
    font-size: 16px;
    font-family: 'Ubuntu', sans-serif;
}

.ubuntu-search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.ubuntu-app-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, 120px);
    gap: 12px;
    justify-content: center;
    align-content: start;
    padding: 20px 80px;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

.ubuntu-app-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 12px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ubuntu-app-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.ubuntu-app-item:active {
    transform: scale(0.95);
}

.ubuntu-app-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    transition: transform 0.2s ease;
}

.ubuntu-app-item:hover .ubuntu-app-icon {
    transform: translateY(-2px);
}

.ubuntu-app-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.ubuntu-app-name {
    color: white;
    font-size: 13px;
    font-weight: 400;
    text-align: center;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.ubuntu-app-grid-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px;
}

.ubuntu-pagination-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s;
}

.ubuntu-pagination-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.ubuntu-pagination-dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

/* Ubuntu App Grid Scrollbar */
.ubuntu-app-grid::-webkit-scrollbar {
    width: 8px;
}

.ubuntu-app-grid::-webkit-scrollbar-track {
    background: transparent;
}

.ubuntu-app-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.ubuntu-app-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Empty state */
.activities-empty {
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 16px;
    padding: 60px;
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    top: 40px;
    right: 20px;
    background: rgba(40, 40, 40, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 10px;
    padding: 12px 20px;
    color: white;
    font-size: 13px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
    max-width: 300px;
}

.notification-toast-icon {
    font-size: 20px;
}

.notification-toast-content {
    flex: 1;
}

.notification-toast-title {
    font-weight: 500;
    margin-bottom: 2px;
}

.notification-toast-message {
    opacity: 0.7;
    font-size: 12px;
}

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

/* Window Snap Indicator */
.snap-indicator {
    position: absolute;
    background: rgba(233, 84, 32, 0.25);
    border: 3px solid rgba(233, 84, 32, 0.6);
    border-radius: 8px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 999;
}

.snap-indicator.visible {
    opacity: 1;
}

/* Improved focus states for accessibility */
.dock-item:focus-visible,
.desktop-icon:focus-visible {
    outline: 2px solid #E95420;
    outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
button, .dock-item, .desktop-icon, .fm-file, .context-item, .system-menu-item {
    transition: all 0.15s ease;
}

/* Better text rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Selection rectangle for desktop */
.selection-rect {
    position: absolute;
    border: 1px solid rgba(233, 84, 32, 0.8);
    background: rgba(233, 84, 32, 0.15);
    pointer-events: none;
    z-index: 100;
}

/* Window state when snapped */
.window.snapped-left,
.window.snapped-right {
    transition: all 0.2s ease;
}

/* Top bar app menu showing focused window */
.app-menu-btn .app-name {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
