html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

/* Radzen's notification toast defaults to a fixed top:100px/right:1rem position, which
   collides with page toolbars/grid content on most of our pages. Move it to the bottom-right
   corner instead, out of the way of everything. */
.rz-notification {
    inset-block-start: auto !important;
    inset-block-end: 1.5rem !important;
    inset-inline-end: 1.5rem !important;
}

/* Radzen's default ("justify") pager alignment gives .rz-pager-prev an unconditional
   margin-inline-end:auto and .rz-pager-next an unconditional margin-inline-start:auto — these
   auto-margins force first/prev to the left edge and next/last to the right edge regardless of
   justify-content on the parent (only the rz-align-left/right/center modifier classes reset them,
   and RadzenDataGrid doesn't expose a way to request one here). Neutralize them so the whole
   pager (first, prev, page numbers, next, last) sits together, then center that group. */
.rz-pager {
    justify-content: center !important;
}
.rz-pager-prev {
    margin-inline-end: 0 !important;
}
.rz-pager-next {
    margin-inline-start: 0 !important;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBh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ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Login page — branded card matching the app/email gradient, instead of the bare Identity scaffold look. */
.rb-login-page {
    min-height: calc(100vh - 3.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eef2f6;
    padding: 32px 16px;
    margin: -1.1rem -1.5rem;
}

.rb-login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(13, 40, 71, 0.15);
    padding: 40px 36px;
}

.rb-login-brand {
    font-size: 22px;
    font-weight: 900;
    color: #0d2847;
    letter-spacing: -0.3px;
    margin-bottom: 28px;
}

.rb-login-brand span {
    color: #0f6cbd;
}

.rb-login-card h1 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 2px;
    color: #0d2847;
}

.rb-login-subtitle {
    color: #5b6b7a;
    margin-bottom: 24px;
}

.rb-login-card .form-control {
    border-radius: 8px;
    padding: 0.9rem 1rem;
    border-color: #dbe2ea;
}

.rb-login-card .form-control:focus {
    border-color: #0f6cbd;
    box-shadow: 0 0 0 0.2rem rgba(15, 108, 189, 0.15);
}

.rb-login-card .btn-primary {
    background-image: linear-gradient(135deg, #0d2847 0%, #0f6cbd 55%, #0ea5e9 100%);
    background-color: #0f6cbd;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 700;
}

.rb-login-card .btn-primary:hover, .rb-login-card .btn-primary:active {
    filter: brightness(0.95);
}

.rb-login-card hr {
    margin: 20px 0;
    border-color: #e6ecf1;
}

.rb-login-card a {
    color: #0f6cbd;
    text-decoration: none;
}

.rb-login-card a:hover {
    text-decoration: underline;
}

/* LinkedIn Content Generator (Marketing/LinkedInContent.razor) */
.li-gen {
    max-width: 980px;
    margin: 0 auto;
    padding: 8px 4px 60px;
}

.li-gen-hero {
    display: flex;
    align-items: center;
    gap: 22px;
    background: linear-gradient(135deg, #0047AA 0%, #0066C0 60%, #0092D0 100%);
    color: #fff;
    border-radius: 16px;
    padding: 32px 36px;
    margin-bottom: 24px;
    box-shadow: 0 8px 30px rgba(0, 71, 170, 0.25);
}

.li-gen-hero-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.li-gen-hero h1 {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 6px;
}

.li-gen-hero p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    max-width: 620px;
    line-height: 1.5;
}

.li-gen-controls {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.li-gen-focus {
    flex: 1 1 320px;
    min-width: 240px;
}

.li-gen-btn.rz-button {
    background: linear-gradient(135deg, #0047AA, #0092D0);
    border: none;
    border-radius: 10px;
    padding: 0 26px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 71, 170, 0.3);
}

.li-gen-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #4a4a6a;
    font-weight: 600;
    padding: 30px 0;
}

.li-gen-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #d5eaf5;
    border-top-color: #0092D0;
    border-radius: 50%;
    animation: li-spin 0.8s linear infinite;
}

@keyframes li-spin {
    to { transform: rotate(360deg); }
}

/* Bold vivid graphic — this element is what gets captured as the downloadable image, so it must
   read in under 2 seconds: one big punchline, three 2-4 word chips, one short CTA. No paragraphs. */
.li-post-card {
    background: linear-gradient(135deg, #FF0080 0%, #7928CA 55%, #0070F3 100%);
    border-radius: 24px;
    box-shadow: 0 16px 50px rgba(121, 40, 202, 0.35);
    padding: 56px 48px;
    text-align: center;
}

.li-img-punchline {
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 40px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    white-space: pre-wrap;
}

.li-img-chips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.li-img-chip {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 18px;
    padding: 24px 22px;
    min-width: 170px;
    flex: 1 1 170px;
    max-width: 240px;
}

.li-img-chip-emoji {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.li-img-chip:nth-child(2) .li-img-chip-emoji {
    background: #FFD93D;
}

.li-img-chip:nth-child(3) .li-img-chip-emoji {
    background: #4DEEEA;
}

.li-img-chip-title {
    font-size: 19px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
}

.li-img-cta {
    display: inline-block;
    background: #fff;
    color: #7928CA;
    font-weight: 800;
    font-size: 18px;
    border-radius: 40px;
    padding: 14px 36px;
}

/* ── Template switcher ────────────────────────────────────────────────── */
.li-template-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.li-template-tab {
    background: #eef2f6;
    color: #4a4a6a;
    border: none;
    border-radius: 20px;
    padding: 9px 20px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.li-template-tab.active {
    background: linear-gradient(135deg, #0047AA, #0092D0);
    color: #fff;
}

/* ── Template: Comparison Table ───────────────────────────────────────── */
.li-post-card.li-tpl-compare {
    background: #fff;
    text-align: center;
    padding: 44px 48px;
    border: 1px solid #eef2f6;
}

.li-cmp-title {
    font-size: 30px;
    font-weight: 800;
    color: #0d1b2a;
    line-height: 1.3;
    margin-bottom: 28px;
    white-space: pre-wrap;
}

.li-cmp-headers {
    display: flex;
    gap: 16px;
    margin-bottom: 4px;
}

.li-cmp-header {
    flex: 1;
    border-radius: 30px;
    padding: 12px 10px;
    font-weight: 800;
    font-size: 16px;
    color: #fff;
}

.li-cmp-header-without {
    background: linear-gradient(135deg, #d64545, #b82e2e);
}

.li-cmp-header-with {
    background: linear-gradient(135deg, #0047AA, #0092D0);
}

.li-cmp-frame {
    border: 4px solid #0047AA;
    border-radius: 18px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.li-cmp-row {
    display: flex;
    gap: 12px;
}

.li-cmp-cell {
    flex: 1;
    background: #f5fbff;
    border: 1px solid #d5eaf5;
    border-radius: 10px;
    padding: 16px 14px;
    font-weight: 700;
    font-size: 15px;
    color: #0d1b2a;
}

.li-cmp-cell-without {
    color: #7a2020;
}

.li-cmp-cell-with {
    color: #0047AA;
}

.li-cmp-footer {
    display: inline-block;
    margin-top: 26px;
    background: linear-gradient(135deg, #0047AA, #0092D0);
    color: #fff;
    font-weight: 800;
    font-size: 17px;
    border-radius: 40px;
    padding: 13px 34px;
}

/* ── Template: Big Statement ──────────────────────────────────────────── */
.li-post-card.li-tpl-statement {
    background: linear-gradient(160deg, #0d1b2a 0%, #0047AA 100%);
    text-align: center;
    padding: 64px 56px;
}

.li-stmt-rule {
    width: 70px;
    height: 4px;
    background: #FFD93D;
    border-radius: 2px;
    margin: 0 auto 32px;
}

.li-stmt-quote + .li-stmt-rule {
    margin: 32px auto 0;
}

.li-stmt-quote {
    font-size: 40px;
    font-weight: 800;
    color: #fff;
    line-height: 1.35;
    letter-spacing: -0.5px;
    white-space: pre-wrap;
}

.li-stmt-cta {
    display: inline-block;
    margin-top: 32px;
    background: #FFD93D;
    color: #0d1b2a;
    font-weight: 800;
    font-size: 18px;
    border-radius: 40px;
    padding: 14px 36px;
}

.li-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.li-copy-btn.rz-button {
    background: linear-gradient(135deg, #1a8f42, #2eb85c);
    border: none;
    border-radius: 10px;
    font-weight: 700;
}

.li-image-btn.rz-button {
    background: linear-gradient(135deg, #b85c00, #e07b1a);
    border: none;
    border-radius: 10px;
    font-weight: 700;
}

.li-regen-btn.rz-button {
    border-radius: 10px;
    font-weight: 700;
}

.li-image-hint {
    color: #7a5a1e;
    font-size: 13px;
    margin: 10px 0 0;
}

.li-raw {
    margin-top: 20px;
}

.li-raw summary {
    cursor: pointer;
    color: #4a4a6a;
    font-weight: 600;
    font-size: 13px;
}

.li-raw-text {
    margin-top: 10px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}