:root {
    --primary-grad: linear-gradient(135deg, #00c6ff, #0072ff);
    --accent-pink: #ff00cc;
    --accent-blue: #3333ff;
    --bg-dark: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-white: #ffffff;
    --text-dim: #94a3b8;
    --font-main: 'Outfit', 'Inter', system-ui, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Background Glowing Orbs */
.background-decor {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
    animation: pulse 15s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, #4facfe, #00f2fe);
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, #ee0979, #ff6a00);
}

@keyframes pulse {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(30px, 30px); }
}

.back-link {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

.container {
    width: 90%;
    max-width: 450px;
    background: var(--card-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--card-border);
    border-radius: 32px;
    padding: 2.5rem 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    background: var(--primary-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.qr-container {
    background: white;
    padding: 20px;
    border-radius: 24px;
    display: inline-block;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#qr {
    width: 100% !important;
    height: auto !important;
    max-width: 200px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#text-input {
    width: 100%;
    padding: 1.2rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.95); /* Bright white input */
    color: #0f172a; /* Dark text for contrast */
    font-size: 1rem;
    font-weight: 500;
    outline: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#text-input:focus {
    border-color: #00c6ff;
    background: #ffffff;
    box-shadow: 0 0 20px rgba(0, 198, 255, 0.4);
}

button {
    width: 100%;
    padding: 1.1rem;
    border-radius: 18px;
    border: none;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#copy-btn {
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    color: white;
    box-shadow: 0 10px 25px -5px rgba(58, 123, 213, 0.5);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#copy-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 35px -5px rgba(58, 123, 213, 0.6);
}

#download-btn {
    background: #ffffff; /* Solid white button */
    color: #0f172a; /* Dark text */
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
}

#download-btn:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.4);
}

.status {
    gap: 12px;
    margin-top: 16px;
    padding: 16px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 16px;
}

.short-url-container input {
    font-family: monospace;
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}