:root {
    --primary-color: #2563eb;
    --primary-light: #3b82f6;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f8fafc;
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    --warning-color: #f59e0b;
}

/* Drop Zone */
.cc-drop-zone {
    border: 2px dashed var(--border-medium);
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    background: var(--bg-light);
    transition: all 0.2s ease;
    cursor: pointer;
    margin: 2rem 0;
}

.cc-drop-zone:hover, .cc-drop-zone.dragover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.02);
}

.cc-drop-zone.processing {
    border-color: var(--warning-color);
    background: rgba(245, 158, 11, 0.02);
}

.cc-drop-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: block;
}

.cc-drop-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.cc-drop-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.cc-browse-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cc-browse-btn:hover {
    background: var(--primary-light);
}

/* File Preview */
.cc-file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.cc-file-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    min-width: 200px;
    border: 1px solid var(--border-light);
    flex: 1;
    min-width: 280px;
}

.cc-file-preview-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-light);
}

.cc-file-item .cc-remove-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cc-file-item .cc-remove-btn:hover {
    background: #b91c1c;
}

/* Format Selector */
.cc-format-selector {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid var(--border-light);
}

.cc-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.cc-format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cc-format-btn {
    border: 2px solid var(--border-light);
    background: white;
    color: var(--text-dark);
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.cc-format-btn:hover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.02);
}

.cc-format-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.cc-format-btn.active .cc-format-desc {
    color: rgba(255, 255, 255, 0.9);
}

.cc-format-desc {
    color: var(--text-muted);
}

.cc-format-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

/* Fixed format info */
.cc-fixed-format-info {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-light);
    text-align: center;
}

.cc-fixed-format-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
    color: white;
}

/* Convert Button */
.cc-convert-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cc-convert-btn:hover:not(:disabled) {
    background: var(--primary-light);
}

.cc-convert-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Progress Bar */
.cc-progress-bar {
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.cc-progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

/* Control Styles */
.cc-quality-control {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    margin-top: 1rem;
}

.cc-size-limit-control {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    margin-top: 1rem;
}

.cc-custom-range {
    margin: 0.5rem 0;
    background: white;
    border-radius: 6px;
    padding: 0.5rem;
    border: 1px solid var(--border-light);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .cc-drop-zone {
        padding: 2rem 1rem;
        margin: 1.5rem 0;
    }
    
    .cc-drop-title {
        font-size: 1.25rem;
    }
    
    .cc-drop-subtitle {
        font-size: 0.9rem;
    }
    
    .cc-file-item {
        min-width: 100%;
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }
    
    .cc-format-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .cc-format-btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .cc-format-icon {
        font-size: 1.25rem;
    }
    
    .cc-convert-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .cc-format-selector {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .cc-drop-zone {
        padding: 1.5rem 1rem;
    }
    
    .cc-drop-icon {
        font-size: 2.5rem;
    }
    
    .cc-drop-title {
        font-size: 1.1rem;
    }
    
    .cc-format-grid {
        grid-template-columns: 1fr;
    }
    
    .cc-format-btn {
        padding: 1rem;
    }
}
