/* Base */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #1E1E1E;
    color: #F5F5F5;
}

/* Fade-in wrapper */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wrapper {
    max-width: 700px;
    margin: auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: #00A8FF;
    margin-bottom: 10px;
}

/* Form */
textarea {
    width: 100%;
    height: 120px;
    padding: 10px;
    border-radius: 6px;
    border: none;
    background: #2A2A2A;
    color: #F5F5F5;
    font-size: 16px;
    transition: box-shadow 0.2s;
}

textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px #00A8FF;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    transition: transform 0.15s, background 0.2s;
}

.btn-primary {
    background: #00A8FF;
    color: #1E1E1E;
    font-weight: bold;
}

.btn-primary:hover {
    background: #0086CC;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #2A2A2A;
    color: #F5F5F5;
    border: 1px solid #00A8FF;
}

.btn-secondary:hover {
    background: #00A8FF;
    color: #1E1E1E;
    transform: translateY(-2px);
}

/* QR Box */
.qr-box {
    margin-top: 20px;
    padding: 20px;
    background: #2A2A2A;
    border-radius: 10px;
    display: inline-block;
    animation: popIn 0.4s ease-out;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loader */
.loader {
    width: 40px;
    height: 40px;
    border: 4px solid #00A8FF;
    border-top-color: transparent;
    border-radius: 50%;
    margin: 20px auto;
    animation: spin 0.8s linear infinite;
}

/* Page fade-in */
body {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* QR pop-in animation */
.qr-animate {
    animation: popIn 0.35s ease-out;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Button press effect */
button:active {
    transform: scale(0.96);
}

/* Smooth section reveal */
#qr-section {
    transition: opacity 0.3s ease-out;
}

#qr-section.hidden {
    opacity: 0;
}