.jpeg-compressor-wrapper {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.compressor-header {
    text-align: center;
    margin-bottom: 30px;
}

.compressor-header h2 {
    font-size: 2.5rem;
    color: #2d3748;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.compressor-header p {
    color: #718096;
    font-size: 1.1rem;
    margin: 0;
}

.upload-section {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    background: #f7fafc;
    transition: all 0.3s ease;
}

.upload-section:hover {
    border-color: #4299e1;
    background: #ebf8ff;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    margin: 0 10px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: #4299e1;
    color: white;
}

.btn-primary:hover {
    background: #3182ce;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #718096;
    color: white;
}

.btn-secondary:hover {
    background: #4a5568;
    transform: translateY(-1px);
}

.btn-success {
    background: #48bb78;
    color: white;
    font-size: 18px;
    padding: 15px 30px;
}

.btn-success:hover {
    background: #38a169;
    transform: translateY(-1px);
}

.btn-download {
    background: #ed8936;
    color: white;
    font-size: 18px;
    padding: 15px 30px;
}

.btn-download:hover {
    background: #dd6b20;
    transform: translateY(-1px);
}

.btn-download-single {
    background: #4299e1;
    color: white;
    font-size: 14px;
    padding: 8px 16px;
    width: 100%;
}

.btn-download-single:hover {
    background: #3182ce;
}

.selected-files {
    margin-bottom: 30px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.selected-files h3 {
    margin: 0 0 15px 0;
    color: #2d3748;
    font-size: 1.5rem;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.file-item:last-child {
    border-bottom: none;
}

.file-name {
    font-weight: 500;
    color: #2d3748;
}

.file-size {
    color: #718096;
    font-size: 14px;
}

.progress-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 12px;
    text-align: center;
}

.progress-section h3 {
    margin: 0 0 15px 0;
    color: #2d3748;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4299e1, #3182ce);
    width: 0%;
    transition: width 0.3s ease;
}

#progress-text {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
}

.results-section {
    margin-bottom: 30px;
}

.results-section h3 {
    margin: 0 0 20px 0;
    color: #2d3748;
    font-size: 1.8rem;
    text-align: center;
}

.download-controls {
    text-align: center;
    margin-bottom: 30px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.result-item {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.result-item:hover {
    border-color: #4299e1;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 153, 225, 0.15);
}

.result-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f7fafc;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-info {
    padding: 20px;
}

.result-name {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
    word-break: break-word;
}

.result-stats {
    margin-bottom: 15px;
}

.stat {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.stat .label {
    color: #718096;
    font-size: 14px;
}

.stat .value {
    color: #2d3748;
    font-weight: 500;
    font-size: 14px;
}

.error {
    color: #e53e3e;
    padding: 20px;
    text-align: center;
    background: #fed7d7;
    border-radius: 8px;
    border: 1px solid #feb2b2;
}

@media (max-width: 768px) {
    .jpeg-compressor-wrapper {
        margin: 10px;
        padding: 15px;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin: 8px 0;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .compressor-header h2 {
        font-size: 2rem;
    }
}