* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, sans-serif;
    color: #ffffff;
    user-select: none;
    background-color: #000000;
}

#desktop-wallpaper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
}

#desktop-wallpaper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#os-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(20, 10, 8, 0.45);
    backdrop-filter: blur(25px) saturate(140%);
    -webkit-backdrop-filter: blur(25px) saturate(140%);
    height: 44px;
    padding: 0 22px;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 9999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

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

.brand-badge {
    background-color: #e53935;
    font-weight: 900;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(229, 57, 53, 0.4);
}

.menu-trigger {
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

.menu-trigger.bold {
    font-weight: 700;
    color: #ffffff;
}

.status-item {
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

#desktop-apps-container {
    position: absolute;
    top: 76px;
    left: 24px;
    display: flex;
    flex-direction: column;
    gap: 26px;
    z-index: 100;
}

.desktop-shortcut {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    cursor: pointer;
}

.shortcut-icon {
    width: 56px;
    height: 56px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s cubic-bezier(0.2, 1, 0.2, 1);
}

.shortcut-icon svg {
    width: 26px;
    height: 26px;
    color: #ffffff;
}

.desktop-shortcut:hover .shortcut-icon {
    transform: scale(1.06) translateY(-2px);
}

.shortcut-label {
    margin-top: 9px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.85);
    text-align: center;
}

.red-box { background: linear-gradient(135deg, #ff4b53, #e51c23); }
.green-box { background: linear-gradient(135deg, #11998e, #38ef7d); }
.yellow-box { background: linear-gradient(135deg, #f12711, #f5af19); }

#desktop-widgets-sidebar {
    position: absolute;
    top: 76px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 270px;
    z-index: 100;
}

.glass-card {
    background: rgba(28, 16, 14, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.widget-meta-title {
    font-size: 10px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.8px;
}

.widget-meta-date {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
}

.clock-display-engine {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.clock-time-string {
    font-size: 46px;
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1;
}

.clock-meridiem-stack {
    display: flex;
    flex-direction: column;
}

.meridiem-indicator {
    font-size: 14px;
    font-weight: 800;
}

.day-indicator {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.stats-table {
    display: flex;
    flex-direction: column;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 14px;
}

.stat-row:last-child { border-bottom: none; }

.stat-label-item {
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    gap: 8px;
}

.font-bold { font-weight: 700; }

.glass-panel-window {
    background: rgba(34, 18, 16, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}

.window {
    position: absolute;
    width: 480px;
}

.windowheader {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: grab;
}

.windowheader:active { cursor: grabbing; }

.window-control-dots {
    display: flex;
    gap: 8px;
    width: 60px;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.close-dot { background-color: #ff5f56; cursor: pointer; }
.minimize-dot { background-color: #ffbd2e; }
.maximize-dot { background-color: #27c93f; }

.window-title-string {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.window-header-balancer { width: 60px; }
.window-body-wrapper { padding: 18px; }

.window-body-wrapper.scrollable-body {
    height: 440px;
    overflow-y: auto;
}


.app-hero-header {
    position: relative;
    height: 160px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
}

.app-hero-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-hero-card-tint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(15deg, rgba(0,0,0,0.9) 20%, transparent 80%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
}

.app-welcome-tag {
    font-size: 10px;
    font-weight: 800;
    color: #ffcc00;
    letter-spacing: 1.5px;
}

.app-main-title {
    font-size: 26px;
    font-weight: 800;
}

.app-text-paragraph {
    font-size: 13.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 18px;
}

.app-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.grid-action-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-align: left;
    color: inherit;
}

.grid-action-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.action-icon-pill { font-size: 22px; }
.action-meta-wrapper { display: flex; flex-direction: column; }
.action-heading { font-size: 13px; font-weight: 600; }
.action-subheading { font-size: 10.5px; color: rgba(255, 255, 255, 0.45); }

.settings-title { font-size: 24px; font-weight: 700; }
.settings-subtitle { font-size: 13px; color: rgba(255, 255, 255, 0.5); margin: 4px 0 22px 0; }
.settings-block { margin-bottom: 24px; }
.block-label { font-size: 10px; font-weight: 800; color: rgba(255,255,255,0.4); letter-spacing: 1px; margin-bottom: 12px; }
.block-description { font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 10px; }

.accent-color-row { display: flex; gap: 14px; }
.color-swatch-circle { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; border: 2.5px solid transparent; }
.color-swatch-circle.picked { border-color: #ffffff; }

.wallpaper-selection-grid, .motion-selection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.motion-selection-grid { grid-template-columns: repeat(2, 1fr); }

.thumbnail-item, .motion-thumbnail-item {
    position: relative;
    height: 84px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.08);
}
.thumbnail-item img, .motion-thumbnail-item img { width: 100%; height: 100%; object-fit: cover; }
.thumbnail-item.active { border-color: #ffffff; }
.video-pill-tag { position: absolute; bottom: 6px; right: 6px; font-size: 8px; font-weight: 800; background: rgba(0,0,0,0.75); padding: 3px 6px; border-radius: 5px; }

.custom-url-flex-row { display: flex; gap: 10px; }
.input-field-dark { flex: 1; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; color: #fff; padding: 0 14px; font-size: 13px; }
.primary-btn { background: #e53935; border: none; color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; cursor: pointer; }
.secondary-btn { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1); color: #fff; padding: 10px 14px; border-radius: 8px; cursor: pointer; }
.build-info-card { background: rgba(0,0,0,0.18); border-radius: 14px; padding: 14px; margin-top: 24px; border: 1px solid rgba(255,255,255,0.04); }
.build-info-card h4 { font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.build-info-card p { font-size: 11px; color: rgba(255,255,255,0.4); }

#system-dock-dockbar {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
}

.dock-inner-frame {
    background: rgba(32, 16, 12, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px) saturate(130%);
    -webkit-backdrop-filter: blur(30px) saturate(130%);
    padding: 10px 12px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55);
}

.dock-app-unit {
    position: relative;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-app-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.dock-app-icon svg {
    width: 22px;
    height: 22px;
    color: #ffffff;
}

.dock-app-unit:hover {
    transform: scale(1.18) translateY(-6px);
}

.dock-app-unit.process-active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 4px #ffffff;
}

.dock-divider-line {
    width: 1px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.15);
    margin: 0 4px;
}

.dark-grey-box     { background-color: rgba(45, 45, 48, 0.8); }
.gold-orange-box   { background: linear-gradient(135deg, #ff9100, #ff6d00); }
.crimson-red-box   { background: linear-gradient(135deg, #ff1744, #d50000); }
.emerald-green-box { background: linear-gradient(135deg, #00e676, #00c853); }
.magenta-purple-box{ background: linear-gradient(135deg, #d500f9, #aa00ff); }
.cyan-blue-box     { background: linear-gradient(135deg, #00b0ff, #0091ea); }
.slate-grey-box    { background-color: rgba(58, 64, 74, 0.9); }
.pure-gold-box     { background: linear-gradient(135deg, #ffc400, #ffab00); }
.deep-grey-box     { background-color: rgba(115, 115, 118, 0.7); }
