/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Fixed Top Menu Bar */
.top-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: 60px;
}

.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 20px;
    height: 100%;
}

.logo h1 {
    color: rgb(255, 255, 255);
    font-size: 24px;
    font-weight: 700;
}

.menu-links {
    display: flex;
    gap: 30px;
    margin-left: 40px;
}

.user-info {
    margin-left: auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.user-info .user-role {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.menu-link {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.menu-link:hover,
.menu-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Main Content */
.main-content {
    margin-top: 60px;
    padding: 20px;
    width: 95%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1e5e9;
}

.section-header h2 {
    font-size: 28px;
    color: #2c3e50;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-icon {
    padding: 8px 12px;
    font-size: 18px;
    font-weight: bold;
}

/* Existing Shows Display */
.existing-shows {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    border: 1px solid #e1e5e9;
    width: 100%;
    box-sizing: border-box;
}

.existing-shows h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.demo-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    width: 100%;
}

.show-card {
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #e1e5e9;
    transition: all 0.3s ease;
    cursor: pointer;
}

.show-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.show-card .show-name {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.show-card .show-details {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.show-card .show-days {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.7;
}

/* Schedule Form */
.schedule-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border: 1px solid #e1e5e9;
}

.schedule-form h3 {
    margin-bottom: 25px;
    color: #2c3e50;
    font-size: 22px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.days-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.day-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.day-checkbox:hover {
    border-color: #667eea;
    background-color: #f8f9ff;
}

.day-checkbox input:checked + span,
.day-checkbox:has(input:checked) {
    background-color: #667eea;
    color: white;
    border-color: #667eea;
}

.color-preview {
    height: 45px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border: 2px solid #e1e5e9;
    transition: all 0.3s ease;
}

/* Color Presets Grid */
.color-presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    max-height: 200px;
    overflow-y: auto;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    padding: 15px;
    background-color: #fafafa;
}

.color-preset {
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    text-align: center;
    line-height: 1.2;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.color-preset:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.color-preset.selected {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    transform: scale(1.05);
}

.form-group.full-width {
    flex: 1 1 100%;
}

.repeat-until {
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    color: #667eea;
    border: 2px solid #e1e5e9;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

/* Help Banners */
.help-banner {
    background-color: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.help-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: #bbdefb;
    cursor: pointer;
    user-select: none;
}

.help-header h4 {
    margin: 0;
    color: #1565c0;
    font-size: 16px;
    font-weight: 600;
}

.help-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    color: #1565c0;
    font-size: 14px;
    transition: background-color 0.2s ease;
    border-radius: 4px;
}

.help-toggle:hover {
    background-color: rgba(21, 101, 192, 0.1);
}

.toggle-icon {
    display: inline-block;
    transition: transform 0.2s ease;
}

.help-content {
    padding: 16px;
    background-color: #e3f2fd;
}

.help-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.help-content li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.help-content li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #1565c0;
    font-weight: bold;
}

.help-content strong {
    color: #1565c0;
}

/* Calendar */
.calendar-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e1e5e9;
    width: 100%;
    box-sizing: border-box;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e1e5e9;
}

.calendar-header h3 {
    color: #2c3e50;
    font-size: 20px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: 60px repeat(7, 1fr);
    min-height: 600px;
    width: 100%;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
}

.time-slot {
    border-right: 1px solid #e1e5e9;
    border-bottom: 1px solid #e1e5e9;
    padding: 8px 4px;
    font-size: 11px;
    font-weight: 600;
    color: #6c757d;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: horizontal-tb;
}

.day-header {
    padding: 10px 8px;
    text-align: center;
    font-weight: 700;
    background-color: #f1f3f4;
    border-right: 1px solid #e1e5e9;
    border-bottom: 1px solid #e1e5e9;
    color: #2c3e50;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.day-name {
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
}

.day-date {
    font-size: 12px;
    font-weight: 500;
    color: #6c757d;
}

.calendar-cell {
    border-right: 1px solid #e1e5e9;
    border-bottom: 1px solid #e1e5e9;
    padding: 2px;
    min-height: 60px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s ease;
    overflow: hidden;
}

.calendar-cell:hover {
    background-color: #f8f9ff;
}

.show-block {
    background-color: #667eea;
    color: white;
    padding: 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.show-block:hover {
    transform: scale(1.02);
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Utilities */
.hidden {
    display: none !important;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: white;
    padding: 15px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    border-left: 4px solid #28a745;
    animation: slideIn 0.3s ease;
}

.toast.error {
    border-left-color: #dc3545;
}

.toast.warning {
    border-left-color: #ffc107;
}

.toast.info {
    border-left-color: #17a2b8;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-container {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }

    .menu-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-content {
        margin-top: 120px;
        padding: 15px;
        width: 95%;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .days-selector {
        justify-content: center;
    }

    .calendar-grid {
        grid-template-columns: 60px repeat(7, 1fr);
        font-size: 12px;
    }

    .form-actions {
        flex-direction: column;
    }
}

/* Edit Modal Styles */
.edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.edit-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.edit-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edit-modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 18px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.close-btn:hover {
    background-color: #f8f9fa;
    color: #dc3545;
}

.edit-modal-body {
    padding: 20px;
}

.edit-modal-footer {
    padding: 20px;
    border-top: 1px solid #e1e5e9;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.edit-modal-footer .btn {
    margin: 0;
}

/* Color preset selection in modal */
#edit-color-presets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

#edit-color-presets .color-preset {
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
}

#edit-color-presets .color-preset:hover {
    transform: scale(1.05);
    border-color: #667eea;
}

#edit-color-presets .color-preset.selected {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
    transform: scale(1.05);
}

/* Show block hover effect */
.show-block:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    position: relative;
}

/* Fill Shows Section Styles */
.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input {
    padding: 10px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    width: 300px;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-wrapper {
    display: flex;
    flex-direction: column;
}

.search-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-error {
    font-size: 13px;
    padding: 5px 10px;
    border-radius: 4px;
    margin-top: 5px;
    border: 1px solid;
}

.search-error.hidden {
    display: none;
}

/* Error state - red */
.search-error:not(.search-success):not(.search-warning) {
    color: #dc3545;
    background: #f8d7da;
    border-color: #f5c6cb;
}

/* Success state - green */
.search-error.search-success {
    color: #155724;
    background: #d4edda;
    border-color: #c3e6cb;
}

/* Warning state - yellow */
.search-error.search-warning {
    color: #856404;
    background: #fff3cd;
    border-color: #ffeaa7;
}

.fill-shows-container {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 20px;
    margin-top: 20px;
    height: calc(100vh - 200px);
}

/* Time Slots Panel */
.time-slots-panel {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    overflow-y: auto;
}

.time-slots-list {
    margin-top: 15px;
}

.time-slot-item {
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-slot-item:hover {
    border-color: #667eea;
    background: #f0f2ff;
}

.time-slot-item.selected {
    border-color: #667eea;
    border-width: 3px;
    background: #e8edff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.3), 0 8px 16px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.time-slot-item.filled {
    background: #d4edda;
    border-color: #28a745;
}

.time-slot-item.partial {
    background: #ffe0e6;
    border-color: #ff6b8a;
}

.slot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.slot-name {
    font-weight: 600;
    color: #333;
}

.slot-date {
    font-size: 14px;
    color: #6c757d;
}

.slot-time {
    font-size: 13px;
    color: #495057;
}

.slot-fill-status {
    font-size: 12px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
    background: #ff6b8a;
    color: #7a1e30;
}

.slot-fill-status.full {
    background: #28a745;
    color: white;
}

/* Audio Library Panel */
.audio-library-panel {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Current Slot Info */
.current-slot-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.slot-details {
    margin-bottom: 10px;
    line-height: 1.4;
}

.time-progress {
    margin-top: 10px;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.3);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    background: white;
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Audio Sections */
.audio-section {
    margin-bottom: 20px;
}

.audio-section h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
}

/* Main Files List */
.audio-files-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.audio-file-item {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.audio-file-item:hover {
    border-color: #667eea;
    background: #e8edff;
    transform: translateY(-1px);
}

.audio-file-item.highlighted {
    background: #fff3cd;
    border-color: #ffc107;
    font-weight: 600;
}

.audio-file-item.highlighted::before {
    content: "⭐ ";
    color: #ffc107;
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.file-details {
    font-size: 12px;
    color: #6c757d;
}

.file-duration {
    font-size: 12px;
    color: #495057;
    font-weight: 500;
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Auxiliary Files Genres */
.aux-genres {
    display: grid;
    gap: 15px;
}

.genre-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.genre-section label {
    font-weight: 600;
    color: #495057;
    min-width: 80px;
}

.genre-dropdown {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.genre-dropdown:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

/* Assigned Files Section */
.assigned-files-section {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.assigned-files-section h4 {
    font-size: 16px;
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.assigned-files-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.reorder-instruction {
    background: #e3f2fd;
    color: #1976d2;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 8px;
    text-align: center;
}

.assigned-file-item {
    background: #e8f5e8;
    border: 1px solid #28a745;
    border-radius: 6px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 8px;
    font-size: 13px;
}

.assigned-file-item.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.assigned-file-item.drag-over {
    border-color: #667eea;
    border-width: 3px;
    background: #f0f4ff;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
    transform: scale(1.02);
}

.assigned-file-item.drag-over::before {
    content: "Drop here to reorder";
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    z-index: 1000;
}

.drag-handle {
    margin-right: 12px;
    color: #6c757d;
    cursor: grab;
    font-size: 16px;
    user-select: none;
}

.drag-handle:active {
    cursor: grabbing;
}

.assigned-file-info {
    flex: 1;
}

.assigned-file-name {
    font-weight: 600;
    color: #155724;
    margin-bottom: 4px;
}

.assigned-file-details {
    font-size: 12px;
    color: #6c757d;
}

.remove-file-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s ease;
}

.remove-file-btn:hover {
    background: #c82333;
}

/* No Search Messages */
.no-search-message {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.no-search-message p {
    margin-bottom: 8px;
    font-size: 16px;
}

.help-text {
    font-size: 14px !important;
    opacity: 0.8;
}

/* Count badges */
#slots-count,
#main-files-count {
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .fill-shows-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .time-slots-panel,
    .audio-library-panel {
        max-height: 400px;
    }
}

/* Toast warning style */
.toast.warning {
    background-color: #ffc107;
    color: #856404;
    border-left: 4px solid #f59e0b;
}

/* Home Page Styles */
.station-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-indicator {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Radio Player */
.radio-player-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    border: 1px solid #e1e5e9;
}

.radio-player {
    max-width: 600px;
    margin: 0 auto;
}

.player-info {
    text-align: center;
    margin-bottom: 20px;
}

.player-info h3 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 8px;
}

.now-playing {
    color: #6c757d;
    font-size: 16px;
    margin: 0;
}

.now-playing span {
    color: #667eea;
    font-weight: 600;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.play-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.play-btn.playing {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 100px;
    height: 4px;
    border-radius: 2px;
    outline: none;
    background: #e1e5e9;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
}

/* Quick Navigation Grid */
.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.quick-nav-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.quick-nav-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.nav-icon {
    font-size: 48px;
    margin-bottom: 15px;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.quick-nav-card:hover .nav-icon {
    filter: grayscale(0%);
}

.quick-nav-card h4 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 8px;
}

.quick-nav-card p {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 8px;
}

.quick-nav-card small {
    color: #667eea;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Schedule Tables Styles */
.schedule-container {
    background: white;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e1e5e9;
}

.schedule-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    text-align: center;
}

.schedule-header h3 {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: 700;
}

.schedule-subtitle {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

.schedule-table-container {
    position: relative;
    overflow-x: auto;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: white;
}

.schedule-table thead th {
    background: #f8f9fa;
    color: #495057;
    padding: 12px 8px;
    text-align: center;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e1e5e9;
    border-right: 1px solid #e1e5e9;
}

.schedule-table thead th:last-child {
    border-right: none;
}

.schedule-table tbody td {
    padding: 8px;
    border-bottom: 1px solid #e9ecef;
    border-right: 1px solid #e9ecef;
    vertical-align: middle;
}

.schedule-table tbody td:last-child {
    border-right: none;
}

.schedule-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.schedule-table tbody tr:hover {
    background: #e8edff;
}

/* Time column styling */
.schedule-table tbody td:nth-child(1),
.schedule-table tbody td:nth-child(4) {
    font-weight: 600;
    color: #495057;
    text-align: center;
    background: #f1f3f4;
    font-family: 'Courier New', monospace;
    min-width: 80px;
}

/* Program column styling */
.schedule-table tbody td:nth-child(2),
.schedule-table tbody td:nth-child(5) {
    font-weight: 600;
    color: #2c3e50;
    min-width: 150px;
}

/* Teacher column styling */
.schedule-table tbody td:nth-child(3),
.schedule-table tbody td:nth-child(6) {
    color: #6c757d;
    font-style: italic;
    min-width: 120px;
}

.schedule-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-size: 16px;
    background: white;
}

.schedule-loading.hidden {
    display: none;
}

/* Schedule Legend */
.schedule-legend {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    margin-top: 20px;
}

.schedule-legend h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.legend-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.legend-item strong {
    color: #2c3e50;
    font-size: 14px;
}

.legend-item div {
    font-size: 13px;
    line-height: 1.4;
    color: #6c757d;
}

/* Print styles */
@media print {
    .schedule-container {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
        margin-bottom: 20px;
    }

    .schedule-header {
        background: #000 !important;
        color: white !important;
    }

    .schedule-table {
        font-size: 11px;
    }

    .schedule-table thead th {
        background: #f0f0f0 !important;
        border: 1px solid #000;
    }

    .schedule-table tbody td {
        border: 1px solid #000;
    }

    .schedule-legend {
        display: none;
    }

    .section-header button {
        display: none;
    }
}

/* Library Search Styles */
.library-search-container {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
    border: 1px solid #e1e5e9;
}

.search-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-search-bar {
    display: flex;
    gap: 10px;
    align-items: center;
}

.library-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.library-search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-filters {
    border-top: 1px solid #e1e5e9;
    padding-top: 20px;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

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

.filter-group label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.search-results-info {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-results-info.hidden {
    display: none;
}

#results-count {
    font-weight: 600;
    color: #2c3e50;
}

#search-summary {
    color: #6c757d;
    font-size: 14px;
}

/* Library Results */
.library-results {
    min-height: 400px;
    position: relative;
}

.library-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.library-loading.hidden {
    display: none;
}

.loading-content {
    text-align: center;
    color: #6c757d;
}

.loading-content .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.loading-content p {
    margin: 0;
    font-size: 16px;
}

/* Shows Grid */
.shows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.shows-grid.hidden {
    display: none;
}

.show-card-library {
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.show-card-library:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.show-card-library.has-image {
    background-size: cover;
    background-position: center;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.show-card-library.has-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.show-card-library.has-image > * {
    position: relative;
    z-index: 2;
}

.show-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.show-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
}

.show-card-library.has-image .show-title {
    color: white;
}

.show-status {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.status-badge {
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.recording {
    background: #dc2626;
}

.status-badge.linked {
    background: #059669;
}

.status-badge.rebroadcast {
    background: #d97706;
}

.show-meta {
    margin-bottom: 12px;
}

.show-genre {
    color: #667eea;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.show-card-library.has-image .show-genre {
    color: #e8edff;
}

.show-hosts {
    color: #6c757d;
    font-size: 13px;
    font-style: italic;
}

.show-card-library.has-image .show-hosts {
    color: rgba(255, 255, 255, 0.9);
}

.show-description {
    color: #495057;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.show-card-library.has-image .show-description {
    color: rgba(255, 255, 255, 0.95);
}

.show-schedule {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #6c757d;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    border-radius: 6px;
    margin: -5px -5px 0 -5px;
}

.show-card-library.has-image .show-schedule {
    background: rgba(255, 255, 255, 0.9);
    color: #495057;
}

.schedule-days {
    font-weight: 600;
}

.schedule-time {
    font-family: 'Courier New', monospace;
}

/* No Results */
.no-results {
    background: white;
    padding: 60px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    text-align: center;
}

.no-results.hidden {
    display: none;
}

.no-results-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-results-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.no-results h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 24px;
}

.no-results p {
    color: #6c757d;
    margin-bottom: 20px;
    font-size: 16px;
}

/* Show Details Modal */
.show-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.show-details-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.show-details-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.show-details-header.has-image {
    background-size: cover;
    background-position: center;
}

.show-details-header.has-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.9) 100%);
    border-radius: 12px 12px 0 0;
}

.show-details-header > * {
    position: relative;
    z-index: 2;
}

.show-details-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.show-details-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

.show-details-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    z-index: 3;
}

.show-details-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.show-details-body {
    padding: 25px;
}

.details-section {
    margin-bottom: 25px;
}

.details-section h4 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 10px;
    border-bottom: 2px solid #e1e5e9;
    padding-bottom: 5px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.detail-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    border-left: 4px solid #667eea;
}

.detail-label {
    font-weight: 600;
    color: #495057;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.detail-value {
    color: #2c3e50;
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: 1fr;
    }

    .main-search-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .shows-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .show-details-content {
        width: 95%;
        margin: 20px;
    }

    .show-details-header {
        padding: 20px;
    }

    .show-details-title {
        font-size: 24px;
    }
}

/* Custom Genre Search Styles */
.custom-genre-search {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e1e5e9;
}

.custom-genre-search h5 {
    color: #495057;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.genre-search-container {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.genre-search-input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    font-size: 13px;
    transition: border-color 0.2s ease;
}

.genre-search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.genre-search-container .btn {
    padding: 6px 12px;
    font-size: 12px;
    white-space: nowrap;
}

.custom-genre-results {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    background: #f8f9fa;
}

.custom-genre-results.hidden {
    display: none;
}

.custom-genre-file {
    padding: 8px 10px;
    border-bottom: 1px solid #e1e5e9;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-genre-file:last-child {
    border-bottom: none;
}

.custom-genre-file:hover {
    background-color: #e8edff;
    border-color: #667eea;
}

.custom-genre-file-info {
    flex: 1;
}

.custom-genre-file-name {
    font-weight: 600;
    font-size: 12px;
    color: #333;
    margin-bottom: 2px;
}

.custom-genre-file-details {
    font-size: 11px;
    color: #6c757d;
}

.custom-genre-file-duration {
    font-size: 11px;
    color: #495057;
    font-weight: 500;
    background: #e9ecef;
    padding: 1px 4px;
    border-radius: 2px;
}

/* Audio Library Styles */
.audio-library-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.library-stats {
    font-size: 14px;
    color: #666;
    margin-left: 20px;
}

.audio-search-input {
    width: 100%;
    max-width: 500px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    margin-right: 10px;
}

.audio-search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.audio-file-list {
    margin-top: 20px;
}

.file-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-select {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.view-controls {
    display: flex;
    gap: 5px;
}

.view-btn {
    padding: 8px 16px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.view-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.view-btn:hover {
    background: #f8f9ff;
    border-color: #667eea;
}

.view-btn.active:hover {
    background: #5a6fd8;
}

/* Audio File Display */
.files-container {
    min-height: 200px;
}

.loading-message {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
    font-size: 16px;
}

.no-results-message {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 16px;
}

/* Detailed View */
.audio-file-card.detailed {
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    background: white;
}

.audio-file-card.detailed:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.file-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.file-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.file-id {
    background: #f8f9fa;
    color: #666;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.file-metadata {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
}

.metadata-row {
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.metadata-label {
    font-weight: 600;
    color: #555;
    min-width: 120px;
    margin-right: 10px;
}

.metadata-value {
    color: #333;
    flex: 1;
}

/* Compact View */
.audio-file-row.compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.audio-file-row.compact:hover {
    background-color: #f8f9ff;
}

.file-basic-info {
    flex: 2;
    display: flex;
    flex-direction: column;
}

.file-basic-info .file-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 14px;
}

.file-basic-info .file-artist {
    color: #666;
    font-size: 13px;
}

.file-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: #555;
}

.file-details span {
    text-align: center;
    min-width: 60px;
}

.file-duration {
    font-weight: 600;
    color: #667eea;
}

.file-size {
    color: #777;
}

.file-genre {
    background: #f0f2ff;
    color: #667eea;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.file-year {
    color: #888;
}

/* Edit Metadata Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e1e5e9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e1e5e9;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Edit Button */
.file-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
}

.edit-metadata-btn {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #e1e5e9;
    transition: all 0.2s ease;
}

.edit-metadata-btn:hover {
    background: #e8edff;
    color: #667eea;
    border-color: #667eea;
    transform: none;
    box-shadow: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .file-list-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .sort-controls,
    .view-controls {
        justify-content: center;
    }

    .file-metadata {
        grid-template-columns: 1fr;
    }

    .audio-file-row.compact {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .file-details {
        justify-content: space-around;
        flex-wrap: wrap;
    }

    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 15px 20px;
    }

    .modal-footer {
        flex-direction: column;
    }
}

/* Compact View Edit Button */
.edit-btn.compact {
    padding: 4px 10px;
    font-size: 12px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 10px;
}

.edit-btn.compact:hover {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.edit-btn.compact:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Searchable Dropdown Styles */
.searchable-dropdown-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dropdown-search {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    background: #f9fafb;
    transition: all 0.2s;
}

.dropdown-search:focus {
    outline: none;
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.dropdown-search::placeholder {
    color: #9ca3af;
}

.filtered-dropdown {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
    max-height: 200px;
    overflow-y: auto;
}

.filtered-dropdown:hover {
    border-color: #6366f1;
}

.filtered-dropdown:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
