/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}


/* PAGE CENTER */

.wrapper {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0f172a, #020617);
    color: white;
}


/* CARD */

.card {
    background: #0b1220;
    padding: 50px;
    border-radius: 22px;
    width: 550px;
    max-width: 95%;
    text-align: center;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 25px 60px rgba(0, 0, 0, 0.8);
}


/* TITLE */

h1 {
    font-size: 28px;
    margin-bottom: 6px;
}


/* SUBTITLE */

.subtitle {
    color: #9ca3af;
    margin-bottom: 30px;
    font-size: 14px;
}


/* DROP AREA */

.drop-area {
    border: 2px dashed #334155;
    height: 200px;
    /* fixed height for perfect centering */
    display: flex;
    align-items: center;
    /* vertical center */
    justify-content: center;
    /* horizontal center */
    border-radius: 16px;
    cursor: pointer;
    margin-bottom: 25px;
    transition: .3s;
    background: #020617;
    text-align: center;
}

.drop-area:hover {
    border-color: #3b82f6;
}


/* hide input */

.drop-area input {
    display: none;
}


/* content center */

.drop-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}


/* text */

.drop-content p {
    font-weight: 600;
    margin: 0;
}

.drop-content span {
    font-size: 20px;
    color: #64748b;
}


/* QUALITY SELECTOR */

.quality-selector {
    margin-bottom: 25px;
    text-align: left;
}

.quality-selector label {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}


/* hide radio */

.quality-options input {
    display: none;
}


/* selector container */

.quality-options {
    display: flex;
    background: #020617;
    border-radius: 14px;
    padding: 6px;
}


/* option style */

.quality-options label {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    cursor: pointer;
    border-radius: 10px;
    font-size: 14px;
    color: #94a3b8;
    transition: .3s;
}


/* ACTIVE + GLOW EFFECT */

.quality-options input:checked+label {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    box-shadow: 0 0 15px rgba(59, 130, 246, .6), 0 0 30px rgba(59, 130, 246, .4);
    animation: glowPulse 2s infinite;
}


/* Glow Animation */

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 15px rgba(59, 130, 246, .6);
    }
    50% {
        box-shadow: 0 0 30px rgba(59, 130, 246, 1);
    }
    100% {
        box-shadow: 0 0 15px rgba(59, 130, 246, .6);
    }
}


/* BUTTON */

.compress-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

.compress-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(34, 197, 94, .35);
}


/* DOWNLOAD */

.download-btn {
    display: block;
    text-align: center;
    margin-top: 18px;
    padding: 15px;
    border-radius: 14px;
    text-decoration: none;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    font-weight: 600;
}


/* LOADER */

.loader {
    display: none;
    margin: 25px auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, .1);
    border-top: 4px solid #3b82f6;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}


/* MOBILE */

@media(max-width:600px) {
    .card {
        padding: 30px;
        width: 95%;
    }
}
