.cs {
    box-sizing: border-box;
    
    /* Feature Options */
    .feature-options {
        margin-bottom: 20px;
    }
    
    .option-group {
        margin-bottom: 1rem;
        padding:.75rem 1rem;
        background: #f8f9fa;
        border-radius: 8px;
    }
    
    .option-label {
        display: flex;
        align-items: center;
        font-size: 1.05em;
        font-weight: 500;
        cursor: pointer;
    }
    
    .option-label input[type="radio"] {
        margin-right: 10px;
        width: 18px;
        height: 18px;
        cursor: pointer;
    }
    
    .sub-options {
        margin-top: 15px;
        padding-top: 15px;
        border-top: 2px solid #dee2e6;
    }
    
    .input-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .input-group {
        display: flex;
        flex-direction: column;
    }
    
    .input-group label {
        font-size: 0.9em;
        color: #6c757d;
        margin-bottom: 5px;
    }
    
    .form-input {
        padding: 10px;
        border: 2px solid #dee2e6;
        border-radius: 6px;
        font-size: 1em;
        transition: border-color 0.3s;
    }
    
    .form-input:focus {
        outline: none;
        border-color: #667eea;
    }
    
    .checkbox-label {
        display: flex;
        align-items: center;
        font-size: 0.95em;
        color: #495057;
        cursor: pointer;
        margin-bottom: 10px;
    }
    
    .checkbox-label input[type="checkbox"] {
        margin-right: 8px;
        width: 16px;
        height: 16px;
        cursor: pointer;
    }
    
    .zoom-slider-container {
        margin-top: 10px;
    }
    
    .zoom-slider-container label {
        display: block;
        font-size: 0.9em;
        color: #6c757d;
        margin-bottom: 8px;
    }
    
    .zoom-slider {
        width: 100%;
        height: 6px;
        border-radius: 3px;
        background: #dee2e6;
        outline: none;
        -webkit-appearance: none;
        appearance: none;
    }
    
    .zoom-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #667eea;
        cursor: pointer;
    }
    
    .zoom-slider::-moz-range-thumb {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: #667eea;
        cursor: pointer;
        border: none;
    }
    
    #cropZoomValue {
        display: inline-block;
        margin-left: 10px;
        font-weight: 600;
        color: #667eea;
    }
    
    /* Responsive */
    @media (max-width: 968px) {
        .panel-grid {
            grid-template-columns: 1fr;
        }
    
        .action-buttons {
            grid-template-columns: 1fr;
        }
    
        .header h1 {
            font-size: 2em;
        }
    
        .input-row {
            grid-template-columns: 1fr;
        }
    }
    /* Loading State */
    .btn-primary.processing {
        opacity: 0.8;
        pointer-events: none;
    }
    
    .btn-primary.processing::after {
        content: '';
        display: inline-block;
        width: 14px;
        height: 14px;
        margin-left: 8px;
        border: 2px solid white;
        border-radius: 50%;
        border-top-color: transparent;
        animation: spin 0.6s linear infinite;
    }

/* Image Info Overlay */
.image-info {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.85em;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
    max-width: 250px;
    animation: fadeIn 0.3s ease;
}
.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
    overflow: hidden;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-label {
    font-weight: 600;
    opacity: 0.9;
    white-space: nowrap;
}

.info-value {
    font-weight: 400;
    text-align: right;
    word-break: break-word;
    white-space: nowrap;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* Cropper Container */
.cropper-container-wrapper {
    margin: 15px 0;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

#cropperContainer {
    max-height: 400px;
    overflow: hidden;
}

#cropperImage {
    max-width: 100%;
    display: block;
}

.crop-info {
    background: #e3f2fd;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 4px solid #2196F3;
}

.crop-info p {
    margin: 0;
    color: #1565c0;
    font-size: 0.9em;
}

.crop-controls {
    display: flex;
    gap: 8px;
    margin: 15px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 0.9em;
}

.aspect-ratio-options {
    margin-top: 15px;
}

.aspect-presets {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.aspect-btn {
    flex: 1;
    min-width: 60px;
}

.aspect-btn.active {
    background: #667eea;
    color: white;
}

/* Cropper.js custom styles */
.cropper-container {
    direction: ltr;
    font-size: 0;
    line-height: 0;
    position: relative;
    touch-action: none;
    user-select: none;
}

.cropper-view-box {
    outline: 1px solid #667eea;
    outline-color: rgba(102, 126, 234, 0.75);
}

.cropper-point {
    background-color: #667eea;
}

.cropper-line {
    background-color: #667eea;
}

.cropper-center {
    opacity: 1;
}

.cropper-center:before,
.cropper-center:after {
    background-color: #667eea;
}

}


@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
