/* audio-upload.css - Simplified Enhanced Audio Upload Styles */
/* Brand Color: #00ADB4 */

/* ===================================================================
   BASE UPLOAD SECTION - SIMPLIFIED
   ================================================================== */

   .audio-upload-section {
    margin: 20px 0;
    transition: all 0.3s ease;
}

.upload-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    text-align: center;
}

.upload-divider::before,
.upload-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.divider-text {
    padding: 0 16px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    background: white;
}

/* ===================================================================
   UPLOAD AREA - SIMPLIFIED
   ================================================================== */

.upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    background: #fafafa;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #00ADB4;
    background: #f0fdff;
    transform: translateY(-2px);
}

.upload-area.drag-over {
    border-color: #00ADB4;
    background: #e0f7fa;
    transform: scale(1.02);
}

.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.upload-icon {
    color: #6b7280;
    transition: color 0.3s ease;
}

.upload-area:hover .upload-icon {
    color: #00ADB4;
}

.upload-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937 !important;
    margin-bottom: 8px;
}

.upload-subtitle {
    font-size: 14px;
    color: #4b5563 !important;
    margin-bottom: 4px;
}

.upload-formats {
    font-size: 12px;
    color: #6b7280 !important;
}

/* Force text visibility in upload area */
.upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: #1f2937 !important;
}

.upload-text {
    color: #1f2937 !important;
}

/* ===================================================================
   PROGRESS STYLES - SIMPLIFIED
   ================================================================== */

.upload-progress-container {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.upload-file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.file-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 16px;
}

.file-size {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.upload-progress-bar {
    width: 100%;
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.upload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ADB4, #008B94);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.upload-status {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 16px;
    padding: 8px 12px;
    border-radius: 6px;
}

.upload-status.processing {
    background: #f0f9ff;
    color: #1e40af;
    border-left: 3px solid #00ADB4;
}

.upload-status.success {
    background: #f0fdf4;
    color: #166534;
    border-left: 3px solid #16a34a;
}

.upload-status.error {
    background: #fef2f2;
    color: #dc2626;
    border-left: 3px solid #dc2626;
}

.upload-status.warning {
    background: #fffbeb;
    color: #d97706;
    border-left: 3px solid #f59e0b;
}

/* ===================================================================
   BUTTONS - SIMPLIFIED
   ================================================================== */

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: #00ADB4;
    color: white;
    border-color: #00ADB4;
}

.btn-primary:hover {
    background: #008B94;
    border-color: #008B94;
}

.btn-secondary {
    background: white;
    color: #374151;
    border-color: #d1d5db;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn.warning {
    background: #f59e0b;
    color: white;
    border-color: #f59e0b;
}

.btn.warning:hover {
    background: #d97706;
    border-color: #d97706;
}

.upload-cancel-btn,
.retry-upload-btn,
.cancel-upload-btn {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #374151;
    cursor: pointer;
    font-size: 13px;
    margin-left: 8px;
}

.upload-cancel-btn:hover,
.cancel-upload-btn:hover {
    background: #f9fafb;
}

.retry-upload-btn {
    background: #00ADB4;
    color: white;
    border-color: #00ADB4;
}

.retry-upload-btn:hover {
    background: #008B94;
}

/* ===================================================================
   MODAL STYLES - SIMPLIFIED
   ================================================================== */

.upload-confirmation-overlay,
.file-guidance-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.upload-confirmation-dialog,
.file-guidance-dialog {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.confirmation-header,
.guidance-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.confirmation-header h3,
.guidance-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.guidance-header {
    background: #fef3c7;
}

.guidance-header h3 {
    color: #92400e;
}

.guidance-header p {
    margin: 4px 0 0 0;
    color: #a16207;
    font-size: 14px;
}

.confirmation-content,
.guidance-content {
    padding: 20px;
}

.file-details {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 16px;
}

.file-icon {
    font-size: 32px;
    color: #00ADB4;
}

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

.file-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #6b7280;
}

.file-size.large {
    color: #f59e0b;
    font-weight: 600;
}

/* ===================================================================
   WARNING NOTICES - SIMPLIFIED
   ================================================================== */

.compression-notice,
.size-warning {
    padding: 12px;
    border-radius: 6px;
    margin: 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.compression-notice.success {
    background: #f0f9ff;
    border: 1px solid #00ADB4;
    color: #1e40af;
}

.size-warning.warning {
    background: #fffbeb;
    border: 1px solid #f59e0b;
    color: #92400e;
}

.size-warning.error {
    background: #fef2f2;
    border: 1px solid #ef4444;
    color: #dc2626;
}

.notice-content strong {
    display: block;
    margin-bottom: 4px;
}

.upload-process-info {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
}

.upload-process-info h4 {
    margin: 0 0 8px 0;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.process-steps {
    margin: 8px 0;
    padding-left: 16px;
    color: #6b7280;
}

.process-steps li {
    margin: 4px 0;
    font-size: 13px;
}

.process-note {
    background: white;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid #00ADB4;
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #374151;
}

.confirmation-actions,
.guidance-actions {
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* Force all compression method sections to have consistent styling */
.compression-methods .method-section {
    margin-bottom: 20px;
}

.compression-methods .method-section h4 {
    margin: 0 0 12px 0;
    color: #00ADB4;
    font-size: 15px;
    font-weight: 600;
}

.compression-methods .tool-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.compression-methods .tool-link {
    display: block;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s ease;
}

.compression-methods .tool-link:hover {
    background: #e2e8f0;
    text-decoration: none;
    color: #374151;
}

.method-section h4 {
    margin: 0 0 12px 0;
    color: #374151;
    font-size: 15px;
    font-weight: 600;
}

.method-section.online h4 {
    color: #00ADB4;
}

.method-section.software h4 {
    color: #8b5cf6;
}

.method-section.free-tools h4 {
    color: #16a34a;
}

.tool-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tool-link {
    display: block;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s ease;
}

.tool-link:hover {
    background: #e2e8f0;
    text-decoration: none;
    color: #374151;
}

.tool-link strong {
    display: block;
    color: #1f2937;
    margin-bottom: 2px;
    font-weight: 600;
}

.tool-link span {
    font-size: 13px;
    color: #6b7280;
}

.software-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.software-option {
    background: #f8fafc;
    padding: 12px;
    border-radius: 6px;
}

.software-option strong {
    display: block;
    margin-bottom: 6px;
    color: #374151;
    font-weight: 600;
}

.software-option ul {
    margin: 0;
    padding-left: 16px;
    color: #6b7280;
}

.software-option li {
    margin: 2px 0;
    font-size: 13px;
}

.compression-targets {
    background: #f1f5f9;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.compression-targets h4 {
    margin: 0 0 12px 0;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.setting-item {
    background: white;
    padding: 8px;
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
}

.setting-item strong {
    display: block;
    color: #475569;
    margin-bottom: 2px;
    font-weight: 600;
}

.quick-tip {
    background: #f0f9ff;
    border: 1px solid #00ADB4;
    border-radius: 6px;
    padding: 12px;
    margin-top: 16px;
}

.quick-tip h4 {
    margin: 0 0 6px 0;
    color: #1e40af;
    font-size: 14px;
    font-weight: 600;
}

.quick-tip p {
    margin: 0;
    color: #1e40af;
    font-size: 13px;
}

/* ===================================================================
   RESPONSIVE DESIGN
   ================================================================== */

@media (max-width: 768px) {
    .upload-area {
        padding: 30px 15px;
    }
    
    .upload-confirmation-dialog,
    .file-guidance-dialog {
        margin: 10px;
        width: calc(100% - 20px);
    }
    
    .confirmation-actions,
    .guidance-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .file-details {
        flex-direction: column;
        text-align: center;
    }
    
    .file-meta {
        justify-content: center;
    }
    
    .upload-file-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* ===================================================================
   DARK MODE SUPPORT
   ================================================================== */

@media (prefers-color-scheme: dark) {
    .upload-area {
        background: #1f2937;
        border-color: #374151;
    }
    
    .upload-area:hover {
        background: #1e3a3a;
        border-color: #00ADB4;
    }
    
    .upload-title {
        color: #f9fafb;
    }
    
    .upload-subtitle,
    .upload-formats {
        color: #d1d5db;
    }
    
    .divider-text {
        color: #9ca3af;
        background: #1f2937;
    }
    
    .upload-progress-container {
        background: #1f2937;
        border-color: #374151;
    }
    
    .file-name {
        color: #f9fafb;
    }
    
    .upload-confirmation-dialog,
    .file-guidance-dialog {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .confirmation-header,
    .guidance-content {
        border-color: #374151;
    }
    
    .file-details {
        background: #374151;
    }
    
    .tool-link,
    .software-option {
        background: #374151;
        border-color: #4b5563;
        color: #d1d5db;
    }
    
    .tool-link:hover {
        background: #4b5563;
        color: #d1d5db;
    }
}