:root {
    --barcode-bg: radial-gradient(circle at 15% 20%, #f0f4ff 0, #f9fbff 40%, #ffffff 80%);
    --barcode-card: #ffffff;
    --barcode-border: #e2e8f0;
    --barcode-text: #0f172a;
    --barcode-muted: #475569;
    --barcode-accent: #2563eb;
    --barcode-accent-2: #0ea5e9;
}

body.barcode-generator-body {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(14, 165, 233, 0.05)), var(--barcode-bg);
    color: var(--barcode-text);
}

.barcode-generator-wrapper {
    padding: 18px 0 140px;
    min-height: calc(100vh - var(--header-height));
}

.barcode-hero {
    padding: 10px 0 26px;
}

.barcode-hero h1 {
    font-weight: 700;
    font-size: clamp(24px, 3.6vw, 32px);
    line-height: 1.25;
}

.barcode-eyebrow {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 11px;
    color: var(--barcode-accent);
    font-weight: 700;
}

.barcode-hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.barcode-hero-highlights div {
    background: #e0f2fe;
    border: 1px solid #cbd5e1;
    padding: 8px 10px;
    border-radius: 10px;
    color: #0f172a;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.barcode-hero-card {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.08);
}

.barcode-hero-list {
    padding-left: 0;
    list-style: none;
    color: var(--barcode-muted);
    line-height: 1.45;
    font-size: 14px;
}

.barcode-type-strip {
    position: static;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.06));
    border-bottom: 1px solid #dbeafe;
    padding: 10px 0;
}

.barcode-type-header h3 {
    color: #0f172a;
    font-size: 19px;
    margin-bottom: 2px;
}

.barcode-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.barcode-type-pill {
    background: #ffffff;
    border: 1px solid var(--barcode-border);
    color: var(--barcode-text);
    padding: 8px 10px;
    border-radius: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.barcode-type-pill:hover,
.barcode-type-pill.active {
    border-color: var(--barcode-accent);
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.12);
}

.barcode-lab {
    padding: 18px 0 8px;
}

.barcode-card {
    background: var(--barcode-card);
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.07);
}

.barcode-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.barcode-card h4, .barcode-card h5 {
    color: #0f172a;
    margin: 0;
}

.barcode-card .form-label {
    color: var(--barcode-muted);
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 13px;
}

.barcode-card .form-control,
.barcode-card .form-select,
.barcode-card .form-range {
    background: #ffffff;
    border: 1px solid var(--barcode-border);
    color: #0f172a;
    font-size: 14px;
    padding: 8px 10px;
}

.barcode-card .form-control:focus,
.barcode-card .form-select:focus {
    border-color: var(--barcode-accent-2);
    box-shadow: 0 0 0 0.12rem rgba(14,165,233,0.18);
}

.barcode-form-panel {
    margin-bottom: 10px;
}

.barcode-editor-toolbar .btn {
    border-radius: 8px;
    border: 1px solid var(--barcode-border);
    color: #0f172a;
    background: #f8fafc;
}

.barcode-richtext {
    min-height: 130px;
    border: 1px dashed var(--barcode-border);
    padding: 10px;
    border-radius: 10px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 14px;
}

.barcode-preview-stage {
    background: #f8fafc;
    border: 1px dashed var(--barcode-border);
    border-radius: 12px;
    min-height: 220px;
    display: grid;
    place-items: center;
    padding: 12px;
}

.preview-card canvas {
    max-width: 100%;
    height: auto;
    background: #ffffff;
    border-radius: 8px;
    padding: 8px;
}

.subtle-card {
    margin-top: 12px;
    background: #f8fafc;
}

.barcode-card .btn {
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    padding: 9px 12px;
}

.barcode-card .btn-outline-secondary,
.barcode-card .btn-outline-primary {
    border-color: #bfdbfe;
    color: #0f172a;
}

.barcode-card .btn-outline-secondary:hover,
.barcode-card .btn-outline-primary:hover {
    border-color: var(--barcode-accent);
    color: #0f172a;
}

.barcode-card small.text-muted {
    color: var(--barcode-muted) !important;
}

.saved-list .list-group-item {
    font-size: 13px;
}

.saved-list .badge {
    font-size: 11px;
}

.barcode-context {
    padding: 20px 0 120px;
}

.barcode-more-tools {
    padding: 10px 0 40px;
}

.more-tools-head h3 {
    font-size: 18px;
}

.tool-chip {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #dbeafe;
    background: linear-gradient(135deg, rgba(37,99,235,0.06), rgba(14,165,233,0.04));
    text-decoration: none;
    color: #0f172a;
    box-shadow: 0 8px 18px rgba(37,99,235,0.05);
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tool-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(37,99,235,0.12);
}

.tool-chip i {
    font-size: 16px;
    color: #2563eb;
    margin-top: 2px;
}

.tool-chip h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.tool-chip p {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: #475569;
}

.info-card {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.06);
    height: 100%;
}

.info-card.compact-card {
    padding: 14px;
}

.barcode-mini-grid .info-card {
    height: 100%;
}

.barcode-mini-grid h6 {
    margin-bottom: 6px;
}

.barcode-section {
    padding: 26px 0;
}

.section-header h3 {
    color: #0f172a;
    font-size: 20px;
    margin-bottom: 6px;
}

.section-header p {
    margin-bottom: 8px;
}

.step-card h6 {
    font-weight: 700;
}

.step-card ul li {
    margin-bottom: 4px;
}

.barcode-table-wrapper {
    border: 1px solid #dbeafe;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.05);
    background: #ffffff;
    margin-top: 10px;
}

.barcode-guide .barcode-table th,
.barcode-guide .barcode-table td {
    vertical-align: top;
    color: #0f172a;
}

.barcode-guide .barcode-table td {
    color: #475569;
}

.faq-card h6 {
    margin-bottom: 6px;
    font-weight: 700;
}

.faq-card p {
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .info-card {
        height: auto;
    }
}

.info-card h3, .info-card h4, .info-card h6 {
    color: #0f172a;
    margin-bottom: 8px;
}

.info-card p, .info-card li {
    font-size: 13px;
    line-height: 1.55;
}

.mini-tile {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    height: 50%;
}

.mini-tile ol,
.mini-tile ul {
    margin-bottom: 0;
    padding-left: 18px;
}

.quick-start-tile {
    padding: 10px;
}

.quick-start-tile ol li {
    margin-bottom: 4px;
    line-height: 1.4;
}

@media (max-width: 991px) {
    .barcode-card {
        padding: 12px;
    }
}

@media (max-width: 576px) {
    .barcode-type-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }
    .barcode-hero-highlights div {
        width: 100%;
    }
    .barcode-guide .barcode-table {
        font-size: 12px;
    }
    .section-header h3 {
        font-size: 18px;
    }
}
