* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #0b0b0f;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.background-glow {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.glow-1 {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 40rem;
    height: 40rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    filter: blur(80px);
}

.glow-2 {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 40rem;
    height: 40rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    filter: blur(80px);
}

.container {
    background: rgba(20, 20, 27, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    width: 85vw;
    max-width: 1200px;
    padding: 2.5rem;
    border-radius: 24px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    z-index: 1;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.img-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    padding: 2rem;
    border: 1px dashed rgba(255, 255, 255, 0.04);
}

.img-box {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 350px;
}

.img-box img {
    max-width: 100%;
    max-height: 55vh;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    transition: filter 0.1s ease-out;
}

.upload-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.85rem 2rem;
    background: #6d28d9;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 10px 15px -3px rgba(109, 40, 217, 0.3);
}

.upload-btn:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -3px rgba(109, 40, 217, 0.4);
}

.upload-btn:active {
    transform: translateY(0);
}

#upload {
    display: none;
}

.filters-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.filters-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    list-style: none;
}

.filters-list li {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filters-list li label {
    color: #e4e4e7;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    outline: none;
    transition: background 0.2s;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #a78bfa;
    cursor: pointer;
    transition: transform 0.1s ease, background-color 0.2s;
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.5);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.25);
    background: #c084fc;
}

.actions-wrapper {
    margin-top: 1.5rem;
    flex-direction: row !important;
    gap: 1rem !important;
}

.action-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
}

.download-btn {
    background: #059669;
    color: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(5, 150, 105, 0.3);
}

.download-btn:hover {
    background: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -3px rgba(5, 150, 105, 0.4);
}

.reset-btn {
    background: rgba(255, 255, 255, 0.06);
    color: #f4f4f5;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.reset-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    transform: translateY(-2px);
}

.action-btn:active {
    transform: translateY(0);
}

@media screen and (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
        width: 92vw;
        padding: 1.5rem;
        gap: 2rem;
    }

    .img-section {
        padding: 1rem;
    }

    .img-box {
        min-height: auto;
    }
}
