/*
 * Project-specific overrides for Metronic v9.3.6 (demo10) template.
 * Keep edits here so upstream styles.css stays untouched.
 */

/* ---------------------------------------------------------------------------
 * Missing Tailwind utilities used by the project (and even by demo10 sample
 * code itself) that aren't actually present in the precompiled styles.css.
 * ------------------------------------------------------------------------- */

.flex-center {
    align-items: center;
    justify-content: center;
}

/* 12-column grid used by UniForms (forms, portlets). */
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.col-span-1  { grid-column: span 1  / span 1;  }
.col-span-2  { grid-column: span 2  / span 2;  }
.col-span-3  { grid-column: span 3  / span 3;  }
.col-span-4  { grid-column: span 4  / span 4;  }
.col-span-5  { grid-column: span 5  / span 5;  }
.col-span-6  { grid-column: span 6  / span 6;  }
.col-span-7  { grid-column: span 7  / span 7;  }
.col-span-8  { grid-column: span 8  / span 8;  }
.col-span-9  { grid-column: span 9  / span 9;  }
.col-span-10 { grid-column: span 10 / span 10; }
.col-span-11 { grid-column: span 11 / span 11; }
.col-span-12 { grid-column: span 12 / span 12; }

@media (min-width: 768px) {
    .md\:col-span-1  { grid-column: span 1  / span 1;  }
    .md\:col-span-2  { grid-column: span 2  / span 2;  }
    .md\:col-span-3  { grid-column: span 3  / span 3;  }
    .md\:col-span-4  { grid-column: span 4  / span 4;  }
    .md\:col-span-5  { grid-column: span 5  / span 5;  }
    .md\:col-span-6  { grid-column: span 6  / span 6;  }
    .md\:col-span-7  { grid-column: span 7  / span 7;  }
    .md\:col-span-8  { grid-column: span 8  / span 8;  }
    .md\:col-span-9  { grid-column: span 9  / span 9;  }
    .md\:col-span-10 { grid-column: span 10 / span 10; }
    .md\:col-span-11 { grid-column: span 11 / span 11; }
    .md\:col-span-12 { grid-column: span 12 / span 12; }
}

@media (min-width: 1024px) {
    .lg\:col-span-1  { grid-column: span 1  / span 1;  }
    .lg\:col-span-2  { grid-column: span 2  / span 2;  }
    .lg\:col-span-3  { grid-column: span 3  / span 3;  }
    .lg\:col-span-4  { grid-column: span 4  / span 4;  }
    .lg\:col-span-5  { grid-column: span 5  / span 5;  }
    .lg\:col-span-6  { grid-column: span 6  / span 6;  }
    .lg\:col-span-7  { grid-column: span 7  / span 7;  }
    .lg\:col-span-8  { grid-column: span 8  / span 8;  }
    .lg\:col-span-9  { grid-column: span 9  / span 9;  }
    .lg\:col-span-10 { grid-column: span 10 / span 10; }
    .lg\:col-span-11 { grid-column: span 11 / span 11; }
    .lg\:col-span-12 { grid-column: span 12 / span 12; }
}

/* Misc bonus utilities. */
.font-bold       { font-weight: 700; }
.self-start      { align-self: flex-start; }
.self-center     { align-self: center; }
.self-end        { align-self: flex-end; }
.leading-tight   { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-tighter{ letter-spacing: -0.05em; }

/* Arbitrary widths/heights actually used by project templates. */
.w-\[40px\]      { width: 40px; }
.w-\[140px\]     { width: 140px; }
.w-\[180px\]     { width: 180px; }
.w-\[250px\]     { width: 250px; }
.w-\[300px\]     { width: 300px; }
.h-\[70px\]      { height: 70px; }
.max-w-\[420px\] { max-width: 420px; }
.max-w-\[500px\] { max-width: 500px; }
.max-h-\[150px\] { max-height: 150px; }

/* Spacing utilities the bundle is missing (it only ships pt/pb 0..8). */
.mt-auto { margin-top: auto; }
.mb-auto { margin-bottom: auto; }
.pt-9  { padding-top:    2.25rem; }
.pt-10 { padding-top:    2.5rem;  }
.pt-11 { padding-top:    2.75rem; }
.pt-12 { padding-top:    3rem;    }
.pt-14 { padding-top:    3.5rem;  }
.pt-16 { padding-top:    4rem;    }
.pt-20 { padding-top:    5rem;    }
.pb-6  { padding-bottom: 1.5rem;  }
.pb-8  { padding-bottom: 2rem;    }
.pb-10 { padding-bottom: 2.5rem;  }
.pb-12 { padding-bottom: 3rem;    }
.pb-14 { padding-bottom: 3.5rem;  }
.pb-16 { padding-bottom: 4rem;    }
.pb-20 { padding-bottom: 5rem;    }

/* Higher z-index values used by sticky/fixed UI. */
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* Translucent backgrounds (Tailwind /XX opacity variants). */
.bg-background\/80 { background-color: color-mix(in srgb, var(--color-background) 80%, transparent); }
.bg-background\/90 { background-color: color-mix(in srgb, var(--color-background) 90%, transparent); }
.bg-background\/95 { background-color: color-mix(in srgb, var(--color-background) 95%, transparent); }
@supports not (color: color-mix(in srgb, red 50%, blue)) {
    .bg-background\/80,
    .bg-background\/90,
    .bg-background\/95 { background-color: var(--color-background); }
}

/* Tighten up the spacing inside admin tables. */
.kt-table tbody td {
    vertical-align: middle;
}

/* ---------------------------------------------------------------------------
 * UniForms form layout fixes.
 * The PHP UniForms library renders buttons / links directly into a 12-col
 * grid without a wrapping `col-span-*` cell. With the new Metronic styles
 * that means each button gets ~50px width and the label visually clips.
 * We now wrap them in `.uf-btn-cell` and switch the parent row to flex
 * so buttons sit naturally side-by-side at their intrinsic width.
 * ------------------------------------------------------------------------- */

/* When a UniFormRow consists of buttons, drop the 12-col grid and lay them out
   horizontally (wrap on small screens). Browser support for `:has` is fine on
   all evergreen browsers we target. */
.kt-form .grid:has(> .uf-btn-cell) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.uf-btn-cell {
    display: inline-flex;
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 640px) {
    .uf-btn-cell {
        width: auto;
    }
}

.uf-btn-cell > .kt-btn {
    width: 100%;
    justify-content: center;
}

@media (min-width: 640px) {
    .uf-btn-cell > .kt-btn {
        width: auto;
    }
}

/* Make UniForms WYSIWYG textarea wrapper minimum height nice even before
   CKEditor takes over. */
textarea.kt-textarea {
    display: block;
    width: 100%;
    min-height: 110px;
    padding: 10px 12px;
    border: 1px solid var(--input);
    border-radius: var(--radius);
    background-color: var(--background);
    color: var(--foreground);
    font: inherit;
    font-size: 0.8125rem;
    line-height: 1.45;
    resize: vertical;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea.kt-textarea:focus,
textarea.kt-textarea:focus-visible {
    border-color: var(--ring);
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 25%, transparent);
    outline: none;
}

/* Inner UniForm portlets (kt-card inside a kt-card) get a subtle visual
   distinction so they read as grouped sections rather than empty cards. */
.kt-form .kt-card .kt-card .kt-card-header {
    background-color: color-mix(in oklab, var(--muted) 45%, transparent);
    border-bottom: 1px solid var(--border);
}
.kt-form .kt-card .kt-card {
    border: 1px solid var(--border);
    background-color: var(--background);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}

/* CKEditor frame gets the card-style border so the WYSIWYG editor blends in
   with the rest of the form. */
.cke_chrome {
    border-radius: var(--radius);
    border: 1px solid var(--border) !important;
    box-shadow: none !important;
    overflow: hidden;
}
.cke_top {
    background: color-mix(in oklab, var(--muted) 35%, transparent) !important;
    border-bottom: 1px solid var(--border) !important;
}
.cke_bottom {
    background: color-mix(in oklab, var(--muted) 35%, transparent) !important;
    border-top: 1px solid var(--border) !important;
}

/* Help text inside form inputs sits flush against the field. */
.kt-form-help i {
    font-size: 13px;
}

/* Default styling for legacy operation icon column inside admin tables. */
.operationColumn {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.operationColumn a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--secondary-foreground);
    border-radius: 6px;
    transition: background-color .15s ease, color .15s ease;
}

.operationColumn a:hover {
    background-color: var(--accent);
    color: var(--primary);
}

.operationColumn a i.fa,
.operationColumn a i.ki-filled {
    font-size: 14px;
}

/* Nested sortable list shared between PageTree and similar admin features.
   Each .dd3-item is a CSS grid with two rows:
     row 1: drag handle | content (handle stretches to content height)
     row 2: nested children list spanning the full width with an indent */
ol.dd-list,
ol.dd-list ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dd-item {
    margin: 6px 0;
    display: block;
}

.dd3-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: stretch;
    position: relative;
}

.dd3-item > .dd-handle,
.dd3-item > .dd3-handle {
    grid-column: 1;
    grid-row: 1;
    background-color: var(--muted);
    color: var(--muted-foreground);
    border: 1px solid var(--border);
    border-right: none;
    border-top-left-radius: var(--radius);
    border-bottom-left-radius: var(--radius);
    cursor: grab;
    transition: background-color .15s ease, color .15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
    user-select: none;
}

.dd-handle:hover,
.dd3-handle:hover {
    background-color: var(--accent);
    color: var(--mono);
}

.dd-handle:active,
.dd3-handle:active {
    cursor: grabbing;
}

.dd-handle::before,
.dd3-handle::before {
    content: "\f58e";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 14px;
    line-height: 1;
}

.dd3-item > .dd3-content {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 12px;
    min-height: 46px;
    background-color: var(--background);
    border: 1px solid var(--border);
    border-top-right-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    transition: border-color .15s ease, background-color .15s ease;
}

.dd3-item > .dd3-content:hover {
    border-color: color-mix(in oklab, var(--primary) 50%, var(--border));
    background-color: color-mix(in oklab, var(--primary) 3%, var(--background));
}

.dd3-item > ol.dd-list {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-left: 30px;
    padding-top: 6px;
}

.dd3-item > ol.dd-list:empty {
    display: none;
}

.dd3-content-left {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dd3-content-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dd-placeholder,
.dd-empty {
    margin: 6px 0;
    min-height: 46px;
    background-color: color-mix(in oklab, var(--primary) 8%, transparent);
    border: 2px dashed color-mix(in oklab, var(--primary) 55%, transparent);
    border-radius: var(--radius);
    box-sizing: border-box;
}

.dd-dragging {
    opacity: .5;
}

.dd-dragel {
    pointer-events: none;
    z-index: 9999;
    opacity: .9;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
    border-radius: var(--radius);
}

.dd-dragel > .dd-item,
.dd-dragel.dd-item {
    margin: 0;
}

/* Login background customization. */
.login-bg {
    background: linear-gradient(135deg, var(--mono) 0%, var(--background) 100%);
}

/* ---------------------------------------------------------------------------
 * Frontend (public site) – styles that complement the Metronic v9 demo10
 * Tailwind bundle. Anything that isn't compiled into styles.css (gradients,
 * blob backgrounds, hover-lift transitions, gradient text, custom widths,
 * font-bold, text-5xl, self-start, tracking-widest, etc.) is implemented
 * as plain CSS here so we don't depend on missing utilities.
 * ------------------------------------------------------------------------- */

/* Typography helpers (font-bold / text-5xl / leading-tight / max-w-xl not in bundle). */
.hp-h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.05;
    color: var(--color-mono);
    letter-spacing: -0.02em;
}

.hp-h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-mono);
    letter-spacing: -0.015em;
    margin: 16px 0;
}

.hp-h3 {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-mono);
}

.hp-lead {
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-secondary-foreground);
    max-width: 560px;
}

.hp-card-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-secondary-foreground);
}

.hp-tagline {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--color-secondary-foreground);
}

/* self-start replacement (Tailwind self-start is not in bundle). */
.hp-self-start {
    align-self: flex-start;
}

/* Wider buttons for hero CTA. */
.hp-btn-lg {
    padding: 12px 20px;
    font-size: 15px;
}

.public-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(48px, 8vw, 96px) 0;
    background: linear-gradient(180deg, var(--color-background) 0%, var(--color-accent) 100%);
}

.hp-blob {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    border-radius: 9999px;
    filter: blur(96px);
    opacity: .55;
}

.hp-blob-primary {
    top: -160px;
    left: -160px;
    width: 480px;
    height: 480px;
    background: var(--color-primary);
    opacity: .15;
}

.hp-blob-violet {
    bottom: -160px;
    right: -160px;
    width: 520px;
    height: 520px;
    background: #7c3aed;
    opacity: .15;
}

.hp-hero-content,
.hp-hero-art {
    position: relative;
    z-index: 1;
}

.hp-hero-art-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, .18), transparent 70%);
    filter: blur(72px);
    z-index: 0;
}

.hp-hero-art img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    width: 460px;
}

.hp-gradient-text {
    background: linear-gradient(90deg, var(--color-primary) 0%, #3b82f6 50%, #7c3aed 100%);
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.hp-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: 460px;
    padding-top: 24px;
    margin-top: 16px;
    border-top: 1px solid var(--color-border);
}

.hp-stat-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-mono);
}

.hp-stat-label {
    margin-top: 6px;
    font-size: 12px;
    color: var(--color-secondary-foreground);
}

/* Trust strip with brand logos. */
.hp-logos {
    background: color-mix(in srgb, var(--color-mono) 2%, transparent);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 40px 0;
}

.dark .hp-logos {
    background: var(--color-background);
}

.hp-logos-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 32px;
    align-items: center;
    justify-items: center;
    opacity: .7;
}

@media (min-width: 768px) {
    .hp-logos-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .hp-logos-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.dark .hp-logos-grid { opacity: .45; }

.hp-logos-grid img {
    height: 26px;
    filter: grayscale(100%);
    transition: filter .2s ease, transform .2s ease;
}

.hp-logos-grid img:hover {
    filter: grayscale(0%);
    transform: translateY(-2px);
}

/* Feature cards with hover lift. */
.hp-feature-card {
    position: relative;
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}

.hp-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -12px rgba(15, 23, 42, .18);
    border-color: color-mix(in srgb, var(--color-primary) 25%, var(--color-border));
}

.dark .hp-feature-card:hover {
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .5);
}

.hp-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    font-size: 26px;
    line-height: 1;
}

.hp-feature-icon-primary { background: color-mix(in srgb, var(--color-primary) 14%, transparent); color: var(--color-primary); }
.hp-feature-icon-blue    { background: color-mix(in srgb, #3b82f6 14%, transparent); color: #3b82f6; }
.hp-feature-icon-violet  { background: color-mix(in srgb, #7c3aed 14%, transparent); color: #7c3aed; }
.hp-feature-icon-green   { background: color-mix(in srgb, #22c55e 14%, transparent); color: #22c55e; }
.hp-feature-icon-orange  { background: color-mix(in srgb, #f97316 16%, transparent); color: #f97316; }
.hp-feature-icon-pink    { background: color-mix(in srgb, #ec4899 16%, transparent); color: #ec4899; }

/* Fallback for browsers without color-mix support. */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
    .hp-feature-icon-primary { background: rgba(59, 130, 246, .14); }
    .hp-feature-icon-blue    { background: rgba(59, 130, 246, .14); }
    .hp-feature-icon-violet  { background: rgba(124, 58, 237, .14); }
    .hp-feature-icon-green   { background: rgba(34, 197, 94, .14); }
    .hp-feature-icon-orange  { background: rgba(249, 115, 22, .16); }
    .hp-feature-icon-pink    { background: rgba(236, 72, 153, .16); }
}

/* "Jak to funguje" numbered steps. */
.hp-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
}

.hp-step-num-1 { background: var(--color-primary); }
.hp-step-num-2 { background: #3b82f6; }
.hp-step-num-3 { background: #7c3aed; }

/* CTA banner. */
.hp-cta {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary) 0%, #2563eb 55%, #7c3aed 100%);
    padding: 56px clamp(24px, 5vw, 64px);
}

.hp-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, .18), transparent 60%);
    pointer-events: none;
}

.hp-cta-inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.hp-cta-text { flex: 1 1 360px; }
.hp-cta-text h2 { font-size: 28px; font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
.hp-cta-text p  { color: rgba(255, 255, 255, .85); font-size: 16px; line-height: 1.5; max-width: 640px; }

.hp-cta-btn-light {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    background: #fff;
    color: var(--color-mono);
    font-weight: 500;
    font-size: 14px;
    transition: background .15s ease;
}
.hp-cta-btn-light:hover { background: rgba(255, 255, 255, .9); }

.hp-cta-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .4);
    font-weight: 500;
    font-size: 14px;
    transition: background .15s ease;
}
.hp-cta-btn-ghost:hover { background: rgba(255, 255, 255, .12); }

/* Section spacing helpers. */
.hp-section { padding-top: 80px; padding-bottom: 80px; }
@media (min-width: 1024px) { .hp-section { padding-top: 112px; padding-bottom: 112px; } }

.hp-section-alt {
    background: color-mix(in srgb, var(--color-mono) 2%, transparent);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.dark .hp-section-alt { background: var(--color-background); }

.hp-section-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}
.hp-section-heading h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--color-mono);
    margin: 16px 0;
    line-height: 1.2;
}
.hp-section-heading p {
    color: var(--color-secondary-foreground);
    font-size: 16px;
    line-height: 1.55;
}

/* Footer wrapper background. */
.hp-footer {
    background: color-mix(in srgb, var(--color-mono) 3%, transparent);
}
.dark .hp-footer { background: var(--color-background); }

/* Footer 4-column grid (since lg:grid-cols-4 isn't always available). */
.hp-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 768px) {
    .hp-footer-grid {
        grid-template-columns: 1.6fr 1fr 1fr 1fr;
        gap: 40px;
    }
}
@media (min-width: 1024px) {
    .hp-footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.4fr;
        gap: 64px;
    }
}

.hp-footer h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-mono);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Hero 2-column grid that works without Tailwind 12-col. */
.hp-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
@media (min-width: 1024px) {
    .hp-hero-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; }
}

/* How-it-works 2-col layout. */
.hp-how-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}
@media (min-width: 1024px) {
    .hp-how-grid { grid-template-columns: 5fr 7fr; gap: 64px; }
}

.public-content h1,
.public-content h2,
.public-content h3 {
    margin-top: 1.5em;
    margin-bottom: .5em;
    font-weight: 600;
    color: var(--color-mono);
}

.public-content h1 { font-size: 2.25rem; }
.public-content h2 { font-size: 1.75rem; }
.public-content h3 { font-size: 1.35rem; }
.public-content p  { margin-bottom: 1em; line-height: 1.6; }
.public-content ul,
.public-content ol { margin: 0 0 1em 1.5em; }
.public-content img { max-width: 100%; height: auto; border-radius: 8px; }

/* Animated CKEditor wrapper - basic visual fit. */
.cke_chrome {
    border-radius: 8px !important;
    border: 1px solid var(--color-border) !important;
}

/* Help text (UniFormInput) reset to fit demo10. */
.kt-form-help {
    color: var(--color-muted-foreground);
    font-size: 12px;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Toast container fallback for legacy showToast/toastr shim. */
#kt_toast_container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

#kt_toast_container .kt-toast {
    pointer-events: auto;
    min-width: 280px;
    max-width: 380px;
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--color-card);
    color: var(--color-foreground);
    border: 1px solid var(--color-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    font-size: 14px;
    line-height: 1.4;
    animation: kt-toast-in .2s ease;
}

#kt_toast_container .kt-toast-success { border-left: 4px solid var(--color-green-500, #22c55e); }
#kt_toast_container .kt-toast-error   { border-left: 4px solid var(--color-red-500, #ef4444); }
#kt_toast_container .kt-toast-warning { border-left: 4px solid var(--color-yellow-500, #eab308); }
#kt_toast_container .kt-toast-info    { border-left: 4px solid var(--color-blue-500, #3b82f6); }

@keyframes kt-toast-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Confirm modal fallback. */
.kt-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kt-confirm-dialog {
    width: min(420px, 90vw);
    background: var(--color-card);
    color: var(--color-foreground);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}

.kt-confirm-title { font-weight: 600; margin-bottom: 12px; font-size: 16px; }
.kt-confirm-body  { margin-bottom: 20px; font-size: 14px; line-height: 1.5; }
.kt-confirm-actions { display: flex; gap: 8px; justify-content: flex-end; }
