/* Ultimate File Converter Tools - Styles */

.converter-container {
    max-width: 800px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.converter-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    text-align: center;
    color: white;
}

.converter-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.converter-description {
    font-size: 16px;
    margin: 0;
    opacity: 0.95;
}

.converter-body {
    padding: 30px;
}

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

.upload-area:hover {
    border-color: #667eea;
    background: #eef2ff;
}

.upload-area.dragover {
    border-color: #667eea;
    background: #dbeafe;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.upload-text {
    font-size: 18px;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 10px;
}

.upload-hint {
    font-size: 14px;
    color: #6b7280;
}

.file-input {
    display: none;
}

.file-list {
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.file-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.file-name {
    font-weight: 500;
    color: #374151;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 10px;
}

.file-size {
    color: #6b7280;
    font-size: 14px;
    white-space: nowrap;
}

.file-remove {
    background: #ef4444;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
}

.file-remove:hover {
    background: #dc2626;
}

.converter-options {
    margin-top: 20px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.option-group {
    margin-bottom: 15px;
}

.option-group:last-child {
    margin-bottom: 0;
}

.option-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.option-group select,
.option-group input[type="range"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.option-group input[type="range"] {
    padding: 0;
}

[data-value-display] {
    display: inline-block;
    margin-left: 10px;
    font-weight: 600;
    color: #667eea;
}

.convert-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.convert-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.convert-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    box-shadow: none;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.output-info {
    margin-top: 20px;
    padding: 15px;
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    border-radius: 8px;
    color: #065f46;
    font-weight: 500;
}

.output-info.error {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .converter-container {
        margin: 20px;
        border-radius: 12px;
    }

    .converter-header {
        padding: 20px;
    }

    .converter-title {
        font-size: 24px;
    }

    .converter-description {
        font-size: 14px;
    }

    .converter-body {
        padding: 20px;
    }

    .upload-area {
        padding: 40px 15px;
    }

    .upload-icon {
        font-size: 36px;
    }

    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .file-name {
        margin-right: 0;
    }
}

/* Loading Spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.convert-btn.loading::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    margin-right: 8px;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

/* Success Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.output-info {
    animation: slideDown 0.3s ease;
}