@charset "UTF-8";

/*!
 * QRCODE.BD - QR Code generator
 * Copyright 2025 QRCODE.BD
 * https://qrcode.bd
 */
a:hover,
a:focus,
a:active {
    text-decoration: none;
}

hr {
    border-color: #c7c7c7;
}

.form-control {
    background-color: rgba(0, 0, 0, 0.01);
}

.btn:disabled {
    opacity: 0.2;
}

.btn.focus,
.btn:focus {
    box-shadow: none !important;
}

img {
    max-width: 100%;
    height: auto;
}

textarea.form-control {
    margin-bottom: 1rem;
}

.custom-file {
    position: relative;
    display: inline-block;
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
    margin-bottom: 0;
}

.custom-file-label {
    border: none;
}

label.custom-file-label:after {
    content: "\f093" !important;
    font-family: 'FontAwesome';
    width: 100%;
    border: none;
    text-align: center;
    border-radius: .25rem;
}

.custom-file-label:after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: block;
    height: calc(1.5em + .75rem);
    padding: .375rem .75rem;
    line-height: 1.5;

}

.nav-pills>li>a span {
    font-size: .8em;
}

.dropdown-menu {
    z-index: 1022;
}

.navbar-dark .navbar-toggler {
    border-color: transparent;
}

.logoselecta {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
}

.logoselecta .btn-group-toggle {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
}

.logoselecta img,
.hold-custom-watermark {
    min-height: 2em;
    min-width: 2em;
    max-width: 2em;
    max-height: 2em;
}

.hold-custom-watermark>* {
    max-width: 100%;
    height: auto;
}

.btn.custom-watermark {
    padding: 0;
}

.custom-watermark img {
    max-width: 100%;
    height: 2em;
    margin: .375rem .75rem;
}

.logoselecta label {
    margin: 0 !important;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.logoselecta label:hover {
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.logoselecta input:checked+label {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.styleselecta {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
}

.styleselecta.d-inline-block {
    display: flex !important;
}

.styleselecta img {
    width: 2.5em;
}

.styleselecta label {
    min-width: 2.5em;
    margin: 0 !important;
    flex-shrink: 0;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.styleselecta label:hover {
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.styleselecta input:checked+label {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.btn-group-toggle {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
}

.btn-group-toggle.styleselecta {
    display: flex !important;
}

.btn-group-toggle.d-inline-block {
    display: flex !important;
}

.btn-group-toggle .btn {
    border-radius: 8px;
    margin: 0 !important;
    flex-shrink: 0;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.btn-group-toggle .btn:hover {
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.btn-group-toggle input:checked+.btn {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.btn-check:active+.btn,
.btn-check:checked+.btn {
    background-color: #dae0e5;
    border-color: #dae0e5;
}

/* 
* Google map
*/
#map-canvas img {
    max-width: none;
}

#map-canvas {
    width: 100%;
    height: 350px;
    padding: 0px;
    float: left;
}

.controls {
    margin-top: 16px;
    border: 1px solid transparent;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    height: 32px;
    outline: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

#pac-input,
#latlong input {
    background-color: #fff;
    padding: 0 11px 0 13px;
    font-family: Roboto;
    font-size: 15px;
    font-weight: 300;
    text-overflow: ellipsis;
}

#pac-input {
    width: 50%;
}

#latbox,
#lngbox {
    width: 20%;
}

#pac-input:focus,
#latlong input:focus {
    border-color: #4d90fe;
}

/* 
* QR code placeholder 
*/
.wrapresult,
.resultholder {
    position: relative;
    text-align: center;
}

.resultholder svg {
    max-width: 100%;
    height: auto;
}

.placeresult {
    float: left;
    width: 100%;
    padding: 10px;
    -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
    position: relative;
}

.placeresult .linksholder .btn {
    font-size: 2.5rem;
}

.preloader {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    font-size: 36px;
    display: none;
    -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
}

.preloader .fa-cog {
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -18px;
    margin-top: -18px;
}

.was-validated .form-control:valid {
    background-image: none;
    border-color: #ced4da;
}

.was-validated .custom-select:valid {
    border-color: #ced4da;
}

.custom-control-input.is-valid~.custom-control-label,
.was-validated .custom-control-input:valid~.custom-control-label {
    color: inherit;
}

.form-group {
    margin-bottom: 1rem;
}

.overlay-gradient {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    background: -moz-linear-gradient(-45deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    background: -webkit-gradient(left top, right bottom, color-stop(0%, rgba(255, 255, 255, 0.2)), color-stop(100%, rgba(255, 255, 255, 0)));
    background: -webkit-linear-gradient(-45deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    background: -o-linear-gradient(-45deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    background: -ms-linear-gradient(-45deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#ffffff', GradientType=1);
}

.vertical-middle {
    vertical-align: middle;
}

#infomarker_admin {
    width: 24px;
    height: 24px;
    border: 2px solid #950000;
    border-radius: 3em;
    background-color: #0FF;
    opacity: 0.5;
    cursor: move;
}

.venomap {
    width: 100%;
    height: 400px;
}

.form-control.no-validate:valid,
.form-control.no-validate:invalid {
    border-color: #ced4da;
    padding-right: .75rem;
    background: none;
}

/*
 * OL controls
 */
.ol-attribution * {
    font-size: 9px;
}

.ol-control {
    padding: 0;
}

.ol-control.ol-zoom,
.ol-control.ol-zoom:hover {
    background: none;
    z-index: 9;
}

.ol-control button,
.ol-control button:focus,
.ol-control button:hover {
    background-color: #393939;
}

.ol-control button:focus,
.ol-control button:hover {
    opacity: .8;
}

/* Toast Alert */
.alert_placeholder {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 1021;
    transition: visibility .15s linear;
    visibility: hidden;
}

.alert_placeholder.show {
    visibility: visible;
}

.icon-spin {
    -webkit-animation: icon-spin 2s infinite linear;
    animation: icon-spin 2s infinite linear
}

@keyframes icon-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

input[type=range].qrcdr-slider-input {
    -webkit-appearance: none;
    margin: 10px 0;
    width: 100%;
    opacity: 0.7;
}

input[type=range].qrcdr-slider-input:focus {
    outline: none;
}

input[type=range].qrcdr-slider-input::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    animate: 0.2s;
    box-shadow: 0px 0px 0px #000000;
    background: #d3d3d3;
    border-radius: 50px;
    border: 0px solid #000000;
}

input[type=range].qrcdr-slider-input::-webkit-slider-thumb {
    box-shadow: 0px 0px 1px #000000;
    border: 0px solid #000000;
    height: 14px;
    width: 14px;
    border-radius: 50px;
    background: #0083fd;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -4px;
}

input[type=range].qrcdr-slider-input:focus::-webkit-slider-runnable-track {
    background: #d3d3d3;
}

input[type=range].qrcdr-slider-input::-moz-range-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    animate: 0.2s;
    box-shadow: 0px 0px 0px #000000;
    background: #d3d3d3;
    border-radius: 50px;
    border: 0px solid #000000;
}

input[type=range].qrcdr-slider-input::-moz-range-thumb {
    box-shadow: 0px 0px 1px #000000;
    border: 0px solid #000000;
    height: 14px;
    width: 14px;
    border-radius: 50px;
    background: #0083fd;
    cursor: pointer;
}

input[type=range].qrcdr-slider-input::-ms-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    animate: 0.2s;
    background: transparent;
    border-color: transparent;
    color: transparent;
}

input[type=range].qrcdr-slider-input::-ms-fill-lower {
    background: #d3d3d3;
    border: 0px solid #000000;
    border-radius: 100px;
    box-shadow: 0px 0px 0px #000000;
}

input[type=range].qrcdr-slider-input::-ms-fill-upper {
    background: #d3d3d3;
    border: 0px solid #000000;
    border-radius: 100px;
    box-shadow: 0px 0px 0px #000000;
}

.form-control,
.form-select {
    border-radius: 0;
}

input[type=range].qrcdr-slider-input::-ms-thumb {
    box-shadow: 0px 0px 1px #000000;
    border: 0px solid #000000;
    height: 14px;
    width: 14px;
    border-radius: 50px;
    background: #0083fd;
    cursor: pointer;
}

input[type=range].qrcdr-slider-input:focus::-ms-fill-lower {
    background: #d3d3d3;
}

input[type=range].qrcdr-slider-input:focus::-ms-fill-upper {
    background: #d3d3d3;
}

.input-group>.sp-colorize-container {
    flex: 1 1 auto;
    width: 1%;
}

/*
 * CropIt
 */
.image-editor {
    width: 248px;
}

.cropit-preview img {
    max-width: none;
}

.cropit-preview {
    background-size: cover;
    width: 200px;
    height: 200px;
    margin: 25px;
    border: 1px solid #E4E1E6;
}

.cropit-preview-image-container {
    cursor: move;
}

input.cropit-image-input {
    visibility: hidden;
    display: none;
}

.cropit-preview-background {
    opacity: .2;
}

input.cropit-image-zoom-input {
    position: relative;
}

.cropit-image-zoom-input,
.cropit-preview {
    display: none;
}

.cropit-preview.cropit-image-loaded {
    display: block;
}

.cropit-image-loaded.cropit-image-zoom-input:not([disabled]) {
    display: inline-block;
}

.accordion {
    --bs-accordion-border-width: 0;
}

.ltr {
    direction: ltr;
}

/* ============================================
   Professional Modern UI Styling
   ============================================ */

:root {
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: rgba(76, 175, 80, 0.1);
    --secondary-color: #2196F3;
    --background-gradient: linear-gradient(135deg, #f5f7fa 0%, #e8f5e9 100%);
    --card-bg: #ffffff;
    --text-primary: #212121;
    --text-secondary: #616161;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
}

/* Base & Typography */
body.qrcdr {
    background: var(--background-gradient);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    color: var(--text-primary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

/* Layout Containers */
.container {
    max-width: 1200px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Header Styles */
.clean-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0.75rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.25rem 0;
}

.header-logo {
    height: 28px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.header-logo:hover {
    transform: scale(1.02);
}

.header-right-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-tagline-inline span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Main Content Card */
/* Main Content Card */
/* Main Content Card */
.main-content-container {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 3rem;
    margin-top: 2rem;
    margin-bottom: 6rem;
    /* Standard spacing */
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 10;
}

/* Sidebar Sticky Fix */
.qrcode-preview-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 120px;
    /* Accounts for header height */
    z-index: 900;
    align-self: flex-start;
    width: 100%;
    display: flex;
    /* Critical: Contains floated children */
    flex-direction: column;
    /* Stacks children vertically */
}

/* Footer Fix */
.professional-footer {
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    margin-top: auto;
    /* Pushes footer to bottom in flex container */
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 10;
}

.footer-text {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Navigation Tabs */
.nav-pills {
    background-color: #f8f9fa;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    gap: 0.5rem;
    border: 1px solid var(--border-color);
}

.nav-pills .nav-link {
    background-color: transparent;
    color: var(--text-secondary);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.nav-pills .nav-link:hover {
    color: var(--primary-color);
    background-color: white;
    box-shadow: var(--shadow-sm);
}

.nav-pills .nav-link.active {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

.nav-pills .nav-link i {
    font-size: 1.1em;
}

/* Form Elements */
.form-control,
.form-select {
    background-color: #fcfcfc;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.form-control:focus,
.form-select:focus {
    background-color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-light);
    outline: none;
}

.form-label,
label {
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

/* Feature Cards (Options) */
.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md) !important;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    background: #fff;
}

.accordion-button {
    font-weight: 600;
    color: var(--text-primary);
    background-color: white;
    padding: 1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: var(--primary-light);
    box-shadow: none;
}

/* Result Area (The QR Code) */
.placeresult {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.placeresult img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.generate_qrcode {
    margin-top: 1.5rem;
    width: 100%;
    font-size: 1.1rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
}

/* Selection Grids (Colors, Patterns) */
.styleselecta label,
.logoselecta label {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    cursor: pointer;
    background: white;
    margin: 0.25rem !important;
}

.styleselecta label:hover,
.logoselecta label:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.styleselecta input:checked+label {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
}

/* Color Picker Tweaks */
.input-group-text {
    background-color: #f8f9fa;
    border: 2px solid var(--border-color);
    border-right: none;
}

.form-control.qrcolorpicker {
    height: auto;
    padding: 0.5rem;
}

/* Footer */
.professional-footer {
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: auto;
}

/* Guide Section Cards */
.qr-guide-section {
    padding: 4rem 0;
    background: transparent;
}

.guide-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.guide-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.guide-step {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.step-number-wrapper {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Step Previews */
.qr-type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: var(--radius-md);
}

.qr-type-item {
    padding: 0.5rem;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.75rem;
    background: white;
    color: var(--text-secondary);
    font-weight: 500;
}

.qr-type-item.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.step-input-preview {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

.upload-hint {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-preview {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: var(--radius-md);
    color: var(--primary-color);
}


/* Z-Index Fix for Guide Overlap */
.qr-guide-section {
    position: relative;
    z-index: 2000;
    /* Higher than sidebar 1020 */
    background: transparent;
    /* Keep transparent internal, but maybe wrap? */
}

/* Ensure the guide cards themselves are opaque and block the sidebar */
.guide-step {
    z-index: 2001;
    background: #ffffff;
}

.generator-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .generator-card {
        padding: 1rem;
    }
}/* -------------------------------------------------------------------
   MOBILE HEADER FIXES (Appended to ensure they override)
   ------------------------------------------------------------------- */
@media (max-width: 991px) {

    /* 1. Reset Container Logic for Mobile */
    .clean-header .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 2. Header Content Layout */
    .header-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px 0;
        width: 100%;
    }

    /* 3. Logo Sizing & Spacing */
    .header-logo-section {
        margin-bottom: 15px;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .header-logo {
        height: auto;
        max-height: 50px !important;
        /* Force smaller logo on mobile */
        max-width: 180px;
        width: auto;
    }

    /* 4. Hide Tagline completely to save space */
    .header-tagline-inline {
        display: none !important;
    }

    /* 5. Navigation & Scan Button Alignment */
    .header-right-section {
        width: 100%;
    }

    .header-nav-section {
        width: 100%;
    }

    .header-nav-section .navbar-nav {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 15px;
        width: 100%;
    }

    /* 6. Scan Button Styling for Mobile */
    .nav-item.d-lg-none {
        display: block !important;
        /* Ensure it shows on mobile */
    }

    .nav-link.btn-outline-primary {
        padding: 6px 16px !important;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    /* 7. Language Selector */
    .lang-menu {
        margin-top: 0;
    }
}

/* Extra small screens fix */
@media (max-width: 400px) {
    .header-logo {
        max-height: 40px !important;
    }
}
/* -------------------------------------------------------------------
   NATIVE APP UI OVERHAUL (Mobile Only)
   ------------------------------------------------------------------- */
@media (max-width: 991px) {
    body {
        background-color: #f8f9fa;
        /* App-like subtle background */
    }

    /* 1. Full Width Container */
    .container,
    .main-content-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
        max-width: 100% !important;
    }

    /* 2. Card Styling - reduced padding/margin for screens */
    .generator-card {
        padding: 15px !important;
        margin-bottom: 15px !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
        border: none !important;
    }

    /* 3. Input Fields - Touch Friendly */
    .form-control,
    .form-select,
    .btn {
        height: 48px;
        /* Taller touch targets */
        font-size: 16px;
        /* No zoom on focus */
        border-radius: 8px !important;
    }

    textarea.form-control {
        height: auto;
    }

    /* 4. Tab Navigation - Scrollable if too many items */
    .nav-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Hide scrollbar Firefox */
        gap: 8px;
    }

    .nav-pills::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari */
    }

    .nav-pills .nav-item {
        flex: 0 0 auto;
    }

    .nav-pills .nav-link {
        white-space: nowrap;
        padding: 8px 16px;
        font-size: 14px;
        border-radius: 50px !important;
    }

    /* 5. Typography */
    h1,
    h2,
    h3,
    h4 {
        margin-bottom: 1rem;
    }

    h4 {
        font-size: 1.25rem;
        font-weight: 600;
    }

    label {
        margin-bottom: 5px;
        color: #444;
        font-weight: 500;
    }

    /* 6. Settings Accordion Items */
    .accordion-button {
        padding: 12px 15px;
        font-size: 15px;
        font-weight: 600;
        background-color: #fff;
    }

    .accordion-item {
        border-radius: 8px !important;
        overflow: hidden;
        border: 1px solid #eee;
        margin-bottom: 10px;
    }

    /* 7. Footer adjustments */
    footer {
        padding: 20px 0;
        text-align: center;
    }
}
/* -------------------------------------------------------------------
   NATIVE APP UI POLISH (Mobile Only) v2
   ------------------------------------------------------------------- */
@media (max-width: 991px) {
    body {
        background-color: #f0f2f5;
    }

    /* 1. Reset Container Logic for Mobile */
    .clean-header .container,
    .main-content-container,
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 2. Header Improvements */
    .header-content {
        padding: 5px 0;
    }

    .header-logo {
        max-height: 44px !important;
    }

    .navbar-nav .nav-link {
        font-size: 0.85rem;
    }

    /* 3. Streamlined Cards */
    .generator-card {
        padding: 15px 12px !important;
        margin-bottom: 12px !important;
        border-radius: 12px !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
        border: 1px solid #e1e4e8 !important;
    }

    /* 4. Settings Accordion - Compact & Clean */
    .accordion-item {
        margin-bottom: 8px !important;
        border: 1px solid #e1e4e8 !important;
        border-radius: 8px !important;
        overflow: hidden;
    }

    .accordion-button {
        padding: 10px 15px;
        font-size: 14px;
        background-color: #f8f9fa;
        color: #333;
    }

    .accordion-button:not(.collapsed) {
        color: #4CAF50;
        /* Match brand color */
        background-color: #e8f5e9;
        box-shadow: none;
    }

    .accordion-body {
        padding: 15px;
        background: #fff;
    }

    /* 5. Input Fields & Buttons */
    .form-control,
    .form-select,
    .btn {
        height: 44px;
        font-size: 15px;
        border-radius: 8px !important;
    }

    /* Fix weird color picker height */
    .qrcolorpicker {
        height: 44px !important;
    }

    /* 6. Tabs - Horizontal Scroll "Chips" look */
    .nav-pills {
        gap: 6px;
        padding-bottom: 5px;
    }

    .nav-pills .nav-link {
        border-radius: 20px !important;
        padding: 6px 14px;
        font-size: 13px;
        background: #fff;
        border: 1px solid #e1e4e8;
        color: #555;
    }

    .nav-pills .nav-link.active {
        background: #4CAF50;
        color: #fff;
        border-color: #4CAF50;
        box-shadow: 0 2px 4px rgba(76, 175, 80, 0.2);
    }

    /* 7. Hide desktop elements aggressively */
    .d-lg-block {
        display: none !important;
    }

    .d-lg-none {
        display: block !important;
    }
}
/* -------------------------------------------------------------------
   MOBILE UI V3 - HEADER ALIGNMENT & SHOW ALL TABS
   ------------------------------------------------------------------- */
@media (max-width: 991px) {

    /* 1. Header Layout - Logo Left, Actions Right */
    .header-content {
        flex-direction: row !important;
        /* Force row */
        justify-content: space-between !important;
        align-items: center !important;
    }

    .header-logo-section {
        width: auto !important;
        margin-bottom: 0 !important;
        flex: 0 1 auto;
        /* Allow shrinking if needed */
        display: flex;
        justify-content: flex-start !important;
    }

    .header-logo {
        max-height: 40px !important;
        /* Optimal for header bars */
    }

    .header-right-section {
        width: auto !important;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    /* Remove full width forcing from previous fixes */
    .header-nav-section {
        width: auto !important;
        margin-top: 0 !important;
    }

    .header-nav-section .navbar-nav {
        flex-direction: row !important;
        gap: 8px !important;
        width: auto !important;
        justify-content: flex-end !important;
    }

    /* 2. Tabs - "Show All Items" (Wrap instead of scroll) */
    .nav-pills {
        flex-wrap: wrap !important;
        overflow-x: visible !important;
        justify-content: center !important;
        padding-bottom: 5px !important;
        gap: 6px !important;
    }

    .nav-pills .nav-item {
        flex: 0 0 auto !important;
    }

    /* Make tabs simpler/smaller since there are many */
    .nav-pills .nav-link {
        border-radius: 8px !important;
        padding: 6px 10px !important;
        font-size: 12px !important;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .nav-pills .nav-link i {
        font-size: 14px;
    }
}
