/* Main Container */
.ic-container {
    max-width: 1200px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    padding: 2rem;
}

/* Upload Area */
.ic-upload-area {
    border: 3px dashed #cbd5e0;
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    background: #f8fafc;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 2rem;
}

.ic-upload-area.ic-highlight {
    border-color: #3b82f6;
    background: #eff6ff;
}

.ic-upload-icon {
    font-size: 4rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.ic-drop-text {
    font-size: 1.2rem;
    color: #1e293b;
    margin: 1rem 0 0.5rem;
    font-weight: 500;
}

.ic-file-limits {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0 0 1.5rem;
}

.ic-select-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 4px 6px rgba(59,130,246,0.2);
}

.ic-select-btn:hover {
    background: #2563eb;
}

/* Compression Controls */
.ic-compression-controls {
    background: #f1f5f9;
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.ic-level-selector {
    flex: 1;
    min-width: 250px;
}

.ic-level-selector label {
    font-weight: 600;
    color: #334155;
    margin-right: 1rem;
}

.ic-level-selector select {
    padding: 0.6rem 1rem;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    background: white;
    font-size: 1rem;
    color: #1e293b;
    width: 100%;
    max-width: 300px;
}

.ic-compress-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 4px 6px rgba(16,185,129,0.2);
    white-space: nowrap;
}

.ic-compress-btn:hover {
    background: #059669;
}

.ic-loading {
    color: #64748b;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Preview Section */
.ic-preview-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.ic-preview-section h3 {
    font-size: 1.2rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 600;
}

.ic-image-preview {
    background: #f1f5f9;
    border-radius: 16px;
    padding: 1rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ic-image-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.ic-size {
    margin-top: 0.5rem;
    font-weight: 500;
    color: #475569;
}

/* Results Section */
.ic-results {
    text-align: center;
    margin: 2rem 0 0;
    padding: 1.5rem;
    background: #f0fdf4;
    border-radius: 16px;
}

.ic-percentage {
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 1rem;
}

.ic-download-btn {
    display: inline-block;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.2s;
    box-shadow: 0 4px 6px rgba(59,130,246,0.2);
}

.ic-download-btn:hover {
    background: #2563eb;
    color: white;
}

/* Error Message */
.ic-error {
    margin-top: 1rem;
    padding: 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #b91c1c;
    font-weight: 500;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ic-container {
        padding: 1rem;
    }

    .ic-preview-section {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .ic-compression-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .ic-level-selector select {
        max-width: 100%;
    }

    .ic-compress-btn {
        width: 100%;
    }
}