/* AV Toolkit Styles - Enhanced Visibility */
.av-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: var(--bg-primary, #ffffff);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color, #e2e8f0);
}

.av-header {
    text-align: center;
    margin-bottom: 30px;
}

.av-header h1 {
    color: var(--text-primary, #1e293b);
    margin-bottom: 10px;
}

.av-header .subtitle {
    color: var(--text-secondary, #64748b);
    font-size: 0.95rem;
}

/* Force visibility for AV Toolkit - Dropzone */
.av-dropzone {
    border: 3px solid #3b82f6 !important;
    border-radius: 12px !important;
    padding: 50px 20px !important;
    text-align: center !important;
    background: #f0f7ff !important;
    cursor: pointer !important;
    margin: 20px 0 !important;
    transition: all 0.2s ease !important;
}

.av-dropzone:hover {
    background: #e0efff !important;
    border-color: #2563eb !important;
}

.dropzone-icon {
    font-size: 50px;
    color: #3b82f6;
    margin-bottom: 15px;
    display: block;
}

.av-dropzone h3 {
    font-size: 1.2rem;
    color: #1e293b;
    margin-bottom: 8px;
}

.av-dropzone p {
    color: #475569;
    margin-bottom: 5px;
}

.dropzone-hint {
    font-size: 12px;
    color: #64748b;
    margin-top: 10px;
}

/* Preview Section */
.av-preview {
    margin-top: 30px;
}

/* Info Card */
.av-info-card {
    background: #f1f5f9 !important;
    padding: 15px !important;
    border-radius: 8px !important;
    margin: 20px 0 !important;
    border: 1px solid #cbd5e1 !important;
}

.info-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 5px 0;
}

.info-label {
    font-weight: 600;
    color: #334155;
}

.info-value {
    color: #475569;
    word-break: break-word;
    text-align: right;
}

/* Video/Audio Preview */
.av-video-preview {
    width: 100%;
    border-radius: 8px;
    background: #000;
    margin-bottom: 20px;
    max-height: 400px;
    border: 1px solid #cbd5e1;
}

.av-audio-preview {
    width: 100%;
    margin-bottom: 20px;
}

/* Action Buttons */
.av-actions {
    display: flex !important;
    gap: 15px !important;
    margin: 20px 0 !important;
}

.btn-audio {
    background: #2563eb !important;
    color: white !important;
    padding: 12px 24px !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-weight: bold !important;
    font-size: 14px !important;
    flex: 1 !important;
    transition: all 0.2s ease !important;
}

.btn-audio:hover {
    background: #1d4ed8 !important;
    transform: translateY(-1px);
}

.btn-frame {
    background: #10b981 !important;
    color: white !important;
    padding: 12px 24px !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-weight: bold !important;
    font-size: 14px !important;
    flex: 1 !important;
    transition: all 0.2s ease !important;
}

.btn-frame:hover {
    background: #059669 !important;
    transform: translateY(-1px);
}

.btn-audio:disabled, .btn-frame:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Download Section */
.av-download-section {
    margin-top: 20px;
    padding: 15px;
    background: #e8f4f0;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #0d9488;
}

.av-download-section p {
    margin-bottom: 10px;
    color: #0d9488;
    font-weight: 500;
}

.btn-download {
    display: inline-block;
    padding: 10px 20px;
    background: #0d9488 !important;
    color: white !important;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s;
    font-weight: 600;
}

.btn-download:hover {
    background: #0f766e !important;
    color: white !important;
    text-decoration: none;
}

/* Info Box */
.av-info-box {
    margin-top: 30px;
    padding: 15px;
    background: #e6f7ff;
    border-left: 4px solid #1890ff;
    border-radius: 8px;
    border: 1px solid #91d5ff;
}

.av-info-box h5 {
    margin: 0 0 10px 0;
    color: #0050b3;
}

.av-info-box p {
    margin: 0;
    font-size: 14px;
    color: #0050b3;
}

/* Preview Container */
#mediaPreviewContainer {
    margin-top: 20px;
}

/* Dark mode support */
body.dark-mode .av-container {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .av-header h1 {
    color: #f1f5f9;
}

body.dark-mode .av-header .subtitle {
    color: #94a3b8;
}

body.dark-mode .av-dropzone {
    background: #1e293b !important;
    border-color: #3b82f6 !important;
}

body.dark-mode .av-dropzone:hover {
    background: #334155 !important;
}

body.dark-mode .av-dropzone h3 {
    color: #f1f5f9;
}

body.dark-mode .av-dropzone p {
    color: #94a3b8;
}

body.dark-mode .av-info-card {
    background: #334155 !important;
    border-color: #475569 !important;
}

body.dark-mode .info-label {
    color: #cbd5e1;
}

body.dark-mode .info-value {
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 640px) {
    .av-container {
        margin: 20px;
        padding: 20px;
    }
    
    .av-actions {
        flex-direction: column;
    }
    
    .info-row {
        flex-direction: column;
        text-align: center;
    }
    
    .info-value {
        text-align: center;
    }
}