@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
}

#music-upload-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background: linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(96, 91, 229, 0.1);
    border: 1px solid rgba(96, 91, 229, 0.1);
}

#music-upload-form h2 {
    color: #333;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    background: linear-gradient(135deg, #605be5 0%, #eb1402 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mus-field-group {
    margin-bottom: 30px;
    position: relative;
}

.mus-field-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.mus-field-group input,
.mus-field-group select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 14px;
    color: #333;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.mus-field-group input:focus,
.mus-field-group select:focus {
    outline: none;
    border-color: #605be5;
    box-shadow: 0 0 0 4px rgba(96, 91, 229, 0.1), 0 4px 16px rgba(96, 91, 229, 0.15);
    transform: translateY(-1px);
}

.drop-zone {
    border: 3px dashed #e1e5e9;
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    background: linear-gradient(135deg, #fbfcfe 0%, #f0f4ff 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.drop-zone:before {
    content: '🎵';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    opacity: 0.3;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: #605be5;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(96, 91, 229, 0.15);
}

.drop-zone p {
    margin: 0 0 25px 0;
    color: #555;
    font-size: 16px;
    font-weight: 500;
}

#mus-select-files {
    background: linear-gradient(135deg, #605be5 0%, #4f46e5 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(96, 91, 229, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

#mus-select-files:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(96, 91, 229, 0.4);
}

#mus-file-list {
    margin-top: 20px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid #e1e5e9;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.file-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.file-item .file-name {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.file-item .file-size {
    color: #7a7a7a;
    font-size: 13px;
    margin-left: 15px;
    background: #f5f7fa;
    padding: 4px 8px;
    border-radius: 6px;
}

.file-item .remove-file {
    background: linear-gradient(135deg, #eb1402 0%, #d01202 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(235, 20, 2, 0.3);
}

.file-item .remove-file:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(235, 20, 2, 0.4);
}

#mus-upload-btn {
    background: linear-gradient(135deg, #eb1402 0%, #d01202 100%);
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(235, 20, 2, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

#mus-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 20, 2, 0.4);
}

#mus-upload-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#mus-progress {
    margin-top: 25px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #605be5;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    font-weight: 500;
    color: #605be5;
    font-size: 14px;
}

#mus-messages {
    margin-top: 25px;
}

.mus-message {
    padding: 15px;
    border-radius: 3px;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 500;
}

.mus-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.mus-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.mus-message.warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

/* Dashboard Styles */
#music-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

.mus-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.mus-dashboard-header h3 {
    color: #333;
    font-size: 30px;
    font-weight: 600;
    margin: 0;
}

.mus-refresh-btn {
    background-color: #605be5;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mus-refresh-btn:hover {
    background-color: #4f46e5;
    transform: translateY(-1px);
}

.refresh-icon {
    font-size: 16px;
    font-weight: bold;
}

#mus-dashboard-filters {
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
    border-left: 4px solid #605be5;
}

.mus-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mus-filter-group label {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.mus-filter-group select,
.mus-filter-group input[type="text"] {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
    color: #7a7a7a;
    font-family: 'Poppins', sans-serif;
    background-color: white;
    transition: border-color 0.3s ease;
}

.mus-filter-group select:focus,
.mus-filter-group input[type="text"]:focus {
    outline: none;
    border-color: #605be5;
    box-shadow: 0 0 0 2px rgba(96, 91, 229, 0.1);
}

.mus-music-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mus-music-item {
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 15px;
    background-color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 20px;
}

.mus-music-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.mus-music-item.selected {
    border-color: #605be5;
    background-color: #f8f8ff;
    box-shadow: 0 0 0 2px rgba(96, 91, 229, 0.1);
}

.mus-music-info {
    flex: 1;
    min-width: 0;
}

.mus-music-item h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mus-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.mus-meta span {
    font-size: 13px;
    color: #7a7a7a;
    background-color: #f5f5f5;
    padding: 3px 8px;
    border-radius: 12px;
    white-space: nowrap;
}

.mus-meta .category {
    background-color: #e3f2fd;
    color: #1976d2;
}

.mus-meta .type {
    background-color: #e8f5e8;
    color: #388e3c;
}

.mus-music-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.mus-music-actions audio {
    width: 250px;
    height: 35px;
    border-radius: 3px;
    outline: none;
}

.mus-music-actions audio::-webkit-media-controls-panel {
    background-color: #f8f8f8;
}

.mus-action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mus-music-actions button {
    width: 36px;
    height: 36px;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: transparent;
    position: relative;
    font-size: 18px;
    font-weight: bold;
}

.mus-replace-btn {
    color: #605be5;
    border-color: #605be5;
}

.mus-replace-btn:hover {
    background-color: #605be5;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(96, 91, 229, 0.3);
}

.mus-delete-btn {
    color: #eb1402;
    border-color: #eb1402;
}

.mus-delete-btn:hover {
    background-color: #eb1402;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(235, 20, 2, 0.3);
}

.mus-replace-form {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 3px;
    border-left: 3px solid #605be5;
}

.mus-replace-form input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background-color: white;
    font-family: 'Poppins', sans-serif;
}

.mus-replace-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.mus-confirm-replace {
    background-color: #28a745;
    color: white;
}

.mus-confirm-replace:hover {
    background-color: #218838;
}

.mus-confirm-replace:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.mus-cancel-replace {
    background-color: #6c757d;
    color: white;
}

.mus-cancel-replace:hover {
    background-color: #5a6268;
}

/* Loading Overlay */
.mus-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    z-index: 10;
}

.mus-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #605be5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

.mus-loader-overlay p {
    margin: 0;
    color: #605be5;
    font-weight: 500;
    font-size: 14px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Disabled button styles */
.mus-music-actions button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    #music-upload-form {
        padding: 20px;
        margin: 20px;
    }
    
    .mus-music-item {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 15px;
    }
    
    .mus-music-info {
        text-align: center;
    }
    
    .mus-music-item h4 {
        white-space: normal;
        text-align: center;
    }
    
    .mus-meta {
        justify-content: center;
    }
    
    .mus-music-actions {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .mus-music-actions audio {
        width: 100%;
        max-width: 300px;
    }
    
    .mus-action-buttons {
        justify-content: center;
    }
    
    .mus-dashboard-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        text-align: center;
    }
    
    .mus-dashboard-header h3 {
        font-size: 24px;
        align-self: center;
    }
    
    .mus-refresh-btn {
        align-self: center;
    }
    
    #mus-dashboard-filters {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .drop-zone {
        padding: 25px;
    }
    
    #music-dashboard {
        padding: 20px;
    }
}