body {
    margin: 0;
    padding: 0;
    background: #111827;
    color: white;
    font-family: Arial, sans-serif;
}

.container {
    text-align: center;
    padding: 40px;
}

h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

p {
    color: #d1d5db;
}

.upload-box {
    margin: 30px 0;
}

.drop-zone {
    border: 2px dashed #2563eb;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    margin: 20px auto;
    max-width: 500px;
    transition: 0.3s;
}

.drop-zone:hover {
    background-color: #1f2937;
}

.drop-zone.dragover {
    background-color: #1e3a8a;
    border-color: #60a5fa;
}

select {
    padding: 10px;
    border-radius: 8px;
    margin: 5px;
    font-size: 16px;
}

button {
    background: #2563eb;
    border: none;
    padding: 14px 24px;
    color: white;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
}

button:hover {
    background: #1d4ed8;
}

.loading {
    display: none;
    text-align: center;
    margin-top: 20px;
    color: #facc15;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    border: 5px solid #374151;
    border-top: 5px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.comparison-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.image-wrapper {
    position: relative;
    width: 700px;
    max-width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.image {
    width: 700px;
    max-width: none;
    display: block;
    pointer-events: none;
}

#originalImage {
    position: relative;
    z-index: 1;
}

.restored-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

#resultImage {
    position: absolute;
    top: 0;
    left: 0;
}

#divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: white;
    z-index: 5;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(255,255,255,0.8);
    pointer-events: none;
}

#slider {
    position: relative;
    z-index: 10;
    width: 700px;
    max-width: 100%;
    margin-top: 20px;
    cursor: pointer;
}

#downloadBtn {
    display: inline-block;
    margin-top: 30px;
}
.file-name {
    color: #93c5fd;
    font-size: 14px;
    margin-top: 10px;
}
button:disabled {
    background: #6b7280;
    cursor: not-allowed;
}
.hd-note {
    color: #facc15;
    font-size: 14px;
    margin-top: 8px;
}
#clearBtn {
    background: #374151;
    margin-left: 10px;
}

#clearBtn:hover {
    background: #4b5563;
}
.compare-label {
    position: absolute;
    top: 15px;
    z-index: 20;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    pointer-events: none;
}

.restored-label {
    left: 15px;
}

.original-label {
    right: 15px;
}
#slider {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    outline: none;
}

#slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 26px;
    height: 26px;
    background: #2563eb;
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.9);
}

#slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

#slider::-moz-range-thumb {
    width: 26px;
    height: 26px;
    background: #2563eb;
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.9);
}
@media (max-width: 768px) {

    .container {
        padding: 20px;
    }

    h1 {
        font-size: 30px;
    }

    .drop-zone {
        padding: 22px;
        max-width: 100%;
    }

    select {
        width: 100%;
        max-width: 300px;
        margin-top: 8px;
    }

    button {
        width: 100%;
        max-width: 300px;
        margin-top: 10px;
    }

    #clearBtn {
        margin-left: 0;
    }
    #resetBtn {
        margin-left: 0;
    }

    .image-wrapper {
        width: calc(100vw - 40px);
        max-width: 700px;
    }

    .image {
        width: calc(100vw - 40px);
        max-width: none;
    }

    #slider {
        width: calc(100vw - 40px);
        max-width: 100%;
    }

    .compare-label {
        font-size: 12px;
        padding: 6px 10px;
        top: 10px;
    }

    .restored-label {
        left: 10px;
    }
    #restoreAllBtn {
         margin-left: 0;
}

    .original-label {
        right: 10px;
    }
}
.deblur-note {
    color: #f97316;
    font-size: 14px;
    margin-top: 8px;
}
#resetBtn {
    background: #0f766e;
    margin-left: 10px;
}

#resetBtn:hover {
    background: #115e59;
}
.settings-summary {
    color: #c7d2fe;
    font-size: 14px;
    margin-top: 12px;
    background: rgba(37, 99, 235, 0.15);
    display: inline-block;
    padding: 8px 14px;
    border-radius: 20px;
}
body {
    background:
        radial-gradient(circle at top, #1e3a8a 0%, #111827 38%, #020617 100%);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

h1 {
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.upload-box {
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 24px;
    padding: 28px;
    max-width: 760px;
    margin: 30px auto;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
}

.drop-zone {
    background: rgba(30, 41, 59, 0.55);
    border-color: rgba(96, 165, 250, 0.7);
}

.drop-zone:hover {
    background: rgba(37, 99, 235, 0.18);
    transform: translateY(-2px);
}

select {
    background: #0f172a;
    color: white;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

select:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25);
}

button {
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    transition: 0.25s;
}

button:hover {
    transform: translateY(-2px);
}

.image-wrapper {
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.settings-summary {
    border: 1px solid rgba(129, 140, 248, 0.35);
}
#restoreAllBtn {
    background: #7c3aed;
    margin-left: 10px;
}

#restoreAllBtn:hover {
    background: #6d28d9;
}
.batch-results {
    margin-top: 30px;
}

.batch-card {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 18px;
    padding: 18px;
    margin: 18px auto;
    max-width: 520px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.35);
}

.batch-card p {
    color: #bbf7d0;
    font-weight: bold;
}

.batch-preview {
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
    margin: 12px 0;
}
#downloadZipBtn {
    background: #16a34a;
    margin-top: 20px;
}

#downloadZipBtn:hover {
    background: #15803d;
}
.ai-colorize-note {
    color: #facc15;
    font-size: 14px;
    margin-top: 8px;
}
.batch-progress-box {
    max-width: 520px;
    margin: 25px auto;
    text-align: center;
}

#batchProgressText {
    color: #dbeafe;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 10px;
}

.progress-track {
    width: 100%;
    height: 14px;
    background: rgba(148, 163, 184, 0.25);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #3b82f6);
    border-radius: 20px;
    transition: width 0.4s ease;
}
.credits-link {
    display: inline-block;
    margin-top: 8px;
    color: #93c5fd;
    font-size: 14px;
    text-decoration: none;
}

.credits-link:hover {
    text-decoration: underline;
}