#theme-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    background: rgba(0, 0, 0, 0.9);
    padding: 0;
    border-radius: 15px;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
}

#theme-modal.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: all;
}

/* Hide scrollbars */
#theme-modal {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#theme-modal::-webkit-scrollbar {
    display: none;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 30px;
    margin: auto;
    width: calc(100% - 60px);
    max-width: 800px;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.theme-grid::-webkit-scrollbar {
    display: none;
}

.theme-option {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}

.theme-option:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.theme-option.selected {
    border-color: #e91e63;
    box-shadow: 0 0 20px rgba(233, 30, 99, 0.3);
}

.theme-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.theme-option .title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    font-size: 16px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
}

.theme-option:hover .title {
    transform: translateY(0);
}

/* Theme modal title */
#theme-modal h3 {
    color: white;
    margin: 0 0 25px 0;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    font-size: 24px;
}

/* macOS-style window controls */
.window-controls {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
}

.window-controls .control {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.window-controls .close {
    background: #ff5f57;
    box-shadow: 0 0 5px rgba(255, 95, 87, 0.3);
}

.window-controls .minimize {
    background: #ffbd2e;
    box-shadow: 0 0 5px rgba(255, 189, 46, 0.3);
}

.window-controls .maximize {
 Remove Dream Lab, Theme Changer, and Audio Player from the TASKBAR (Bottom).   background: #28c940;
    box-shadow: 0 0 5px rgba(40, 201, 64, 0.3);
}

.window-controls .control:hover {
    transform: scale(1.1);
}

.window-controls .close:hover {
    background: #ff3333;
    box-shadow: 0 0 10px rgba(255, 95, 87, 0.5);
}

.window-controls .minimize:hover {
    background: #ffab1a;
    box-shadow: 0 0 10px rgba(255, 189, 46, 0.5);
}

.window-controls .maximize:hover {
    background: #1db934;
    box-shadow: 0 0 10px rgba(40, 201, 64, 0.5);
}
