:root {
    --bg-color: #090d16;
    --card-bg: rgba(17, 24, 39, 0.45);
    --card-border: rgba(255, 255, 255, 0.06);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --primary: #8b5cf6;
    --primary-glow: rgba(139, 92, 246, 0.45);
    --primary-hover: #a78bfa;
    --success: #10b981;
    --success-glow: rgba(16, 185, 129, 0.35);
    --border-radius: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Background Radial Glow Effect */
.radial-glow {
    position: absolute;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    width: 100%;
    max-width: 680px;
    padding: 40px 20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 40px;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}

.logo-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #d8b4fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 580px;
}

/* Glassmorphic Card container */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 40px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.step-view {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.step-view.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Drag and Drop Zone */
.drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.01);
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.03);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.1);
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    margin-bottom: 8px;
    transition: var(--transition);
}

.drop-zone:hover .icon-wrapper {
    transform: translateY(-4px);
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 8px 24px var(--primary-glow);
}

.upload-icon {
    width: 28px;
    height: 28px;
}

.browse-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.browse-link:hover {
    color: var(--primary-hover);
}

.file-limits {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Loader / Processing State */
.loader-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    padding: 40px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    position: relative;
}

.double-bounce1, .double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--primary);
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    animation: sk-bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
    animation-delay: -1.0s;
    background-color: #3b82f6;
}

@keyframes sk-bounce {
    0%, 100% { 
        transform: scale(0.0);
    } 50% { 
        transform: scale(1.0);
    }
}

.processing-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Animated Progress Bar */
.progress-bar-container {
    width: 100%;
    max-width: 320px;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-top: 10px;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary) 0%, #3b82f6 100%);
    border-radius: 10px;
    position: absolute;
    left: 0;
    transition: width 0.2s ease-out;
}

.progress-bar-fill.processing {
    width: 100%;
    animation: progress-pulse 1.5s infinite ease-in-out;
}

@keyframes progress-pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
        background: linear-gradient(90deg, #3b82f6 0%, var(--primary) 100%);
    }
}

/* Result / Complete View */
.result-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.success-icon-wrapper {
    width: 72px;
    height: 72px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--success);
    margin-bottom: 8px;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.15);
}

.success-icon {
    width: 36px;
    height: 36px;
}

.file-details-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 8px 20px;
}

.file-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.95rem;
}

.file-info-row:last-child {
    border-bottom: none;
}

.file-info-label {
    color: var(--text-secondary);
}

.file-info-value {
    font-weight: 500;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-info-row.highlighted {
    font-size: 1rem;
    font-weight: 600;
}

.size-benefit {
    color: var(--success);
    font-weight: 700;
    background: rgba(16, 185, 129, 0.08);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.actions-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 10px;
}

/* Premium Buttons */
.btn {
    width: 100%;
    padding: 16px 24px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    border: none;
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-glow {
    box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-glow:hover {
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.6);
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

footer {
    text-align: center;
    color: #4b5563;
    font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 580px) {
    h1 {
        font-size: 2rem;
    }
    .glass-card {
        padding: 30px 20px;
    }
    .drop-zone {
        padding: 40px 10px;
    }
}
