/* Tooltip for QR actions */
.qr-tooltip {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    background: #222;
    color: #fff;
    padding: 8px 24px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.13);
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.3s;
}

body {
    margin: 0;
    font-family: 'Quicksand', 'Montserrat', Arial, sans-serif;
    background: #fff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    background: repeating-linear-gradient(90deg, #eee 0px, #eee 1px, transparent 1px, transparent 40px),
        repeating-linear-gradient(180deg, #eee 0px, #eee 1px, transparent 1px, transparent 40px),
        repeating-linear-gradient(90deg, #ccc 0px, #ccc 2px, transparent 2px, transparent 200px),
        repeating-linear-gradient(180deg, #ccc 0px, #ccc 2px, transparent 2px, transparent 200px),
        repeating-linear-gradient(90deg, #222 0px, #222 1px, transparent 1px, transparent 400px),
        repeating-linear-gradient(180deg, #222 0px, #222 1px, transparent 1px, transparent 400px);
}

.github-link {
    position: fixed;
    top: 24px;
    right: 32px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 32px;
    padding: 8px 18px;
    font-weight: 700;
    color: #222;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.2s;
}

.github-link:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.13);
    background: #fff;
}

.github-icon {
    width: 24px;
    height: 24px;
}

.qr-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    gap: 48px;
}

.qr-form-center {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 24px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.09);
    padding: 40px 32px 32px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 340px;
    max-width: 400px;
}

.form-label {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: #222;
    letter-spacing: 0.01em;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 1.1rem;
    border-radius: 12px;
    border: 1.5px solid #ccc;
    background: #fafafa;
    margin-bottom: 8px;
    transition: border 0.2s;
}

.form-input:focus {
    border: 1.5px solid #222;
    outline: none;
}

.qr-preview {
    min-width: 240px;
    min-height: 240px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 24px;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.09);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    margin-left: 0;
    transition: box-shadow 0.2s;
    border: 2px dashed #eee;
    color: #888;
}

.qr-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.qr-options {
    display: flex;
    gap: 18px;
    margin-top: 18px;
    justify-content: center;
    width: 100%;
    position: relative;
}

.qr-btn {
    border: none;
    border-radius: 24px;
    min-width: 80px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
    transition: background 0.2s, box-shadow 0.2s;
    position: relative;
    background: #222;
    gap: 8px;
    padding: 0 16px;
}

.qr-btn[data-format="png"] {
    background: linear-gradient(135deg, #4fd1c5 60%, #38b2ac 100%);
}

.qr-btn[data-format="jpg"] {
    background: linear-gradient(135deg, #f6e05e 60%, #ecc94b 100%);
}

.qr-btn#copy-img {
    background: linear-gradient(135deg, #e2e8f0 60%, #cbd5e1 100%);
    color: #222;
}

.qr-btn:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13);
    filter: brightness(1.08);
}

.footer {
    position: fixed;
    bottom: 12px;
    left: 0;
    width: 100vw;
    text-align: center;
    font-size: 1rem;
    color: #888;
    background: none;
    z-index: 10;
    letter-spacing: 0.01em;
}

@media (max-width: 900px) {
    .qr-content {
        flex-direction: column;
        gap: 24px;
    }

    .qr-preview {
        margin-left: 0;
        margin-top: 12px;
    }
}