:root {
    --bg-dark: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.6);
    --card-border: rgba(255, 255, 255, 0.1);
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --success: #10b981;
}

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

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

/* Animated Background Orbs */
.background-orbs {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
    filter: blur(100px);
}

.orb {
    position: absolute;
    border-radius: 50%;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 { width: 400px; height: 400px; background: rgba(59, 130, 246, 0.2); top: -100px; left: -100px; }
.orb-2 { width: 350px; height: 350px; background: rgba(139, 92, 246, 0.15); bottom: -100px; right: -50px; animation-delay: -5s; }
.orb-3 { width: 250px; height: 250px; background: rgba(16, 185, 129, 0.15); bottom: 30%; left: 30%; animation-delay: -10s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

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

header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-box {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary), #8b5cf6);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

header h1 { font-size: 28px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.5px; }
header p { color: var(--text-muted); font-size: 15px; }

.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 15px;
    transition: all 0.2s;
}

input[type="password"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.upload-area {
    border: 2px dashed var(--card-border);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.02);
}

.upload-area:hover, .upload-area.dragover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}

.upload-icon {
    color: var(--text-muted);
    margin-bottom: 16px;
    transition: color 0.3s;
}

.upload-area:hover .upload-icon {
    color: var(--primary);
}

.upload-area h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.upload-area p {
    color: var(--text-muted);
    font-size: 14px;
}

.file-name-display {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    word-break: break-all;
}

button {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.primary-btn {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.primary-btn:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(59, 130, 246, 0.4);
}

.primary-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    margin-top: 16px;
}

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

.hidden { display: none !important; }

/* Progress Section */
#progressSection {
    margin-top: 10px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
}

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

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), #8b5cf6);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.file-size-info {
    text-align: right;
    font-size: 13px;
    color: var(--text-muted);
}

/* Result Section */
#resultSection {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-icon {
    width: 64px;
    height: 64px;
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

#resultSection h3 { font-size: 22px; margin-bottom: 8px; }
#resultSection p { color: var(--text-muted); margin-bottom: 24px; font-size: 15px; }

.link-container {
    display: flex;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 24px;
}

.link-container input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 10px 12px;
    font-family: monospace;
    font-size: 13px;
}

.link-container input:focus { outline: none; }

.copy-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.copy-btn:hover { background: rgba(255, 255, 255, 0.2); }
