/* =========================================================
   FREEVEXA — QR CODE GENERATOR
========================================================= */

.qr-page {
    min-height: 100vh;
    padding: 130px 20px 80px;
}

.qr-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.qr-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 34px;
    font-size: 14px;
    color: #8d96a5;
}

.qr-breadcrumb a {
    color: #00f0ff;
    text-decoration: none;
}

.qr-breadcrumb a:hover {
    text-decoration: underline;
}


/* =========================================================
   HEADER
========================================================= */

.qr-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 46px;
}

.qr-tool-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            rgba(0, 240, 255, 0.16),
            rgba(112, 0, 255, 0.16)
        );

    border: 1px solid rgba(0, 240, 255, 0.25);

    color: #00f0ff;

    font-size: 32px;

    box-shadow:
        0 0 40px rgba(0, 240, 255, 0.08);
}

.qr-label {
    display: inline-block;

    margin-bottom: 12px;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2px;

    color: #00f0ff;
}

.qr-header h1 {
    margin: 0 0 16px;

    font-family: "Space Grotesk", sans-serif;

    font-size: clamp(38px, 6vw, 64px);

    line-height: 1.05;

    color: #ffffff;
}

.qr-header p {
    max-width: 650px;

    margin: 0 auto;

    color: #9ca5b5;

    font-size: 16px;

    line-height: 1.7;
}

.qr-privacy {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-top: 20px;

    padding: 9px 14px;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.035);

    border: 1px solid rgba(255, 255, 255, 0.08);

    color: #8f99aa;

    font-size: 13px;
}


/* =========================================================
   MAIN CARD
========================================================= */

.qr-card {
    position: relative;

    padding: 28px;

    border-radius: 28px;

    background:
        rgba(15, 23, 42, 0.68);

    border: 1px solid rgba(255, 255, 255, 0.09);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.28);
}


/* =========================================================
   GRID
========================================================= */

.qr-generator-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(340px, 0.8fr);

    gap: 34px;
}


/* =========================================================
   CONTROLS
========================================================= */

.qr-controls {
    min-width: 0;
}

.qr-section-label {
    margin: 0 0 12px;

    color: #00f0ff;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.8px;
}

.qr-field {
    position: relative;

    margin-bottom: 28px;
}

.qr-field label,
.qr-setting label,
.qr-color-field label {
    display: block;

    margin-bottom: 9px;

    color: #dce2eb;

    font-size: 13px;

    font-weight: 600;
}

.qr-field textarea {
    width: 100%;

    min-height: 145px;

    resize: vertical;

    padding: 17px;

    border-radius: 15px;

    border: 1px solid rgba(255, 255, 255, 0.09);

    background: rgba(3, 7, 18, 0.7);

    color: #ffffff;

    font-family: "DM Sans", sans-serif;

    font-size: 15px;

    line-height: 1.6;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.qr-field textarea::placeholder {
    color: #5f6878;
}

.qr-field textarea:focus {
    border-color: rgba(0, 240, 255, 0.55);

    box-shadow:
        0 0 0 3px rgba(0, 240, 255, 0.08);
}

.qr-character-count {
    position: absolute;

    right: 13px;
    bottom: 10px;

    color: #667080;

    font-size: 11px;
}


/* =========================================================
   QUICK BUTTONS
========================================================= */

.qr-quick-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 9px;

    margin-bottom: 30px;
}

.qr-quick {
    padding: 10px 14px;

    border-radius: 10px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    background: rgba(255, 255, 255, 0.035);

    color: #9fa8b7;

    cursor: pointer;

    font-family: inherit;

    font-size: 13px;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.qr-quick:hover {
    transform: translateY(-1px);

    color: #ffffff;

    border-color: rgba(0, 240, 255, 0.3);
}

.qr-quick.active {
    color: #00f0ff;

    border-color: rgba(0, 240, 255, 0.35);

    background: rgba(0, 240, 255, 0.08);
}


/* =========================================================
   SETTINGS
========================================================= */

.qr-settings-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 14px;

    margin-bottom: 18px;
}

.qr-setting select {
    width: 100%;

    height: 46px;

    padding: 0 13px;

    border-radius: 11px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    background: #0b1020;

    color: #e9edf4;

    outline: none;

    font-family: inherit;

    cursor: pointer;
}

.qr-setting select:focus {
    border-color: rgba(0, 240, 255, 0.45);
}


/* =========================================================
   COLORS
========================================================= */

.qr-colors {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 14px;

    margin-bottom: 25px;
}

.color-input-wrap {
    height: 46px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 5px 11px 5px 6px;

    border-radius: 11px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    background: rgba(3, 7, 18, 0.65);
}

.color-input-wrap input {
    width: 34px;
    height: 34px;

    padding: 0;

    border: none;

    background: transparent;

    cursor: pointer;
}

.color-input-wrap span {
    color: #8f99aa;

    font-size: 12px;

    font-family: monospace;
}


/* =========================================================
   BUTTONS
========================================================= */

.qr-generate-btn {
    width: 100%;

    min-height: 52px;

    border: none;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            #00dff0,
            #7000ff
        );

    color: #ffffff;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 12px 35px rgba(0, 240, 255, 0.12);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.qr-generate-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 16px 40px rgba(0, 240, 255, 0.2);
}

.qr-generate-btn:active {
    transform: translateY(0);
}

.qr-generate-btn span {
    margin-right: 7px;
}

.qr-reset-btn {
    width: 100%;

    margin-top: 10px;

    min-height: 44px;

    border-radius: 12px;

    border: 1px solid rgba(255, 255, 255, 0.08);

    background: transparent;

    color: #7f8999;

    font-family: inherit;

    cursor: pointer;

    transition: 0.2s ease;
}

.qr-reset-btn:hover {
    color: #ffffff;

    border-color: rgba(255, 255, 255, 0.18);

    background: rgba(255, 255, 255, 0.035);
}


/* =========================================================
   PREVIEW
========================================================= */

.qr-preview-area {
    display: flex;

    flex-direction: column;

    min-width: 0;
}

.qr-preview-label {
    margin-bottom: 12px;

    color: #00f0ff;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.8px;
}

.qr-preview-box {
    min-height: 440px;

    flex: 1;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 30px;

    border-radius: 20px;

    background:
        rgba(2, 6, 16, 0.72);

    border: 1px solid rgba(255, 255, 255, 0.08);
}


/* =========================================================
   PLACEHOLDER
========================================================= */

.qr-placeholder {
    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    gap: 9px;

    color: #697384;
}

.placeholder-icon {
    width: 72px;
    height: 72px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 8px;

    border-radius: 18px;

    background: rgba(255, 255, 255, 0.035);

    color: #586273;

    font-size: 32px;
}

.qr-placeholder strong {
    color: #aab2c0;

    font-size: 15px;
}

.qr-placeholder span {
    color: #626c7c;

    font-size: 12px;
}


/* =========================================================
   QR OUTPUT
========================================================= */

.qr-output {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;
}

#qrGenerated {
    display: flex;

    align-items: center;

    justify-content: center;

    padding: 12px;

    background: #ffffff;

    border-radius: 8px;

    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.25);
}

#qrGenerated img,
#qrGenerated canvas {
    display: block;

    max-width: 100%;

    height: auto;
}


/* =========================================================
   STATUS
========================================================= */

.qr-preview-status {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 14px;

    color: #7e8898;

    font-size: 12px;
}

.qr-preview-status > span {
    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background: #00e6b0;

    box-shadow:
        0 0 10px rgba(0, 230, 176, 0.45);
}


/* =========================================================
   DOWNLOADS
========================================================= */

.qr-downloads {
    display: grid;

    grid-template-columns: 1fr 100px;

    gap: 10px;

    margin-top: 13px;
}

.qr-download-btn,
.qr-copy-btn {
    min-height: 46px;

    border-radius: 11px;

    font-family: inherit;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.qr-download-btn {
    border: 1px solid rgba(0, 240, 255, 0.22);

    background: rgba(0, 240, 255, 0.07);

    color: #00f0ff;
}

.qr-copy-btn {
    border: 1px solid rgba(255, 255, 255, 0.09);

    background: rgba(255, 255, 255, 0.035);

    color: #aeb6c4;
}

.qr-download-btn:hover:not(:disabled),
.qr-copy-btn:hover:not(:disabled) {
    transform: translateY(-1px);

    border-color: rgba(0, 240, 255, 0.4);
}

.qr-download-btn:disabled,
.qr-copy-btn:disabled {
    opacity: 0.35;

    cursor: not-allowed;
}


/* =========================================================
   INFO CARDS
========================================================= */

.qr-info-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;

    margin-top: 25px;
}

.qr-info-card {
    padding: 25px;

    border-radius: 20px;

    background:
        rgba(15, 23, 42, 0.48);

    border: 1px solid rgba(255, 255, 255, 0.07);
}

.qr-info-icon {
    font-size: 23px;

    margin-bottom: 13px;
}

.qr-info-card h3 {
    margin: 0 0 8px;

    color: #ffffff;

    font-family: "Space Grotesk", sans-serif;

    font-size: 18px;
}

.qr-info-card p {
    margin: 0;

    color: #7e8898;

    font-size: 13px;

    line-height: 1.7;
}


/* =========================================================
   LIGHT MODE
========================================================= */

body.light-mode .qr-header h1 {
    color: #10131a;
}

body.light-mode .qr-header p {
    color: #5c6573;
}

body.light-mode .qr-card,
body.light-mode .qr-info-card {
    background: rgba(255, 255, 255, 0.72);

    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .qr-field textarea,
body.light-mode .qr-setting select,
body.light-mode .color-input-wrap,
body.light-mode .qr-preview-box {
    background: rgba(255, 255, 255, 0.8);

    color: #171b22;

    border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .qr-field textarea {
    color: #171b22;
}

body.light-mode .qr-field label,
body.light-mode .qr-setting label,
body.light-mode .qr-color-field label {
    color: #343b47;
}

body.light-mode .qr-info-card h3 {
    color: #171b22;
}

body.light-mode .qr-quick {
    color: #596273;

    border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .qr-quick.active {
    color: #007d91;

    background: rgba(0, 200, 220, 0.08);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .qr-generator-grid {
        grid-template-columns: 1fr;
    }

    .qr-preview-box {
        min-height: 390px;
    }

}


@media (max-width: 650px) {

    .qr-page {
        padding: 110px 14px 60px;
    }

    .qr-card {
        padding: 18px;

        border-radius: 20px;
    }

    .qr-header {
        margin-bottom: 32px;
    }

    .qr-header h1 {
        font-size: 38px;
    }

    .qr-settings-grid,
    .qr-colors,
    .qr-info-grid {
        grid-template-columns: 1fr;
    }

    .qr-downloads {
        grid-template-columns: 1fr;
    }

    .qr-preview-box {
        min-height: 330px;

        padding: 20px;
    }

}
