.cca-container {
    max-width: 900px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1d2327;
    padding: 0 15px;
}

.cca-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border: 1px solid #dcdcde;
}

.cca-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #f0f0f1;
    padding-bottom: 1rem;
}

.cca-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.cca-reset-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: #cc1818;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    padding: 0;
}

.cca-reset-btn:hover {
    opacity: 0.7;
}

/* Drop Zone */
.cca-drop-zone {
    border: 2px dashed #c3c4c7;
    border-radius: 6px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f6f7f7;
    margin-bottom: 2rem;
}

.cca-drop-zone:hover, .cca-drop-zone.dragover {
    border-color: #2271b1;
    background: #ffffff;
}

.cca-drop-zone.cca-disabled {
    cursor: not-allowed;
    background: #fdfdfd;
    border-color: #e2e8f0;
}

.cca-icon-upload {
    color: #8c8f94;
    margin-bottom: 1rem;
}

.cca-link {
    color: #2271b1;
    text-decoration: underline;
}

/* Controls */
.cca-controls {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f6f7f7;
    border-radius: 6px;
    border: 1px solid #dcdcde;
}

@media (max-width: 900px) {
    .cca-controls {
        grid-template-columns: 1fr;
    }
}

.cca-control-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Fancy Format Picker */
.cca-format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 0.5rem;
}

.cca-format-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: #ffffff;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.cca-format-opt:hover {
    border-color: #8c8f94;
}

.cca-format-opt.active {
    border-color: #2271b1;
    background: #f0f6fb;
    box-shadow: 0 0 0 1px #2271b1;
}

.cca-format-opt strong {
    font-size: 11px;
    color: #1d2327;
    display: block;
}

.cca-format-opt span {
    font-size: 9px;
    color: #646970;
}

.cca-format-opt.active strong {
    color: #2271b1;
}

/* Slider */
.cca-slider {
    width: 100%;
    height: 4px;
    background: #dee2e6;
    border-radius: 5px;
    appearance: none;
    outline: none;
    accent-color: #2271b1;
}

.cca-slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.25rem;
    font-size: 9px;
    color: #8c8f94;
}

.cca-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
    font-size: 13px;
}

.cca-btn-primary {
    background: #2271b1;
    color: white;
}

.cca-btn-primary:hover {
    background: #135e96;
}

/* Progress */
.cca-progress-bar {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.cca-progress-fill {
    height: 100%;
    background: #2271b1;
    width: 0%;
    transition: width 0.3s ease;
}

/* Results */
.cca-results {
    margin-top: 2rem;
}

.cca-result-item {
    border: 1px solid #dcdcde;
    border-radius: 6px;
    margin-bottom: 2rem;
    background: #ffffff;
    overflow: hidden;
}

.cca-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #dcdcde;
    min-height: 200px;
}

@media (max-width: 600px) {
    .cca-preview-grid {
        grid-template-columns: 1fr;
    }
}

.cca-preview-box {
    text-align: center;
    background: #ffffff;
    padding: 1rem;
    position: relative;
}

.cca-preview-box .cca-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #3c434a;
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
}

.cca-preview-box .cca-tag.optimized {
    background: #2271b1;
}

.cca-preview-box img {
    max-width: 100%;
    max-height: 250px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.cca-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f6f7f7;
    padding: 0.75rem 1.5rem;
    border-top: 1px solid #dcdcde;
}

.cca-savings {
    color: #46b450;
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
}

.cca-meta {
    font-size: 10px;
    color: #646970;
}

.cca-download-btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: #46b450;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.cca-download-btn:hover {
    background: #399341;
}
