
IMPORTANT: The file content has been truncated.
Status: Showing lines 1-2000 of 2067 total lines.
Action: To read more of the file, you can use the 'offset' and 'limit' parameters in a subsequent 'read_file' call. For example, to read the next section of the file, use offset: 2000.

--- FILE CONTENT (truncated) ---
IMPORTANT: The file content has been truncated.
Status: Showing lines 1-2000 of 2684 total lines.
Action: To read more of the file, you can use the 'offset' and 'limit' parameters in a subsequent 'read_file' call. For example, to read the next section of the file, use offset: 2000.

--- FILE CONTENT (truncated) ---
@import url('/assets/plugins/orgchart/css/jquery.orgchart.min.css');

/* Card Header Actions - Buttons aligned left in a row */
.card-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-start;
}

/* Card Footer Actions - Form buttons with top divider */
.card-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Form select and Select2 dropdown font size - match form-control */
.form-select {
    font-size: 0.875rem !important;
}

/* Select2 dropdown font size - match form-control */
.select2-container--bootstrap-5 .select2-selection,
.select2-container--default .select2-selection--single {
    font-size: 0.875rem !important;
    min-height: calc(1.5em + 0.75rem + 2px) !important;
    padding: 0.375rem 0.75rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    padding-left: 0 !important;
    padding-right: 24px !important;
}

.select2-results__option {
    font-size: 0.875rem !important;
    padding: 0.375rem 0.75rem !important;
}

.select2-dropdown {
    font-size: 0.875rem !important;
}

.select2-search--dropdown .select2-search__field {
    font-size: 0.875rem !important;
}

/* Daterangepicker Styling */
input.datepicker,
input.daterange {
    display: block !important;
    cursor: pointer;
    background-color: #fff !important;
    border: 1px solid #e9edf4 !important;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    height: auto !important;
    min-height: calc(1.5em + 0.75rem + 2px);
    box-shadow: none !important;
}

/* When not inside input-group, use block display */
input.datepicker:not(.input-group *),
input.daterange:not(.input-group *) {
    display: block;
    width: 100% !important;
}

/* Inside input-group, let flex handle the layout */
.input-group input.datepicker,
.input-group input.daterange {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

input.datepicker:focus,
input.daterange:focus {
    border-color: #6259ca !important;
    outline: none;
    box-shadow: none !important;
}

.daterangepicker {
    font-family: inherit;
}

.daterangepicker td.active,
.daterangepicker td.active:hover {
    background-color: var(--primary-bg-color, #6259ca);
}

.daterangepicker .btn-primary {
    background-color: var(--primary-bg-color, #6259ca);
    border-color: var(--primary-bg-color, #6259ca);
}

.side-menu__label {
    margin-top: 0;
}

.menu-search-wrapper {
    padding: 2rem 0.75rem 0.35rem;
}

.menu-search-group {
    position: relative;
}

#menuSearch {
    padding-right: 2rem;
    border-radius: 0.5rem;
}

#menuSearch::placeholder {
    color: #8a9099;
}

#menuSearchClear {
    position: absolute;
    top: 50%;
    right: 0.35rem;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

#menuSearchClear:hover,
#menuSearchClear:focus {
    background: rgba(0, 0, 0, 0.08);
    color: #1f2937;
}

.side-menu .menu-search-hidden {
    display: none !important;
}

.menu-search-empty {
    padding: 0.75rem 1.25rem;
    color: #74829c;
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
}

.menu-search-empty span {
    display: inline-block;
}

@media (min-width: 992px) {
    .sidenav-toggled .menu-search-wrapper {
        display: none;
    }

    .sidenav-toggled.sidenav-toggled-open .menu-search-wrapper {
        display: block;
    }
}

.header-brand-img {
    max-width: 3rem !important;
    margin: 0 auto;
}

/* Auto Refresh Card Integration */
.auto-refresh-card .auto-refresh-border {
    border-radius: 0.25rem 0.25rem 0 0;
}

.dt-buttons.btn-group {
    position: inherit !important;
    top: 0;
    left: 0 !important;
    margin-bottom: 20px !important;
}

table.dataTable {
    max-width: 100% !important;
}

table.dataTable thead th {
    text-align: left;
}

table.dataTable thead th.text-end {
    text-align: right !important;
}

table.dataTable thead th.text-center {
    text-align: center !important;
}

/* Active menu item styles */
.side-menu__item.active {
    color: var(--primary-bg-color);
    background: rgba(var(--primary-bg-rgb), 0.1);
}

.side-menu__item.active .side-menu__icon {
    color: var(--primary-bg-color);
}

/* Active submenu styles */
.slide-menu .active>.slide-item {
    color: var(--primary-bg-color);
}

/* Sidebar submenu alignment */
.slide-menu li {
    position: relative;
}

.slide-menu li .slide-item {
    display: flex;
    align-items: center;
    padding-left: 1.75rem;
    color: #4b5565;
    font-size: 0.9rem;
}

.slide-menu li .slide-item:before {
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-bg-color, #6259ca);
    margin-right: 0;
}

/* Active accordion styles */
.slide.is-expanded .slide-menu {
    display: block;
}

.slide.is-expanded .side-menu__item {
    color: var(--primary-bg-color);
    background: rgba(var(--primary-bg-rgb), 0.1);
}

@media (min-width: 992px) {
}

@media (min-width: 1600px) {
}

@media (max-width: 992px) {
}

.card-header .card-title {
    display: block;
    margin-bottom: 0;
}

/* Responsive Design for Gradient Picker */
@media (max-width: 768px) {
}

.fv-plugins-icon {
    /* right: 8px !important; */
}

.app-sidebar:not(.horizontal-main) .side-header {
    padding: 0 !important;
    position: sticky;
    top: 0;
    z-index: 2;
    background: inherit;
}

.side-header .header-brand-img.light-logo {
    /* height: 4rem !important; */
    width: auto;
}

.side-header .header-brand-img.light-logo1 {
    margin: 20px;
}

.login100-form .input-group i {
    color: #8b5cf6 !important;
}

/* Form validation styles */
.form-group {
    position: relative;
    margin-bottom: 1rem;
}

.input-group .form-control.is-invalid {
    z-index: 0;
}

.input-group .fv-plugins-icon {
    position: absolute;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 4;
    pointer-events: none;
}

.app-sidebar:not(.horizontal-main) {
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
}

.app-sidebar:not(.horizontal-main) > .main-sidemenu {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Apple-like section headers */
.ga-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.ga-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #0f172a;
}

.ga-section-subtitle {
    margin-top: 0.15rem;
    font-size: 0.875rem;
    color: #64748b;
}

/* Business Access page hero */
.ga-page-hero {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.25rem;
    margin-top: 20px;
    margin-bottom: 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 12px 40px rgba(2, 6, 23, 0.06);
    backdrop-filter: blur(12px);
}

.ga-page-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.ga-page-subtitle {
    margin-top: 0.15rem;
    font-size: 0.9rem;
    color: #64748b;
}

.ga-search {
    position: relative;
    min-width: 280px;
}

.ga-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.ga-search-input {
    padding-left: 40px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.85);
}

.ga-search-input:focus {
    border-color: rgba(99, 102, 241, 0.45) !important;
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.12) !important;
}

/* Apple-like business cards */
.ga-biz-item {
    margin-bottom: 1rem;
}

.ga-card {
    height: 100%;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
    backdrop-filter: blur(10px);
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.ga-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.10);
}

.ga-card-body {
    padding: 1rem;
}

.ga-card-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.ga-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(99, 102, 241, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ga-logo img {
    width: auto;
    height: auto;
    object-fit: cover;
}

.ga-logo-fallback {
    color: #4f46e5;
    font-size: 1.2rem;
}

.ga-logo-sm {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(99, 102, 241, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ga-logo-sm img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ga-logo-sm-fallback {
    color: #4f46e5;
    font-size: 0.875rem;
}

.ga-biz-name {
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #0f172a;
    line-height: 1.2;
}

@media (max-width: 576px) {
    .ga-page-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .ga-search {
        min-width: 100%;
    }
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin: 2px !important;
    margin-right: 5px !important;
}

/* Custom DateRangePicker Theme */
.daterangepicker td.active,
.daterangepicker td.active:hover {
    background-color: var(--primary-bg-color) !important;
}

.daterangepicker td.in-range {
    background-color: rgba(var(--primary-bg-rgb), 0.1) !important;
    color: var(--primary-bg-color) !important;
}

.daterangepicker .ranges li.active {
    background-color: var(--primary-bg-color) !important;
    color: #fff !important;
}

.daterangepicker .ranges li:hover {
    background-color: rgba(var(--primary-bg-rgb), 0.1) !important;
    color: var(--primary-bg-color) !important;
}

.daterangepicker .calendar-table .next span,
.daterangepicker .calendar-table .prev span {
    border-color: var(--primary-bg-color) !important;
}

.daterangepicker .calendar-table .next:hover span,
.daterangepicker .calendar-table .prev:hover span {
    border-color: var(--primary-bg-color) !important;
}

.daterangepicker .calendar-time select.hourselect,
.daterangepicker .calendar-time select.minuteselect,
.daterangepicker .calendar-time select.secondselect,
.daterangepicker .calendar-time select.ampmselect {
    color: #333 !important;
    background: #fff !important;
    border: 1px solid #e9edf4 !important;
}

.daterangepicker .ranges li {
    color: #333 !important;
    transition: all 0.3s ease;
}

.daterangepicker td.available:hover {
    background-color: rgba(var(--primary-bg-rgb), 0.1) !important;
    color: var(--primary-bg-color) !important;
}

.daterangepicker .btn-primary {
    background-color: var(--primary-bg-color) !important;
    border-color: var(--primary-bg-color) !important;
}

.daterangepicker .btn-primary:hover {
    border-color: var(--primary-bg-color) !important;
}

.daterangepicker td.in-range {
    background-color: var(--primary-bg-color) !important;
    color: white !important;
}

.daterangepicker td.active,
.daterangepicker td.active:hover {
    color: white !important;
    background: var(--primary-bg-color) !important;
}

.table thead th {
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
}

.table tfoot th {
    font-weight: bold;
}

.icon-telco {
    height: 30px;
    width: auto;
    margin-right: 5px;
    vertical-align: middle;
}

textarea.form-control {
    height: auto !important;
    min-height: 120px;
}

.fv-plugins-bootstrap .input-group~.fv-plugins-icon {
    z-index: 999;
}

.tab-content {
    padding-top: 1rem;
}

.tab-pane {
    transition: all 0.3s ease;
}

tr.disabled {
    background-color: lightgray;
}

.main-chat-list .media .main-img-user {
    top: 0 !important;
}

@media (max-width: 991px) {
    .sidebar-mini .app-header .light-logo1 {
        padding: 10px;
    }
}

/* Account Statement Styles */
.credit {
    color: var(--success);
}

/* Account Statement Modern Styles */
.card-table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.card-table td {
    vertical-align: middle;
    padding: 1rem;
}

.card-table tbody tr:hover {
    background-color: rgba(var(--primary-bg-rgb), 0.05);
}

.card-table tbody .text-end {
    font-family: "Roboto Mono", monospace;
}

.card-table .credit {
    color: var(--success);
    font-weight: 500;
}

.avatar-lg {
    width: 3rem;
    height: 3rem;
    line-height: 3rem;
    font-size: 1.25rem;
}

.form-label.fw-semibold {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.input-group-text.bg-primary-transparent {
    border-color: var(--primary-bg-color);
}

.input-group-text.bg-primary-transparent i {
    width: 1rem;
    text-align: center;
}

.select2-container--default .select2-selection--single {
    border-color: #e9edf4;
    /* padding: 0.375rem 0.75rem; */
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 24px !important;
}

/* Remove transparent background duplication */
.input-group-text.bg-primary-transparent {
    background-color: transparent !important;
    border-color: #e9edf4;
}

/* Fix select2 dropdown width */
.select2-container {
    width: 100% !important;
}

/* Fix select2 focus state */
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #e9edf4;
}

@keyframes walletSurplusShimmer {
    0% {
        left: -160%;
        opacity: 0;
    }

    10% {
        left: -160%;
        opacity: 0;
    }

    25% {
        left: 120%;
        opacity: 1;
    }

    45% {
        left: 120%;
        opacity: 0;
    }

    100% {
        left: 120%;
        opacity: 0;
    }
}

/* Fix input group and select2 alignment in columns */
.input-group {
    display: flex;
    align-items: stretch;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-right: 0;
}

.input-group .form-control,
.input-group .select2-container .select2-selection {
    height: 38px;
}

.input-group .select2-container {
    flex: 1 1 auto;
    width: 1% !important;
}

.input-group .select2-container .select2-selection--single {
    height: 50px;
    border-radius: 0 4px 4px 0;
    border-left: 0;
}

.input-group .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    padding-left: 8px;
}

.input-group .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.input-group>.select2-container--default .select2-selection--single {
    border-color: #e9edf4;
}

/* Fix input group text alignment */
.input-group-text.bg-primary-transparent {
    background-color: transparent !important;
    border-color: #e9edf4;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
}

.input-group-text.bg-primary-transparent i {
    width: auto;
    font-size: 1rem;
}

/* Fix form group spacing in columns */
.form-group.mb-3 {
    margin-bottom: 1rem !important;
}

/* Fix form row spacing to prevent overlap */
.formvalidation .row {
    margin-bottom: 0.5rem;
}

.formvalidation .row > .col-md-6,
.formvalidation .row > .col-lg-6 {
    margin-bottom: 0.5rem;
}

/* Fix select2 container width in columns */
.select2-container {
    width: 100% !important;
}

.select2-container .select2-selection--single {
    display: flex;
    align-items: center;
}

table.dataTable>thead>tr>th:not(.sorting_disabled),
table.dataTable>thead>tr>td:not(.sorting_disabled) {
    padding-right: 10px !important;
}

/* Card Table Styles */
.card-table td {
    vertical-align: middle;
    padding: 1rem;
}

/* Chat badge styling */
.chat-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    padding: 0 4px;
    z-index: 5;
}

/* Typing indicator animation */
.typing {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.typing .dot {
    width: 8px;
    height: 8px;
    margin: 0 2px;
    border-radius: 50%;
    background-color: #aaa;
    animation: typing-dot 1.4s infinite ease-in-out both;
}

.typing .dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing .dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing-dot {

    0%,
    80%,
    100% {
        transform: scale(0.7);
        opacity: 0.7;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Chat menu item styling */
.side-menu__item[href*="/chat"] {
    position: relative;
}

.avatar i {
    vertical-align: baseline !important;
}

/* Avatar icon alignment fix */
.avatar.bg-primary-transparent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.avatar.bg-primary-transparent i {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0;
}

.step-content {
    flex: 1;
}

/* Welcome Page Responsive Styles */
@media (max-width: 768px) {
}

.tab-content .btn-outline-primary i {
    color: var(--primary-bg-color);
}

.tab-content .btn-outline-primary:hover i {
    color: white;
}

.tab-content .btn[data-user-passkey-action] i,
.tab-content .btn[data-user-session-action] i {
    color: inherit !important;
}

.card {
    box-shadow: 0 4px 25px 0 rgba(168, 180, 208, 0.2) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
}

/* Transaction Results Modal Styling */
#transactionResultsModal .modal-header {
    background-color: var(--primary-bg-color);
    color: #fff;
    border-radius: 7px 7px 0 0;
    padding: 1rem 1.5rem;
}

#transactionResultsModal .modal-title {
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

#transactionResultsModal .modal-title i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

#transactionResultsModal .modal-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
    outline: none !important;
    border: none !important;
}

#transactionResultsModal .modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 1.5rem;
}

#transactionResultsModal .btn-close {
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.2s;
}

#transactionResultsModal .btn-close:hover {
    opacity: 1;
}

.transaction-results {
    margin-bottom: 1rem;
    outline: none !important;
    border: none !important;
}

.transaction-results>* {
    margin-bottom: 1rem;
}

.transaction-results:focus,
.transaction-results:active,
.transaction-results:hover {
    outline: none !important;
    border: none !important;
}

.transaction-card {
    border-radius: 7px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    position: relative;
    overflow: hidden;
}

.transaction-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.transaction-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.transaction-card .card-body {
    padding: 1.25rem !important;
}

.transaction-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background-color: rgba(0, 0, 0, 0.08);
}

.transaction-card .telco-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
}

.transaction-card .telco-name i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.transaction-card .transaction-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.transaction-card .detail-item {
    margin-bottom: 0.5rem;
}

.transaction-card .detail-label {
    font-weight: 500;
    color: #5b6e88;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

.transaction-card .detail-value {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1rem;
}

.transaction-card .message-value {
    font-size: 0.95rem;
    line-height: 1.4;
}

.transaction-card .penalty-alert {
    background-color: rgba(220, 53, 69, 0.1);
    border-left: 3px solid #dc3545;
    color: #dc3545;
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
}

.transaction-card .penalty-alert i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.transaction-card .penalty-amount {
    font-weight: 600;
    margin-left: 0.25rem;
}

@media (max-width: 767px) {
    .transaction-card .transaction-details {
        grid-template-columns: 1fr;
    }

    #transactionResultsModal .modal-body {
        padding: 1rem;
    }
}

#transactionResultsModal *:focus {
    outline: none !important;
    box-shadow: none !important;
}

.modal-body:focus,
.modal-body:active,
.modal-body:hover {
    outline: none !important;
    border: none !important;
}

/* Fix for dotted border on elements with overflow-y */
[style*="overflow-y"],
[style*="overflow: auto"],
[style*="overflow:auto"],
.modal-body,
.transaction-results,
div[class*="overflow"] {
    outline: none !important;
    border: none !important;
}

/* Custom DataTable Toggle Button Styles */
.dt-buttons .btn-outline-primary {
    color: var(--primary-bg-color);
    background-color: transparent;
    border-color: var(--primary-bg-color);
    transition: all 0.3s ease;
}

.dt-buttons .btn-outline-primary:hover {
    color: #fff;
    background-color: var(--primary-bg-color);
    border-color: var(--primary-bg-color);
}

.dt-buttons .btn-primary {
    color: #fff;
    background-color: var(--primary-bg-color);
    border-color: var(--primary-bg-color);
}

.dt-buttons .btn i {
    margin-right: 5px;
}

/* Fix for validation message text wrapping */
.fv-help-block {
    max-width: 100%;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.2;
    font-size: 0.85rem;
}

/* Consistent form group spacing */
.container-login100 .form-group {
    margin-bottom: 1rem;
}

/* Ensure icons in input groups are properly aligned */
.container-login100 .input-group-text {
    width: 45px;
    justify-content: center;
}

/* Ensure form content is vertically centered within card */
.container-login100 .login100-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

@keyframes shimmer {

    0%,
    100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    50% {
        transform: translateX(-50%) translateY(-50%) rotate(45deg);
    }
}.login-container .fv-help-block {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    line-height: 1.2;
    color: #dc2626;
}

/* Responsive adjustments for modern 2FA */
@media (max-width: 576px) {
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Modern Login Page Styling */
.login-container {
    max-width: 360px;
    width: 100%;
    min-height: 400px;
    padding: 2rem 1.75rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(99, 102, 241, 0.03), transparent);
    animation: shimmer 6s ease-in-out infinite;
    pointer-events: none;
}

.login-header {
    text-align: center;
}

.login-logo {
    opacity: 0.9;
    max-width: 180px;
    margin: 0 auto;
}

.login-logo img {
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

.login-input-container {
    margin: 1.5rem 0;
}

.login-input-group {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.08);
}


.login-input-group .input-group-text {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-right: 0;
    color: #6366f1;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.login-input-group:focus-within .input-group-text {
    border-color: #8b5cf6;
    color: #7c3aed;
}

.login-input {
    border: 2px solid #e5e7eb;
    border-left: 0;
    border-radius: 0 12px 12px 0;
    background: #ffffff;
    transition: border-color 0.2s ease, color 0.2s ease;
    height: 100%;
}

.login-input:focus {
    border-color: #8b5cf6;
}

.login-input.is-invalid,
.login-input.is-invalid:focus {
    border-color: #dc2626;
    box-shadow: none;
}

.login-input-group:focus-within .login-input.is-invalid {
    border-color: #dc2626;
}

.login-input.is-invalid~.input-group-text,
.login-input-group:focus-within .login-input.is-invalid~.input-group-text,
.login-input-group:has(.login-input.is-invalid) .input-group-text {
    border-color: #dc2626;
    color: #dc2626;
}

.login-input.is-valid,
.has-success .login-input,
.has-success .login-input:focus {
    border-color: #10b981;
}

.login-input.is-valid~.input-group-text,
.has-success .login-input-group .input-group-text,
.login-input-group:has(.login-input.is-valid) .input-group-text {
    border-color: #10b981;
    color: #0f995f;
}

.login-input-group .input-group-text:first-child {
    border-radius: 12px 0 0 12px;
}

.login-submit-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
    margin-bottom: 1rem;
}

.login-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.login-submit-btn:active {
    transform: translateY(0);
}

/* Loading state for login button */
.login-submit-btn.loading {
    position: relative;
    color: transparent;
}

.login-submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 2px solid white;
    animation: spin 1s linear infinite;
}

/* Responsive adjustments for modern login */
@media (max-width: 576px) {
    .login-container {
        max-width: 320px;
        padding: 1.75rem 1.25rem;
        min-height: 360px;
        border-radius: 16px;
    }

    .login-logo {
        max-width: 140px;
    }

    .login-logo img {
        max-height: 60px;
    }

    .login-input {
        padding: 0.75rem 0.9rem;
        font-size: 0.8rem;
    }
}

/* Make validation messages responsive */
.container-login100 .fv-help-block {
    width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* Prevent container resizing when validation appears */
.container-login100 .form-group {
    position: relative;
    /* Provide space for the validation message */
}

/* Ensure form input groups maintain consistent height */
.container-login100 .form-group .input-group {
    min-height: 38px;
    width: 100%;
}

.form-control.is-valid,
.was-validated .form-control:valid,
.form-control.is-invalid,
.was-validated .form-control:invalid {
    padding-right: 0;
}

.app-content {
    min-height: auto;
}

@keyframes pulse-arrow {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--primary-bg-rgb), 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(var(--primary-bg-rgb), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--primary-bg-rgb), 0);
    }
}

@keyframes slide-arrow {

    0%,
    100% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }
}

@media (max-width: 768px) {
}

/* IP Lookup Modal Styles */
#ipLookupModal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 0;
}

#ipLookupModal .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

#ipLookupModal .alert {
    border-radius: 0.375rem;
}

@keyframes gradient {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

.login-bg {
    overflow: auto;
    background-color: #4b0082;
    background-image: linear-gradient(315deg, #4b0082 3%, rgba(60, 132, 206, 1) 38%, rgba(48, 238, 226, 1) 68%, #6c5ffc 98%);
    animation: gradient 15s ease infinite;
    background-size: 400% 400%;
    background-attachment: scroll;
}

@media (min-width: 992px) {
    .login-bg {
        background-attachment: fixed;
    }
}

.wave {
    background: rgb(255 255 255 / 25%);
    border-radius: 1000% 1000% 0 0;
    position: fixed;
    width: 200%;
    height: 12em;
    animation: wave 10s -3s linear infinite;
    transform: translate3d(0, 0, 0);
    opacity: 0.8;
    bottom: 0;
    left: 0;
    z-index: -1;
}

.wave:nth-of-type(2) {
    bottom: -1.25em;
    animation: wave 18s linear reverse infinite;
    opacity: 0.8;
}

.wave:nth-of-type(3) {
    bottom: -2.5em;
    animation: wave 20s -1s reverse infinite;
    opacity: 0.9;
}

@keyframes wave {
    2% {
        transform: translateX(1);
    }

    25% {
        transform: translateX(-25%);
    }

    50% {
        transform: translateX(-50%);
    }

    75% {
        transform: translateX(-25%);
    }

    100% {
        transform: translateX(1);
    }
}

/* DataTable controls layout */
@media (min-width: 768px) {

    /* Export buttons in their own row */
    .dataTables_wrapper .dt-buttons {
        text-align: left;
        margin-bottom: 15px !important;
        width: 100%;
    }

    /* Page length and search in one row */
    .dataTables_wrapper .dataTables_length {
        float: left;
        margin-bottom: 15px;
        margin-top: 7px;
    }

    .dataTables_wrapper .dataTables_filter {
        float: right;
        text-align: right;
        margin-bottom: 15px;
    }

    /* Clear the float for elements below */
    .dataTables_wrapper .dataTables_info {
        clear: both;
    }
}

/* Improve DataTable controls spacing and alignment */
.dataTables_wrapper .dataTables_length select {
    margin: 0 5px;
    width: auto;
    padding: 0.25rem 2rem 0.25rem 0.5rem;
    font-size: 0.875rem;
    height: auto;
    min-height: unset;
}

.dataTables_wrapper .dataTables_filter input {
    margin-left: 5px;
    width: auto;
}

@keyframes pulse-icon {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

@keyframes maintenance-blink {

    0%,
    100% {
        background-color: rgba(220, 53, 69, 0.08);
    }

    50% {
        background-color: rgba(220, 53, 69, 0.15);
    }
}

#add-record-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.legend {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.dark-mode #menuSearchClear {
    background: transparent !important;
    color: #cfd3dc !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}/* When the sidebar is temporarily opened (hover/expanded) {
    display: block !important;
}

/* Expanded hover-open: ensure full width and proper spacing - desktop only */
@media (min-width: 992px) {
}

/* restore container spacing similar to expanded menu when hover-open - desktop only */
@media (min-width: 992px) {
}

/* Pickr Color Picker Fixes */
.pcr-app {
    z-index: 9999 !important;
}

.pickr .pcr-button {
    border: 2px solid #dee2e6 !important;
    border-radius: 6px !important;
    transition: border-color 0.2s ease !important;
    margin-top: 0 !important;
}

.pcr-button:hover {
    border-color: #007bff !important;
}

.pcr-button:focus {
    border-color: #007bff !important;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25) !important;
}

.pcr-last-color {
    display: none !important;
}

.pcr-app[data-theme=classic] .pcr-selection .pcr-color-preview .pcr-last-color,
.pcr-app[data-theme=classic] .pcr-selection .pcr-color-preview .pcr-current-color {
    height: 100% !important;
}

.telco-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
}

.dark-mode .telco-name {
    color: #e2e8f0;
}

@keyframes pulse-warning {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-3px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(3px);
    }
}

@keyframes pulse-success {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

.detail-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
}

.detail-label i {
    font-size: 0.75rem;
}

.detail-value {
    font-size: 0.875rem;
    color: #1e293b;
    font-weight: 500;
}

.dark-mode .detail-label {
    color: #94a3b8;
}

.dark-mode .detail-value {
    color: #cbd5e1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
}

/* Fix Select2 height to match regular input fields */
.select2-container--default .select2-selection--single {
    height: 38px !important;
    border: 1px solid #e9edf4 !important;
    border-radius: 4px !important;
    background-color: #fff !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px !important;
    padding-left: 12px !important;
    padding-right: 30px !important;
    color: #3c4858 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px !important;
    right: 8px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #6c757d transparent transparent transparent !important;
    border-width: 5px 4px 0 4px !important;
    margin-top: -2px !important;
}

/* Fix Select2 multiple selection height */
.select2-container--default .select2-selection--multiple {
    min-height: 38px !important;
    border: 1px solid #e9edf4 !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    padding: 2px 8px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding: 0 !important;
    margin: 0 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin: 2px 5px 2px 0 !important;
    padding: 2px 8px !important;
    background-color: #e9ecef !important;
    border: 1px solid #ced4da !important;
    border-radius: 3px !important;
    color: #495057 !important;
    font-size: 14px !important;
    line-height: 20px !important;
}

/* Ensure Select2 containers match input field width */
.select2-container {
    width: 100% !important;
}

/* Fix Select2 in input groups */
.input-group .select2-container--default .select2-selection--single {
    border-radius: 0 4px 4px 0 !important;
}

.input-group .select2-container--default .select2-selection--multiple {
    border-radius: 0 4px 4px 0 !important;
}

/* Focus states for Select2 */
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #6c5ffc !important;
    box-shadow: 0 0 0 0.2rem rgba(108, 95, 252, 0.25) !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #6c5ffc !important;
    box-shadow: 0 0 0 0.2rem rgba(108, 95, 252, 0.25) !important;
}

/* Dark mode support for Select2 */
.dark-mode .select2-container--default .select2-selection--single {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

.dark-mode .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #e2e8f0 !important;
}

.dark-mode .select2-container--default .select2-selection--multiple {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

.dark-mode .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #334155 !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

/* Ensure consistent height across all form elements */
.form-control,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    height: 38px !important;
    min-height: 38px !important;
    font-size: 14px !important;
}

/* Fix Select2 border to match input field styling */
.select2-container--bootstrap-5 .select2-selection,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    border: 1px solid #e9edf4 !important;
}

/* Ensure Select2 containers match input field width */
.select2-container {
    width: 100% !important;
}

/* Fix Select2 in input groups */
.input-group .select2-container--default .select2-selection--single {
    border-radius: 0 4px 4px 0 !important;
}

.input-group .select2-container--default .select2-selection--multiple {
    border-radius: 0 4px 4px 0 !important;
}

/* Focus states for Select2 */
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #6c5ffc !important;
    box-shadow: 0 0 0 0.2rem rgba(108, 95, 252, 0.25) !important;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #6c5ffc !important;
    box-shadow: 0 0 0 0.2rem rgba(108, 95, 252, 0.25) !important;
}

/* Dark mode support for Select2 */
.dark-mode .select2-container--default .select2-selection--single {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

.dark-mode .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #e2e8f0 !important;
}

.dark-mode .select2-container--default .select2-selection--multiple {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

.dark-mode .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #334155 !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

.orgchart .node {
    margin: 20px !important;
}

.orgchart .hierarchy::before {
    top: 0 !important;
}

.orgchart .node:not(:only-child)::after {
    bottom: -21px !important;
    height: 21px !important;
}

.orgchart>ul>li>ul li>.node::before {
    top: var(--top, -19px) !important;
    height: var(--height, 18px) !important;
}

.orgchart .node.focused {
    background: rgba(238, 242, 255, 0.95) !important;
}

.detail-label {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 0.35rem;
}

/* Form Validation Styles */
.fv-plugins-message-container {
    color: #dc3545 !important;
    font-size: 0.7rem !important;
    margin-top: 0.25rem;
}

/* G Central Hub Check Card Styles - for business/user selection */
.ga-check-card {
    display: block;
    cursor: pointer;
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    transition: all 0.15s ease-in-out;
    background: #fff;
    margin-bottom: 0;
}

.ga-check-card:hover {
    border-color: #6366f1;
    background-color: #f8f9ff;
}

.ga-check-card.ga-check-card-sm {
    padding: 0.5rem 0.75rem;
}

.ga-check-card .form-check-input:checked ~ span,
.ga-check-card .form-check-input:checked ~ .avatar,
.ga-check-card:has(.form-check-input:checked) {
    border-color: #6366f1;
    background-color: #eef2ff;
}

.ga-check-card .form-check-input {
    flex-shrink: 0;
}

.ga-check-card .avatar {
    flex-shrink: 0;
}

.ga-check-card .avatar-sm {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
}

.ga-check-card .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Compact Tab Styling with Icons */
.nav-tabs-compact {
    border-bottom: none;
    gap: 0.5rem;
}

.nav-tabs-compact .nav-link {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.6rem 1.25rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: #495057;
    background-color: #f8f9fa;
    transition: all 0.2s ease;
}

.nav-tabs-compact .nav-link:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #212529;
}

.nav-tabs-compact .nav-link.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: transparent;
    color: #fff;
}

.nav-tabs-compact .nav-link i {
    font-size: 0.875rem;
}

/* Module Card Styling for Access Permissions */
.module-card {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    background: #fff;
    overflow: hidden;
}

.module-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 0.6rem 0.875rem;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.8125rem;
}

.module-card-header strong {
    font-weight: 600;
    color: #374151;
}

.module-card-body {
    padding: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
}

.module-card-body .form-check-inline {
    margin-right: 0;
}

.module-card-body .form-check-label {
    font-size: 0.8125rem;
    color: #6b7280;
}

/* Business Section Styling */
.business-section {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    background: #fff;
    overflow: hidden;
}

.business-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f5f9 100%);
    padding: 0.875rem 1rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.business-header:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.business-body {
    display: none;
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    background: #fafbfc;
}

.business-body.show {
    display: block;
}

/* User Log Modal Styling */
#logDataModal {
    z-index: 1055;
}

#logDataModal .modal-content {
    background: #fff;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

#logDataModal .modal-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border-bottom: none;
    padding: 1rem 1.25rem;
}

#logDataModal .modal-header .modal-title {
    font-weight: 600;
}

#logDataModal .modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

#logDataModal .modal-header .btn-close:hover {
    opacity: 1;
}

#logDataModal .modal-body {
    padding: 1.25rem;
    background: #fff;
}

#logDataModal .modal-body pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 0.8125rem;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    max-height: 400px;
    overflow: auto;
    color: #1e293b;
}

#logDataModal .modal-body h6 {
    font-size: 0.875rem;
    font-weight: 600;
}

#logDataModal .modal-body .table-sm {
    font-size: 0.8125rem;
}

#logDataModal .modal-body .table-sm code {
    background: #e9ecef;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.75rem;
    color: #1e293b;
}

#logDataModal .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 0.75rem 1.25rem;
}

/* Form Switch Toggle Alignment Fix */
.form-switch {
    display: flex;
    align-items: center;
    padding-left: 2.5em;
}

.form-switch .form-check-input {
    margin-top: 0;
}

.form-switch .form-check-label {
    padding-top: 0;
    line-height: 1.5;
}

/* Bank Record Table Checkbox Alignment */
#entryTable.dataTable tbody td:first-child,
#entryTable.dataTable thead th:first-child,
table.dataTable#entryTable tbody td:first-child,
table.dataTable#entryTable thead th:first-child {
    text-align: center !important;
    vertical-align: middle !important;
    width: 40px !important;
    padding: 0.75rem 0.5rem !important;
}

#entryTable tbody td:first-child,
#entryTable thead th:first-child {
    display: table-cell !important;
}

#entryTable tbody td:first-child .form-check-input,
#entryTable thead th:first-child .form-check-input,
#entryTable .row-checkbox,
#entryTable #selectAllCheckbox {
    margin: 0 auto !important;
    float: none !important;
    display: block !important;
    position: relative !important;
    top: 0 !important;
}

.twofa-container .login100-form {
    flex: 1;
    justify-content: flex-start;
    min-height: 100%;
}

.twofa-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.75rem;
    padding: 3rem 0;
}

.twofa-container .form-group {
    margin-bottom: 0;
}

/* Modern 2FA Page Styling */
.twofa-container {
    max-width: 360px;
    width: 100%;
    min-height: 400px;
    padding: 2rem 1.75rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.twofa-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(99, 102, 241, 0.03), transparent);
    animation: shimmer 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {

    0%,
    100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    50% {
        transform: translateX(-50%) translateY(-50%) rotate(45deg);
    }
}

.twofa-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #6366f1;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
}

.twofa-back-btn:hover {
    color: #4f46e5;
    transform: translateX(-2px);
}

.twofa-header {
    margin: 0;
    text-align: center;
}

.twofa-logo {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.twofa-logo img {
    max-height: 40px;
}

.twofa-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.twofa-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.twofa-input-container {
    margin: 0;
}

.twofa-input-group {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.16);
}

.twofa-input-group .input-group-text {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-right: 0;
    color: #6366f1;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.twofa-input-group:focus-within .input-group-text {
    border-color: #8b5cf6;
    color: #7c3aed;
}

.twofa-input {
    border: 2px solid #e5e7eb;
    border-left: 0;
    border-radius: 0 14px 14px 0;
    padding: 1rem 1.15rem;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.55rem;
    background: #ffffff;
    transition: border-color 0.2s ease, color 0.2s ease;
    height: 100%;
}

.twofa-input:focus {
    border-color: #8b5cf6;
}

.twofa-input.is-invalid,
.twofa-input.is-invalid:focus {
    border-color: #dc2626;
    box-shadow: none;
}

.twofa-input-group:focus-within .twofa-input.is-invalid {
    border-color: #dc2626;
}

.twofa-input.is-invalid~.input-group-text,
.twofa-input-group:focus-within .twofa-input.is-invalid~.input-group-text,
.twofa-input-group:has(.twofa-input.is-invalid) .input-group-text {
    border-color: #dc2626;
    color: #dc2626;
}

.twofa-input.is-valid,
.has-success .twofa-input,
.has-success .twofa-input:focus {
    border-color: #10b981;
}

.twofa-input.is-valid~.input-group-text,
.has-success .twofa-input-group .input-group-text,
.twofa-input-group:has(.twofa-input.is-valid) .input-group-text {
    border-color: #10b981;
    color: #0f995f;
}

.twofa-input.is-invalid,
.twofa-input.is-invalid:focus {
    border-color: #dc2626;
}

.twofa-input-group:focus-within .twofa-input.is-invalid {
    border-color: #dc2626;
}

.twofa-input.is-invalid~.input-group-text,
.twofa-input-group:focus-within .twofa-input.is-invalid~.input-group-text,
.twofa-input-group:has(.twofa-input.is-invalid) .input-group-text {
    border-color: #dc2626;
    color: #dc2626;
}

.twofa-input-group .form-control {
    text-align: center;
}

.twofa-input-group .input-group-text:first-child {
    border-radius: 14px 0 0 14px;
}

.twofa-verify-btn {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
    margin-bottom: 1rem;
}

.twofa-verify-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.twofa-verify-btn:active {
    transform: translateY(0);
}

.twofa-footer {
    margin-top: auto;
    text-align: center;
    display: flex;
    justify-content: center;
}

.twofa-help-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #6b7280;
    font-size: 0.75rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.twofa-help-link:hover {
    color: #8b5cf6;
}

.twofa-help-link i {
    color: #8b5cf6;
}

/* Security indicator */
.twofa-security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.login-container .fv-help-block,
.twofa-container .fv-help-block {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    line-height: 1.2;
    color: #dc2626;
}

.twofa-container .fv-help-block {
    display: none;
}

/* Responsive adjustments for modern 2FA */
@media (max-width: 576px) {
    .twofa-container {
        max-width: 320px;
        padding: 1.75rem 1.25rem;
        min-height: 360px;
        border-radius: 16px;
    }

    .twofa-input {
        padding: 0.75rem 0.9rem;
        font-size: 0.875rem;
        letter-spacing: 0.25rem;
    }

    .twofa-title {
        font-size: 1.25rem;
    }
}

/* Auto-formatting for 2FA input */
.twofa-input.formatting {
    letter-spacing: 0.75rem;
}

.twofa-input.complete {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Loading state for verify button */
.twofa-verify-btn.loading {
    position: relative;
    color: transparent;
}

.twofa-verify-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 2px solid white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Welcome Page Styles */
.welcome-page {
    background: #f0f2f8;
}

.welcome-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
}

.welcome-header {
    text-align: center;
    padding: 2rem 0;
}

.welcome-title {
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
    max-width: 800px;
    text-align: left;
}

.welcome-title .greeting {
    font-size: 2.5rem;
    color: #5b6e88;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.welcome-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-bg-color), #d238f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.welcome-title .text-muted {
    font-size: 1.1rem !important;
    line-height: 1.6;
    color: #6e7f95 !important;
    margin: 0;
}

.steps-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0;
}

.step-item.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-item.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.step-item .card-body {
    padding: 2rem;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.step-number {
    position: relative;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: var(--primary-bg-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1630;
    margin-bottom: 1rem;
    padding-right: 0;
}

.step-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.auth-setup {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1rem;
    background: rgba(var(--primary-bg-rgb), 0.03);
    border-radius: 8px;
}

.auth-key-wrapper {
    flex: 1;
    min-width: 250px;
    background: white;
    border-radius: 6px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.qr-wrapper {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border-radius: 6px;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.auth-key-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(var(--primary-bg-rgb), 0.03);
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 0.5rem;
}

.auth-key {
    font-family: monospace;
    font-size: 1.1rem;
    color: var(--primary-bg-color);
    padding-left: 5px;
    padding-right: 5px;
}

.qr-code {
    width: 150px;
    height: 150px;
    padding: 0.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.continue-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(var(--primary-bg-rgb), 0.2);
    transition: all 0.3s ease;
}

.continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(var(--primary-bg-rgb), 0.3);
}

@media (max-width: 768px) {
    .welcome-container {
        margin: 1rem;
        padding: 1rem;
    }

    .welcome-title h1 {
        font-size: 2rem;
    }

    .step-item .card-body {
        padding: 1.5rem;
        gap: 1rem;
    }

    .step-number {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 0.9rem;
    }

    .step-title {
        font-size: 1.1rem;
    }

    .auth-setup {
        flex-direction: column;
        gap: 1.5rem;
    }

    .step-buttons {
        flex-direction: column;
    }

    .step-buttons .btn {
        width: 100%;
    }
}

/* Panel Tabs Styling */
.panel.panel-primary {
    border: none;
    background: transparent;
}

.panel-tabs {
    border-bottom: 2px solid rgba(var(--primary-bg-rgb), 0.1);
}

.panel-tabs li {
    margin-right: 1rem;
}

.panel-tabs a {
    color: #5b6e88;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.panel-tabs a:hover {
    color: var(--primary-bg-color);
}

.panel-tabs a.active {
    color: var(--primary-bg-color);
    border-bottom-color: var(--primary-bg-color);
}

.panel-body.tabs-menu-body {
    padding: 1.5rem 0;
    background: transparent;
}

/* Authentication Instructions Styles */
.auth-instructions {
    margin-top: 1rem;
}

.instruction-list {
    list-style: none;
    counter-reset: step-counter;
    padding-left: 0;
    margin-bottom: 0;
}

.instruction-list>li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    counter-increment: step-counter;
}

.instruction-list>li:before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: rgba(var(--primary-bg-rgb), 0.1);
    color: var(--primary-bg-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.instruction-list>li:last-child {
    margin-bottom: 0;
}

.tab-menu-heading {
    border-bottom: 0 !important;
}

@media (max-width: 768px) {
    .instruction-list>li {
        padding-left: 1.75rem;
    }

    .instruction-list>li:before {
        width: 1.25rem;
        height: 1.25rem;
        font-size: 0.75rem;
    }

    .auth-setup {
        padding: 1rem;
    }
}

/* TAC (2FA) input styling */
.tac-inputs {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.tac-inputs .tac-digit {
    width: 42px;
    height: 48px;
    text-align: center;
    font-size: 20px;
    border: 1px solid #e9edf4;
    border-radius: 6px;
}

.welcome-page .tab-content .input-group-text {
    color: #6c757d;
}

.welcome-page .tab-content .input-group-text i {
    color: #fff !important;
}

.dark-mode .welcome-page .tab-content .input-group-text {
    color: #cfd3dc;
}

.notification-page .page {
    justify-content: flex-start;
}

.notification-page .notification-message-text {
    color: #1c232f !important;
    font-size: 14px !important;
    line-height: 1.6;
}

.notification-page .notification-meta i {
    font-size: 14px;
}

/* Login Page Refinements */
.login-separator-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
    width: 100%;
}

.login-separator-line {
    flex-grow: 1;
    height: 1px;
    background-color: #e2e8f0;
}

.login-separator-text {
    padding: 0 1rem;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.login-passkey-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.login-passkey-btn:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.login-passkey-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.passkey-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: #eff6ff;
    border-radius: 0.375rem;
    color: #3b82f6;
    margin-right: 1rem;
    font-size: 1.25rem;
}

.passkey-text-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.passkey-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.2;
}

.passkey-subtitle {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.125rem;
}

.passkey-arrow-wrapper {
    color: #94a3b8;
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

.login-passkey-btn:hover .passkey-arrow-wrapper {
    transform: translateX(2px);
    color: #64748b;
}

/* Enhancements for existing elements to match */
.login-submit-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-submit-btn:hover {
    background-color: #2563eb;
}

.login-input-group {
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-input-group:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.login-input-group .input-group-text {
    background-color: #f8fafc;
    border: none;
    color: #64748b;
}

.login-input-group .form-control {
    border: none;
    padding: 0.75rem;
}

.page-header {
    margin: 0.8rem 0rem 0.8rem;
}

.page-title {
    font-size: 18px;
}

/* ===========================================
 * AI Assistant Chat
 * =========================================== */
.assistant-page .main-content.app-content {
    height: calc(100vh - 74px);
    min-height: calc(100vh - 74px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.assistant-page .side-app {
    flex: 1;
    display: flex;
    min-height: 0;
}

.assistant-page .main-container.container-fluid {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.assistant-page .assistant-chat-row {
    flex: 1;
    min-height: 0;
    height: 100%;
}

.assistant-page .assistant-chat-row > .col-12 {
    min-height: 0;
    height: 100%;
}

.assistant-page .assistant-chat-card {
    display: flex;
    flex-direction: column;
    height: calc(100% - 30px);
    min-height: 0;
    margin-bottom: 30px;
}

.assistant-page .assistant-chat-card .main-content-app {
    height: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.assistant-page .assistant-chat-card .main-content-body-chat {
    flex: 1;
    min-height: 0;
}

.main-content-body-chat.h-100 {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.assistant-chat {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    flex: 1;
}

.assistant-chat #ChatBody.main-chat-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.assistant-chat .main-chat-footer {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding-right: 0;
}

.assistant-chat .main-chat-footer .main-chat-footer-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 20px;
    height: 60px;
}

.assistant-chat .main-chat-footer .form-control {
    flex: 1;
    margin: 0;
    height: 42px;
}

.assistant-chat .main-chat-footer-row .btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.assistant-chat .main-chat-footer-row #assistantAttachBtn,
.assistant-chat .main-chat-footer-row #assistantSendBtn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 0;
    border-radius: 50%;
    flex: 0 0 42px;
    outline: 0;
}

.assistant-chat .main-chat-footer-row #assistantAttachBtn i,
.assistant-chat .main-chat-footer-row #assistantSendBtn i {
    display: block;
    line-height: 1;
    font-size: 16px;
}

.assistant-chat .main-chat-footer-row .fa {
    width: 1.25em;
    text-align: center;
}

.assistant-chat .main-chat-footer-row .fa-paperclip {
    transform: translateX(1px);
}

.assistant-chat .main-chat-footer-row .fa-paper-plane {
    transform: translateX(1px);
}

.assistant-chat .main-chat-footer-row #assistantAttachBtn:focus,
.assistant-chat .main-chat-footer-row #assistantAttachBtn:focus-visible,
.assistant-chat .main-chat-footer-row #assistantSendBtn:focus,
.assistant-chat .main-chat-footer-row #assistantSendBtn:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-bg-rgb), 0.25);
}

.assistant-chat .main-chat-footer-row #assistantAttachBtn {
    cursor: pointer;
    margin-bottom: 0;
}

.assistant-file-input {
    position: fixed;
    top: -1000px;
    left: -1000px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.assistant-chat .assistant-time {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 5px;
}

.assistant-chat .main-msg-wrapper {
    margin-bottom: 0;
}

.assistant-chat .assistant-think-wrapper {
    margin-bottom: 0.5rem;
    align-self: flex-start;
    width: 100%;
}

.assistant-chat .assistant-thinking {
    --think-accent: #7c6df2;
    --think-accent-rgb: 124, 109, 242;
    display: block;
    width: fit-content;
    max-width: min(640px, 100%);
    border: 1px solid #e7e4f6;
    background: linear-gradient(180deg, #fbfaff 0%, #f6f5fc 100%);
    border-radius: 0.9rem;
    padding: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(76, 70, 124, 0.05);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    interpolate-size: allow-keywords;
}

.assistant-chat .assistant-thinking.is-thinking {
    border-color: #d9d3f8;
    box-shadow: 0 0 0 3px rgba(var(--think-accent-rgb), 0.07), 0 1px 6px rgba(76, 70, 124, 0.08);
}

/* Smooth expand/collapse (progressive enhancement — older browsers snap). */
.assistant-chat .assistant-thinking::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 0.3s ease, content-visibility 0.3s allow-discrete;
}

.assistant-chat .assistant-thinking[open]::details-content {
    block-size: auto;
}

.assistant-chat .assistant-thinking-summary {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #5d5a75;
    outline: none;
    list-style: none;
    padding: 0.45rem 0.8rem;
    white-space: nowrap;
    user-select: none;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

.assistant-chat .assistant-thinking-summary::-webkit-details-marker {
    display: none;
}

.assistant-chat .assistant-thinking-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: linear-gradient(135deg, rgba(var(--think-accent-rgb), 0.14), rgba(79, 141, 249, 0.14));
    color: var(--think-accent);
    font-size: 0.68rem;
    flex-shrink: 0;
}

.assistant-chat .assistant-thinking.is-thinking .assistant-thinking-icon i {
    animation: assistant-think-pulse 1.6s ease-in-out infinite;
}

@keyframes assistant-think-pulse {
    0%, 100% { opacity: 0.55; transform: scale(0.94); }
    50% { opacity: 1; transform: scale(1.06); }
}

.assistant-chat .assistant-thinking.is-thinking .assistant-thinking-label {
    background: linear-gradient(90deg, #67629a 0%, #b9b3e4 35%, #67629a 60%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: assistant-think-shimmer 2s linear infinite;
}

@keyframes assistant-think-shimmer {
    0% { background-position: 170% 0; }
    100% { background-position: -30% 0; }
}

.assistant-chat .assistant-thinking-dots {
    display: none;
    align-items: flex-end;
    gap: 3px;
    padding-bottom: 2px;
}

.assistant-chat .assistant-thinking.is-thinking .assistant-thinking-dots {
    display: inline-flex;
}

.assistant-chat .assistant-thinking-dots span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--think-accent);
    opacity: 0.4;
    animation: assistant-think-dot 1.2s ease-in-out infinite;
}

.assistant-chat .assistant-thinking-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.assistant-chat .assistant-thinking-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes assistant-think-dot {
    0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}

.assistant-chat .assistant-thinking-time {
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    font-size: 0.72rem;
    color: #8c88a6;
}

.assistant-chat .assistant-thinking-time:empty {
    display: none;
}

.assistant-chat .assistant-thinking-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.58rem;
    color: #a6a3bd;
    margin-left: 0.1rem;
    transition: transform 0.25s ease;
}

.assistant-chat .assistant-thinking[open] .assistant-thinking-caret {
    transform: rotate(180deg);
}

.assistant-chat .assistant-thinking[open] .assistant-thinking-summary {
    border-bottom: 1px solid #eceaf7;
}

.assistant-chat .assistant-thinking.is-thinking[open]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0%, rgba(var(--think-accent-rgb), 0.07) 35%, transparent 70%);
    transform: translateX(-100%);
    animation: assistant-thinking-shimmer 1.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes assistant-thinking-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
    .assistant-chat .assistant-thinking.is-thinking[open]::after,
    .assistant-chat .assistant-thinking.is-thinking .assistant-thinking-icon i,
    .assistant-chat .assistant-thinking.is-thinking .assistant-thinking-label,
    .assistant-chat .assistant-thinking-dots span {
        animation: none;
    }

    .assistant-chat .assistant-thinking::details-content {
        transition: none;
    }

    .assistant-chat .assistant-streaming .typing .dot {
        animation: none;
    }
}

.assistant-chat .assistant-thinking-body {
    font-size: 0.8rem;
    line-height: 1.55;
    color: #6b6883;
    padding: 0.55rem 0.85rem 0.6rem;
    max-height: 240px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #d4d1e8 transparent;
}

.assistant-chat .assistant-thinking-body::-webkit-scrollbar {
    width: 5px;
}

.assistant-chat .assistant-thinking-body::-webkit-scrollbar-thumb {
    background: #d4d1e8;
    border-radius: 99px;
}

.assistant-chat .assistant-thinking-body .assistant-md-p + .assistant-md-p {
    margin-top: 0.45rem;
}

.assistant-chat .assistant-toolcalls-wrapper {
    margin-top: 0.5rem;
    align-self: flex-start;
    width: 100%;
}

.assistant-chat .assistant-toolcalls {
    display: block;
    width: fit-content;
    max-width: 100%;
    border: 1px solid #dbe4f0;
    background: #f4f7fb;
    border-radius: 0.75rem;
    overflow: hidden;
}

.assistant-chat .assistant-toolcalls-summary {
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4a6da7;
    outline: none;
    list-style: none;
    padding: 0.4rem 0.85rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.assistant-chat .assistant-toolcalls-summary::-webkit-details-marker {
    display: none;
}

.assistant-chat .assistant-toolcalls-summary::after {
    content: '▸';
    margin-left: 0.4rem;
    color: #6c7e9a;
    transition: transform 0.15s ease;
}

.assistant-chat .assistant-toolcalls[open] .assistant-toolcalls-summary::after {
    content: '▾';
}

.assistant-chat .assistant-toolcalls[open] .assistant-toolcalls-summary {
    border-bottom: 1px solid #dbe4f0;
}

.assistant-chat .assistant-toolcalls-summary .fa-wrench {
    color: #6f86a8;
}

.assistant-chat .assistant-toolcalls-body {
    padding: 0.6rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 100%;
}

.assistant-chat .assistant-toolcall-card {
    border: 1px solid #e1e8f1;
    background: #ffffff;
    border-radius: 0.5rem;
    overflow: hidden;
}

.assistant-chat .assistant-toolcall-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.35rem 0.65rem;
    background: #eef3f9;
    border-bottom: 1px solid #e1e8f1;
    font-size: 0.78rem;
}

.assistant-chat .assistant-toolcall-name {
    font-weight: 600;
    color: #3f5b85;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.assistant-chat .assistant-toolcall-name .fa-bolt {
    color: #f0a93b;
}

.assistant-chat .assistant-toolcall-id {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.7rem;
    color: #8a99b1;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.assistant-chat .assistant-toolcall-args {
    margin: 0;
    padding: 0.55rem 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #2c3e50;
    background: #fbfcfe;
    white-space: pre;
    overflow-x: auto;
    max-height: 320px;
    overflow-y: auto;
}

.assistant-chat .assistant-followups {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.assistant-chat .assistant-followup-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 100%;
    padding: 0.35rem 0.7rem;
    border: 1px solid #cbdcf3;
    border-radius: 999px;
    background: #f4f9ff;
    color: #2f5da3;
    font-size: 0.8rem;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.05s ease;
}

.assistant-chat .assistant-followup-badge:hover:not(:disabled) {
    background: #e7f1ff;
    border-color: #94baee;
    color: #1f4581;
}

.assistant-chat .assistant-followup-badge:active:not(:disabled) {
    transform: translateY(1px);
}

.assistant-chat .assistant-followup-badge:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.assistant-chat .assistant-followup-badge .fa-reply {
    color: #6791d1;
    font-size: 0.72rem;
    flex-shrink: 0;
}

.assistant-chat .assistant-followup-badge span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 24rem;
}

.assistant-chat .assistant-answer-wrapper {
    margin-top: 0.5rem;
}

.assistant-chat .assistant-streaming {
    margin-top: 0.35rem;
}

.assistant-chat .assistant-streaming .typing {
    padding: 0;
    gap: 4px;
}

.assistant-chat .assistant-streaming .typing .dot {
    width: 6px;
    height: 6px;
}

.assistant-chat .assistant-typing {
    margin-top: 0;
    padding-left: 0;
}

.assistant-chat .assistant-typing .assistant-typing-bubble {
    margin-bottom: 0;
}

.assistant-chat .assistant-bubbles {
    display: flex;
    flex-direction: column;
}

.assistant-chat .assistant-md-img {
    display: block;
    max-width: 240px;
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
}

.assistant-chat .assistant-upload-preview {
    padding: 0.5rem 0.75rem 0;
}

.assistant-chat .assistant-upload-preview-inner {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.35rem 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.75rem;
    background: #f8f9fa;
    max-width: 280px;
}

.assistant-chat .assistant-upload-preview-img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 0.375rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    flex: 0 0 36px;
}

.assistant-chat .assistant-upload-file-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
}

.assistant-chat .assistant-upload-preview-meta {
    flex: 1;
    min-width: 0;
}

.assistant-chat .assistant-upload-preview-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.assistant-chat .assistant-upload-preview-hint {
    font-size: 0.75rem;
    color: #6b7280;
}

.assistant-chat .assistant-upload-preview-remove {
    flex: 0 0 auto;
}

/* ===========================================
 * Assistant Markdown Rendering - Enhanced Design
 * =========================================== */

/* Headings */
.assistant-chat .assistant-md-h {
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    margin: 0.75rem 0 0.5rem 0;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.assistant-chat .assistant-md-h:first-child {
    margin-top: 0.25rem;
}

.assistant-chat .assistant-md-h1 { font-size: 1.25rem; }
.assistant-chat .assistant-md-h2 { font-size: 1.125rem; }
.assistant-chat .assistant-md-h3 { font-size: 1.0625rem; border-bottom: none; }
.assistant-chat .assistant-md-h4,
.assistant-chat .assistant-md-h5,
.assistant-chat .assistant-md-h6 { font-size: 1rem; border-bottom: none; }

/* Paragraphs */
.assistant-chat .assistant-md-p {
    margin: 0.375rem 0;
    line-height: 1.6;
    color: #374151;
}

.assistant-chat .assistant-md-p:first-child {
    margin-top: 0;
}

/* Horizontal Rule */
.assistant-chat .assistant-md-hr {
    margin: 1rem 0;
    border: none;
    border-top: 2px solid #e5e7eb;
    opacity: 1;
}

/* Code Blocks */
.assistant-chat .assistant-md-pre {
    margin: 0.75rem 0;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    border-radius: 0.75rem;
    overflow-x: auto;
    font-size: 0.8125rem;
    font-family: 'SF Mono', 'Fira Code', 'JetBrains Mono', Consolas, monospace;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.assistant-chat .assistant-md-pre code {
    color: inherit;
    background: transparent;
    padding: 0;
    font-family: inherit;
}

/* Inline Code */
.assistant-chat .assistant-answer code,
.assistant-chat .assistant-thinking-body code {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    color: #6366f1;
    padding: 0.125rem 0.375rem;
    border-radius: 0.375rem;
    font-size: 0.85em;
    font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
    border: 1px solid rgba(99, 102, 241, 0.12);
}

/* Lists */
.assistant-chat .assistant-md-list {
    margin: 0.5rem 0 0.75rem 0;
    padding-left: 1.5rem;
}

.assistant-chat .assistant-md-list li {
    margin: 0.25rem 0;
    line-height: 1.5;
    color: #374151;
}

.assistant-chat .assistant-md-list li::marker {
    color: #6366f1;
}

.assistant-chat ol.assistant-md-list {
    list-style-type: decimal;
}

.assistant-chat ul.assistant-md-list {
    list-style-type: disc;
}

/* Blockquotes */
.assistant-chat .assistant-md-quote {
    margin: 0.75rem 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-left: 4px solid #8b5cf6;
    border-radius: 0 0.5rem 0.5rem 0;
    color: #475569;
    font-style: italic;
}

/* Tables - Enhanced Design */
.assistant-chat .assistant-md-table {
    margin: 0.75rem 0;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
    background: white;
}

.assistant-chat .assistant-md-table table {
    margin: 0;
    font-size: 0.8125rem;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
}

.assistant-chat .assistant-md-table th,
.assistant-chat .assistant-md-table td {
    vertical-align: middle;
    padding: 0.625rem 0.875rem;
    border: none;
    border-bottom: 1px solid #e5e7eb;
}

.assistant-chat .assistant-md-table th {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
    border-bottom: none;
}

.assistant-chat .assistant-md-table tbody tr {
    transition: background-color 0.15s ease;
}

.assistant-chat .assistant-md-table tbody tr:hover {
    background-color: #f8fafc;
}

.assistant-chat .assistant-md-table tbody tr:last-child td {
    border-bottom: none;
}

.assistant-chat .assistant-md-table tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

.assistant-chat .assistant-md-table tbody tr:nth-child(even):hover {
    background-color: #f1f5f9;
}

/* Strong and Emphasis */
.assistant-chat .assistant-answer strong,
.assistant-chat .assistant-thinking-body strong {
    font-weight: 700;
    color: #1e293b;
}

.assistant-chat .assistant-answer em,
.assistant-chat .assistant-thinking-body em {
    font-style: italic;
    color: #475569;
}

/* Dark mode support for markdown */
.dark-mode .assistant-chat .assistant-md-h {
    color: #e2e8f0;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.dark-mode .assistant-chat .assistant-md-p {
    color: #cbd5e1;
}

.dark-mode .assistant-chat .assistant-md-hr {
    border-top-color: #334155;
}

.dark-mode .assistant-chat .assistant-md-pre {
    background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    border-color: rgba(255, 255, 255, 0.08);
}

.dark-mode .assistant-chat .assistant-answer code,
.dark-mode .assistant-chat .assistant-thinking-body code {
    background: rgba(139, 92, 246, 0.15);
    color: #a5b4fc;
    border-color: rgba(139, 92, 246, 0.2);
}

.dark-mode .assistant-chat .assistant-md-list li {
    color: #cbd5e1;
}

.dark-mode .assistant-chat .assistant-md-quote {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-left-color: #8b5cf6;
    color: #94a3b8;
}

.dark-mode .assistant-chat .assistant-md-table {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.dark-mode .assistant-chat .assistant-md-table table {
    background: #1e293b;
}

.dark-mode .assistant-chat .assistant-md-table th {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.dark-mode .assistant-chat .assistant-md-table td {
    border-bottom-color: #334155;
    color: #cbd5e1;
}

.dark-mode .assistant-chat .assistant-md-table tbody tr:hover {
    background-color: #334155;
}

.dark-mode .assistant-chat .assistant-md-table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

.dark-mode .assistant-chat .assistant-md-table tbody tr:nth-child(even):hover {
    background-color: #334155;
}

.dark-mode .assistant-chat .assistant-answer strong,
.dark-mode .assistant-chat .assistant-thinking-body strong {
    color: #f1f5f9;
}

.dark-mode .assistant-chat .assistant-answer em,
.dark-mode .assistant-chat .assistant-thinking-body em {
    color: #94a3b8;
}

/* ===========================================
 * Threads Modal - Modern Card Layout
 * =========================================== */
.threads-modal {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.threads-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
}

.threads-modal-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.threads-modal-title i {
    font-size: 1.125rem;
}

.threads-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.threads-modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.threads-modal-search {
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.threads-search-wrapper {
    position: relative;
}

.threads-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.875rem;
    pointer-events: none;
}

.threads-search-input {
    width: 100%;
    padding: 0.625rem 0.875rem 0.625rem 2.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.875rem;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.threads-search-input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.threads-search-input::placeholder {
    color: #94a3b8;
}

.threads-modal-body {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.75rem;
    background: #fff;
}

/* Thread Card */
.thread-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    margin-bottom: 0.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.thread-card:last-child {
    margin-bottom: 0;
}

.thread-card:hover {
    border-color: #c7d2fe;
    background: #f8fafc;
    transform: translateX(2px);
}

.thread-card-active {
    background: linear-gradient(135deg, #eef2ff 0%, #faf5ff 100%);
    border-color: #a5b4fc;
}

.thread-card-active:hover {
    background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 100%);
    border-color: #818cf8;
}

.thread-card-content {
    flex: 1;
    min-width: 0;
}

.thread-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.thread-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thread-card-badge {
    flex-shrink: 0;
    padding: 0.125rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: #7c3aed;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 20px;
}

.thread-card-preview {
    font-size: 0.8125rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.375rem;
}

.thread-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.6875rem;
    color: #94a3b8;
}

.thread-card-meta i {
    font-size: 0.625rem;
    margin-right: 0.25rem;
}

.thread-card-model {
    display: flex;
    align-items: center;
}

.thread-card-time {
    display: flex;
    align-items: center;
}

.thread-card-arrow {
    flex-shrink: 0;
    color: #cbd5e1;
    transition: color 0.15s ease, transform 0.15s ease;
}

.thread-card:hover .thread-card-arrow {
    color: #8b5cf6;
    transform: translateX(2px);
}

/* Loading & Empty States */
.threads-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 3rem 1rem;
    color: #64748b;
    font-size: 0.875rem;
}

.threads-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e2e8f0;
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: threads-spin 0.8s linear infinite;
}

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

.threads-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 3rem 1rem;
    color: #94a3b8;
    font-size: 0.875rem;
}

.threads-empty i {
    font-size: 2rem;
    opacity: 0.5;
}

.threads-error {
    color: #ef4444;
}

.threads-error i {
    color: #ef4444;
    opacity: 0.7;
}

/* Scrollbar styling for threads modal */
.threads-modal-body::-webkit-scrollbar {
    width: 6px;
}

.threads-modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.threads-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.threads-modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Dark mode support for threads modal */
.dark-mode .threads-modal {
    background: #1e293b;
}

.dark-mode .threads-modal-search {
    background: #0f172a;
    border-bottom-color: #334155;
}

.dark-mode .threads-search-input {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

.dark-mode .threads-search-input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.dark-mode .threads-modal-body {
    background: #1e293b;
}

.dark-mode .thread-card {
    background: #0f172a;
    border-color: #334155;
}

.dark-mode .thread-card:hover {
    background: #1e293b;
    border-color: #475569;
}

.dark-mode .thread-card-active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-color: #6366f1;
}

.dark-mode .thread-card-title {
    color: #e2e8f0;
}

.dark-mode .thread-card-preview {
    color: #94a3b8;
}

.dark-mode .thread-card-arrow {
    color: #475569;
}

.dark-mode .threads-loading,
.dark-mode .threads-empty {
    color: #64748b;
}

.dark-mode .threads-loading-spinner {
    border-color: #334155;
    border-top-color: #8b5cf6;
}

/* Fast tooltip display - 0.2s delay */
[title] {
    position: relative;
}

/* Override Bootstrap's default tooltip delay */
.tooltip {
    --bs-tooltip-delay-show: 200ms !important;
}

/* For native browser tooltips, we can't control timing directly,
   but we can use data-bs-toggle="tooltip" with Bootstrap tooltips for faster display */

@media (max-width: 991px) {
    .logo-horizontal {
        position: absolute;
        left: 50%;
        right: auto;
        width: auto;
        display: inline-flex;
        align-items: center;
        flex: 0 0 auto;
        transform: translateX(-50%);
    }
}
