.qr-instructions {
    display: block;
    text-align: center;
    font-size: 1.05rem;
    color: #555;
    margin: 0 auto 0 auto;
    line-height: 1.5;
    font-weight: 500;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #e3eafc;
    margin: 0;
    padding: 0;
}

#app {
    max-width: 480px;
    margin: 48px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    padding: 40px 32px 32px 32px;
    text-align: center;
}

.text-display {
    display: block;
    font-size: 24px;
    margin: 20px auto;
    color: #333;
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s, text-decoration 0.2s, box-shadow 0.2s;
    background: #f0f6ff;
    border: 2px solid #0078d7;
    border-radius: 8px;
    padding: 16px 18px;
    box-shadow: 0 2px 12px rgba(0, 120, 215, 0.08);
    font-weight: 500;
}

.text-display[href] {
    color: #0078d7;
    text-decoration: underline;
    cursor: pointer;
}

.text-display[href]:hover {
    color: #005fa3;
    text-decoration: underline;
}

.text-display[href]:visited {
    color: #551A8B;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 32px;
    margin-top: 0px;
    color: #0078d7;
    letter-spacing: 1px;
}

#qrcode {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

button {
    background: #0078d7;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 24px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}

button:hover {
    background: #005fa3;
}

.sent-animate {
    animation: sentPulse 0.6s;
}

@keyframes sentPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.07);
    }

    100% {
        transform: scale(1);
    }
}

.input-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

#inputToSend {
    font-size: 1.1rem;
    padding: 10px 16px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    width: 65%;
    transition: border 0.2s;
    outline: none;
}

#inputToSend:focus {
    border-color: #0078d7;
}

#sendButton {
    background: #0078d7;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 24px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    box-shadow: 0 2px 8px rgba(0, 120, 215, 0.08);
    width: 120px/* Fixed width */;
}

#sendButton:hover {
    background: #005fa3;
}

/* Disabled state styling */
#sendButton:disabled {
    background: #b0b8c1;
    color: #eaeaea;
    cursor: not-allowed;
    opacity: 0.7;
}

.qrcode-bg {
    background: #fff;
    padding: 12px 12px;
    border-radius: 12px;
    display: inline-block;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

#qr-link {
    margin-top: 12px;
    word-break: break-all;
    font-size: 0.98rem;
    color: #0078d7;
    text-align: center;
}

#qr-link a {
    color: #0078d7;
    text-decoration: underline;
    transition: color 0.2s;
    word-break: break-all;
}

#qr-link a:hover {
    color: #005fa3;
}

#qr-link a:visited {
    color: #551A8B;
}

.github-link {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1000;
    opacity: 0.5;
    transition: opacity 0.2s;
    display: inline-block;
}

.github-link:hover,
.github-link:focus {
    opacity: 1;
}

.github-link img {
    display: block;
    width: 32px;
    height: 32px;
    /* No border or background for subtlety */
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a2332;
        color: #e3eafc;
    }

    #app {
        background: #232b3a;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    }

    .page-title {
        color: #6cb6ff;
    }

    .text-display {
        background: #1a2233;
        border-color: #6cb6ff;
        color: #e3eafc;
        box-shadow: 0 2px 12px rgba(108, 182, 255, 0.08);
    }

    .text-display[href] {
        color: #6cb6ff;
    }

    .text-display[href]:hover {
        color: #4094d6;
    }

    .text-display[href]:visited {
        color: #b388ff;
    }

    #inputToSend {
        background: #232b3a;
        color: #e3eafc;
        border-color: #3a4660;
    }

    #inputToSend:focus {
        border-color: #6cb6ff;
    }

    #sendButton,
    button {
        background: #6cb6ff;
        color: #232b3a;
    }

    #sendButton:hover,
    button:hover {
        background: #4094d6;
    }

    #sendButton:disabled {
        background: #3a4660;
        color: #b0b8c1;
    }

    .qr-instructions,
    #qr-instructions {
        color: #b0b8c1;
    }

    #qr-link {
        color: #6cb6ff;
    }

    #qr-link a {
        color: #6cb6ff;
    }

    #qr-link a:hover {
        color: #4094d6;
    }

    #qr-link a:visited {
        color: #b388ff;
    }
}
