/* =========================
   PREMIUM UI/UX UPGRADE
   (No HTML structure changed)
========================= */

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #7c3aed;

    --bg-color: #f3f7fb;
    --card-bg: rgba(255, 255, 255, 0.85);

    --text-main: #0f172a;
    --text-muted: #64748b;

    --border: #e2e8f0;

    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 40px rgba(37, 99, 235, 0.15);

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", "Segoe UI", Roboto, sans-serif;
    background:
        radial-gradient(circle at top left, #dbeafe 0%, transparent 35%),
        radial-gradient(circle at bottom right, #ede9fe 0%, transparent 30%),
        var(--bg-color);

    min-height: 100vh;
    color: var(--text-main);
    padding: 25px;
    line-height: 1.6;
}

/* =========================
   CONTAINER
========================= */

.container {
    max-width: 1300px;
    margin: auto;
}

/* =========================
   HERO SECTION
========================= */

.hero {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;

    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    margin-bottom: 18px;
}

.hero p {
    max-width: 700px;
    margin: auto;
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* =========================
   LANGUAGE BUTTONS
========================= */

.language-selector {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.language-selector button {
    width: auto;
    border: 1px solid rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);

    padding: 10px 18px;
    border-radius: 999px;

    font-size: 0.9rem;
    font-weight: 600;

    color: var(--text-main);

    transition: all 0.25s ease;
    box-shadow: var(--shadow-sm);
}

.language-selector button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    border-color: transparent;
}

/* =========================
   MAIN CARD
========================= */

.generator-card {
    background: var(--card-bg);
    backdrop-filter: blur(18px);

    border: 1px solid rgba(255,255,255,0.6);

    border-radius: var(--radius-lg);

    overflow: hidden;

    display: grid;
    grid-template-columns: 1.5fr 1fr;

    box-shadow: var(--shadow-md);
}

/* =========================
   CONTROLS
========================= */

.controls {
    padding: 35px;
    border-right: 1px solid rgba(226,232,240,0.7);
}

/* =========================
   SECTION LABEL
========================= */

.section-label {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-main);
}

/* =========================
   QR TYPE GRID
========================= */

.qr-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.qr-type-grid input[type="radio"] {
    display: none;
}

/* =========================
   QR CARD
========================= */

.qr-card {
    position: relative;

    background: rgba(255,255,255,0.85);

    border: 1px solid rgba(226,232,240,0.8);

    border-radius: 22px;

    padding: 22px 15px;

    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 135px;

    cursor: pointer;

    transition: all 0.25s ease;

    overflow: hidden;
}

.qr-card::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        135deg,
        rgba(37,99,235,0.06),
        rgba(124,58,237,0.06)
    );

    opacity: 0;
    transition: 0.3s;
}

.qr-card:hover::before {
    opacity: 1;
}

.qr-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37,99,235,0.25);
    box-shadow: var(--shadow-lg);
}

.qr-type-grid input[type="radio"]:checked + .qr-card {
    border-color: #2563eb;
    background: linear-gradient(135deg, #eff6ff, #eef2ff);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.18);
}

.qr-card .icon {
    font-size: 34px;
    margin-bottom: 12px;
}

.qr-card .title {
    font-size: 15px;
    font-weight: 800;
    color: #111827;
}

.qr-card small {
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
}

/* =========================
   FORM ELEMENTS
========================= */

label {
    display: block;
    margin-bottom: 8px;

    font-size: 0.92rem;
    font-weight: 700;

    color: #334155;
}

textarea,
input[type="text"],
input[type="date"] {
    width: 100%;

    padding: 15px 16px;

    border-radius: 16px;

    border: 2px solid transparent;

    background: rgba(248,250,252,0.9);

    font-size: 15px;

    color: #111827;

    transition: all 0.25s ease;

    margin-bottom: 20px;

    box-shadow:
        inset 0 0 0 1px rgba(226,232,240,0.8);
}

textarea {
    min-height: 130px;
    resize: vertical;
}

textarea:focus,
input[type="text"]:focus,
input[type="date"]:focus {
    outline: none;

    background: white;

    border-color: rgba(37,99,235,0.25);

    box-shadow:
        0 0 0 5px rgba(37,99,235,0.12),
        0 8px 25px rgba(37,99,235,0.08);
}

/* =========================
   DATE INPUT
========================= */

#eDate::-webkit-calendar-picker-indicator {
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: 0.2s;
}

#eDate::-webkit-calendar-picker-indicator:hover {
    background: #eff6ff;
}

/* =========================
   COLOR PICKERS
========================= */

.color-settings {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 10px;
    margin-bottom: 25px;
}

.color-field {
    background: rgba(248,250,252,0.8);

    border-radius: 18px;

    padding: 16px;

    border: 1px solid rgba(226,232,240,0.8);
}

.color-field label {
    margin-bottom: 12px;
}

.controls input[type="color"] {
    width: 100%;
    height: 52px;

    border: none;
    background: transparent;

    cursor: pointer;
}

/* =========================
   BUTTONS
========================= */

.button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

button {
    border: none;
    cursor: pointer;

    border-radius: 16px;

    padding: 15px 18px;

    font-size: 15px;
    font-weight: 700;

    transition: all 0.25s ease;
}

button:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #3d3df7);
    color: white;

    box-shadow:
        0 10px 25px rgba(37,99,235,0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 15px 35px rgba(37,99,235,0.35);
}

.btn-secondary {
    background: white;
    color: #111827;

    border: 1px solid rgba(226,232,240,0.8);
}

.btn-secondary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

/* =========================
   PREVIEW
========================= */

.preview {
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 40px;

    background:
        radial-gradient(circle at top, rgba(37,99,235,0.08), transparent 50%),
        #fcfcfd;
}

.preview::before {
    content: "";
    position: absolute;

    width: 300px;
    height: 300px;

    background: radial-gradient(
        rgba(37,99,235,0.08),
        transparent 70%
    );

    border-radius: 50%;

    z-index: 0;
}

#qrcode {
    position: relative;
    z-index: 1;

    background: white;

    padding: 20px;

    border-radius: 28px;

    box-shadow:
        0 20px 45px rgba(15,23,42,0.12);

    margin-bottom: 20px;

    transition: all 0.3s ease;
}

#qrcode:hover {
    transform: scale(1.02);
}

.helper-text {
    position: relative;
    z-index: 1;

    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: center;
}

/* =========================
   SEO SECTION
========================= */

.seo-content {
    margin-top: 70px;
    text-align: center;
}

.seo-content h2 {
    margin-bottom: 15px;
    font-size: 2rem;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

    .generator-card {
        grid-template-columns: 1fr;
    }

    .controls {
        border-right: none;
        border-bottom: 1px solid rgba(226,232,240,0.7);
    }

    .preview {
        min-height: 350px;
    }
}

@media (max-width: 640px) {

    body {
        padding: 15px;
    }

    .controls {
        padding: 22px;
    }

    .hero {
        margin-bottom: 25px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .qr-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .qr-card {
        min-height: 120px;
        padding: 18px 10px;
    }

    .button-group {
        grid-template-columns: 1fr;
    }

    .color-settings {
        grid-template-columns: 1fr;
    }
}

/* =========================
   SMOOTH ANIMATIONS
========================= */

.generator-card,
.qr-card,
button,
textarea,
input,
#qrcode {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SEO Content Lists */
.step-list {
    padding-left: 20px;
    margin-bottom: 20px;
}

.step-list li {
    margin-bottom: 12px;
    color: var(--text-muted);
}

.step-list li strong {
    color: var(--text-main);
    display: block;
}

/* Sample Data Table */
.table-responsive {
    overflow-x: auto;
    margin-top: 10px;
}

.sample-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
}

.sample-table th, .sample-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.sample-table th {
    background: var(--primary);
    color: white;
    font-weight: 600;
}

.sample-table tr:last-child td {
    border-bottom: none;
}

/* FAQ Enhancements */
.faq-item {
    margin-bottom: 20px;
}

.faq-item strong {
    color: var(--primary);
    font-size: 0.95rem;
}

.faq-item p {
    margin-top: 5px;
    font-style: italic;
}

/* Footer Bottom Polish */
.footer-bottom {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 5px;
}

/* Header Styling */
.site-header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Footer & SEO Styling */
.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--border);
    margin-top: 80px;
    padding: 60px 20px 20px;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.footer-section p, .footer-section li {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li::before {
    content: "✓";
    color: var(--primary);
    margin-right: 8px;
    font-weight: bold;
}

.faq-item strong {
    display: block;
    font-size: 0.9rem;
    margin-top: 10px;
    color: var(--text-main);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 25px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Mobile Responsive Nav */
@media (max-width: 600px) {
    .nav-links {
        display: none; /* Hide links on mobile for cleaner UI */
    }
}