.format-converter-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.converter-step {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.converter-step h3 {
    margin-top: 0;
    color: #2c3338;
    border-bottom: 2px solid #f0f0f1;
    padding-bottom: 15px;
}

.format-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 25px 0;
}

.selection-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3338;
}

.format-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #dcdcde;
    border-radius: 6px;
    font-size: 14px;
    background: white;
}

.format-select:focus {
    border-color: #2271b1;
    outline: none;
}

.format-select:disabled {
    background-color: #f6f7f7;
    color: #646970;
}

.format-info {
    background: #f0f6fc;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #2271b1;
    margin-top: 20px;
}

.conversion-path {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: 600;
}

.from-format, .to-format {
    background: #2271b1;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
}

.conversion-arrow {
    color: #646970;
    font-weight: bold;
}

.supported-files {
    margin-top: 10px;
    font-size: 0.9em;
    color: #646970;
}

.upload-area {
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 50px 20px;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 20px 0;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #2271b1;
    background: #f0f6fc;
}

.upload-content svg {
    color: #72777c;
    margin-bottom: 15px;
}

.upload-content h4 {
    margin: 0 0 10px 0;
    color: #2c3338;
}

.upload-content p {
    margin: 0 0 20px 0;
    color: #646970;
}

.converter-btn {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    color: #2c3338;
    margin: 5px;
}

.converter-btn:hover {
    background: #f0f0f1;
    border-color: #8c8f94;
}

.converter-btn.primary {
    background: #2271b1;
    border-color: #2271b1;
    color: white;
}

.converter-btn.primary:hover {
    background: #135e96;
    border-color: #135e96;
}

.converter-btn.success {
    background: #00a32a;
    border-color: #00a32a;
    color: white;
}

.converter-btn.success:hover {
    background: #008a20;
    border-color: #008a20;
}

.file-preview {
    text-align: center;
    margin: 20px 0;
}

.file-preview img,
.file-preview video {
    max-width: 300px;
    max-height: 200px;
    border-radius: 6px;
    border: 1px solid #dcdcde;
}

.file-icon {
    margin-bottom: 15px;
}

.file-icon svg {
    color: #72777c;
}

.file-info {
    margin-top: 10px;
}

.conversion-info {
    text-align: center;
}

.conversion-summary {
    background: #f6f7f7;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
    display: inline-block;
}

.summary-item {
    margin: 8px 0;
    padding: 5px 0;
    border-bottom: 1px solid #e0e0e0;
}

.summary-item:last-child {
    border-bottom: none;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
}

.progress-bar {
    flex: 1;
    height: 12px;
    background: #f6f7f7;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #dcdcde;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2271b1, #135e96);
    border-radius: 6px;
    width: 0%;
    transition: width 0.4s ease;
}

.progress-text {
    font-weight: 700;
    color: #2c3338;
    min-width: 40px;
}

#progress-status {
    color: #646970;
    font-style: italic;
}

.conversion-result {
    text-align: center;
    padding: 30px 0;
}

.success-icon {
    font-size: 48px;
    color: #00a32a;
    margin-bottom: 15px;
}

.result-details {
    background: #f6f7f7;
    padding: 20px;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 400px;
    text-align: left;
}

.result-item {
    margin: 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.result-item:last-child {
    border-bottom: none;
}

.action-buttons {
    margin-top: 20px;
}

.error-message {
    background: #fcf0f1;
    border: 1px solid #d63638;
    color: #d63638;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
    text-align: center;
}

.error-actions {
    margin-top: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .format-converter-container {
        padding: 15px;
    }
    
    .converter-step {
        padding: 20px;
    }
    
    .format-selection {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .upload-area {
        padding: 30px 15px;
    }
    
    .progress-container {
        flex-direction: column;
        text-align: center;
    }
    
    .action-buttons,
    .error-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .converter-btn {
        width: 100%;
        max-width: 250px;
        margin: 5px 0;
    }
    
    .file-preview img,
    .file-preview video {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .conversion-path {
        flex-direction: column;
        gap: 5px;
    }
    
    .conversion-arrow {
        transform: rotate(90deg);
    }
}