/* Image Compressor Tool Styles */
.image-compressor-tool-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.image-compressor-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.image-compressor-header h1 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 10px;
    font-weight: 700;
}

.image-compressor-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Upload Section */
.image-compressor-upload-section {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.image-compressor-upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.image-compressor-upload-area:hover, 
.image-compressor-upload-area.dragover {
    border-color: #3b82f6;
    background-color: #f0f9ff;
}

.image-compressor-upload-icon {
    font-size: 48px;
    color: #94a3b8;
    margin-bottom: 15px;
}

.image-compressor-upload-text {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.image-compressor-file-input {
    display: none;
}

.image-compressor-browse-btn {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

.image-compressor-browse-btn:hover {
    background-color: #2563eb;
}

/* Compression Controls */
.image-compressor-controls-section {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.image-compressor-quality-control {
    margin-bottom: 20px;
}

.image-compressor-quality-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.image-compressor-quality-value {
    font-weight: 600;
    color: #3b82f6;
}

.image-compressor-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
}

.image-compressor-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    transition: background 0.2s;
}

.image-compressor-slider::-webkit-slider-thumb:hover {
    background: #2563eb;
}

.image-compressor-compress-btn {
    background-color: #10b981;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.2s;
}

.image-compressor-compress-btn:hover {
    background-color: #059669;
}

.image-compressor-compress-btn:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
}

/* Preview Section */
.image-compressor-preview-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .image-compressor-preview-section {
        grid-template-columns: 1fr;
    }
}

.image-compressor-preview-card {
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.image-compressor-preview-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #1e293b;
    font-weight: 600;
}

.image-compressor-image-preview {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.image-compressor-image-preview:hover {
    transform: scale(1.02);
}

.image-compressor-image-info {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    font-size: 0.9rem;
    color: #64748b;
}

.image-compressor-download-btn {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
    margin-top: 15px;
}

.image-compressor-download-btn:hover {
    background-color: #2563eb;
}

.image-compressor-download-btn:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
}

/* Error Message */
.image-compressor-error-message {
    background-color: #fef2f2;
    color: #dc2626;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #dc2626;
    display: none;
}

.image-compressor-error-message.success {
    background-color: #f0fdf4;
    color: #16a34a;
    border-left-color: #16a34a;
}

/* Footer */
.image-compressor-footer {
    text-align: center;
    margin-top: 40px;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Loading Spinner */
.image-compressor-spinner {
    display: none;
    width: 40px;
    height: 40px;
    margin: 20px auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: image-compressor-spin 1s linear infinite;
}

@keyframes image-compressor-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}