/* Audio Transcriber - Custom Styles */

/* File Upload Area Loading State */
.file-upload-area.loading {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.05));
    border-color: var(--primary-color, #ff6b35);
    cursor: wait;
    pointer-events: none;
}

.file-upload-area.file-loaded {
    background: linear-gradient(135deg, rgba(52, 206, 87, 0.1), rgba(40, 167, 69, 0.05));
    border-color: var(--accent-green, #5cb85c);
}

/* File Info Success Display */
.file-info-success {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--background-secondary, #232425);
    border-radius: 8px;
    border: 2px solid var(--accent-green, #5cb85c);
    margin-top: 12px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-icon {
    font-size: 2rem;
    line-height: 1;
}

.file-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.file-name-text {
    font-weight: 600;
    color: var(--text-primary, #e0e0e0);
    font-size: 1rem;
    word-break: break-word;
}

.file-size-text {
    font-size: 0.85rem;
    color: var(--text-secondary, #b3b3bd);
    opacity: 0.8;
}

.success-check {
    font-size: 1.5rem;
    line-height: 1;
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Small inline spinner for file loading */
.spinner-sm {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 107, 53, 0.2);
    border-top-color: var(--primary-color, #ff6b35);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* File Name Loading Inline Spinner */
.file-name-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--background-secondary, #232425);
    border-radius: 6px;
    border: 2px solid var(--primary-color, #ff6b35);
    margin-top: 12px;
}

.file-name-loading .spinner-sm {
    flex-shrink: 0;
}

/* Progress Container Enhancements */
#progressDiv .loading-container {
    background: var(--background-secondary, #232425);
    border: 2px solid var(--border-color, #4e4e57);
    border-radius: 12px;
    margin: 20px 0;
    padding: 30px;
}

#progressText {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary, #e0e0e0);
    margin-top: 10px;
}

#progressBar {
    width: 100%;
    height: 24px;
    border-radius: 12px;
    margin-top: 15px;
    background: var(--background-dark, #1a1a1a);
    border: 2px solid var(--border-color, #4e4e57);
}

#progressBar::-webkit-progress-bar {
    background: var(--background-dark, #1a1a1a);
    border-radius: 12px;
}

#progressBar::-webkit-progress-value {
    background: linear-gradient(135deg, var(--primary-color, #ff6b35), var(--primary-dark, #e55a25));
    border-radius: 12px;
    transition: width 0.3s ease;
}

#progressBar::-moz-progress-bar {
    background: linear-gradient(135deg, var(--primary-color, #ff6b35), var(--primary-dark, #e55a25));
    border-radius: 12px;
    transition: width 0.3s ease;
}

#progressPercent {
    margin-top: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color, #ff6b35);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .file-info-success {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .file-icon {
        font-size: 2.5rem;
    }

    .success-check {
        margin-top: 4px;
    }
}
