.auth-bg-cover {
    background-image: url('/img/error/bg_error.jpg');
    background-size: cover;
}

#navbar-example .nav-link, .site-nav .btn { white-space: nowrap; }

.auth-bg-cover > .overlay-dark {
    background-image: none;
    background-color: rgba(33, 35, 53, .55);
}

.site-nav:not(.is-scrolled) {
    background-color: rgba(33, 35, 53, .55);
    backdrop-filter: blur(6px);
}
.site-nav:not(.is-scrolled) .nav-link,
.site-nav:not(.is-scrolled) .btn-link {
    color: #fff !important;
}
.site-nav:not(.is-scrolled) .nav-link:hover,
.site-nav:not(.is-scrolled) .nav-link.active {
    color: #f6b27a !important;
}
.site-nav.is-scrolled .nav-link:hover,
.site-nav.is-scrolled .nav-link.active {
    color: var(--fl-plum) !important;
}
.site-nav:not(.is-scrolled) .site-logo-dark {
    display: none !important;
}
.site-nav:not(.is-scrolled) .site-logo-light {
    display: inline-block !important;
}
.site-nav.is-scrolled .site-logo-light {
    display: none !important;
}
.site-nav.is-scrolled .site-logo-dark {
    display: inline-block !important;
}

.is-fullscreen [data-fullscreen-toggle] .ri-fullscreen-line::before {
    content: "\ed9a";
}

[data-bs-theme=dark] .theme-toggle .ri-moon-line::before {
    content: "\f1bf";
}

.sidebar .navbar-nav .nav-link[data-bs-toggle=collapse]::after,
.accordion-chevron .accordion-button::after,
.breadcrumb-item + .breadcrumb-item::before,
.dropdown-toggle::after,
.table .sort::before,
.table .sort::after,
.alert-dismissible .btn-close::after,
.form-check-outline .form-check-input:checked[type=checkbox]::before,
.form-radio-outline .form-check-input:checked[type=radio]::before,
.form-switch-custom .form-check-input::before {
    font-family: remixicon !important;
}

.sidebar .navbar-nav .nav-link[data-bs-toggle=collapse]::after,
.accordion-chevron .accordion-button::after {
    content: "\ea6e";
}

.accordion-plus .accordion-button::after {
    font-family: remixicon !important;
    content: "\ea13";
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "\ea6e";
}

.dropdown-toggle::after {
    content: "\ea4e";
}

.table .sort::before {
    content: "\ea4e";
}

.table .sort::after {
    content: "\ea78";
}

.alert-dismissible .btn-close::after {
    content: "\eb99" !important;
}

.form-check-outline .form-check-input:checked[type=checkbox]::before {
    content: "\eb7b";
}

.form-radio-outline .form-check-input:checked[type=radio]::before,
.form-switch-custom .form-check-input::before {
    content: "\eb7c";
}

[data-bs-theme=dark] .sidebar .brand-on-light {
    display: none;
}

[data-bs-theme=dark] .sidebar .brand-on-dark {
    display: inline-block;
}

[data-bs-theme=dark] .sidebar-bg {
    opacity: .05;
}

.link-quiet,
.link-quiet:hover,
.link-quiet:focus {
    color: inherit;
    text-decoration: none;
}

/* Brand layer: Floowa colours, type and surfaces on top of the template (see docs/brand/brand-guide.md) */
:root {
    --fl-plum: #833098;
    --fl-plum-deep: #5e1f6e;
    --fl-ember: #f47920;
    --fl-canvas: #f6f5f8;
    --fl-line: #e7e3ec;
    --fl-ink: #2a2333;
    --bs-heading-color: var(--fl-ink);
}

:root:not([data-bs-theme=dark]) body {
    background-color: var(--fl-canvas);
}

[data-bs-theme=dark] {
    --bs-primary: #a65bb9;
    --bs-primary-rgb: 166, 91, 185;
    --bs-link-color: #c993d6;
    --bs-link-hover-color: #dcb6e5;
    --bs-primary-text-emphasis: #d3a3df;
    --fl-line: #2f2a36;
    --bs-heading-color: #ece8f0;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.005em;
}

.card-title, .modal-title, .font-alt {
    font-family: Jost, "Source Sans 3", sans-serif;
    letter-spacing: -0.005em;
}

.page-head h4 {
    font-family: Jost, "Source Sans 3", sans-serif;
    font-size: 1.45rem !important;
    font-weight: 500;
    text-transform: none;
    letter-spacing: -0.01em;
}

body {
    font-feature-settings: "tnum" 1;
}

#app-shell {
    font-size: 0.9rem;
}

.app-shell.site-shell {
    font-size: 1.0625rem;
    line-height: 1.6;
}

.app-shell.site-shell .text-muted,
.app-shell.site-shell .font-alt {
    font-size: inherit;
}

.app-shell.site-shell .small,
.app-shell.site-shell small {
    font-size: 0.875em;
}

.card {
    box-shadow: none;
    border: 1px solid var(--fl-line);
    border-radius: 0.625rem;
}

.card-header {
    border-bottom-color: var(--fl-line);
}

.card-lift:hover {
    transform: none;
    box-shadow: none;
}

.btn {
    border-radius: 0.5rem;
}

.sidebar .sidebar-brand {
    padding-top: 0.75rem;
    padding-bottom: 0.5rem;
}

.sidebar .navbar-nav .sidebar-sub .nav-link.active,
.sidebar .navbar-nav .nav-link.sidebar-link.active {
    position: relative;
    font-weight: 600;
}

.sidebar .navbar-nav .sidebar-sub .nav-link.active::before {
    content: "";
    position: absolute;
    left: 0.15rem;
    top: 50%;
    width: 0.4rem;
    height: 0.4rem;
    margin-top: -0.2rem;
    border-radius: 50%;
    background: var(--fl-ember);
    opacity: 1;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(131, 48, 152, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(131, 48, 152, 0.12);
}

.topbar-clock-time {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.topbar-clock-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #0ab39c;
    box-shadow: 0 0 0 0.2rem rgba(10, 179, 156, 0.18);
}

/* Public feature and pricing pages */
.feature-hero {
    padding-top: 8.5rem;
    background: linear-gradient(180deg, var(--fl-canvas) 0%, #fff 100%);
}

.feature-kicker {
    display: inline-flex;
    align-items: center;
    color: var(--bs-primary);
    font-weight: 600;
    text-decoration: none;
}

.feature-title {
    font-family: Jost, "Source Sans 3", sans-serif;
    font-size: clamp(2rem, 3.4vw, 3.1rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--fl-ink);
}

.feature-section-title {
    font-family: Jost, "Source Sans 3", sans-serif;
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--fl-ink);
}

.feature-screen {
    border-radius: 0.75rem;
    border: 1px solid var(--fl-line);
    box-shadow: 0 1.75rem 3rem -1.75rem rgba(42, 35, 51, 0.45);
}

.feature-benefit h3::before {
    content: "";
    display: block;
    width: 2rem;
    height: 3px;
    margin-bottom: 0.85rem;
    border-radius: 2px;
    background: var(--fl-ember);
}

.feature-benefit h3 {
    font-family: Jost, "Source Sans 3", sans-serif;
}

.feature-steps {
    counter-reset: feature-step;
}

.feature-steps li {
    position: relative;
    padding-left: 3.25rem;
    margin-bottom: 1.75rem;
    counter-increment: feature-step;
}

.feature-steps li::before {
    content: counter(feature-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Jost, "Source Sans 3", sans-serif;
    font-weight: 600;
    color: #fff;
    background: var(--fl-plum);
}

.feature-link {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.25rem;
    border: 1px solid var(--fl-line);
    border-radius: 0.75rem;
    color: var(--fl-ink);
    background: #fff;
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.feature-link:hover,
.feature-link:focus-visible {
    border-color: var(--fl-plum);
    color: var(--fl-ink);
}

.feature-link i {
    color: var(--fl-plum);
}

@media (prefers-reduced-motion: reduce) {
    .feature-link {
        transition: none;
    }
}

.pricing-amount {
    font-family: Jost, "Source Sans 3", sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--fl-ink);
    letter-spacing: -0.01em;
}

/* Page tabs (above the content, outside a card) look like card-header tabs: a white strip with the
   brand underline – one tab style across the app. */
.nav-underline-tabs.nav-page {
    background-color: var(--bs-secondary-bg);
    border-bottom: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 3px rgba(56, 65, 74, 0.1);
    padding: 0 0.75rem;
}

.nav-underline-tabs.nav-page .nav-link {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    white-space: nowrap;
}

/* Scrollable tab rows on small screens without a visible scrollbar. */
.nav-underline-tabs.nav-page {
    scrollbar-width: none;
}

.nav-underline-tabs.nav-page::-webkit-scrollbar {
    display: none;
}
