:root {
    --primary: #6c5ce7;
    --ink: #172033;
    --muted: #6b7280;
    --bg: #f5f7fb
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif
}

#dynamicForm .form-control, #dynamicForm .form-select, #barcodeText {
    border: 1px solid #d1d1d1;
    background: #faf9ff;
    /* box-shadow: 0 0 0 3px rgba(108, 92, 231, .06); */
    font-weight: 600;
    height: 55px;
}

#dynamicForm .form-control:focus,
#dynamicForm .form-select:focus,
#barcodeText:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, .13);
    background: #fff
}

.navbar {
    background: #fff;
    border-bottom: 1px solid #e9edf5
}

.brand {
    font-weight: 800;
    font-size: 1.15rem
}

.hero {
    padding: 34px 0 20px
}

.hero h1 {
    font-weight: 800;
    letter-spacing: -.03em
}

.app-card {
    background: #fff;
    border: 1px solid #e8ebf3;
    border-radius: 15px;
    box-shadow: 0 12px 35px #1d254008;
    overflow: hidden;
}

.panel {
    padding: 20px
}

.preview {
    min-height: 650px;
    background: linear-gradient(145deg, #fbfbff, #f1efff);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 20px
}

#qrPreview canvas,
#qrPreview svg {
    max-width: 100%;
    height: auto
}

.barcode-box {
    background: #fff;
    padding: 22px;
    border-radius: 16px;
    text-align: center;
    max-width: 100%;
    overflow: auto
}

.form-label {
    font-weight: 550;
    font-size: 16px;
    color: #000;
}

.form-control,
.form-select {
    border-radius: 6px;
    padding: .7rem .8rem
}

.type-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px
}

.type-btn {
    border: 1px solid #e5e7ef;
    background: #fff;
    border-radius: 11px;
    padding: 10px 6px;
    font-size: 15px;
    text-align: center
}

.type-btn.active {
    border-color: var(--brand);
    background: #1d63e30d;
    color: var(--brand);
    /* background: var(--brand); */
    /* color: #fff; */
}

.section-title {
    font-size: 16px;
    font-weight: 500;
    margin: 22px 0 10px;
    color: #000;
}

.color-row {
    display: flex;
    gap: 10px;
    align-items: center
}

.color-row input[type=color] {
    width: 48px;
    height: 42px;
    padding: 3px;
    border: 1px solid #ddd;
    border-radius: 9px
}

.downloads {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px
}

.btn-primary {
    background: var(--brand);
    border-color: var(--brand)
}

.range-value {
    font-size: .8rem;
    color: var(--muted)
}

.hidden {
    display: none !important
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px
}

.social-btn {
    padding: 10px;
    border: 1px solid #e5e7ef;
    background: #fff;
    border-radius: 10px;
    text-align: left
}

.social-btn.active {
    border-color: var(--brand);
    background: #f1efff
}

.logo-preview {
    max-width: 90px;
    max-height: 90px;
    border-radius: 12px;
    border: 1px dashed #ccd1dd;
    padding: 5px
}
.gen_down_btn {
    display: flex;
    justify-content: space-between;
}

.comdown {
    border: solid 1px #c7c7c7;
    padding: 6px !important;
    padding: 8px 30px !important;
    background: #f7f7f7;
    font-size: 15px !important;
}

.comdown_outer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 17px;
}

.pngdown {
    border: solid 1px #c8c8c8 !important;
    background: #f7f7f7;
    color: #000;
}

.pngdown:hover {
    background: var(--brand);
    border-color: var(--brand) !important;
}

.comdown:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.border-end .panel {
    padding: 0;
}

.panel .btn-group {
    display: flex;
    justify-content: space-between;
}

.panel .btn-group button {
    border: solid 1px #e8ebf3;
    border-radius: 0;
    border-right: 0;
    color: #000;
    padding: 12px 0;
    background: #fbfbfb;
}

button.btn-primary {
    background: var(--brand) !important;
    color: #fff !important;
}

.panel .btn-group button:hover {
    background: var(--brand);
    color: #fff !important;
}

#qrPanel {
    padding: 10px 25px 0 25px;
}

@media(max-width:991px) {
    .preview {
        position: relative;
        top: auto;
        min-height: 420px;
        margin-top: 20px
    }

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



@media(max-width:500px) {
.type-btn {
    background: #fff;
    border-radius: 0;
    border: 0;
    background: #fff !important;
}
.type-grid {
    grid-template-columns: repeat(4, 1fr);
    background: #e5e7ef;
    gap: 1px;
    border: solid 1px #e5e7ef;
    border-radius: 15px;
    overflow: hidden;
}
.type-btn.active {
    background: #e6efff !important;
}
#qrPanel {
    padding: 10px 15px 0 15px;
}
.app-card {
    width: 100%;
    margin: 0 auto;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
}
.app-card .border-end {
    border-right: 0 !important;
}
}