
body.webos-body {
    margin: 0;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #1e1e1e;
}

/* Üst bar */
.webos-topbar {
    height: 32px;
    background: rgba(20, 20, 20, 0.9);
    color: #f5f5f5;
    font-size: 13px;
}
.webos-logo {
    font-weight: 600;
}

/* Masaüstü arka plan */
.webos-desktop {
    position: absolute;
    top: 32px;
    bottom: 60px;
    left: 0;
    right: 0;
    background: url('/assets/images/wallpaper-macos.jpg') center/cover no-repeat fixed;
}

/* Masaüstü ikonları */
.webos-icon {
    width: 80px;
    text-align: center;
    color: #fff;
    font-size: 12px;
    position: absolute;
    cursor: grab;
    user-select: none;
}
.webos-icon:active {
    cursor: grabbing;
}
.webos-icon img {
    width: 48px;
    height: 48px;
    display: block;
    margin: 0 auto 4px;
    cursor: pointer;
}

/* Dock */
.webos-dock {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    height: 50px;
    display: flex;
    justify-content: center;
    pointer-events: none;
}
.webos-dock-inner {
    background: rgba(20,20,20,0.85);
    border-radius: 14px;
    padding: 4px 10px;
    display: flex;
    gap: 10px;
    pointer-events: auto;
}
.webos-dock-item {
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    cursor: pointer;
    transition: transform 0.15s ease-out;
}
.webos-dock-item:hover {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    transform: scale(1.35);
}

/* Kullanıcı menüsü */
.webos-user-menu {
    position: relative;
    cursor: pointer;
}
.webos-username {
    font-size: 13px;
}
.webos-user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 20px;
    background: rgba(20,20,20,0.95);
    color: #fff;
    min-width: 180px;
    border-radius: 6px;
    padding: 6px 0;
    z-index: 9999;
}
.webos-user-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.webos-user-dropdown li {
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
}
.webos-user-dropdown li:hover {
    background: rgba(255,255,255,0.1);
}

/* Pencere */
.webos-window {
    position: absolute;
    width: 600px;
    height: 400px;
    background: #2b2b2b;
    border-radius: 8px;
    overflow: hidden;
    animation: windowOpen 0.18s ease-out;
    transform-origin: center;
    box-shadow:
        0 20px 40px rgba(0,0,0,0.45),
        0 10px 20px rgba(0,0,0,0.35),
        0 4px 8px rgba(0,0,0,0.25);
}
.webos-window-header {
    height: 28px;
    background: linear-gradient(to bottom, #3b3b3b, #2a2a2a);
    display: flex;
    align-items: center;
    padding: 0 8px;
    cursor: move; /* sadece başlık alanı sürüklenebilir */
}
.webos-window-buttons {
    display: flex;
    gap: 6px;
    margin-right: 8px;
}
.webos-window-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.webos-window-button.close { background: #ff5f57; }
.webos-window-button.minimize { background: #febc2e; }
.webos-window-button.maximize { background: #28c840; }
.webos-window-title {
    color: #ddd;
    font-size: 12px;
}
.webos-window-body {
    padding: 10px;
    color: #fff;
    font-size: 13px;
    height: calc(100% - 28px);
    overflow: auto;
}

/* Glassmorphism */
.webos-glass {
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Pencere açılış animasyonu */
@keyframes windowOpen {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
/* === MacOS Cursor Set === */

/* Genel imleç */
body {
    cursor: url('/assets/cursors/Normal.cur'), auto;
}

/* Tıklanabilir alanlar: ikonlar, butonlar, dock öğeleri */
a,
.webos-icon img,
.webos-dock-item,
.webos-window-button {
    cursor: url('/assets/cursors/Link.cur'), pointer;
}

/* Metin alanları */
input,
textarea,
.webos-window-body {
    cursor: url('/assets/cursors/Text Select.cur'), text;
}

/* Pencere başlığı (taşıma alanı) */
.webos-window-header {
    cursor: url('/assets/cursors/Move.cur'), move;
}

/* Masaüstü ikonları (sürükleme başlangıcı) */
.webos-icon {
    cursor: url('/assets/cursors/!Bonus Grab.cur'), grab;
}
.webos-icon:active {
    cursor: url('/assets/cursors/!Bonus Grabbing.cur'), grabbing;
}

/* Kullanılamayan alanlar */
.disabled,
.webos-user-dropdown li.disabled {
    cursor: url('/assets/cursors/!Bonus Unavailable.cur'), not-allowed;
}

/* Yükleniyor / bekleniyor durumu */
.loading {
    cursor: url('/assets/cursors/Busy.cur'), wait;
}

/* Yardım ikonları */
.help-icon {
    cursor: url('/assets/cursors/Help.cur'), help;
}

/* Hassas seçim alanı */
.precision-area {
    cursor: url('/assets/cursors/Precision Select.cur'), crosshair;
}

/* Yeniden boyutlandırma alanları */
.resize-horizontal {
    cursor: url('/assets/cursors/Horizontal Resize.cur'), ew-resize;
}
.resize-vertical {
    cursor: url('/assets/cursors/Vertical Resize.cur'), ns-resize;
}
.resize-diagonal-1 {
    cursor: url('/assets/cursors/Diagonal Resize 1.cur'), nwse-resize;
}
.resize-diagonal-2 {
    cursor: url('/assets/cursors/Diagonal Resize 2.cur'), nesw-resize;
}

/* El yazısı alanı */
.handwriting-area {
    cursor: url('/assets/cursors/Handwriting.cur'), default;
}

/* Dock ikonları */
.webos-dock-app {
    width: 48px;
    height: 48px;
    margin: 0 6px;
    cursor: pointer;
    transition: transform 0.15s ease-out;
}
.webos-dock-app:hover {
    transform: scale(1.25);
}
.webos-dock-app img {
    width: 100%;
    height: 100%;
    display: block;
}
/* Dock bounce animasyonu */
@keyframes dockBounce {
    0%   { transform: translateY(0); }
    30%  { transform: translateY(-12px); }
    60%  { transform: translateY(0); }
    80%  { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

.webos-dock-app.bounce {
    animation: dockBounce 0.6s ease;
}
/* Dock aktif uygulama göstergesi */
.webos-dock-app {
    position: relative;
}

.webos-dock-app::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.webos-dock-app.active::after {
    opacity: 1;
}