* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 28px;
}

p {
    color: #4a5568;
    margin-bottom: 20px;
}

.dropzone {
    border: 2px dashed #3182ce;
    border-radius: 8px;
    padding: 60px 30px;
    text-align: center;
    background-color: #ebf8ff;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
}

.dropzone:hover {
    background-color: #bee3f8;
}

.dropzone-icon {
    font-size: 48px;
    color: #3182ce;
    margin-bottom: 15px;
}

.dropzone-text {
    font-size: 18px;
    font-weight: 500;
    color: #2c5282;
}

.dropzone-subtext {
    font-size: 14px;
    color: #4a5568;
}

.hidden {
    display: none !important;
}

.image-preview {
    margin-top: 30px;
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.title {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
}

.scale-controls {
    display: flex;
    background-color: #edf2f7;
    border-radius: 8px;
    padding: 5px;
}

.scale-btn {
    padding: 8px 15px;
    background: white;
    border: none;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.scale-btn.active {
    background-color: #3182ce;
    color: white;
}

.image-comparison {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #f7fafc;
}

.image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.original-image {
    clip-path: inset(0 50% 0 0);
}

.enhanced-image {
    clip-path: inset(0 0 0 50%);
}

.slider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: white;
    transform: translateX(-50%);
    cursor: col-resize;
    z-index: 10;
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.image-label {
    position: absolute;
    bottom: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 5;
}

.original-label {
    left: 15px;
}

.enhanced-label {
    right: 15px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    background-color: #3182ce;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.button:hover {
    background-color: #2c5282;
}

.button-icon {
    margin-right: 8px;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    background-color: #f7fafc;
    border-radius: 8px;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 4px solid #3182ce;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    color: #718096;
    font-size: 14px;
}

.button-container {
    text-align: center;
}

.download-btn {
    background-color: #38a169;
}

.download-btn:hover {
    background-color: #2f855a;
}