
.blurry-image-container {
    position: relative;
}

.blurry-image {
    filter: blur(8px);
    -webkit-filter: blur(8px);
}

.blurry-image-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px #000000;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-wrapper {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

footer {
    flex-shrink: 0;
}

.body-wrapper {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.breadcrumb-wrapper {
    background-color: var(--bs-body-bg);
}

/* Fixed header stack (horizontal layout): navbar + horizontal menu + breadcrumbs stay visible on scroll. */
:root {
    --brt-topbar-height: 70px;
    --brt-horizontal-menu-height: 45px; /* 70 + 45 = 115 (theme offset) */
    --brt-breadcrumb-height: 44px;
}

/* The theme adds top padding to `.body-wrapper` (70px) and, on desktop, to `.body-wrapper > .container-*` (115px).
   Since Swapo pages render breadcrumbs outside `.body-wrapper`, we manage the full offset ourselves to keep
   navbar + aside + breadcrumbs fixed and avoid double offsets. */
html[data-layout=horizontal] .body-wrapper {
    /*padding-top: 0 !important;*/
}
@media (min-width: 1300px) {
    html[data-layout=horizontal] .body-wrapper > .container-fluid,
    html[data-layout=horizontal] .body-wrapper > .container-lg,
    html[data-layout=horizontal] .body-wrapper > .container-md,
    html[data-layout=horizontal] .body-wrapper > .container-sm,
    html[data-layout=horizontal] .body-wrapper > .container-xl,
    html[data-layout=horizontal] .body-wrapper > .container-xxl {
        padding-top: 0 !important;
    }
}

html[data-layout=horizontal] .body-wrapper>.admin-subs-page.container-fluid {max-width: inherit;}
    div.dataTables_wrapper div.dataTables_length select {
      min-width: 80px;
      display: inline-block;}

html[data-layout=horizontal] .header-fp {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
}

html[data-layout=horizontal] .left-sidebar.with-horizontal {
    position: fixed;
    top: var(--brt-topbar-height);
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1029;
}

html[data-layout=horizontal] .breadcrumb-wrapper {
    /*position: fixed;*/
    top: var(--brt-topbar-height);
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1028;
}

@media (min-width: 1300px) {
    html[data-layout=horizontal] .breadcrumb-wrapper {
        top: calc(var(--brt-topbar-height) + var(--brt-horizontal-menu-height));
    }
}

html[data-layout=horizontal] .main-wrapper {
    padding-top: calc(var(--brt-topbar-height) + var(--brt-breadcrumb-height));
}

@media (min-width: 1300px) {
    html[data-layout=horizontal] .main-wrapper {
        padding-top: calc(var(--brt-topbar-height) + var(--brt-horizontal-menu-height) + var(--brt-breadcrumb-height));
    }
}

:root {
    --brt-primary: #FF8A26;
}

/* Pe scroll, meniul devine fixed (`.header-sticky`) si trebuie sa ramana peste tickere (index.php). */
.header-fp.header-sticky {
    z-index: 1030;
}

/*
.btn-primary {
    background-color: var(--brt-primary);
    border-color: var(--brt-primary);
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #ff7a1a;
    border-color: #ff7a1a;
    color: #ffffff;
}

.btn-outline-primary {
    color: var(--brt-primary);
    border-color: var(--brt-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--brt-primary);
    color: #ffffff;
    border-color: var(--brt-primary);
}


.navbar-nav .nav-link,
.offcanvas-body .link-primary {
    transition: color 0.2s ease, background-color 0.2s ease;
    color: var(--brt-primary);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link.active,
.offcanvas-body .link-primary:hover,
.offcanvas-body .link-primary:focus,
.offcanvas-body .link-primary.active {
    color: #111;
    background-color: rgba(255, 138, 38, 0.15);
    border-radius: 12px;
    padding-inline: 0.9rem;
}

.navbar-nav .nav-link.active {
    color: var(--brt-primary);
    background-color: rgba(255, 138, 38, 0.15);
}


.header-fp .navbar .navbar-nav .nav-link.active {
  background-color: rgba(255, 138, 38, 0.15);
  color: var(--brt-primary) !important;
}
*/
.accessibility-widget {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1050;
    font-size: 0.85rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: auto;
    max-width: 320px;
    gap: 6px;
    left:16px;
}

.accessibility-panel {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 12px;
    background-color: #fff;
    border-radius: 14px;
    padding: 14px;
    min-width: 240px;
    max-width: 90vw;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    display: none;
    text-align: left;
}

.accessibility-panel.open {
    display: block;
}

.accessibility-panel h6 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.accessibility-option {
    margin-bottom: 12px;
}

.accessibility-option:last-child {
    margin-bottom: 0;
}

.accessibility-option button {
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background-color: #fff;
    color: #111;
    padding: 6px 10px;
    font-size: 0.8rem;
    cursor: pointer;
    margin-right: 6px;
    margin-bottom: 4px;
}

.accessibility-option button.active,
.accessibility-option button:hover {
    border-color: var(--brt-primary);
    color: var(--brt-primary);
}

.accessibility-panel:before {
    content: "";
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 8px 0 8px;
    border-color: #fff transparent transparent transparent;
}

.accessibility-trigger {
    background-color: #fff;
    border-radius: 999px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.accessibility-trigger span {
    font-weight: 600;
    color: #101828;
}

.accessibility-trigger i {
    font-size: 1rem;
}

@media (max-width: 767px) {
    .accessibility-widget {
        right: 85%;
        transform: translateX(85%);
        bottom: 20px;
        align-items: center;
    }

    .accessibility-panel {
        min-width: 90vw;
        right: 85%;
        transform: translateX(85%);
        margin-bottom: 10px;
    }
}

body.font-size-large {
    font-size: 1.05rem;
}

body.font-size-xlarge {
    font-size: 1.15rem;
}

body.high-contrast {
    background-color: #fff;
    color: #111;
}

body.high-contrast a {
    color: var(--brt-primary);
}

body.high-contrast .navbar,
body.high-contrast footer {
    background-color: #111;
    color: #fff;
}

body.line-spacing-relaxed {
    line-height: 1.75;
}

body.line-spacing-relaxed * {
    line-height: inherit;
}

body.accessibility-focus-visible *:focus-visible {
    outline: 2px dashed var(--brt-primary);
    outline-offset: 3px;
}

/* Verified icon (tooltip via title) */
.brt-verified {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    line-height: 1;
    vertical-align: middle;
}
.brt-verified i {
    font-size: 0.95rem;
    line-height: 1;
}
.brt-verified--ok {
    background: rgba(255, 138, 38, 0.18); /* brt primary */
    color: var(--brt-primary);
    border: 1px solid rgba(255, 138, 38, 0.55);
}
.brt-verified--no {
    background: rgba(108,117,125,0.15); /* bootstrap secondary */
    color: #6c757d;
    border: 1px solid rgba(108,117,125,0.35);
}

/* Dark mode: tables inside solutions accordions */
html[data-bs-theme="dark"] .brt-solution-table {
    --bs-table-bg: rgba(255,255,255,0.02);
    --bs-table-color: rgba(255,255,255,0.92);
    --bs-table-border-color: rgba(255,255,255,0.10);
    --bs-table-striped-bg: rgba(255,255,255,0.04);
    --bs-table-striped-color: rgba(255,255,255,0.92);
    --bs-table-hover-bg: rgba(255,138,38,0.10);
    --bs-table-hover-color: rgba(255,255,255,0.98);
}

/* Row highlight in tables (works in light/dark) */
.brt-row-highlight {
    background-color: rgba(255, 138, 38, 0.10) !important;
}
html[data-bs-theme="dark"] .brt-row-highlight {
    background-color: rgba(255, 138, 38, 0.12) !important;
}

/* DataTables horizontal scroll on admin users */
.dataTables_wrapper .dataTables_scrollBody {
    border: 0;
}
.dataTables_wrapper .dataTables_scrollHeadInner,
.dataTables_wrapper .dataTables_scrollBody table {
    width: 100% !important;
}

/* Dark mode: chat history box in expired solutions */
html[data-bs-theme="dark"] .brt-chat-history {
    background-color: rgba(255,255,255,0.03) !important;
    border-color: rgba(255,255,255,0.10) !important;
}
.logo-img .dark-logo {
    display: none !important;
}

.logo-img .light-logo {
    display: block !important;
}

html[data-bs-theme="dark"] .logo-img .dark-logo {
    display: block !important;
}

html[data-bs-theme="dark"] .logo-img .light-logo {
    display: none !important;
}

.logo-img img {
    display: block;
}

/* Chat emoji picker */
.brt-emoji-menu {
    width: 480px;
    max-width: calc(100vw - 24px);
    z-index: 2000;
}
.brt-emoji-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
    max-height: 220px;
    overflow: auto;
    padding: 2px;
}
.brt-emoji-btn {
    padding: 2px 0 !important;
    line-height: 1.1;
    border: 1px solid transparent;
}
.brt-emoji-btn:hover {
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.04);
}
.brt-emoji-tab.active {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

@media (max-width: 767px) {
    /* Disable emoji picker button on mobile (use OS keyboard emoji) */
    .brt-emoji-desktop {
        display: none !important;
    }

    /* On mobile, make the emoji picker a bottom-sheet-like panel */
    .brt-emoji-menu.show {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        transform: none !important;
        width: 100vw !important;
        max-width: 100vw !important;
        max-height: 55vh;
        margin: 0 !important;
        border-radius: 16px 16px 0 0;
        z-index: 2000;
        overflow: hidden;
    }
    .brt-emoji-grid {
        grid-template-columns: repeat(12, 1fr);
        max-height: calc(55vh - 86px);
    }
}

.mdi--accessibility {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f49c0a' d='M21 9h-6v13h-2v-6h-2v6H9V9H3V7h18m-9-5a2 2 0 0 1 2 2a2 2 0 0 1-2 2a2 2 0 0 1-2-2c0-1.11.89-2 2-2'/%3E%3C/svg%3E");
}

.btn-check:checked + .btn, .btn.active, .btn.show, .btn:first-child:active, :not(.btn-check) + .btn:active {
  background-color: transparent;
}
