﻿/* =====================================
   Text to QR Code Generator – Tool Page
   OnlineQRCodeGen.com
===================================== */

.static-page {
    padding: 40px 0;
    background: #f8fafc;
   /* min-height: 100vh;*/
}

    .static-page .container {
        max-width: 860px;
        background: #ffffff;
        padding: 32px;
        border-radius: 14px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }

    /* ---------- Headings ---------- */

    .static-page h1 {
        font-size: 2rem;
        font-weight: 700;
        text-align: center;
        margin-bottom: 24px;
        color: #1f2937;
    }

    /* ---------- Form Controls ---------- */

    .static-page textarea,
    .static-page select,
    .static-page input[type="color"] {
        width: 100%;
        border-radius: 10px;
        border: 1px solid #d1d5db;
        padding: 12px;
        font-size: 1rem;
        transition: all 0.2s ease-in-out;
    }

    .static-page textarea {
        resize: vertical;
    }

        .static-page textarea:focus,
        .static-page select:focus,
        .static-page input[type="color"]:focus {
            outline: none;
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
        }

    /* ---------- Labels ---------- */

    .static-page label {
        font-weight: 600;
        color: #374151;
        margin-bottom: 6px;
        display: block;
    }

/* ---------- QR Preview ---------- */
   

.qr-img {
    max-width: 260px;
    border-radius: 12px;
    padding: 14px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Buttons ---------- */

.static-page .btn {
    padding: 10px 18px;
    font-size: 1rem;
    border-radius: 10px;
    min-width: 160px;
    margin: 6px;
}

.static-page .btn-success {
    background: #16a34a;
    border-color: #16a34a;
}

    .static-page .btn-success:hover {
        background: #15803d;
        border-color: #15803d;
    }

.static-page .btn-secondary {
    background: #475569;
    border-color: #475569;
}

    .static-page .btn-secondary:hover {
        background: #334155;
        border-color: #334155;
    }

/* ---------- Character Counter ---------- */

#charCount {
    display: block;
    margin-top: 4px;
}

    #charCount.warning {
        color: #dc2626;
        font-weight: 600;
    }

/* ---------- Loading State ---------- */

.qr-loading {
    opacity: 0.6;
    pointer-events: none;
}

    .qr-loading .qr-img {
        animation: pulse 1.2s infinite;
    }

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

/* ---------- Mobile Optimization ---------- */

@media (max-width: 768px) {
    .static-page .container {
        padding: 22px;
    }

    .static-page h1 {
        font-size: 1.6rem;
    }

    .qr-img {
        max-width: 220px;
    }

    .static-page .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* ---------- Accessibility ---------- */

button:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 2px;
}


.qr-preview {
    margin-top: 20px;
    text-align: center;
}

