:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg-dark: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --border: rgba(255, 255, 255, 0.1);
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --success: #10b981;
    --error: #ef4444;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--primary);
    filter: blur(100px);
    border-radius: 50%;
    opacity: 0.2;
    animation: float 20s infinite alternate;
}

.blob-1 { top: -100px; left: -100px; background: #3b82f6; }
.blob-2 { bottom: -100px; right: -100px; background: #8b5cf6; }
.blob-3 { top: 40%; left: 60%; background: #ec4899; width: 300px; height: 300px; }

@keyframes float {
    from { transform: translate(0, 0); }
    to { transform: translate(50px, 100px); }
}

.container {
    flex: 1;
    max-width: 600px;
    margin: 4rem auto;
    padding: 0 1.5rem;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

header h1 span {
    color: var(--primary);
}

header p {
    color: var(--text-muted);
}

.card {
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input[type="password"],
input[type="text"],
textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

input:focus, textarea:focus {
    border-color: var(--primary);
}

small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

small a {
    color: var(--primary);
    text-decoration: none;
}

.primary-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.primary-btn:hover {
    background: var(--primary-hover);
}

.primary-btn:active {
    transform: scale(0.98);
}

.primary-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.hidden {
    display: none !important;
}

.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

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

#status-container .status {
    padding: 1rem;
    border-radius: 0.75rem;
    margin-top: 1rem;
    font-size: 0.95rem;
    animation: slideUp 0.3s ease;
}

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

.status.info { background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.2); }
.status.error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); color: #fca5a5; }

.result-details {
    margin-top: 1rem;
}

.file-info {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.link-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.link-box input {
    flex: 1;
    font-size: 0.85rem;
    background: rgba(0,0,0,0.3);
}

#copy-btn {
    background: var(--border);
    border: none;
    color: var(--text);
    padding: 0 1rem;
    border-radius: 0.75rem;
    cursor: pointer;
}

.secondary-btn {
    display: block;
    text-align: center;
    background: var(--success);
    color: white;
    text-decoration: none;
    padding: 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: background 0.2s;
}

.secondary-btn:hover {
    background: #059669;
}

.text-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
    width: 100%;
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}
