:root {
    --aero-titlebar: linear-gradient(to bottom, #f37bb4 0%, #e12e86 45%, #b7005b 50%, #e30072 100%);
    --accent-pink: #d81b60;
    --window-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

body {
    overflow: hidden;
    font-family: "Segoe UI", "Lucida Grande", sans-serif;
    background-image: url("../img/logo1n.png"), url("../img/heart2.png"), url("../img/bg5.jpg");
    background-repeat: no-repeat;
    background-position: 60% 15%, 110% 2%, bottom left;
    background-size: 20% auto, 25% auto, cover;
    background-attachment: fixed;
}

button {
    font: inherit;
}

#menubar {
    position: relative;
    z-index: 10000;
    display: flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    color: #fff;
    font-size: 13px;
    background: url("../img/nav.png") repeat-x center / auto 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
}

#reset-btn {
    padding: 0 15px 0 0;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    background: transparent;
    border: 0;
    cursor: pointer;
}

#app-name {
    margin-right: 15px;
    font-weight: 700;
    text-shadow: 0 0 5px #000;
}

.menu-item {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 12px;
    cursor: default;
    transition: background 0.2s;
}

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

.dropdown {
    position: absolute;
    top: 28px;
    left: 0;
    z-index: 10001;
    display: none;
    min-width: 180px;
    overflow: hidden;
    color: #000;
    background: rgba(255, 252, 254, 0.98);
    border: 1px solid var(--accent-pink);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
}

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

.dropdown button {
    display: block;
    width: 100%;
    padding: 8px 15px;
    color: inherit;
    font-size: 12px;
    text-align: left;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #f9e1ec;
    cursor: pointer;
}

.dropdown button:hover {
    color: #fff;
    background: var(--accent-pink);
}

#clock {
    margin-left: auto;
    padding-right: 10px;
    color: #fff;
    font-weight: 700;
}

.icon {
    position: absolute;
    z-index: 5;
    width: 85px;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

#icon-music {
    top: 50px;
    left: 30px;
}

#icon-lostheart {
    top: 160px;
    left: 30px;
}

#icon-dramatic {
    top: 270px;
    left: 30px;
}

#icon-mail {
    top: 380px;
    left: 30px;
}

#icon-trash {
    right: 40px;
    bottom: 120px;
}

.icon img {
    width: 55px;
    height: 55px;
    filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s;
}

.icon:hover img {
    transform: scale(1.1);
}

.icon span {
    display: inline-block;
    margin-top: 5px;
    padding: 3px 8px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.8);
    border-radius: 10px;
}

.icon.selected span {
    background: rgba(216, 27, 96, 0.75);
    box-shadow: 0 0 10px #fff;
}

.window {
    position: absolute;
    z-index: 10;
    display: none;
    width: 400px;
    min-width: 200px;
    min-height: 150px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(183, 0, 91, 0.4);
    border-radius: 14px 14px 6px 6px;
    box-shadow: var(--window-shadow);
    backdrop-filter: blur(6px);
}

.window-music {
    width: 380px;
}

.window-preview,
.window-text {
    width: 320px;
}

.titlebar {
    display: flex;
    align-items: center;
    height: 34px;
    padding: 0 12px;
    background: var(--aero-titlebar);
    border-bottom: 1px solid #4d0026;
    border-radius: 12px 12px 0 0;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9);
    cursor: default;
}

.close-btn {
    width: 16px;
    height: 16px;
    padding: 0;
    background: radial-gradient(circle at 30% 30%, #ffcfd1, #ff3d47);
    border: 1px solid #900;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), inset 0 1px 2px #fff;
    cursor: pointer;
}

.window-title {
    flex: 1;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.content {
    box-sizing: border-box;
    height: calc(100% - 34px);
    padding: 15px;
    overflow: auto;
    background: rgba(255, 255, 255, 0.7);
}

#win-music .content {
    height: auto;
    padding: 0;
    overflow: hidden;
}

.resizer {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 11;
    width: 15px;
    height: 15px;
    cursor: nwse-resize;
}

#preview-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

#preview-img {
    width: 100%;
    border-radius: 8px;
}

.preview-overlay {
    position: absolute;
    right: 0;
    bottom: 10px;
    left: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
}

.preview-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(216, 27, 96, 0.85);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    transition: 0.2s;
}

.preview-action:hover {
    background: #b7005b;
    transform: scale(1.1);
}

.preview-action svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.music-player-skin {
    padding: 20px;
    text-align: center;
    background: #ff99cc;
    border: 0;
}

.lcd-display {
    padding: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ff007f;
    font-family: Consolas, monospace;
    font-size: 12px;
    white-space: nowrap;
    background: #000;
    border: 2px solid #444;
    border-radius: 4px;
    box-shadow: inset 0 0 8px #ff007f;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-top: 15px;
}

.ui-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    padding: 0;
    background: #ffb3d9;
    border: 3px solid #000;
    box-shadow: inset -2px -2px 0 #804060, inset 2px 2px 0 #fff;
    cursor: pointer;
    transition: transform 0.1s;
}

.ui-btn:active {
    box-shadow: inset 1px 1px 0 #000;
    transform: translate(1px, 1px);
}

.ui-btn svg {
    width: 20px;
    height: 20px;
    fill: #000;
}

.seeker-container {
    margin: 10px 0;
}

input[type="range"].seeker {
    width: 100%;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
}

input[type="range"].seeker::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background: #000;
    cursor: pointer;
}

input[type="range"].seeker::-webkit-slider-thumb {
    width: 12px;
    height: 20px;
    margin-top: -8px;
    background: #ffb3d9;
    border: 2px solid #000;
    cursor: pointer;
    -webkit-appearance: none;
}

#dock-container {
    position: fixed;
    bottom: 0;
    left: 50%;
    z-index: 10000;
    display: flex;
    gap: 15px;
    align-items: flex-end;
    padding: 10px 20px 5px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15), inset 0 1px 3px rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    transform: translateX(-50%);
}

.dock-item {
    width: 45px;
    height: 45px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    transition: transform 0.2s ease-out;
}

.dock-item:hover {
    transform: scale(1.15) translateY(-5px);
}

.dock-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.folder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    text-align: center;
}

.folder-item,
.trash-file {
    color: #4d0026;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.folder-item img {
    width: 48px;
    height: 48px;
    margin-bottom: 5px;
}

.trash-file {
    display: block;
    margin: 0 auto;
    text-align: center;
}

.trash-file img {
    width: 32px;
}

#text-body {
    font-size: 13px;
    white-space: pre-wrap;
}

#cookie-overlay {
    position: fixed;
    inset: 0;
    z-index: 15000;
    display: none;
    background: rgba(100, 0, 50, 0.15);
    backdrop-filter: blur(4px);
}

#cookie-window {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 340px;
    padding: 30px;
    text-align: center;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--accent-pink);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    transform: translate(-50%, -50%);
}

.cookie-icon {
    color: var(--accent-pink);
    font-size: 50px;
}

#cookie-window h2 {
    margin-top: 10px;
    color: #b7005b;
}

#cookie-window p {
    color: #444;
    font-size: 14px;
}

#cookie-window button {
    padding: 8px 22px;
    margin: 6px;
    color: #fff;
    font-weight: 700;
    background: var(--aero-titlebar);
    border: 1px solid #4d0026;
    border-radius: 20px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2), inset 0 1px 3px rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

#footer {
    position: fixed;
    right: 20px;
    bottom: 15px;
    z-index: 20000;
    color: #fff;
    font-size: 11px;
    text-shadow: 0 2px 4px #000;
    pointer-events: none;
}

#footer a {
    color: #ffb3d1;
    font-weight: 700;
    text-decoration: none;
    pointer-events: auto;
}

@media only screen and (max-width: 768px) {
    #menubar {
        display: none;
    }

    body {
        background-position: 15px 15px, 150% 0%, center center;
        background-size: 30% auto, 50% auto, cover;
    }

    #desktop {
        box-sizing: border-box;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        align-content: start;
        justify-items: center;
        height: 100vh;
        padding: 150px 30px 40px;
        overflow-y: auto;
    }

    .icon {
        position: static !important;
        width: 85px;
    }

    .icon img {
        width: 60px;
        height: 60px;
    }

    .icon span {
        padding: 4px 8px;
        font-size: 11px;
    }

    #dock-container {
        width: 85%;
        gap: 15px;
        padding: 12px 8px;
    }

    .dock-item {
        width: 50px;
        height: 50px;
    }

    .window {
        top: 8% !important;
        left: 3% !important;
        width: 94% !important;
    }
}
