/* Upload Tool Styles */
/* Brand logo styles */
.brand-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    vertical-align: middle;
}

.brand-text {
    font-size: 1.5rem;
}

.footer-logo {
    height: 28px;
}

/* === ENHANCED UPLOAD SECTION === */
.upload-section {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-section.dragover {
    transform: scale(1.02);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

/* Upload Dropzone - Explicit styling */
.upload-dropzone {
    width: 100%;
    min-height: 150px;
    border: 3px dotted #cbd5e0 !important;
    border-radius: 8px;
    padding: 48px 32px;
    text-align: center;
    transition: all 0.3s ease;
    background-color: #fafafa;
    margin-bottom: 1rem;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.upload-section:hover .upload-dropzone {
    border-color: #667eea !important;
    background-color: #f8f9ff;
}

.upload-section.dragover .upload-dropzone {
    border-color: #667eea !important;
    background-color: #f0f4ff;
    border-style: solid !important;
}

.dropzone-text {
    color: #718096;
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    line-height: 1.3;
    text-align: center;
}

/* Dynamic sizing for filename text */
.dropzone-text.filename-long {
    font-size: 0.95rem;
    line-height: 1.2;
}

.dropzone-text.filename-very-long {
    font-size: 0.85rem;
    line-height: 1.1;
}

.dropzone-text.filename-extra-long {
    font-size: 0.75rem;
    line-height: 1.1;
}

/* Mobile responsive adjustments for dropzone text */
@media (max-width: 575.98px) {
    .dropzone-text {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    
    .dropzone-text.filename-long {
        font-size: 0.9rem;
    }
    
    .dropzone-text.filename-very-long {
        font-size: 0.8rem;
    }
    
    .dropzone-text.filename-extra-long {
        font-size: 0.7rem;
    }
}

/* Ensure upload section is properly styled */
.upload-section {
    position: relative;
    cursor: pointer;
}

/* Hide any conflicting upload-icon styles */
.upload-section .upload-icon {
    display: none !important;
}

/* Upload Text Styling */
.upload-hint {
    font-size: 0.9rem;
    color: #718096;
}

/* File Input Styling */
.file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: -1;
}

/* Language Select Enhancement */
.language-section label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.form-select {
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* Enhanced Upload Button */
.upload-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-btn-primary:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Success Download Button */
#download-btn {
    background: linear-gradient(135deg, #00C853 0%, #00E676 100%);
    font-weight: 600;
    transition: all 0.3s ease;
}

#download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 200, 83, 0.3);
}

/* Progress Section */
.progress-section {
    margin-top: 2rem;
}

/* Status Section */
.status-section {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

/* Error Message Enhancement */
.error-message {
    display: none;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.batch-progress {
    margin-top: 1rem;
}

.status-section {
    margin-top: 1rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

/* Visibility classes */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

/* === ENHANCED PROGRESS BAR === */
.progress {
    height: 32px;
    background: #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    position: relative;
}

.progress-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-weight: 600;
    font-size: 0.875rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.6s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

.progress-bar-striped {
    background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
}

.progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    from {
        background-position: 1rem 0;
    }
    to {
        background-position: 0 0;
    }
}

.progress-custom {
    height: 32px;
    margin-bottom: 1rem;
}

.progress-bar-custom {
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.progress-text {
    font-size: 1rem;
    text-align: center;
    color: #4a5568;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Progress Section Container */
#progressSection {
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    margin-top: 1.5rem;
}

/* Batch Progress Styling */
.batch-progress {
    margin-top: 1.5rem;
}

.batch-progress-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.batch-progress-item .file-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.batch-progress-item .progress {
    height: 24px;
}