/* File Converter Styles */

.converter-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.converter-header {
    text-align: center;
    margin-bottom: 2rem;
}

.converter-header h1 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.converter-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Upload Zone */
.upload-section {
    margin-bottom: 2rem;
}

.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    background: var(--surface-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--primary);
    background: rgba(88, 101, 242, 0.1);
}

.upload-icon {
    width: 64px;
    height: 64px;
    color: var(--primary);
    margin-bottom: 1rem;
}

.upload-content h3 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.upload-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Options Section */
.options-section {
    background: var(--surface-color);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.options-section h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-group label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.option-group select,
.option-group input[type="number"] {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--text-light);
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.option-group select:focus,
.option-group input[type="number"]:focus {
    outline: none;
    border-color: var(--primary);
}

.option-group input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
}

.size-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.size-inputs input {
    width: 80px;
}

.size-inputs span {
    color: var(--text-muted);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.checkbox-custom svg {
    width: 14px;
    height: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.checkbox-label input:checked + .checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input:checked + .checkbox-custom svg {
    opacity: 1;
    color: white;
}

/* Files Section */
.files-section {
    background: var(--surface-color);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    display: none;
}

.files-section.show {
    display: block;
}

.files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.files-header h3 {
    color: var(--text-light);
    font-size: 1.1rem;
}

.files-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.action-btn svg {
    width: 18px;
    height: 18px;
}

.convert-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.convert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.convert-btn svg {
    width: 18px;
    height: 18px;
}

.files-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--dark-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.file-preview {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--surface-color);
}

.file-info {
    flex: 1;
}

.file-name {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.25rem;
    word-break: break-all;
}

.file-size {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.file-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.file-status.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.file-status.converting {
    background: rgba(88, 101, 242, 0.2);
    color: var(--primary);
}

.file-status.done {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.file-status.error {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.file-remove {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.file-remove:hover {
    color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

.file-remove svg {
    width: 20px;
    height: 20px;
}

/* Download Section */
.download-section {
    background: var(--surface-color);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    display: none;
}

.download-section.show {
    display: block;
}

.download-section h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.download-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--dark-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.download-item .file-preview {
    width: 50px;
    height: 50px;
}

.download-btn {
    padding: 0.5rem 1rem;
    background: var(--success);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.download-btn svg {
    width: 16px;
    height: 16px;
}

.download-all-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.download-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4);
}

.download-all-btn svg {
    width: 20px;
    height: 20px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--success);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .converter-container {
        padding: 1rem;
    }

    .converter-header h1 {
        font-size: 2rem;
    }

    .upload-zone {
        padding: 2rem;
    }

    .files-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .files-actions {
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .file-item {
        flex-wrap: wrap;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .converter-container {
        padding: 0.75rem;
    }

    .converter-header h1 {
        font-size: 1.75rem;
    }

    .upload-zone {
        padding: 1.5rem 1rem;
    }

    .upload-icon {
        width: 48px;
        height: 48px;
    }

    .options-section,
    .files-section,
    .download-section {
        padding: 1rem;
        border-radius: 12px;
    }

    .files-actions {
        flex-direction: column;
    }

    .action-btn,
    .convert-btn {
        width: 100%;
        justify-content: center;
    }

    .file-preview {
        width: 50px;
        height: 50px;
    }
}
