:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --text: #1e293b;
    --text-light: #64748b;
    --bg-gradient: linear-gradient(135deg, #e0f2fe 0%, #eef2ff 100%);
    --card-bg: rgba(255, 255, 255, 0.85);
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    color: var(--text);
}

/* Pozadí a dekorace */
.background-blobs {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.6;
    border-radius: 50%;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #c7d2fe;
    top: -100px;
    left: -100px;
    animation: float 10s infinite alternate ease-in-out;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #fbcfe8;
    bottom: -50px;
    right: -50px;
    animation: float 12s infinite alternate-reverse ease-in-out;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

/* Hlavní karta */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 3rem;
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.header h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* Stylování vstupu */
.input-group {
    position: relative;
    margin-bottom: 1.5rem;
    text-align: left;
}

input {
    width: 100%;
    padding: 1rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
}

input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

input:placeholder-shown+label {
    display: none;
}

label {
    position: absolute;
    top: -0.6rem;
    left: 0.8rem;
    background: white;
    padding: 0 0.4rem;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    border-radius: 4px;
}

/* Tlačítko */
button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.4);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.4);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Načítání */
.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Oblast výsledku */
.result-container {
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.result-container.show {
    margin-top: 2rem;
    max-height: 500px;
    opacity: 1;
}

#qrImage {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background: white;
    padding: 10px;
}

#downloadLink {
    display: block;
    margin-top: 1rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: opacity 0.2s;
}

#downloadLink:hover {
    opacity: 0.8;
}