@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --bg-dark: #030303;
    --card-bg: rgba(10, 10, 10, 0.75);
    --card-inner-bg: rgba(15, 15, 15, 0.9);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(255, 255, 255, 0.15);
    --primary: #8b5cf6;
    --primary-hover: #a78bfa;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --ease-custom: cubic-bezier(0.32, 0.72, 0, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    padding: 2rem;
}

/* Glowing Ambient Orbs */
.ambient-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
}

.ambient-glow-secondary {
    position: fixed;
    top: 20%;
    left: 80%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.08) 0%, rgba(0,0,0,0) 75%);
    z-index: -1;
    pointer-events: none;
    filter: blur(60px);
}

/* Layout & Container */
.container {
    width: 100%;
    max-width: 580px;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    animation: fadeUp 1s var(--ease-custom) forwards;
}

header {
    text-align: center;
}

.eyebrow {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

h1 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

/* Double-Bezel Architecture */
.card-shell {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: 2rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.card-core {
    background: var(--card-inner-bg);
    border-radius: calc(2rem - 0.5rem);
    border: 1px solid var(--border-highlight);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    overflow: hidden;
}

/* Drag and Drop Zone */
.drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 1.25rem;
    padding: 3rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.5s var(--ease-custom);
    background: rgba(255, 255, 255, 0.01);
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--primary);
    background: rgba(139, 92, 246, 0.04);
}

.drop-zone.dragover .icon-wrapper {
    transform: scale(1.1) translateY(-4px);
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.5s var(--ease-custom);
    color: var(--primary);
}

.icon-wrapper svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
}

.drop-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.drop-subtext {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* File Details & Upload Progress */
.file-card {
    display: none;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    position: relative;
    animation: fadeIn 0.4s var(--ease-custom);
}

.file-icon {
    color: var(--primary);
    display: flex;
    align-items: center;
}

.file-info {
    flex-grow: 1;
    min-width: 0;
}

.file-name {
    font-size: 0.9rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 0.2rem;
}

.file-size {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.remove-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.remove-btn:hover {
    color: #ef4444;
}

/* Button & Loading State */
.btn-container {
    margin-top: 0.5rem;
}

.action-btn {
    width: 100%;
    border-radius: 9999px;
    background: var(--primary);
    border: none;
    color: white;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.5s var(--ease-custom);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 10px 20px -10px rgba(139, 92, 246, 0.5);
    position: relative;
    overflow: hidden;
}

.action-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px rgba(139, 92, 246, 0.6);
}

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

.action-btn:disabled {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-arrow-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s var(--ease-custom);
}

.action-btn:hover .btn-arrow-circle {
    transform: translateX(3px);
}

/* Loader anim */
.loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    display: none;
}

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

/* Success Card */
.success-banner {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    animation: scaleUp 0.5s var(--ease-custom);
}

.success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.success-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.success-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.reset-link {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: underline;
    cursor: pointer;
    margin-top: 1rem;
    transition: color 0.3s;
}

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

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    background: rgba(220, 38, 38, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    z-index: 100;
    transform: translateY(150%);
    opacity: 0;
    transition: all 0.5s var(--ease-custom);
    backdrop-filter: blur(8px);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

footer {
    position: absolute;
    bottom: 1.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.05em;
}
