﻿/* Loading state */
.mp3-scanner-container.loading {
    opacity: 0.7;
}

.mp3-scanner-container.loading::after {
    content: "Loading...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

/* Waveform Styles */
.mp3-waveform-container {
    margin: 15px 0;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    position: relative;
}

.mp3-waveform {
    width: 100%;
    cursor: pointer;
    border-radius: 3px;
    overflow: hidden;
}

.mp3-waveform-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    color: #666;
    border: 1px solid #ccc;
}

/* Waveform zoom buttons */
.mp3-zoom-in,
.mp3-zoom-out {
    min-width: 35px;
    font-weight: bold;
}

/* Hide default audio controls when waveform is shown */
.mp3-scanner-container.has-waveform .mp3-audio-player {
    display: none;
}

.mp3-scanner-container.has-waveform .mp3-progress-container {
    display: none;
}/* MP3 Scanner Plugin Styles */
.mp3-scanner-container {
    max-width: 600px;
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    font-family: Arial, sans-serif;
}

.mp3-scanner-title {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.4em;
    text-align: center;
}

.mp3-current-track {
    text-align: center;
    margin-bottom: 15px;
    padding: 15px 10px;
    background: #fff;
    border-radius: 5px;
    border: 1px solid #eee;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mp3-current-title {
    font-weight: bold;
    color: #555;
    font-size: 1.1em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.3;
}

.mp3-audio-player {
    width: 100%;
    margin-bottom: 15px;
    outline: none;
}

.mp3-progress-container {
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    margin-bottom: 15px;
    cursor: pointer;
    position: relative;
}

.mp3-progress-bar {
    height: 100%;
    background: #007cba;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
}

.mp3-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.mp3-btn {
    padding: 8px 16px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

.mp3-btn:hover {
    background: #005a87;
}

.mp3-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.mp3-time {
    font-size: 14px;
    color: #666;
    margin-left: 10px;
}

.mp3-playlist h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.1em;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.mp3-track-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 5px;
    background: white;
}

.mp3-track-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.mp3-track-item:hover {
    background: #f5f5f5;
}

.mp3-track-item.active {
    background: #e8f4f8;
    border-left: 3px solid #007cba;
}

.mp3-track-item:last-child {
    border-bottom: none;
}

.mp3-track-number {
    margin-right: 10px;
    color: #666;
    font-size: 0.9em;
    min-width: 25px;
}

.mp3-track-name {
    flex: 1;
    color: #333;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.2;
    padding-right: 5px;
}

.mp3-download {
    margin-left: 10px;
    color: #007cba;
    text-decoration: none;
    font-size: 16px;
    padding: 5px;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.mp3-download:hover {
    background: #f0f0f0;
    color: #005a87;
}

/* Responsive design */
@media (max-width: 600px) {
    .mp3-scanner-container {
        margin: 10px 0;
        padding: 15px;
    }
    
    .mp3-controls {
        flex-direction: column;
        gap: 8px;
    }
    
    .mp3-track-item {
        padding: 8px 12px;
    }
    
    .mp3-track-name {
        font-size: 14px;
    }
}

/* Waveform Styles */
.mp3-waveform-container {
    margin: 15px 0;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    position: relative;
}

.mp3-waveform {
    width: 100%;
    cursor: pointer;
    border-radius: 3px;
    overflow: hidden;
}

.mp3-waveform-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    color: #666;
    border: 1px solid #ccc;
}

/* Waveform zoom buttons */
.mp3-zoom-in,
.mp3-zoom-out {
    min-width: 35px;
    font-weight: bold;
}

/* Hide default audio controls when waveform is shown */
.mp3-scanner-container.has-waveform .mp3-audio-player {
    display: none;
}

.mp3-scanner-container.has-waveform .mp3-progress-container {
    display: none;
}
