.cs {
    box-sizing: border-box;

    .upload-area {
        border-radius: var(--rounded-xl);
    }
    /* Buttons */
    .btn-success:hover {
        background: #059669;
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    }
    .btn-remove,
    .btn-adjust {
        position:absolute;
        top:10px;
        right:10px;
        color: white;
        height:30px;
        width:30px;
        border-radius:50%;
        display:flex;
        justify-content:center;
        align-items:center;
        cursor:pointer;
    }
    .btn-remove:hover {
        background: #dc2626;
    }
    .btn-adjust:hover {
       background: rgb(245, 158, 11);
    }
    /* Images Preview Section */
    .images-grid,
    .compressed-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    .image-card {
        position:relative;
        background: #f8f9fa;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
        overflow:hidden;
    }
    .image-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }
    .image-preview {
        width: 100%;
        height: 200px;
        object-fit: cover;
        background: #e9ecef;
    }
    .image-info,
    .compressed-info {
        margin:0;
        font-size: 14px;
        color: #555;
        overflow: hidden;
        padding:0 10px;
    }
    .image-info div,
    .compressed-info div {
        margin-bottom: 6px;
        padding: 4px 0;
        border-bottom: 1px solid #e9ecef;
        white-space: nowrap;
        -o-text-overflow: ellipsis;
        text-overflow: ellipsis;
        overflow: hidden;
    }
    .image-info div:last-child {
        border-bottom: none;
    }
    .image-info strong {
        color: #333;
        display: inline-block;
        min-width: 90px;
    }
    /* Compression Settings */
    .compression-settings {
        background: #f8f9ff;
        padding: 30px;
        border-radius: 12px;
        margin:2rem auto 0;
    }
    .compression-settings h2 {
        color: #333;
        margin-bottom: 20px;
        font-size: 1.8em;
    }
    .settings-tabs {
        display:flex;
        width:100%;
        max-width:200px;
    }
    .settings-tabs div{
        width:100%;
    }
    .tab-btn {
        width:100%;
        text-align: center;
        font-weight: 600;
        transition: all 0.3s ease;
        margin-bottom:10px;
    }
    .tab-content {
        flex:1;
        border:1px solid var(--border-color);
        border-radius:var(--rounded);
        background: white;
        padding: 1rem;
    }
    .tab-pane {
        display: none;
    }
    .tab-pane.active {
        display: block;
    }
    .tab-pane label {
        display: block;
        font-size: 16px;
        color: #333;
        font-weight: 600;
    }
    #qualitySlider {
        width: 100%;
        margin-top: 15px;
        height: 8px;
        cursor: pointer;
    }
    #qualityValue {
        color: #667eea;
        font-size: 1.5em;
        font-weight: bold;
    }
    #maxFileSizeInput {
        width: 100%;
        padding: 12px;
        border: 2px solid #ddd;
        border-radius: 8px;
        font-size: 16px;
        margin-top: 10px;
    }
    #maxFileSizeInput:focus {
        outline: none;
        border-color: #667eea;
    }
    /* Compressed Section */
    .panel-grid {
        margin-top:2rem;
    }
    .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }
    .section-header h3 {
        margin-bottom:0!important;
    }
    .section-header button {
        position:relative;
    }
    .count {
        position:absolute;
        top:-10px;
        right:-10px;
        border-radius: 50%;
        background-color:var(--accent);
        border:1px solid var(--border-color);
        width:25px;
        height:25px;
        display:flex;
        justify-content:center;
        align-items:center;
        color:#fff;
        font-size:.85rem;
        font-weight:600;
    }
    .compressed-card {
        position:relative;
        background: #f0fdf4;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border: 2px solid #86efac;
        overflow:hidden;
    }
    .compressed-image {
        position:relative;
        display:flex;
        overflow:hidden;
    }
    .compressed-preview {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }
    .compressed-info div {
        margin-bottom: 6px;
        padding: 4px 0;
    }
    .compressed-stats {
        background: rgba(0, 0, 0, 0.35);
        padding: 10px;
        text-align: center;
        position:absolute;
        bottom:0;
        left:0;
        right:0;
        top:0;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        text-align:center;
        color:#fff;
    }
    .compressed-stats strong {
        color:#86efac;
        font-size: 1.2em;
    }
    .compressed-actions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        padding:0 10px;
        margin-bottom: 10px;
    }
    /* Responsive */
    @media (max-width: 768px) {
        .images-grid,
        .compressed-grid {
            grid-template-columns: 1fr;
        }
        
        .section-header {
            flex-direction: column;
            gap: 15px;
            align-items: flex-start;
        }
    }
    
    /* Loading Spinner */
    .loading {
        display: inline-block;
        width: 20px;
        height: 20px;
        border: 3px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        border-top-color: white;
        animation: spin 1s ease-in-out infinite;
    }
}
    /* Quality Adjust Modal */
    .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 1000;
        justify-content: center;
        align-items: center;
    }
    .modal.active {
        display: flex;
    }
    .modal-content {
        background: white;
        padding: 30px;
        border-radius: 12px;
        max-width: 500px;
        width: 90%;
    }
    .modal-content h3 {
        margin-bottom: 20px;
        color: #333;
    }
    .modal-content label {
        width:100%;
    }
    .modal-actions {
        display: flex;
        gap: 10px;
        margin-top: 20px;
    }
    
@keyframes spin {
    to { transform: rotate(360deg); }
}
