* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Segoe UI, sans-serif;
}


/* BODY */

body {
    background: linear-gradient(135deg, #0f172a, #020617);
    color: white;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* CONTAINER WITH STRONG PURPLE GLOW */

.container {
    background: #0b1220;
    padding: 50px;
    border-radius: 20px;
    width: 650px;
    max-width: 95%;
    box-shadow: 0 0 20px rgba(168, 85, 247, .6), 0 0 60px rgba(168, 85, 247, .4), 0 0 120px rgba(168, 85, 247, .2), 0 25px 60px rgba(0, 0, 0, 0.7);
    animation: fadeIn .6s ease;
}


/* TITLE */

h1 {
    text-align: center;
    margin-bottom: 8px;
    font-size: 28px;
}


/* SUBTITLE */

.muted {
    text-align: center;
    color: #9ca3af;
    margin-bottom: 30px;
}


/* DROP ZONE WITH GLOW */

.drop-zone {
    border: 2px dashed #334155;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    cursor: pointer;
    background: #020617;
    transition: .3s;
    gap: 6px;
    margin-bottom: 20px;
    box-shadow: 0 0 25px rgba(168, 85, 247, .5);
}

.drop-zone:hover,
.drop-zone.drag {
    border-color: #a855f7;
    box-shadow: 0 0 35px rgba(168, 85, 247, 1), 0 0 80px rgba(168, 85, 247, .6);
}

.drop-zone input {
    display: none;
}


/* FILE CARD */

.file-card {
    background: #020617;
    padding: 12px 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    border: 1px solid #1f2937;
    box-shadow: 0 0 15px rgba(168, 85, 247, .4);
}

.hidden {
    display: none;
}


/* SELECT BUTTON GLOW */

.select-btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #9333ea, #a855f7);
    color: white;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
    transition: .3s;
    box-shadow: 0 0 20px rgba(168, 85, 247, .6);
}

.select-btn:hover {
    box-shadow: 0 0 30px rgba(168, 85, 247, 1), 0 0 60px rgba(168, 85, 247, .6);
}


/* SIZE SELECTOR */

.size-selector {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.size-selector.show {
    display: flex;
}

.size-selector label {
    background: #020617;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid #1f2937;
    transition: .3s;
}

.size-selector input {
    margin-right: 8px;
}


/* ACTIVE SIZE WITH GLOW */

.size-selector input:checked+span,
.size-selector label:has(input:checked) {
    background: linear-gradient(135deg, #9333ea, #a855f7);
    color: white;
    box-shadow: 0 0 20px rgba(168, 85, 247, 1), 0 0 50px rgba(168, 85, 247, .7);
}


/* PROGRESS BAR */

.progress {
    width: 100%;
    height: 12px;
    background: #1f2937;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(168, 85, 247, .4);
}

.bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #9333ea, #a855f7);
    box-shadow: 0 0 25px rgba(168, 85, 247, .8);
    transition: .2s;
}


/* COMPRESS BUTTON */

.compress-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

.compress-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(34, 197, 94, .5);
}


/* DOWNLOAD */

.download {
    display: block;
    margin-top: 20px;
    padding: 14px;
    text-align: center;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 12px;
    text-decoration: none;
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, .6);
}


/* ERROR */

.error {
    color: #f87171;
}


/* ANIMATION */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media(max-width:600px) {
    .container {
        padding: 30px;
    }
}
