/* ========================================
   DISABLE TEXT SELECTION GLOBALLY
   ======================================== */
* {
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    -webkit-touch-callout: none !important;
}

body {
    font-family: 'Inter', sans-serif;
}

/* Allow text selection only on inputs and textareas */
input[type="text"],
input[type="search"],
textarea {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.2);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    aside.w-80 {
        width: 280px;
    }

    main {
        padding: 1rem;
    }

    h2 {
        font-size: 1.875rem;
    }

    .w-64.h-64 {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 640px) {
    aside {
        display: none;
    }

    main {
        padding: 0.5rem;
    }
}

/* Hover Effects */
button:active {
    transform: scale(0.95);
}

button:hover {
    transition: all 0.2s ease;
}

/* Custom Input Range Styling */
input[type="range"] {
    cursor: pointer;
}

/* Volume Slider Styling */
.slider-thumb {
    appearance: none;
    -webkit-appearance: none;
}

.slider-thumb::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    background: rgba(212, 175, 55, 0.8);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 4px rgba(212, 175, 55, 0.6);
    transition: all 0.2s ease;
}

.slider-thumb::-webkit-slider-thumb:hover {
    width: 12px;
    height: 12px;
    background: #D4AF37;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.8);
}

.slider-thumb::-moz-range-thumb {
    width: 10px;
    height: 10px;
    background: rgba(212, 175, 55, 0.8);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 4px rgba(212, 175, 55, 0.6);
    transition: all 0.2s ease;
}

.slider-thumb::-moz-range-thumb:hover {
    width: 12px;
    height: 12px;
    background: #D4AF37;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.8);
}

/* Progress bar fill on range input */
.slider-thumb::-webkit-slider-runnable-track {
    background: linear-gradient(to right, #D4AF37 0%, #D4AF37 var(--value), rgba(255, 255, 255, 0.1) var(--value), rgba(255, 255, 255, 0.1) 100%);
    border-radius: 5px;
    height: 4px;
}

.slider-thumb::-moz-range-track {
    background: transparent;
    border: none;
}

.slider-thumb::-moz-range-progress {
    background: #D4AF37;
    height: 4px;
    border-radius: 5px;
}

/* Volume Slider Styling */
.slider-volume {
    -webkit-appearance: none;
    appearance: none;
}

.slider-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 0;
    height: 0;
    background: transparent;
    cursor: pointer;
    border: none;
}

.slider-volume::-moz-range-thumb {
    width: 0;
    height: 0;
    background: transparent;
    cursor: pointer;
    border: none;
}

.slider-volume::-webkit-slider-runnable-track {
    background: transparent;
    height: 100%;
    border-radius: 5px;
}

.slider-volume::-moz-range-track {
    background: transparent;
    height: 100%;
    border: none;
}

/* Repeat Mode Styling */
.repeat-one-active {
    color: #68fc1e !important;
}

.repeat-one-active i {
    color: #68fc1e !important;
}

/* Track Selection / Active State */
.track-item.active {
    background-color: rgba(212, 175, 55, 0.2) !important;
    border-left: 4px solid #D4AF37;
    padding-left: calc(0.75rem - 4px);
}

.track-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #D4AF37, rgba(212, 175, 55, 0.6));
}

/* Responsive Layout - Fit Content in Viewport */
body {
    overflow: hidden;
}

html, body {
    height: 100vh;
}

.flex.h-screen {
    height: 100vh;
}

main {
    height: calc(100vh - 3.5rem);
}
