* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.upload-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.upload-area {
    border: 2px dashed #6c757d;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.upload-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

.sub-text {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.preview-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.image-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.original-image, .compressed-image {
    text-align: center;
}

.original-image img, .compressed-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.image-info {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.compression-controls {
    border-top: 1px solid #dee2e6;
    padding-top: 2rem;
    text-align: center;
}

.quality-control {
    margin-bottom: 1.5rem;
}

input[type="range"] {
    width: 100%;
    max-width: 300px;
    margin: 1rem 0;
}

.download-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #218838;
}

@media (max-width: 768px) {
    .image-preview {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 1rem;
    }
} 