/* Container Styles */
.tool-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Tool Header */
.tool-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    border-radius: 20px;
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.tool-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.tool-header p {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Compressor Box */
.compressor-box {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Upload Area */
.upload-area {
    border: 3px dashed #e2e8f0;
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: #f8fafc;
    cursor: pointer;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: #6366f1;
    background: #eef2ff;
}

.upload-area i {
    font-size: 3.5rem;
    color: #6366f1;
    margin-bottom: 1.5rem;
}

.upload-area h3 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.upload-area p {
    color: #6b7280;
    margin-bottom: 1rem;
}

.upload-btn {
    background: #6366f1;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

.upload-info {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Compression Settings */
.compression-settings {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
}

.setting-group {
    margin-bottom: 1.5rem;
}

.setting-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #4b5563;
    font-weight: 500;
}

.quality-slider {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quality-slider input[type="range"] {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    appearance: none;
}

.quality-slider input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: #6366f1;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quality-slider span {
    min-width: 3rem;
    color: #6366f1;
    font-weight: 500;
}

select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #1f2937;
    cursor: pointer;
}

/* Images List */
.images-list {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.image-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem;
    position: relative;
}

.image-preview {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.image-info {
    display: grid;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.image-info strong {
    color: #1f2937;
}

.remove-image {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-image:hover {
    background: #dc2626;
    transform: scale(1.1);
}

/* Compression Actions */
.compression-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.compress-btn,
.download-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.compress-btn {
    background: #6366f1;
    color: white;
}

.compress-btn:hover:not(:disabled) {
    background: #4f46e5;
    transform: translateY(-2px);
}

.download-btn {
    background: #10b981;
    color: white;
}

.download-btn:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-2px);
}

.compress-btn:disabled,
.download-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tool-container {
        padding: 1rem;
    }

    .tool-header {
        padding: 1.5rem;
    }

    .compression-actions {
        flex-direction: column;
    }

    .compress-btn,
    .download-btn {
        width: 100%;
    }
} 