/* Converter Specific Styles */
.converter-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Upload Area */
.upload-area {
    background: var(--light);
    border: 2px dashed var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(0, 102, 255, 0.05);
}

.upload-area.dragover {
    border-color: var(--success);
    background: rgba(22, 163, 74, 0.1);
    transform: scale(1.02);
}

.upload-content {
    text-align: center;
    pointer-events: none;
}

.upload-content i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* File Info */
.file-info {
    animation: fadeInUp 0.5s ease-out;
}

.file-info .fa-file {
    color: hsl(var(--primary));
}

/* Format Buttons */
.format-btn {
    padding: 0.5rem 1rem;
    border: 2px solid hsl(var(--border));
    background: hsl(var(--background));
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.format-btn:hover {
    border-color: hsl(var(--primary));
    background: hsl(var(--primary));
    color: white;
    transform: translateY(-2px);
}

.format-btn.selected {
    border-color: hsl(var(--success));
    background: hsl(var(--success));
    color: white;
}

/* Progress Bar */
#progressContainer {
    animation: fadeInUp 0.5s ease-out;
}

.progress {
    height: 20px;
    border-radius: 10px;
    background: hsl(var(--light));
    overflow: hidden;
}

.progress-bar {
    transition: width 0.3s ease;
    border-radius: 10px;
    background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--success)));
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
    animation: move 1s linear infinite;
}

@keyframes move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 1rem 0;
    }
}

/* Conversion Options */
.conversion-options {
    animation: fadeInUp 0.5s ease-out;
}

/* Convert Section */
.convert-section {
    animation: fadeInUp 0.5s ease-out;
}

#convertBtn {
    background: linear-gradient(135deg, hsl(var(--success)), hsl(142 76% 30%));
    border: none;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
    transition: all 0.3s ease;
}

#convertBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.4);
}

#convertBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Download Section */
.download-section {
    animation: fadeInUp 0.5s ease-out;
}

#downloadBtn {
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(220 100% 45%));
    border: none;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
    transition: all 0.3s ease;
}

#downloadBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
}

/* Error Message */
#errorMessage {
    animation: shake 0.5s ease-out;
}

@keyframes shake {
    0%, 20%, 40%, 60%, 80% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-10px);
    }
}

/* Supported Formats */
.supported-formats {
    margin-top: 3rem;
}

.format-category {
    background: hsl(var(--background));
    border: 1px solid hsl(var(--border));
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
}

.format-category:hover {
    background: hsl(var(--light));
    border-color: hsl(var(--primary));
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.format-category i {
    font-size: 2.5rem;
}

.format-category h6 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* File Type Icons */
.file-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: white;
}

.file-icon.pdf { background: #e53e3e; }
.file-icon.docx { background: #2b6cb0; }
.file-icon.jpg, .file-icon.jpeg { background: #38a169; }
.file-icon.png { background: #805ad5; }
.file-icon.mp3 { background: #d69e2e; }
.file-icon.wav { background: #38b2ac; }
.file-icon.mp4 { background: #e53e3e; }

/* Responsive Design */
@media (max-width: 768px) {
    .converter-container {
        padding: 0 1rem;
    }
    
    .upload-area {
        min-height: 150px;
        padding: 2rem 1rem;
    }
    
    .upload-content i {
        font-size: 3rem;
    }
    
    .format-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .supported-formats .row {
        margin: 0 -0.5rem;
    }
    
    .supported-formats .col-md-3 {
        padding: 0 0.5rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .upload-area {
        min-height: 120px;
        padding: 1.5rem 1rem;
    }
    
    .upload-content h5 {
        font-size: 1.1rem;
    }
    
    .upload-content p {
        font-size: 0.9rem;
    }
    
    .file-info {
        font-size: 0.9rem;
    }
    
    .format-category {
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .d-flex.gap-2 {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .upload-area {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .format-category {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.2);
    }
}
