html, body {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Scrollbar styling for dark theme */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: #3a3a5e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5a5a7e;
}

/* Split panel helpers */
.split-panel {
    display: flex;
    gap: 16px;
    height: calc(100vh - 120px);
}

.split-panel-left {
    width: 300px;
    min-width: 250px;
    overflow-y: auto;
}

.split-panel-right {
    flex: 1;
    overflow-y: auto;
}

/* Timeline styling */
.timeline-container {
    position: relative;
    height: 60px;
    background: #1e1e2d;
    border-radius: 4px;
    overflow: hidden;
}

.timeline-slot {
    position: absolute;
    top: 4px;
    height: 52px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: 11px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: opacity 0.2s;
}

.timeline-slot:hover {
    opacity: 0.85;
}

.timeline-slot.playlist {
    background: rgba(124, 77, 255, 0.6);
    border: 1px solid rgba(124, 77, 255, 0.8);
}

.timeline-slot.track {
    background: rgba(0, 229, 255, 0.6);
    border: 1px solid rgba(0, 229, 255, 0.8);
    z-index: 1;
}

.timeline-hour-markers {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    pointer-events: none;
}

.timeline-hour-marker {
    flex: 1;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.timeline-hour-label {
    position: absolute;
    bottom: 2px;
    right: 4px;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.3);
}

/* Drag-drop styling */
.playlist-entry-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin: 4px 0;
    background: #252538;
    border-radius: 6px;
    border: 1px solid #2e2e45;
    cursor: grab;
    transition: all 0.15s ease;
}

.playlist-entry-item:hover {
    border-color: #7c4dff;
    background: #2a2a42;
}

.playlist-entry-item .entry-icon {
    margin-right: 12px;
    opacity: 0.7;
}

.playlist-entry-item .entry-name {
    flex: 1;
}

.playlist-entry-item .entry-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

.folder-badge {
    background: rgba(0, 229, 255, 0.15);
    color: #00e5ff;
}

.file-badge {
    background: rgba(124, 77, 255, 0.15);
    color: #7c4dff;
}

/* Upload zone */
.upload-zone {
    border: 2px dashed #3a3a5e;
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: #7c4dff;
    background: rgba(124, 77, 255, 0.05);
}

/* Now Playing page */
.now-playing-header {
    background: linear-gradient(135deg, rgba(124, 77, 255, 0.1) 0%, rgba(0, 229, 255, 0.05) 100%);
}

.now-playing-disc {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #252538;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #3a3a5e;
    flex-shrink: 0;
}

.now-playing-disc.spinning {
    animation: spin 3s linear infinite;
    border-color: #7c4dff;
    box-shadow: 0 0 12px rgba(124, 77, 255, 0.3);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.listening-pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
