/* Video Format Converter - Reusing base styles */
@import url('video-compressor.css');

.tool-header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.tool-header::before {
    content: '🔄';
}

.format-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
}

.format-btn {
    padding: 16px 12px;
    border-radius: 10px;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    color: #374151;
    transition: all 0.2s;
    text-align: center;
}

.format-btn:hover {
    background: #dbeafe;
    transform: translateY(-2px);
}

.format-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: transparent;
}

.format-btn small {
    display: block;
    font-size: 11px;
    opacity: 0.8;
    margin-top: 4px;
}

.quality-section {
    margin: 25px 0;
    padding: 20px;
    background: #f9fafb;
    border-radius: 10px;
}

.quality-section label {
    display: block;
    margin-bottom: 10px;
    color: #374151;
    font-size: 15px;
}

.quality-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.quality-select:hover {
    border-color: #3b82f6;
}

.quality-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.video-preview-result {
    margin-bottom: 20px;
}

.video-preview-result label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #374151;
}

.conversion-info {
    background: #f9fafb;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row span:first-child {
    color: #6b7280;
    font-weight: 500;
}

.info-row strong {
    color: #374151;
    font-weight: 700;
}

.progress-status {
    text-align: center;
    color: #3b82f6;
    font-weight: 600;
    margin-top: 10px;
    font-size: 14px;
}

@media (max-width: 640px) {
    .format-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .format-buttons {
        grid-template-columns: 1fr;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}