* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    overflow: hidden;
    background-color: #000;
}

#desktop {
    width: 100vw;
    height: 100vh;
    background-image: url('wallpaper.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Menu Bar */
#menu-bar {
    height: 28px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 12px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

#menu-bar a {
    color: #fff;
    text-decoration: none;
    font-size: 13.5px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    height: 100%;
    text-shadow: 0 0 2px rgba(0,0,0,0.4);
    letter-spacing: -0.2px;
}

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

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

.apple-logo svg {
    margin-top: -2px;
}

.fw-bold {
    font-weight: 600;
}

#menu-bar a:hover, #menu-bar a.active-menu {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.icon {
    padding: 0 8px !important;
}

/* Dock */
#dock-container {
    position: absolute;
    bottom: 8px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
}

.dock {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 0.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 22px;
    display: flex;
    align-items: flex-end;
    padding: 5px;
    gap: 2px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.dock-icon {
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    position: relative;
    padding: 0 2px;
}

.dock-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.dock-icon:hover {
    margin: 0 10px;
    z-index: 10;
}

.dock-icon:hover img {
    transform: scale(1.4) translateY(-10px);
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.3));
}

.dot {
    width: 4px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    position: absolute;
    bottom: -3px;
    display: none;
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
}

.dot.active {
    display: block;
}

.dock-divider {
    width: 1px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.25);
    margin: 2px 8px;
}

/* Windows */
#window-container {
    position: absolute;
    top: 28px;
    left: 0;
    width: 100%;
    height: calc(100% - 28px);
    pointer-events: none;
    z-index: 500;
}

.mac-window {
    position: absolute;
    min-width: 400px;
    min-height: 300px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: all;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.window-title-bar {
    height: 52px;
    background-color: #f6f6f6;
    display: flex;
    align-items: center;
    padding: 0 16px;
    cursor: default;
    user-select: none;
    border-bottom: 1px solid #dcdcdc;
    flex-shrink: 0;
}

.traffic-lights {
    display: flex;
    gap: 8px;
    margin-right: 16px;
}

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

.light.close { background-color: #ff5f57; border: 0.5px solid #e33e32; }
.light.minimize { background-color: #ffbd2e; border: 0.5px solid #e09e1b; }
.light.maximize { background-color: #28c940; border: 0.5px solid #10a322; }

.window-title {
    flex-grow: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #4a4a4a;
}

.window-content {
    flex-grow: 1;
    overflow: auto;
    background-color: #fff;
}

/* Specific App Layouts */
.finder-sidebar {
    width: 160px;
    background-color: rgba(246, 246, 246, 0.8);
    backdrop-filter: blur(10px);
    border-right: 1px solid #dcdcdc;
    padding: 12px 8px;
}

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

.finder-content {
    flex-grow: 1;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 20px;
}

.file-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
}

.file-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.file-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.file-name {
    font-size: 12px;
    text-align: center;
    word-break: break-all;
}

/* Dropdown Menus */
.dropdown-menu {
    position: absolute;
    top: 28px;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 6px;
    padding: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    z-index: 2000;
    border: 0.5px solid rgba(255, 255, 255, 0.4);
    min-width: 220px;
}

.dropdown-menu.active {
    display: flex;
}

.dropdown-item {
    padding: 4px 12px;
    color: #333;
    font-size: 13.5px;
    cursor: default;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
}

.dropdown-item:hover {
    background-color: #007aff;
    color: #fff;
}

.dropdown-divider {
    height: 1px;
    background-color: rgba(0,0,0,0.1);
    margin: 4px 0;
}

.shortcut {
    color: rgba(0,0,0,0.5);
    font-size: 12px;
}

.dropdown-item:hover .shortcut {
    color: #fff;
}
