:root {
    --bg-color: #0b0f19;
    --card-bg: rgba(17, 25, 40, 0.75);
    --border-color: rgba(255, 255, 255, 0.125);
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glow: rgba(59, 130, 246, 0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, rgba(15, 23, 42, 1) 0, transparent 50%), 
        radial-gradient(at 100% 100%, rgba(30, 58, 138, 0.3) 0, transparent 50%);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Background animated glow */
body::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.container {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container:hover {
    box-shadow: 0 0 40px var(--glow);
}

h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p.subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 14px;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 40px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    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 {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    color: var(--primary);
}

.upload-text {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.upload-subtext {
    font-size: 12px;
    color: var(--text-muted);
}

input[type=file] {
    display: none;
}

/* File Preview */
.file-preview {
    display: none;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: left;
    align-items: center;
}

.file-preview.active {
    display: flex;
}

.file-icon {
    width: 24px;
    height: 24px;
    margin-right: 16px;
    color: var(--primary);
}

.file-info {
    flex: 1;
    overflow: hidden;
}

.file-name {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.remove-file {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px;
    display: flex;
}

.remove-file i {
    width: 18px;
    height: 18px;
}

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

/* Progress Bar */
.progress-container {
    display: none;
    margin-bottom: 20px;
    text-align: left;
}

.progress-container.active {
    display: block;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.progress-bar-bg {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    height: 8px;
    overflow: hidden;
}

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

/* Button */
.btn {
    background: var(--primary);
    border: none;
    padding: 14px 24px;
    color: white;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn:hover:not(:disabled) {
    background: var(--primary-hover);
    box-shadow: 0 0 20px var(--glow);
    transform: translateY(-2px);
}

.btn:disabled {
    background: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Result Area */
.result-area {
    display: none;
    margin-top: 20px;
    animation: fadeIn 0.5s ease forwards;
}

.result-area.active {
    display: block;
}

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

.success-icon {
    color: #10b981;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
}

.link-container {
    display: flex;
    margin-top: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.link-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 12px 16px;
    font-size: 14px;
    outline: none;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-main);
    padding: 0 16px;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 600;
}

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

/* Download specific styles */
.download-icon {
    width: 64px;
    height: 64px;
    color: var(--primary);
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.file-details {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 12px;
}

.detail-row:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    color: var(--text-muted);
    font-size: 14px;
}

.detail-value {
    font-weight: 500;
    font-size: 14px;
}

/* Helper Classes */
.mb-4 { margin-bottom: 16px; }
.mt-4 { margin-top: 16px; }

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 30px 20px;
        border-radius: 20px;
    }
}
