:root {
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.5);
    --accent: #38bdf8;
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --border-glass: rgba(255, 255, 255, 0.1);
    --radius-lg: 20px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Mesh */
body::before {
    content: '';
    position: absolute;
    width: 140%;
    height: 140%;
    top: -20%;
    left: -20%;
    background: radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(56, 189, 248, 0.15) 0%, transparent 40%);
    z-index: -1;
    animation: meshFlow 20s ease-in-out infinite alternate;
}

@keyframes meshFlow {
    from {
        transform: translate(0, 0) rotate(0deg);
    }

    to {
        transform: translate(-50px, -50px) rotate(5deg);
    }
}

.container {
    width: 100%;
    max-width: 550px;
    padding: 20px;
    z-index: 1;
}

header {
    margin-bottom: 50px;
    text-align: center;
    animation: fadeInDown 0.8s ease-out;
}

header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(to bottom right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.05em;
    margin-bottom: 12px;
}

header p {
    color: var(--text-dim);
    font-size: 1.1rem;
    font-weight: 300;
}

main {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-glass);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: scaleIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Drop Zone */
.drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 70px 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    background: rgba(255, 255, 255, 0.03);
}

.drop-zone:hover,
.drop-zone--over {
    border-color: var(--accent);
    background: rgba(56, 189, 248, 0.05);
    transform: translateY(-4px);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.drop-zone__icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px var(--primary-glow));
    transition: transform 0.3s ease;
}

.drop-zone:hover .drop-zone__icon {
    transform: scale(1.1);
}

.drop-zone__prompt span {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.drop-zone__prompt small {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.drop-zone__input {
    display: none;
}

/* Status & Processing */
.status-container {
    padding: 30px 0;
    text-align: center;
}

.vibrant-loader {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto 24px;
}

.vibrant-loader::before,
.vibrant-loader::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: var(--accent);
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.vibrant-loader::after {
    border-top-color: var(--primary);
    animation-delay: 0.2s;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.progress-bar-bg {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 30px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    box-shadow: 0 0 10px var(--primary-glow);
    transition: width 0.5s ease;
}

/* Success State */
.success-icon {
    width: 64px;
    height: 64px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 24px;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
    animation: pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: white;
    padding: 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
}

.btn-secondary {
    display: block;
    width: 100%;
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--border-glass);
    padding: 12px;
    border-radius: 10px;
    margin-top: 16px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pop {
    0% {
        transform: scale(0);
    }

    80% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.hidden {
    display: none !important;
}

footer {
    margin-top: 50px;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
    opacity: 0.6;
}