* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
    overflow: hidden;
    height: 100vh;
    user-select: none;
}

.desktop {
    width: 100vw;
    height: 100vh;
    background-color: #800000;
    position: relative;
    background-image: url('https://i.pinimg.com/736x/0b/6d/83/0b6d83022b5326ca71c715e7c1743dfb.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.desktop-icons {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.desktop-icon {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 2px;
    transition: background-color 0.1s;
    gap: 6px;
    height: 60px;
    width: 130px;
    flex-shrink: 0;
    background-color: #f134f8a9;
    border-radius: 18px;
    border: #000080;
}

.desktop-icon:hover {
    background-color: rgba(0, 0, 255, 0.3);
}

.desktop-icon img {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.desktop-icon span {
    color: white;
    font-size: 11px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.window {
    position: absolute;
    background-color: #c0c0c0;
    border: 2px outset #c0c0c0;
    min-width: 200px;
    min-height: 150px;
    display: none;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.window.active {
    z-index: 1000;
}

.window-header {
    background: linear-gradient(90deg, #000080, #0000ff);
    color: white;
    padding: 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    font-weight: bold;
    font-size: 11px;
}

.window-header.inactive {
    background: linear-gradient(90deg, #808080, #a0a0a0);
}

.window-title {
    padding-left: 4px;
}

.window-controls {
    display: flex;
    gap: 1px;
}

.window-control {
    width: 16px;
    height: 14px;
    background-color: #c0c0c0;
    border: 1px outset #c0c0c0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: black;
}

.window-control:hover {
    background-color: #e0e0e0;
}

.window-control:active {
    border: 1px inset #c0c0c0;
}

.window-content {
    padding: 8px;
    background-color: #c0c0c0;
    height: calc(100% - 20px);
    overflow: auto;
}

.taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background-color: #a012dd;
    border-top: 2px solid #c0c0c0;
    display: flex;
    align-items: center;
    padding: 0 10px;
    z-index: 1000;
}

.taskbar-logo {
    height: 40px;
    width: auto;
    margin: 0 8px;
    object-fit: contain;
}

.start-button {
    background-color: #c0c0c0;
    border: 2px outset #c0c0c0;
    padding: 4px 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 22px;
}

.start-button:active,
.start-button.active {
    border: 2px inset #c0c0c0;
}

.taskbar-buttons {
    flex: 1;
    display: flex;
    gap: 2px;
    margin-left: 4px;
    overflow-x: auto;
}

.taskbar-button {
    background-color: #e573ff;
    border: 2px outset #3c003c;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 11px;
    min-width: 120px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.taskbar-button.active {
    border: 2px inset hsl(0, 0%, 100%);
}

.taskbar-time {
    background-color: #ff58e6;
    border: 0px inset #980faa00;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 22px;
    margin-left: 10px;
}

.start-menu {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 200px;
    background-color: #cd37e8;
    border: 2px outset #cf5959;
    display: none;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.start-menu-header {
    background: linear-gradient(90deg, #e22168, #ff498c);
    color: white;
    padding: 8px;
    font-weight: bold;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    width: 24px;
    float: left;
    height: 100%;
}

.start-menu-items {
    margin-left: 24px;
    padding: 4px 0;
}

.start-menu-item {
    padding: 4px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

.start-menu-item:hover {
    background-color: #000080;
    color: white;
}

.start-menu-item img {
    width: 16px;
    height: 16px;
}

.theme-customizer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    background-color: #c0c0c0;
    border: 2px outset #c0c0c0;
    display: none;
    z-index: 10000;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
}

.theme-customizer-header {
    background: linear-gradient(90deg, #000080, #0000ff);
    color: white;
    padding: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 11px;
}

.theme-customizer-content {
    padding: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.theme-section {
    margin-bottom: 12px;
}

.theme-section h3 {
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 4px;
}

.color-input-group {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    gap: 8px;
}

.color-input-group label {
    font-size: 10px;
    min-width: 100px;
}

.color-input-group input[type="color"] {
    width: 30px;
    height: 20px;
    border: 1px inset #c0c0c0;
    cursor: pointer;
}

.preset-themes {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.preset-button {
    background-color: #c0c0c0;
    border: 2px outset #c0c0c0;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 10px;
}

.preset-button:active {
    border: 2px inset #c0c0c0;
}

.theme-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 12px;
}

.theme-button {
    background-color: #c0c0c0;
    border: 2px outset #c0c0c0;
    padding: 4px 12px;
    cursor: pointer;
    font-size: 11px;
}

.theme-button:active {
    border: 2px inset #c0c0c0;
}

/* Resize handles */
.resize-handle {
    position: absolute;
    background: transparent;
}

.resize-n { top: 0; left: 0; right: 0; height: 4px; cursor: n-resize; }
.resize-s { bottom: 0; left: 0; right: 0; height: 4px; cursor: s-resize; }
.resize-e { top: 0; right: 0; bottom: 0; width: 4px; cursor: e-resize; }
.resize-w { top: 0; left: 0; bottom: 0; width: 4px; cursor: w-resize; }
.resize-ne { top: 0; right: 0; width: 8px; height: 8px; cursor: ne-resize; }
.resize-nw { top: 0; left: 0; width: 8px; height: 8px; cursor: nw-resize; }
.resize-se { bottom: 0; right: 0; width: 8px; height: 8px; cursor: se-resize; }
.resize-sw { bottom: 0; left: 0; width: 8px; height: 8px; cursor: sw-resize; }

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

::-webkit-scrollbar-track {
    background: #c0c0c0;
}

::-webkit-scrollbar-thumb {
    background: #a0a0a0;
    border: 2px outset #c0c0c0;
}

::-webkit-scrollbar-button {
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    height: 16px;
    width: 16px;
}

/* Internet Explorer Styles */
.title-bar {
    height: 20px;
    background: linear-gradient(90deg, #0050a0 0%, #4080d0 100%);
    color: white;
    display: flex;
    align-items: center;
    padding: 2px;
    font-weight: bold;
    font-size: 11px;
}

.title-bar-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    background-size: contain;
}

.title-text {
    flex: 1;
}

.control-btn {
    width: 16px;
    height: 14px;
    background-color: #c0c0c0;
    border: 1px outset #c0c0c0;
    font-size: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.control-btn:active {
    border: 1px inset #c0c0c0;
}

.menu-bar {
    height: 20px;
    background-color: #c0c0c0;
    border-bottom: 1px solid #808080;
    display: flex;
    align-items: center;
    padding: 0 2px;
}

.menu-item {
    padding: 4px 8px;
    cursor: pointer;
    font-size: 11px;
}

.menu-item:hover {
    background-color: #0078d4;
    color: white;
}

.toolbar {
    height: 28px;
    background-color: #c0c0c0;
    border-bottom: 1px solid #808080;
    display: flex;
    align-items: center;
    padding: 2px;
    gap: 2px;
}

.toolbar-btn {
    width: 24px;
    height: 22px;
    background-color: #c0c0c0;
    border: 1px outset #c0c0c0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.toolbar-btn:hover {
    border: 1px outset #e0e0e0;
    background-color: #e0e0e0;
}

.toolbar-btn:active {
    border: 1px inset #c0c0c0;
}

.toolbar-btn.disabled {
    color: #808080;
    cursor: default;
}

.toolbar-btn.disabled:hover {
    border: 1px outset #c0c0c0;
    background-color: #c0c0c0;
}

.address-bar {
    height: 24px;
    background-color: #c0c0c0;
    border-bottom: 1px solid #808080;
    display: flex;
    align-items: center;
    padding: 2px;
    gap: 4px;
}

.address-label {
    font-size: 11px;
    white-space: nowrap;
}

.address-input {
    flex: 1;
    height: 20px;
    border: 1px inset #c0c0c0;
    padding: 2px 4px;
    font-family: 'MS Sans Serif', sans-serif;
    font-size: 11px;
    background-color: white;
}

.go-btn {
    width: 30px;
    height: 20px;
    background-color: #c0c0c0;
    border: 1px outset #c0c0c0;
    font-size: 11px;
    cursor: pointer;
}

.go-btn:active {
    border: 1px inset #c0c0c0;
}

.content-area {
    flex: 1;
    background-color: white;
    border: 1px inset #c0c0c0;
    margin: 2px;
    overflow: auto;
    position: relative;
}

.browser-frame {
    width: 100%;
    height: 100%;
    border: none;
    background-color: white;
}

.status-bar {
    height: 20px;
    background-color: #c0c0c0;
    border-top: 1px solid #808080;
    display: flex;
    align-items: center;
    padding: 0 4px;
    font-size: 11px;
}

.status-text {
    flex: 1;
}

.progress-section {
    display: flex;
    align-items: center;
    gap: 4px;
}

.progress-bar {
    width: 100px;
    height: 12px;
    border: 1px inset #c0c0c0;
    background-color: white;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0078d4 0%, #4080d0 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.loading-animation {
    width: 16px;
    height: 16px;
    background: url('data:image/gif;base64,R0lGODlhEAAQAPIAAP///wAAAMLCwkJCQgAAAGJiYoKCgpKSkiH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJCgAAACwAAAAAEAAQAAADMwi63P4wyklrE2MIOggZnAdOmGYJRbExwroUmcG2LmDEwnHQLVsYOd2mBzkYDAdKa+dIAAAh+QQJCgAAACwAAAAAEAAQAAADNAi63P5OjCEgG4QMu7DmikRxQlMUWMa4muNslr5BzQrqEoB2YxZ8YLQrEFYfOcVhA2pBAAA7') no-repeat center;
    background-size: contain;
    display: none;
}

.loading .loading-animation {
    display: block;
}

/* Error page styles */
.error-page {
    padding: 20px;
    text-align: center;
    font-family: 'MS Sans Serif', sans-serif;
    background-color: white;
}

.error-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 10px;
    background: red;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.homepage {
    padding: 20px;
    font-family: 'MS Sans Serif', sans-serif;
    background-color: white;
    text-align: center;
}

.homepage h1 {
    color: #000080;
    margin-bottom: 20px;
    font-size: 18px;
}

.favorites-section {
    margin: 20px 0;
    text-align: left;
}

.favorites-section h3 {
    color: #000080;
    margin-bottom: 10px;
}

.favorite-link {
    display: block;
    color: #0000EE;
    text-decoration: underline;
    margin: 5px 0;
    cursor: pointer;
}

.favorite-link:hover {
    color: #FF0000;
}

/* Dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #c0c0c0;
    min-width: 160px;
    border: 1px outset #c0c0c0;
    z-index: 1;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: black;
    padding: 4px 8px;
    text-decoration: none;
    display: block;
    font-size: 11px;
}

.dropdown-content a:hover {
    background-color: #0078d4;
    color: white;
}

.dropdown.active .dropdown-content {
    display: block;
}

#spotify .window-content {
    padding: 0;
    overflow: hidden;
    background: #121212;
}

#spotify iframe {
    border: none;
    width: 100%;
    height: 100%;
    background: #121212;
}

/* Ensure the window has a minimum size */
#spotify {
    min-width: 550px;
    min-height: 750px;
}

.wallpaper-section {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wallpaper-section label {
    font-size: 10px;
}

.wallpaper-section input[type="file"] {
    display: none;
}

.wallpaper-section .theme-button {
    width: 100%;
    text-align: center;
}

/* Vinyl Player Styles */
#vinyl-player {
    min-width: 800px;
    min-height: 600px;
}

#vinyl-player .window-content {
    padding: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f4ff 0%, #f9f0ff 100%);
}

#vinyl-player .player {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

#vinyl-player .player-content {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    flex: 1;
}

#vinyl-player .turntable {
    flex: 1;
    position: relative;
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    min-width: 300px;
}

#vinyl-player .vinyl {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
    cursor: pointer;
}

#vinyl-player .vinyl.playing {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

#vinyl-player .grooves {
    position: absolute;
    inset: 0;
    opacity: 0.2;
}

#vinyl-player .groove {
    position: absolute;
    inset: 0;
    border: 1px solid #ffffff;
    border-radius: 50%;
}

#vinyl-player .label {
    width: 33.333%;
    height: 33.333%;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#vinyl-player .tone-arm {
    position: absolute;
    right: -1rem;
    top: 3rem;
    width: 6rem;
    height: 16rem;
    pointer-events: none;
    transform-origin: bottom right;
    transition: transform 0.7s ease-in-out;
}

#vinyl-player .tone-arm-base {
    position: absolute;
    bottom: 0;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #2d3436 0%, #1a1a1a 100%);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#vinyl-player .tone-arm-body {
    position: absolute;
    bottom: 1.5rem;
    right: 2.5rem;
    width: 0.5rem;
    height: 12rem;
    background: linear-gradient(90deg, #4a4a4a 0%, #2d2d2d 100%);
    border-radius: 0.25rem;
    transform: rotate(-45deg);
    transform-origin: bottom center;
    transition: transform 0.7s ease-in-out;
}

#vinyl-player .tone-arm-head {
    position: absolute;
    top: 0;
    left: -0.5rem;
    width: 1.5rem;
    height: 2.5rem;
    background: linear-gradient(90deg, #2d2d2d 0%, #1a1a1a 100%);
    border-radius: 0.25rem;
    transform: rotate(-15deg);
}

#vinyl-player .stylus {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0.125rem;
    height: 1rem;
    background: #ff4757;
    transform: translateX(-50%);
}

#vinyl-player .tone-arm.playing {
    transform: rotate(-30deg);
}

#vinyl-player .tone-arm.playing .tone-arm-body {
    transform: rotate(-10deg);
}

#vinyl-player .controls {
    margin-top: 1.5rem;
    padding: 0 1rem;
}

#vinyl-player .progress-bar {
    width: 100%;
    height: 0.5rem;
    background: #e9ecef;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    cursor: pointer;
    position: relative;
    user-select: none;
}

#vinyl-player .progress {
    height: 100%;
    background: #4a90e2;
    border-radius: 0.25rem;
    transition: width 0.1s linear;
    width: 0%;
    position: relative;
}

#vinyl-player .progress::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: #4a90e2;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#vinyl-player .progress-bar:hover .progress::after {
    opacity: 1;
}

#vinyl-player .control-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#vinyl-player .time {
    font-size: 0.875rem;
    color: #666;
}

#vinyl-player .buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#vinyl-player button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.2s;
}

#vinyl-player button:hover {
    background: #f0f0f0;
}

#vinyl-player .play-button {
    width: 3rem;
    height: 3rem;
    background: #4a90e2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

#vinyl-player .play-button:hover {
    background: #357abd;
}

#vinyl-player .music-details {
    width: 16rem;
    background: #f8f9fa;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

#vinyl-player .cover-art {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#vinyl-player .song-info h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#vinyl-player .song-info p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#vinyl-player .youtube-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e1e1e1;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: white;
    color: #333;
    margin-bottom: 0.5rem;
}

#vinyl-player .youtube-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

#vinyl-player .input-container {
    margin-top: 1rem;
}

#vinyl-player .input-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #666;
}

#vinyl-player .load-button {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: #4a90e2;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

#vinyl-player .status {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    text-align: center;
    display: none;
}

#vinyl-player .status.error {
    background: #ffeaea;
    color: #d63031;
}

#vinyl-player .status.success {
    background: #e8f5e8;
    color: #00b894;
}

#vinyl-player .status.info {
    background: #e3f2fd;
    color: #0984e3;
}

#vinyl-player .youtube-container {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 560px;
    height: 315px;
}

#vinyl-player .fullscreen-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #666;
    transition: color 0.2s;
}

#vinyl-player .fullscreen-button:hover {
    color: #4a90e2;
}

@media (max-width: 768px) {
    #vinyl-player .player-content {
        flex-direction: column;
    }
    #vinyl-player .music-details {
        width: 100%;
    }
}

.confetti-button {
    background-color: #a012dd;
    color: white;
    padding: 5px 10px;
    margin: 0 5px;
    cursor: pointer;
    border: 1px solid #c0c0c0;
    border-radius: 3px;
    font-size: 16px;
    transition: background-color 0.2s;
}

.confetti-button:hover {
    background-color: #8a0fb8;
}

.confetti-button:active {
    background-color: #6d0c8f;
    transform: translateY(1px);
} 