/* Image Compress Styles */

.compress-section {
    max-width: 900px;
    margin: 0 auto;
}

.compress-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Upload Area */
.upload-area {
    background: #fff;
    border: 3px dashed #4a90e2;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover,
.upload-area.dragover {
    background: #f0f7ff;
    border-color: #357abd;
}

.upload-content {
    pointer-events: none;
}

.upload-icon {
    font-size: 60px;
    display: block;
    margin-bottom: 20px;
}

.upload-area h3 {
    color: #333;
    margin-bottom: 10px;
}

.upload-area p {
    color: #888;
}

/* Options Panel */
.options-panel {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.options-panel h3 {
    margin-bottom: 20px;
    color: #333;
}

.options-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 20px;
}

.option-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #555;
}

.option-group input[type="range"] {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: #e0e0e0;
    border-radius: 4px;
    outline: none;
}

.option-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: #4a90e2;
    border-radius: 50%;
    cursor: pointer;
}

.quality-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

.format-buttons {
    display: flex;
    gap: 10px;
}

.format-btn {
    flex: 1;
    padding: 10px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.format-btn:hover {
    border-color: #4a90e2;
}

.format-btn.active {
    background: #4a90e2;
    border-color: #4a90e2;
    color: #fff;
}

.option-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 16px;
}

/* Images List */
.images-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.image-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 20px;
    align-items: center;
}

.image-thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background: #f0f0f0;
}

.image-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.image-name {
    font-weight: 600;
    color: #333;
    word-break: break-all;
}

.image-sizes {
    display: flex;
    gap: 15px;
    font-size: 14px;
}

.size-original {
    color: #888;
}

.size-compressed {
    color: #4CAF50;
    font-weight: 600;
}

.size-reduction {
    color: #4a90e2;
    font-weight: 600;
}

/* Progress */
.image-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    width: 100px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #4a90e2;
    width: 0%;
    transition: width 0.3s;
}

.image-actions {
    display: flex;
    gap: 10px;
}

.btn-download {
    padding: 10px 20px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-download:hover {
    background: #43a047;
}

.btn-remove {
    padding: 10px 15px;
    background: #ff5252;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* Result Summary */
.result-summary {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.summary-item .label {
    font-size: 13px;
    color: #888;
}

.summary-item .value {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.summary-item.highlight .value {
    color: #4a90e2;
}

.summary-item .value.success {
    color: #4CAF50;
}

.btn-success {
    margin-left: auto;
    padding: 12px 25px;
    background: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.btn-success:hover {
    background: #43a047;
}

/* Guide Section */
.guide-section {
    margin-top: 40px;
}

.guide-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.guide-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.guide-card h3 {
    margin-bottom: 12px;
    color: #333;
}

.guide-card p {
    color: #666;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .image-item {
        grid-template-columns: 60px 1fr;
    }
    
    .image-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
    
    .result-summary {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .btn-success {
        margin-left: 0;
        width: 100%;
    }
}




