﻿@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500&family=Geist:wght@300;400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: 'Geist', 'Segoe UI', sans-serif;
}

body {
    display: grid;
    grid-template-rows: 92vh 8vh;
    background: #0a0a0a;
}

/* ── Screen ─────────────────────────────────────────────────────────────── */
.screen {
    overflow: hidden;
    height: 100%;
    width: 100%;
    position: relative;
    background: radial-gradient(ellipse at 20% 50%, rgba(30, 60, 120, 0.25) 0%, transparent 60%), radial-gradient(ellipse at 80% 20%, rgba(20, 80, 80, 0.2) 0%, transparent 55%), radial-gradient(ellipse at 60% 80%, rgba(60, 20, 80, 0.15) 0%, transparent 50%), #0e0e12;
}

/* ── Taskbar ─────────────────────────────────────────────────────────────── */
.taskbar {
    display: grid;
    grid-template-columns: 56px 1fr 160px;
    align-items: center;
    height: 100%;
    background: rgba(12, 12, 14, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 0 8px;
    gap: 8px;
}

/* Start button */
.taskbar-start {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
    justify-self: center;
}

    .taskbar-start:hover {
        background: rgba(255,255,255,0.08);
    }

    .taskbar-start:active {
        background: rgba(255,255,255,0.12);
    }

/* Search */
.taskbar-search-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    height: 100%;
}

    .taskbar-search-wrap > * {
        flex-shrink: 0;
    }

.taskbar-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 34px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: rgba(255,255,255,0.4);
    flex-shrink: 0;
}

.webos_taskbar_input {
    height: 34px;
    width: 280px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-right: none;
    border-left: none;
    color: rgba(255,255,255,0.9);
    font-family: 'Geist', sans-serif;
    font-size: 13px;
    padding: 0 10px;
    outline: none;
    caret-color: #4a9eff;
    transition: background 0.15s, border-color 0.15s;
}

    .webos_taskbar_input::placeholder {
        color: rgba(255,255,255,0.25);
    }

    .webos_taskbar_input:focus {
        background: rgba(255,255,255,0.07);
        border-color: rgba(74,158,255,0.3);
    }

.suggestion {
    height: 34px;
    min-width: 36px;
    max-width: 160px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-left: none;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: 12px;
    color: rgba(255,255,255,0.25);
    font-family: 'Geist Mono', monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: default;
    transition: color 0.15s;
}

    .suggestion:not(:empty) {
        color: rgba(74,158,255,0.7);
    }

/* Tray */
.taskbar-tray {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    height: 100%;
}

.tray-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
    color: rgba(255,255,255,0.6);
}

    .tray-item:hover {
        background: rgba(255,255,255,0.07);
    }

.tray-icon {
    width: 36px;
    height: 36px;
    padding: 0;
}

#tray-clock {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    line-height: 1.2;
    font-family: 'Geist', sans-serif;
}

#tray-date {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    line-height: 1.2;
    font-family: 'Geist', sans-serif;
}

/* ── Start Menu ──────────────────────────────────────────────────────────── */
.start-menu {
    position: fixed;
    bottom: 8vh;
    left: 8px;
    width: 280px;
    background: rgba(16, 16, 20, 0.95);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
    z-index: 9999;
    box-shadow: 0 24px 48px rgba(0,0,0,0.6);
    transform-origin: bottom left;
    transition: opacity 0.15s, transform 0.15s;
}

    .start-menu.hidden {
        opacity: 0;
        pointer-events: none;
        transform: scale(0.96) translateY(6px);
    }

.start-menu-header {
    padding: 16px 16px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.start-menu-title {
    font-size: 11px;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.3);
    font-family: 'Geist Mono', monospace;
    font-weight: 400;
}

.start-menu-apps {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 320px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.start-app-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.12s;
    color: rgba(255,255,255,0.75);
    font-size: 13px;
}

    .start-app-item:hover {
        background: rgba(255,255,255,0.07);
        color: rgba(255,255,255,0.95);
    }

    .start-app-item:active {
        background: rgba(255,255,255,0.1);
    }

.start-app-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(74,158,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
