@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
}

:root {
    --menu-bar-height: 28px;
    --dock-height: 68px;
    --dock-icon-size: 48px;
    --window-border-radius: 10px;
    --accent-color: #007AFF;
    --titlebar-height: 38px;
    --sidebar-width: 180px;
    --glass-bg: rgba(236, 236, 236, 0.72);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow-window: 0 22px 70px rgba(0,0,0,0.25), 0 0 0 0.5px rgba(0,0,0,0.1);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--font-family);
    font-size: 13px;
    -webkit-font-smoothing: antialiased;
}

/* ========== LOGIN SCREEN ========== */

#login-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #533483 75%, #e94560 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.login-user {
    color: white;
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 4px;
}

#login-password {
    width: 240px;
    height: 36px;
    border-radius: 18px;
    border: none;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 14px;
    font-family: var(--font-family);
    padding: 0 16px;
    text-align: center;
    outline: none;
}

#login-password::placeholder {
    color: rgba(255,255,255,0.5);
}

#login-password:focus {
    background: rgba(255,255,255,0.25);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.15);
}

#login-btn {
    width: 240px;
    height: 36px;
    border-radius: 18px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: white;
    font-size: 14px;
    font-family: var(--font-family);
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

#login-btn:hover {
    background: rgba(255,255,255,0.3);
}

#login-error {
    color: #FF6B6B;
    font-size: 12px;
    margin-top: 4px;
}

.login-hint {
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    margin-top: 8px;
}

/* ========== DESKTOP ========== */

#desktop {
    width: 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #2c2c2c;
}

/* ========== MENU BAR ========== */

#menu-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--menu-bar-height);
    background: rgba(30, 30, 30, 0.65);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 10000;
    color: white;
    font-size: 13px;
    font-weight: 400;
    border-bottom: 0.5px solid rgba(255,255,255,0.1);
}

.menu-left, .menu-right {
    display: flex;
    align-items: center;
    gap: 0;
    height: 100%;
}

.menu-item {
    padding: 0 10px;
    height: 100%;
    display: flex;
    align-items: center;
    cursor: default;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 13px;
}

.menu-item:hover { background: rgba(255,255,255,0.15); }
.menu-bold { font-weight: 600; }
#apple-menu { padding: 0 10px; }
#apple-menu svg { display: block; }

.menu-icon {
    padding: 0 6px;
    height: 100%;
    display: flex;
    align-items: center;
    cursor: default;
    border-radius: 4px;
    color: rgba(255,255,255,0.85);
}

.menu-icon:hover { background: rgba(255,255,255,0.15); }
#menu-clock { font-variant-numeric: tabular-nums; font-weight: 500; font-size: 12.5px; }

/* ========== DESKTOP ICONS ========== */

#desktop-icons {
    position: absolute;
    top: 40px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1;
}

.desktop-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    padding: 6px;
    border-radius: 6px;
    cursor: default;
    text-align: center;
}

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

.desktop-icon .icon-image {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.desktop-icon span {
    font-size: 11px;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
    word-wrap: break-word;
    line-height: 1.2;
}

/* ========== DOCK ========== */

#dock {
    position: fixed;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 0 4px;
}

.dock-container {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    padding: 4px 8px;
    background: rgba(50,50,50,0.55);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 16px;
    border: 0.5px solid rgba(255,255,255,0.2);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.25,0.46,0.45,0.94);
    position: relative;
    padding: 2px 3px;
}

.dock-item:hover { transform: translateY(-8px) scale(1.3); }
.dock-item:hover .dock-icon { box-shadow: 0 8px 25px rgba(0,0,0,0.4); }

.dock-item .dock-icon {
    width: var(--dock-icon-size);
    height: var(--dock-icon-size);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: box-shadow 0.2s ease;
}

.dock-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    margin-top: 2px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.dock-item.active .dock-dot { opacity: 1; }

.dock-separator {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    margin: 0 4px;
    align-self: center;
}

/* ========== WINDOWS ========== */

#windows-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    pointer-events: none;
}

.window {
    position: absolute;
    border-radius: var(--window-border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-window);
    pointer-events: all;
    display: flex;
    flex-direction: column;
    min-width: 240px;
    min-height: 150px;
    animation: windowOpen 0.25s cubic-bezier(0.16,1,0.3,1);
    will-change: transform;
}

@keyframes windowOpen {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.window.closing { animation: windowClose 0.2s cubic-bezier(0.16,1,0.3,1) forwards; }

@keyframes windowClose {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.92); }
}

.window.minimizing { animation: windowMinimize 0.4s cubic-bezier(0.4,0,0.2,1) forwards; }

@keyframes windowMinimize {
    to { opacity: 0; transform: scale(0.3) translateY(200px); }
}

.window.maximizing { transition: all 0.3s cubic-bezier(0.16,1,0.3,1); }
.window.focused { z-index: 200; }
.window:not(.focused) { opacity: 0.98; }

.window-titlebar {
    height: var(--titlebar-height);
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    display: flex;
    align-items: center;
    padding: 0 12px;
    cursor: default;
    position: relative;
    border-bottom: 0.5px solid rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.window.focused .window-titlebar { background: rgba(232,232,232,0.9); }
.window:not(.focused) .window-titlebar { background: rgba(246,246,246,0.9); }

.traffic-lights {
    display: flex;
    gap: 8px;
    align-items: center;
    z-index: 10;
}

.traffic-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: transparent;
    transition: color 0.1s;
}

.traffic-light:hover { color: rgba(0,0,0,0.5); }
.traffic-light.close { background: #FF5F57; border: 0.5px solid rgba(0,0,0,0.12); }
.traffic-light.minimize { background: #FEBC2E; border: 0.5px solid rgba(0,0,0,0.12); }
.traffic-light.maximize { background: #28C840; border: 0.5px solid rgba(0,0,0,0.12); }

.window:not(.focused) .traffic-light {
    background: #D4D4D4;
    border-color: rgba(0,0,0,0.08);
}

.window:not(.focused) .traffic-light:hover { color: transparent; }

.window-title {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    pointer-events: none;
    letter-spacing: -0.01em;
}

.window:not(.focused) .window-title { color: #999; }

.window-body {
    flex: 1;
    background: white;
    overflow: auto;
    position: relative;
}

.resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 14px;
    height: 14px;
    cursor: nwse-resize;
    z-index: 5;
}

/* ========== CONTEXT MENU ========== */

#context-menu {
    position: fixed;
    background: rgba(246,246,246,0.85);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 6px;
    min-width: 200px;
    padding: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2), 0 0 0 0.5px rgba(0,0,0,0.15);
    z-index: 20000;
    font-size: 13px;
}

.context-menu-item {
    padding: 4px 12px;
    border-radius: 4px;
    cursor: default;
    color: #222;
}

.context-menu-item:hover { background: var(--accent-color); color: white; }
.context-menu-divider { height: 1px; background: rgba(0,0,0,0.1); margin: 4px 8px; }

/* ========== SPOTLIGHT ========== */

#spotlight {
    position: fixed;
    top: 22%;
    left: 50%;
    transform: translateX(-50%);
    width: 560px;
    background: rgba(245,245,245,0.88);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25), 0 0 0 0.5px rgba(0,0,0,0.1);
    z-index: 15000;
    overflow: hidden;
    animation: spotlightOpen 0.2s cubic-bezier(0.16,1,0.3,1);
}

@keyframes spotlightOpen {
    from { opacity: 0; transform: translateX(-50%) scale(0.95); }
    to { opacity: 1; transform: translateX(-50%) scale(1); }
}

.spotlight-input-container {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    gap: 8px;
    border-bottom: 0.5px solid rgba(0,0,0,0.1);
}

.spotlight-input-container input {
    flex: 1;
    border: none;
    background: none;
    font-size: 20px;
    font-family: var(--font-family);
    font-weight: 300;
    outline: none;
    color: #222;
}

.spotlight-input-container input::placeholder { color: #999; }

#spotlight-results { max-height: 340px; overflow-y: auto; }

.spotlight-result {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    cursor: default;
    border-radius: 6px;
    margin: 2px 4px;
}

.spotlight-result:hover, .spotlight-result.selected { background: var(--accent-color); color: white; }
.spotlight-result-text { font-size: 14px; }

/* ========== LAUNCHPAD ========== */

#launchpad-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInBg 0.25s ease;
}

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

#launchpad-grid {
    display: grid;
    grid-template-columns: repeat(7, 90px);
    gap: 30px 20px;
    padding: 40px;
}

.launchpad-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.launchpad-icon:hover { transform: scale(1.08); }
.launchpad-icon:active { transform: scale(0.95); }

.launchpad-icon-img {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.launchpad-icon-label {
    color: white;
    font-size: 11px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    text-align: center;
}

/* ========== NOTIFICATION ========== */

#notification {
    position: fixed;
    top: 36px;
    right: 12px;
    background: rgba(245,245,245,0.9);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 20000;
    animation: slideInRight 0.3s cubic-bezier(0.16,1,0.3,1);
    max-width: 320px;
}

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

.notification-content { font-size: 13px; color: #333; }
.hidden { display: none !important; }

/* ========== FINDER (REAL FS) ========== */

.finder-layout {
    display: flex;
    height: 100%;
}

.finder-sidebar {
    width: 170px;
    background: rgba(240,240,240,0.95);
    border-right: 0.5px solid rgba(0,0,0,0.1);
    padding: 8px 0;
    flex-shrink: 0;
    overflow-y: auto;
}

.finder-sidebar-title {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    padding: 4px 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.finder-sidebar-item {
    padding: 5px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: default;
    border-radius: 5px;
    margin: 1px 6px;
    font-size: 12px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
}

.finder-sidebar-item:hover { background: rgba(0,0,0,0.05); }
.finder-sidebar-item.active { background: var(--accent-color); color: white; }
.finder-sidebar-icon { flex-shrink: 0; font-size: 13px; }
.finder-sidebar-label { overflow: hidden; text-overflow: ellipsis; }

.finder-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.finder-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    background: rgba(248,248,248,0.95);
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
    flex-shrink: 0;
    min-height: 32px;
}

.finder-breadcrumb {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 12px;
    overflow: hidden;
    flex-wrap: nowrap;
}

.finder-breadcrumb-item {
    color: var(--accent-color);
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    white-space: nowrap;
}

.finder-breadcrumb-item:hover { background: rgba(0,122,255,0.1); }
.finder-breadcrumb-sep { color: #ccc; }

.finder-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.finder-action-btn {
    background: none;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 5px;
    padding: 2px 8px;
    font-size: 12px;
    cursor: pointer;
    color: #555;
}

.finder-action-btn:hover { background: rgba(0,0,0,0.05); }

.finder-content {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.finder-loading, .finder-error, .finder-empty {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 13px;
}

.finder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
    gap: 4px;
}

.finder-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    border-radius: 6px;
    cursor: default;
    text-align: center;
    transition: background 0.1s;
}

.finder-item:hover { background: rgba(0,0,0,0.04); }
.finder-item.selected { background: rgba(0,122,255,0.15); }

.finder-item-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 4px;
}

.finder-item-name {
    font-size: 11px;
    color: #333;
    word-break: break-word;
    line-height: 1.2;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.finder-item-size {
    font-size: 10px;
    color: #999;
    margin-top: 1px;
}

/* ========== TERMINAL ========== */

.terminal-body {
    background: rgba(30,30,30,0.95);
    color: #00FF00;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    padding: 8px 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.terminal-output {
    flex: 1;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.4;
    padding-bottom: 4px;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    color: #ccc;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    margin-top: 2px;
}

.terminal-prompt {
    color: #00BFFF;
    white-space: pre;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
}

.terminal-input {
    background: none;
    border: none;
    color: #00FF00;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    outline: none;
    flex: 1;
    caret-color: #00FF00;
}

/* ========== TEXT EDITOR ========== */

.textedit-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.textedit-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(248,248,248,0.95);
    border-bottom: 0.5px solid rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.textedit-btn {
    background: none;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 12px;
    font-family: var(--font-family);
    cursor: pointer;
    color: #555;
}

.textedit-btn:hover { background: rgba(0,0,0,0.05); }

.textedit-filename {
    margin-left: 8px;
    font-size: 12px;
    color: #888;
}

.textedit-modified {
    font-size: 14px;
    color: #FF9500;
    margin-left: 4px;
}

.textedit-editor {
    flex: 1;
    border: none;
    background: #1E1E1E;
    color: #D4D4D4;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    padding: 12px;
    resize: none;
    outline: none;
    line-height: 1.5;
    tab-size: 4;
    -webkit-user-select: text;
    user-select: text;
}

/* ========== CALCULATOR ========== */

.calc-display {
    background: #1C1C1E;
    padding: 14px 18px;
    text-align: right;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.calc-expression { font-size: 16px; color: #888; min-height: 22px; }

.calc-result {
    font-size: 40px;
    font-weight: 300;
    color: white;
    line-height: 1.1;
    letter-spacing: -1px;
}

.calc-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #333;
}

.calc-btn {
    padding: 16px;
    font-size: 20px;
    font-family: var(--font-family);
    font-weight: 400;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.1s;
}

.calc-btn:active { filter: brightness(1.3); }
.calc-btn-num { background: #505050; color: white; }
.calc-btn-op { background: #FF9500; color: white; font-size: 24px; }
.calc-btn-func { background: #8E8E93; color: #1C1C1E; }
.calc-btn-zero { grid-column: span 2; justify-content: flex-start; padding-left: 24px; }

/* ========== SYSTEM MONITOR ========== */

.monitor-layout { padding: 16px; height: 100%; overflow-y: auto; }
.monitor-loading { text-align: center; padding: 40px; color: #888; }

.monitor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.monitor-card {
    background: #f5f5f7;
    border-radius: 10px;
    padding: 14px;
}

.monitor-card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
}

.monitor-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 12px;
}

.monitor-row span:first-child { color: #888; }
.monitor-row span:last-child { color: #333; font-weight: 500; }

.monitor-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin-bottom: 8px;
    overflow: hidden;
}

.monitor-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* ========== SAFARI ========== */

.safari-toolbar {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background: rgba(245,245,245,0.95);
    border-bottom: 0.5px solid rgba(0,0,0,0.1);
    gap: 8px;
}

.safari-nav-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 16px;
}

.safari-nav-btn:hover { background: rgba(0,0,0,0.06); }
.safari-nav-btn:disabled { color: #ccc; }

.safari-url-bar {
    flex: 1;
    height: 28px;
    border-radius: 6px;
    background: rgba(0,0,0,0.05);
    border: 0.5px solid rgba(0,0,0,0.08);
    padding: 0 12px;
    font-size: 12.5px;
    font-family: var(--font-family);
    text-align: center;
    color: #333;
    outline: none;
}

.safari-url-bar:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0,122,255,0.15);
    background: white;
}

.safari-content {
    flex: 1;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.safari-homepage { text-align: center; color: #333; }
.safari-homepage h1 { font-size: 48px; font-weight: 300; margin-bottom: 20px; }

/* ========== SETTINGS ========== */

.settings-layout { display: flex; height: 100%; }

.settings-sidebar {
    width: 200px;
    background: rgba(240,240,240,0.95);
    border-right: 0.5px solid rgba(0,0,0,0.1);
    padding: 8px;
    overflow-y: auto;
    flex-shrink: 0;
}

.settings-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: default;
    font-size: 13px;
    color: #333;
}

.settings-item:hover { background: rgba(0,0,0,0.05); }
.settings-item.active { background: var(--accent-color); color: white; }

.settings-item-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.settings-content { flex: 1; padding: 24px; overflow-y: auto; }
.settings-group { margin-bottom: 24px; }
.settings-group h2 { font-size: 22px; font-weight: 600; margin-bottom: 16px; color: #222; }

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 0.5px solid rgba(0,0,0,0.06);
}

.settings-row-label { font-size: 13px; color: #333; }

.toggle-switch {
    width: 36px;
    height: 20px;
    border-radius: 10px;
    background: #D1D1D6;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
}

.toggle-switch.on { background: #34C759; }

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: left 0.2s;
}

.toggle-switch.on::after { left: 18px; }

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

.wallpaper-option {
    height: 80px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    background-size: cover;
    background-position: center;
}

.wallpaper-option:hover { border-color: rgba(0,122,255,0.5); }
.wallpaper-option.selected { border-color: var(--accent-color); }

/* ========== SCROLLBARS ========== */

::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.3); }
