* {
    box-sizing: border-box;
}

body {
    margin: 0;
    height: 100vh;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", Arial, sans-serif;
    background:
        radial-gradient(circle at 20% 30%, #ff8a00, transparent 30%),
        radial-gradient(circle at 80% 20%, #7c3aed, transparent 35%),
        radial-gradient(circle at 55% 80%, #007aff, transparent 40%),
        linear-gradient(135deg, #0f172a, #020617);
    color: #fff;
}

.desktop {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* MENU BAR */
.menu-bar {
    background: rgba(255,255,255,.22);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    user-select: none;
    position: relative;
    z-index: 10000;
	color: white;
}

.menu-left,
.menu-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.apple {
    font-size: 18px;
    font-weight: bold;
}

.menu-bar strong {
    font-weight: 700;
}
	
.menu-item {
    position: relative;
    height: 30px;
    display: flex;
    align-items: center;
    padding: 0 6px;
    border-radius: 5px;
    cursor: default;
}

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

.menu-right .bi {
   font-size: 1rem;
}


.dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: -8px;

    min-width: 240px;
    padding: 6px;

    background: rgba(250, 250, 252, 0.78);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);

    border: 1px solid rgba(255,255,255,.6);
    border-radius: 14px;

    box-shadow:
        0 20px 60px rgba(0,0,0,.22),
        0 1px 0 rgba(255,255,255,.7) inset;

    display: none;
    z-index: 20000;

    color: #111;
}

.dropdown-menu.right {
    left: auto;
    right: -8px;
}

.menu-item:hover > .dropdown-menu {
    display: block;
}

.dropdown-item {
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 10px;

    border-radius: 7px;

    font-size: 13px;
    font-weight: 400;
    letter-spacing: -.01em;

    color: #111827;
    white-space: nowrap;

    transition: all .12s ease;
}

.dropdown-item:hover {
    background: linear-gradient(
        180deg,
        #0a84ff,
        #0071e3
    );

    color: #fff;
}

.dropdown-item.disabled {
    color: rgba(17,17,17,.35);
    pointer-events: none;
}

.dropdown-divider {
    height: 1px;

    margin: 6px 8px;

    background: rgba(60,60,67,.15);
}

.dropdown-item .shortcut {
    margin-left: 24px;

    font-size: 12px;
    font-weight: 500;

    opacity: .65;
}

.dropdown-item:hover .shortcut {
    opacity: 1;
}

.apple-menu .dropdown-menu {
    min-width: 270px;
}



/* DESKTOP ICONS */
.desktop-icons {
    position: static;
}

.desktop-icon {
    position: absolute;
    z-index: 100;
    width: 82px;
    text-align: center;
    font-size: 12px;
    color: #fff;
    cursor: grab;
    user-select: none;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .65);
    text-align: center;
}

.desktop-icon:active {
    cursor: grabbing;
}

.desktop-icon .icon {
    position: relative;
    width: 100%;
	margin-bottom: 5px;
}

.desktop-icon span {
    display: block;
	font-weight: bold;
}

/* WINDOW LAYER */
#window-layer {
    position: absolute;
    inset: 30px 0 0;
    pointer-events: none;
    z-index: 20;
}

#window-layer .window {
    pointer-events: auto;
}

/* WINDOW */
.window {
    position: absolute;

    width: 760px;
    height: 480px;

    left: calc((100vw - 760px) / 2);
    top: calc((100vh - 480px) / 2);
	
    background: rgba(246,246,247,.84);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    color: #111827;
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 35px 90px rgba(0,0,0,.38),
        inset 0 0 0 1px rgba(255,255,255,.45);
    transition:
        opacity .2s ease,
        transform .2s ease,
        width .2s ease,
        height .2s ease;
}

.window {
    z-index: 1001;
}

.window.closed {
    display: none;
}

.window.minimized {
    transform: scale(.1);
    opacity: 0;
    pointer-events: none !important;
}

.window.maximized {
    top: 38px !important;
    left: 10px !important;
    width: calc(100vw - 20px) !important;
    height: calc(100vh - 140px) !important;
}

.window-header {
    height: 46px;
    background: rgba(235,235,237,.9);
    display: flex;
    align-items: center;
    padding: 0 14px;
    cursor: grab;
    user-select: none;
    position: relative;
}

.window-header:active {
    cursor: grabbing;
}

.window-controls {
    display: flex;
    gap: 8px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    display: block;
}

.red { background: #ff5f57; }
.yellow { background: #ffbd2e; }
.green { background: #28c840; }

.dot::before {
    opacity: 0;
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 8px;
    font-weight: 700;
    color: rgba(0,0,0,.65);
    transition: opacity .15s ease;
}

.window-controls:hover .dot::before {
    opacity: 1;
}

.red::before { content: "×"; }
.yellow::before { content: "−"; }
.green::before { content: "+"; }

.window-title {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 13px;
    color: #4b5563;
    font-weight: 600;
    pointer-events: none;
}

.window-body {
    display: flex;
    height: calc(100% - 46px);
}

.sidebar {
    width: 210px;
    background: rgba(229,231,235,.65);
    padding: 18px 12px;
}

.sidebar-title {
    font-size: 12px;
    color: #6b7280;
    font-weight: 700;
    margin: 12px 10px;
}

.sidebar-item {
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 14px;
    margin-bottom: 4px;
}

.sidebar-item.active {
    background: rgba(0,122,255,.18);
    color: #007aff;
    font-weight: 700;
}

.content {
    flex: 1;
    padding: 24px;
    background: rgba(255,255,255,.5);
    overflow: auto;
}

.content.w-100 {
    width: 100%;
}

.content h1 {
    margin: 0 0 18px;
    font-size: 28px;
    letter-spacing: -0.5px;
}

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

.card {
    background: rgba(255,255,255,.78);
    border-radius: 16px;
    padding: 18px;
    min-height: 130px;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

.card span {
    font-size: 28px;
}

.card h3 {
    margin: 12px 0 6px;
    font-size: 17px;
}

.card p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.4;
}

/* WIDGET */
.widget {
    position: absolute;
    right: 130px;
    top: 130px;
    width: 260px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,.28);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255,255,255,.35);
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
    z-index: 5;
}

.widget h3 {
    margin: 0 0 6px;
    font-size: 16px;
}

.widget .temp {
    font-size: 46px;
    font-weight: 700;
}

/* DOCK */
.dock {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    min-height: 78px;
    padding: 11px 15px;
    display: flex;
    align-items: end;
    gap: 13px;
    background: rgba(255,255,255,.24);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 26px;
    box-shadow: 0 25px 55px rgba(0,0,0,.35);
    z-index: 10001;
}

.dock-app {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    font-size: 28px;
    background: linear-gradient(135deg, #fff, #dbeafe);
    box-shadow:
        inset 0 1px 1px rgba(255,255,255,.9),
        0 8px 18px rgba(0,0,0,.25);
    transition: .18s ease;
    position: relative;
    cursor: pointer;
    flex: 0 0 auto;
}

.dock-app:hover {
    transform: translateY(-12px) scale(1.15);
}

.dock-app.active::after {
    content: "";
    position: absolute;
    bottom: -8px;
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50%;
}

.divider {
    width: 1px;
    height: 46px;
    background: rgba(255,255,255,.45);
    margin: 0 2px;
    flex: 0 0 auto;
}

/* MINIMIZED WINDOWS */
.dock-minimized-windows {
    display: flex;
    align-items: end;
    gap: 10px;
}

.minimized-window-preview {
    width: 74px;
    height: 48px;
    border-radius: 10px;
    background: rgba(246,246,247,.9);
    border: 1px solid rgba(255,255,255,.55);
    box-shadow: 0 8px 18px rgba(0,0,0,.25);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    flex: 0 0 auto;
    transition: .18s ease;
}

.minimized-window-preview:hover {
    transform: translateY(-8px) scale(1.08);
}

.minimized-window-preview::before {
    content: "";
    display: block;
    height: 12px;
    background: rgba(235,235,237,.95);
}

.minimized-window-preview::after {
    content: attr(title);
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    text-align: center;
    font-size: 10px;
    color: #111827;
    font-weight: 700;
}
	
.finder-app-content {
    color: #111827;
    font-size: 14px;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", Arial, sans-serif;
}

.finder-app-content * {
    box-sizing: border-box;
}

.finder-app-content h1,
.finder-app-content h2,
.finder-app-content h3,
.finder-app-content h4,
.finder-app-content h5,
.finder-app-content h6 {
    color: #111827;
}

.finder-app-content p,
.finder-app-content span,
.finder-app-content div,
.finder-app-content li {
    color: inherit;
}
	
#widget-layer {
    position: absolute;
    top: 60px;
    left: 24px;
    bottom: 110px;
    right: 24px;

    z-index: 8;
    pointer-events: none;

    column-width: 280px;
    column-gap: 18px;
	
    inset: 30px 0 110px 0;
}

.desktop-widget {
    display: inline-block;
    width: 280px;
    min-height: 120px;
    margin: 0 0 18px;

    padding: 18px;
    border-radius: 22px;
    color: #fff;

    background: rgba(255,255,255,.24);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);

    border: 1px solid rgba(255,255,255,.35);
    box-shadow: 0 20px 50px rgba(0,0,0,.25);

    overflow: hidden;
    cursor: grab;
    pointer-events: auto;

    break-inside: avoid;
}

.desktop-widget {
    z-index: 200;
}

.desktop-widget:active {
    cursor: grabbing;
}

.desktop-widget h3 {
    margin: 0 0 12px;
    font-size: 15px;
}

.widget-clock-time {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
}

.widget-small {
    font-size: 13px;
    opacity: .85;
}

.widget-track {
    display: flex;
    gap: 12px;
    align-items: center;
}

.widget-art {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: linear-gradient(135deg, #111827, #7c3aed);
}

.widget-title {
    font-weight: 800;
    font-size: 15px;
}

.widget-subtitle {
    font-size: 13px;
    opacity: .8;
}

.widget-list {
    display: grid;
    gap: 8px;
    font-size: 13px;
}

.widget-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.widget-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.25);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.widget-empty {
    font-size: 13px;
    opacity: .75;
}


#window-loader{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.15);
    backdrop-filter:blur(4px);
    -webkit-backdrop-filter:blur(4px);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:999999;
}

#window-loader.active{
    display:flex;
}

#window-loader .loader-spinner{
    width:42px;
    height:42px;
    border:3px solid rgba(255,255,255,.35);
    border-top-color:#fff;
    border-radius:50%;
    animation:windowLoaderSpin .8s linear infinite;
}

#window-loader span{
    margin-left:14px;
    color:#fff;
    font-size:14px;
    font-weight:600;
    letter-spacing:.2px;
}

@keyframes windowLoaderSpin{
    to{
        transform:rotate(360deg);
    }
}

/* RESPONSIVE */
@media(max-width: 800px) {
    .menu-left span:not(.apple),
    .menu-left strong,
    .menu-right span {
        display: none;
    }

    .window {
        width: calc(100vw - 30px);
        height: 460px;
        left: 15px;
        top: 70px;
    }

    .widget {
        display: none;
    }

    .sidebar {
        width: 150px;
    }

    .dock {
        max-width: 95vw;
        overflow-x: auto;
    }
}