/*
 * BDS visual refresh (2026)
 *
 * This stylesheet is deliberately presentation-only. It is loaded after the
 * existing application styles so routes, markup structure, form names, IDs,
 * JavaScript hooks and interaction behaviour remain unchanged.
 */

:root {
  --modern-header-height: 68px;
  --modern-sidebar-width: 260px;
  --modern-content-max: 1680px;
  --modern-accent-gradient: linear-gradient(135deg, #0f766e 0%, #075985 100%);
  --modern-accent-soft: linear-gradient(135deg, rgba(15, 156, 168, .14), rgba(14, 165, 233, .08));
  --modern-page-glow: radial-gradient(circle at 88% 4%, rgba(14, 165, 233, .09), transparent 28%),
    radial-gradient(circle at 12% 96%, rgba(15, 156, 168, .08), transparent 30%);
  --modern-glass: rgba(255, 255, 255, .86);
  --modern-sidebar: rgba(255, 255, 255, .94);
  --modern-row-hover: rgba(15, 156, 168, .055);
  --modern-shadow-card: 0 1px 2px rgba(15, 23, 42, .03), 0 12px 32px rgba(15, 23, 42, .055);
  --modern-shadow-float: 0 20px 55px rgba(15, 23, 42, .14);
}

html[data-theme="dark"] {
  --modern-accent-gradient: linear-gradient(135deg, #0f766e 0%, #075985 100%);
  --modern-accent-soft: linear-gradient(135deg, rgba(45, 212, 191, .13), rgba(56, 189, 248, .07));
  --modern-page-glow: radial-gradient(circle at 88% 4%, rgba(56, 189, 248, .09), transparent 28%),
    radial-gradient(circle at 12% 96%, rgba(45, 212, 191, .07), transparent 30%);
  --modern-glass: rgba(15, 23, 42, .88);
  --modern-sidebar: rgba(17, 24, 39, .95);
  --modern-row-hover: rgba(45, 212, 191, .07);
  --modern-shadow-card: 0 1px 2px rgba(0, 0, 0, .24), 0 14px 36px rgba(0, 0, 0, .19);
  --modern-shadow-float: 0 24px 64px rgba(0, 0, 0, .45);
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

html[data-theme="dark"] { color-scheme: dark; }

body {
  min-height: 100svh;
  background-color: var(--color-bg);
  background-image: var(--modern-page-glow);
  background-attachment: fixed;
  letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  color: var(--color-accent-contrast);
  background: var(--color-accent);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-strong) transparent;
}

*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--color-border-strong);
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background-color: var(--color-text-muted); }

a,
button,
input,
select,
textarea { -webkit-tap-highlight-color: transparent; }

a,
button { transition-duration: .18s !important; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-accent) !important;
  outline-offset: 2px;
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
  letter-spacing: -.025em;
  line-height: 1.25;
}

/* Top application bar */
.dashboard_header {
  min-height: var(--modern-header-height);
  padding: 12px 20px 12px 0;
  background: var(--modern-glass);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .02), 0 8px 30px rgba(15, 23, 42, .045);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}

.dashboard_header > a {
  min-width: var(--modern-sidebar-width);
  padding: 0 22px;
  color: var(--color-text-heading);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.035em;
  text-align: left;
}

.dashboard_header > a::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 9px;
  border-radius: 3px;
  background: var(--modern-accent-gradient);
  box-shadow: 0 0 0 5px var(--color-accent-selected);
  vertical-align: 1px;
}

.dashboard_header ul { gap: 10px; }

.dashboard_header .header-bug-report-btn,
.dashboard_header .header-create-chat-btn,
.dashboard_header .header-back-to-chats-btn,
.header-user-menu.dropdown > .dropdown-toggle,
.theme_switch {
  min-height: 38px;
  height: 38px;
  border-color: var(--color-border);
  background: var(--color-surface);
  box-shadow: none;
}

.dashboard_header .header-create-chat-btn,
.dashboard_header .header-back-to-chats-btn {
  color: #fff;
  border-color: transparent;
  background: var(--modern-accent-gradient);
  box-shadow: 0 7px 18px rgba(15, 156, 168, .18);
}

.dashboard_header .header-create-chat-btn .fa-plus,
.dashboard_header .header-back-to-chats-btn { color: #fff; }

.dashboard_header .header-bug-report-btn:hover,
.dashboard_header .header-create-chat-btn:hover,
.header-user-menu.dropdown > .dropdown-toggle:hover,
.theme_switch:hover {
  border-color: var(--color-accent);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
  transform: translateY(-1px);
}

/* style.css's own older .header-create-chat-btn:hover rule (equal specificity, but
   this file loads later so it wins on properties this file also sets) still sets
   background-color: var(--color-surface-alt) on hover, a leftover from before this
   button had a gradient background — that longhand isn't touched by this file's own
   hover rule above, so it was taking effect underneath the gradient. Currently masked
   (the gradient's background-image is opaque and paints on top, so there's no visible
   bug today), but re-declare the gradient explicitly here so hover doesn't depend on
   that masking — e.g. if the gradient is ever swapped for something with any
   transparency, this would otherwise turn into real white-on-near-white text. */
.dashboard_header .header-create-chat-btn:hover,
.dashboard_header .header-back-to-chats-btn:hover {
  background: var(--modern-accent-gradient);
  color: #fff;
}

.notification-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
}

.notification-icon:hover { background: var(--color-surface-hover); }
.notification-icon .notification_btn { width: 18px; height: 18px; }

/* Navigation sidebar */
.sidebar_wrapper {
  width: var(--modern-sidebar-width);
  min-width: var(--modern-sidebar-width);
  padding-top: var(--modern-header-height);
  background: var(--modern-sidebar);
  border-right: 1px solid var(--color-border);
  box-shadow: none;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

/* `backdrop-filter` establishes a containing block for fixed descendants. The
   sidebar's existing collapsed state relies on its toggle becoming
   `position:fixed` so it can escape #resizable's width:0/overflow:hidden box.
   Remove the filter only while collapsed so that recovery control is fixed to
   the viewport again instead of being clipped with the sidebar. */
@media (min-width: 1000px) {
  html.chat-sidebar-collapsed #resizable {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.sidebar_wrapper.staff_sidebar { padding-top: calc(var(--modern-header-height) + 18px); }
.admin_nav_sidebar .chat_list { padding: 18px 12px 12px; }
.admin_nav_sidebar .chat_list ul { gap: 5px; }

.admin_nav_sidebar .chat_list ul li button,
.admin_nav_sidebar .chat_list ul li > a {
  min-height: 44px;
  padding: 9px 12px;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--color-text-muted);
  font-weight: 600;
}

.admin_nav_sidebar .chat_list .nav_icon {
  width: 18px;
  color: var(--color-text-muted);
  font-size: 15px;
  text-align: center;
}

.admin_nav_sidebar .chat_list ul li button:hover,
.admin_nav_sidebar .chat_list ul li > a:hover {
  color: var(--color-text-heading);
  background: var(--color-surface-hover);
}

.admin_nav_sidebar .chat_list ul li.active button:not(.chat_row_star_btn),
.admin_nav_sidebar .chat_list ul li.active > a {
  color: var(--color-accent);
  background: var(--modern-accent-soft);
  border: 1px solid rgba(15, 156, 168, .18);
  box-shadow: inset 3px 0 0 var(--color-accent);
}

.admin_nav_sidebar .chat_list ul li.active .nav_icon { color: var(--color-accent); }

.admin_nav_sidebar .side_bottom {
  margin: 10px 12px 14px;
  padding: 0;
  background: transparent;
}

.admin_nav_sidebar .side_bottom .simple_btn { width: 100%; }

/* Page layout and surfaces */
.chat_content_wrap {
  padding: calc(var(--modern-header-height) + 24px) 24px 24px;
}

.chat_content_wrap > .container,
.user_list_wrap > .container {
  width: 100%;
  max-width: var(--modern-content-max);
  margin-inline: auto;
}

.user_ttile {
  min-height: 66px;
  padding: 14px 18px 14px 22px;
  border-color: var(--color-border);
  border-radius: 16px;
  background: var(--color-surface);
  box-shadow: var(--modern-shadow-card);
}

.user_ttile h2 { font-size: 19px; font-weight: 750; }

.inner_page_wrap,
.panel_call_action,
.profile_inner,
.inner_cards,
.create_chat_modal,
.chat_details_table {
  border-radius: 18px;
}

.table_responsive_outer {
  border-color: var(--color-border);
  border-radius: 18px;
  box-shadow: var(--modern-shadow-card);
}

.table_responsive table tr th,
.table_responsive table tr td {
  border-right: 0;
  border-left: 0;
  text-align: left;
}

.table_responsive table tr th:last-child,
.table_responsive table tr td:last-child { text-align: center; }

.table_responsive table tr th {
  padding: 13px 16px;
  color: var(--color-text-muted);
  background: var(--color-surface-alt);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .055em;
  text-transform: uppercase;
  white-space: nowrap;
}

.table_responsive table .users_list td {
  padding: 14px 16px;
  border-color: var(--color-border);
  color: var(--color-text);
}

.table_responsive table .users_list tr,
.table_responsive table .users_list tr:nth-child(odd) {
  background: var(--color-surface);
}

.table_responsive table .users_list tr:hover { background: var(--modern-row-hover); }

.table_link {
  color: var(--color-text-heading) !important;
  font-weight: 650;
}

.table_link:hover { color: var(--color-accent) !important; }

.table_wrap_wrap a,
.table_wrap_wrap button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--color-surface-alt);
  transition: background-color .18s ease, transform .18s ease;
}

.table_wrap_wrap a:hover,
.table_wrap_wrap button:hover {
  background: var(--color-accent-selected);
  transform: translateY(-1px);
}

.table_wrap_wrap img { max-width: 17px; max-height: 17px; }

/* Dashboard metrics */
.counter_wrapper { margin-bottom: 20px; }
.counter_wrapper ul { margin: 0 -7px; }
.counter_wrapper ul li { padding: 0 7px; margin-bottom: 14px; }

.counter_grid {
  position: relative;
  min-height: 132px;
  padding: 22px;
  border-color: var(--color-border);
  border-radius: 18px;
  background: var(--color-surface);
  box-shadow: var(--modern-shadow-card);
  overflow: hidden;
  isolation: isolate;
}

.counter_grid::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: -34px;
  bottom: -42px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--modern-accent-soft);
}

.counter_grid svg {
  /* !important: FontAwesome's own CSS ships `.svg-inline--fa.fa-w-18{width:1.125em}`
     (2 classes) for these JS-replaced <svg> icons, which otherwise beats this rule's
     1-class-1-element specificity regardless of load order and squishes the icon to
     ~26px wide against the 46px height below (confirmed via CDP matched-styles, not
     guessed) — same category of vendor-CSS-specificity gotcha already documented for
     Toastr's icons in DETAILS.md. */
  width: 46px !important;
  height: 46px;
  padding: 13px;
  border-radius: 14px;
  color: var(--color-accent);
  background: var(--modern-accent-soft);
  font-size: 20px;
  box-sizing: border-box;
}

.counter_grid section span { font-size: 29px; font-weight: 780; }
.counter_grid section small { margin-top: 4px; color: var(--color-text-muted); font-size: 13px; }
.counter_grid:hover { transform: translateY(-3px); box-shadow: var(--modern-shadow-float); }

.panel_call_action {
  position: relative;
  overflow: hidden;
  background: var(--modern-accent-gradient);
  box-shadow: 0 16px 38px rgba(15, 156, 168, .18);
}

.panel_call_action::after {
  content: '';
  position: absolute;
  right: -50px;
  top: -70px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
}

/* Controls */
.simple_btn,
.btn.btn-primary {
  min-height: 42px;
  padding: 10px 18px;
  border: 0;
  border-radius: 11px;
  background: var(--modern-accent-gradient);
  color: #fff;
  font-weight: 700;
  letter-spacing: -.01em;
  box-shadow: 0 7px 18px rgba(15, 156, 168, .18);
}

.simple_btn:hover,
.btn.btn-primary:hover {
  color: #fff;
  background: var(--modern-accent-gradient);
  box-shadow: 0 10px 24px rgba(15, 156, 168, .26);
  filter: saturate(1.08) brightness(.96);
}

.simple_btn.cancel,
.secondary_btn {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-heading);
  box-shadow: none;
}

.simple_btn.cancel:hover,
.secondary_btn:hover {
  border-color: var(--color-border-strong);
  background: var(--color-surface-hover);
  color: var(--color-text-heading);
  filter: none;
}

.input_container input,
.input_container select,
.input_container textarea,
.form-control,
select {
  border-color: var(--color-border-strong);
  border-radius: 12px;
  background-color: var(--color-surface);
}

.input_container input:hover,
.input_container select:hover,
.input_container textarea:hover,
.form-control:hover { border-color: color-mix(in srgb, var(--color-border-strong) 55%, var(--color-accent)); }

.input_container input:focus,
.input_container select:focus,
.input_container textarea:focus,
.form-control:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-selected);
}

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  border-color: var(--color-border-strong) !important;
  border-radius: 12px !important;
  background: var(--color-surface) !important;
}

.checklist span,
.form-check-input { border-radius: 6px; }

/* Menus, notifications and dialogs */
.dropdown-menu,
.notification_dropdown,
.suggestion_box {
  padding: 7px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface);
  box-shadow: var(--modern-shadow-float);
}

.dropdown-menu .dropdown-item,
.switch_chat_category {
  min-height: 38px;
  padding: 9px 11px;
  border-radius: 9px;
  color: var(--color-text);
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus,
.switch_chat_category:hover {
  color: var(--color-text-heading);
  background: var(--color-surface-hover);
}

.notification_dropdown { padding: 0; overflow: hidden; }
.notification_dropdown .pannel_title { padding: 16px 18px; }

.modal-backdrop.show { opacity: .42; }
.modal-dialog { margin-block: 24px; }
.modal-content {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-surface);
  box-shadow: var(--modern-shadow-float);
}

.modal-header,
#createMember .modal-header {
  min-height: 68px;
  margin: 0;
  padding: 18px 22px;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  background: var(--color-surface);
}

.modal-title,
#createMember .modal-title {
  color: var(--color-text-heading);
  font-size: 18px;
  font-weight: 750;
  text-align: left;
}

.modal-header .close,
#createMember .modal-header .close {
  position: static;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0 0 0 auto;
  padding: 0;
  border-radius: 10px;
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
  font-size: 24px;
}

.modal-header .close:hover { color: var(--color-text-heading); background: var(--color-surface-hover); }
.modal-body { padding: 24px; }
.modal-footer { gap: 10px; padding: 0 24px 24px; }

/* Chat shell */
.chat_header {
  border-color: var(--color-border);
  border-radius: 18px;
  box-shadow: var(--modern-shadow-card);
}

.chat_header_upper { min-height: 52px; padding-left: 18px; border-radius: 18px 18px 0 0; }
.chat_header_down { padding: 11px 18px; border-radius: 0 0 18px 18px; }
.chat_header h1 { font-size: 17px; font-weight: 750; }

.header_tabs .nav-tabs .nav-link,
.header_tabs_visible .nav-tabs .nav-link {
  min-height: 40px;
  margin: 5px 2px;
  padding: 8px 11px;
  border-radius: 10px !important;
  color: var(--color-text-muted);
  font-weight: 600;
}

.header_tabs .nav-tabs .nav-link::before,
.header_tabs_visible .nav-tabs .nav-link::before { display: none; }

.header_tabs .nav-tabs .nav-link.active,
.header_tabs_visible .nav-tabs .nav-link.active,
.header_tabs .nav-tabs .nav-link:hover,
.header_tabs_visible .nav-tabs .nav-link:hover {
  color: var(--color-accent);
  background: var(--modern-accent-soft);
}

.chat_messages_list,
.canvas_side_panel {
  border-color: var(--color-border);
  border-radius: 18px;
  background: var(--color-surface);
  box-shadow: var(--modern-shadow-card);
}

.chat_messages_list ul li {
  margin: 6px 10px 0;
  width: calc(100% - 20px);
  padding: 13px 20px 13px 12px;
  border-radius: 14px;
}

.chat_messages_list ul li:hover { background: var(--modern-row-hover); }
.chat_messages_list ul li > figure { width: 42px; height: 42px; flex-basis: 42px; }
.chat_messages_list ul li > figure img { width: 42px; height: 42px; border-width: 1px; }

.msg_wrap,
.message-card .message.msg_wrap {
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 4px 13px 13px 13px;
  background: var(--color-surface-alt);
  box-shadow: none;
}

.msg_wrap::before { display: none; }
.chat_messages_list ul li.pinned-message {
  border: 1px solid var(--color-warning);
  background: var(--color-highlight-bg);
}

.days_count { border-color: var(--color-border); }
.days_count span {
  min-width: auto;
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  box-shadow: var(--shadow-xs);
}

.sidebar_wrapper:not(.admin_nav_sidebar) .sidebar_header {
  padding: 14px 12px;
  border-color: var(--color-border);
  background: var(--modern-sidebar);
}

.sidebar_wrapper:not(.admin_nav_sidebar) .chat_list ul li button,
.sidebar_wrapper:not(.admin_nav_sidebar) .chat_list ul li > a,
.sidebar_wrapper:not(.admin_nav_sidebar) .group_wrapper button {
  min-height: 40px;
  margin: 2px 8px;
  width: calc(100% - 16px);
  padding: 7px 39px 7px 11px;
  border-radius: 10px;
}

/* The accordion (non-flat) row needs more right-side clearance than the blanket
   padding above gives it — style.css's own `.groupChatItem:not(.flatChatItem) >
   button{padding-right:90px}` reserves room for .chat_row_actions' unread badge +
   star + 3-dot menu (all absolutely positioned over that padding), but the shorthand
   `padding` above resets padding-right to 39px, which isn't enough — the badge and
   the chat name's ellipsis boundary end up overlapping (confirmed live: "55" landing
   on top of a letter in the name). Same ancestor chain plus the existing
   :not(.flatChatItem) qualifier so this only affects accordion rows, at higher
   specificity so it wins regardless of source order. */
.sidebar_wrapper:not(.admin_nav_sidebar) .chat_list ul li.groupChatItem:not(.flatChatItem) > button {
  padding-right: 90px;
}

/* Same clobbering, same fix, for the flat sidebar list — style.css reserves a
   different amount here (`.flatChatItem > button:not(.chat_row_star_btn)
   {padding-right:56px}`, since the flat row's star button floats independently via
   its own absolute position rather than sharing a .chat_row_actions cluster with a
   badge, so it needs less clearance than the accordion's 90px, but still more than
   this file's blanket 39px). */
.sidebar_wrapper:not(.admin_nav_sidebar) .chat_list ul li.groupChatItem.flatChatItem > button:not(.chat_row_star_btn) {
  padding-right: 56px;
}

/* The blanket "every button inside .chat_list ul li" selector two rules up also
   matches the star-toggle button nested inside .chat_row_actions (it's a descendant
   selector with no >, not scoped to the direct-child name button) and stretches it to
   width:calc(100% - 16px) — measured live at ~72px instead of an icon-sized ~20px,
   which is what was actually blowing out .chat_row_actions' total width and causing
   the overlap above (the padding-right fix alone wasn't sufficient). style.css already
   has a compensating `.groupChatItem .chat_row_star_btn{width:auto}` for this exact
   collision, but this file's blanket rule has enough specificity (3 classes) to beat
   that compensating rule's (2 classes) regardless of load order. Re-applied here at
   higher specificity so the existing compensating fix actually wins again. */
.sidebar_wrapper:not(.admin_nav_sidebar) .groupChatItem .chat_row_star_btn {
  min-height: auto;
  margin: 0;
  width: auto;
  padding: 4px;
}

.sidebar_wrapper:not(.admin_nav_sidebar) .chat_list ul li.active button:not(.chat_row_star_btn),
.sidebar_wrapper:not(.admin_nav_sidebar) .chat_list ul li.active > a {
  border-left: 0;
  color: var(--color-accent);
  background: var(--modern-accent-soft);
  box-shadow: inset 3px 0 0 var(--color-accent);
}

.category-group > .group_button {
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.count_li {
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-pill);
  background: var(--modern-accent-gradient);
  color: #fff;
  font-weight: 700;
}

.full_editor,
.ql-toolbar.ql-snow,
.ql-container.ql-snow { background: var(--color-surface); }

.full_editor { border: 1px solid var(--color-border); border-radius: 14px; }
.ql-toolbar.ql-snow { border-bottom: 1px solid var(--color-border) !important; }

/* Authentication */
.login_wrapper {
  position: relative;
  isolation: isolate;
  padding: 32px 18px;
  background: linear-gradient(145deg, #071b24 0%, #0b3440 52%, #0f6670 100%);
}

.login_wrapper::before,
.login_wrapper::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
}

.login_wrapper::before {
  width: 440px;
  height: 440px;
  top: -220px;
  right: -120px;
  background: rgba(45, 212, 191, .12);
}

.login_wrapper::after {
  width: 320px;
  height: 320px;
  bottom: -170px;
  left: -80px;
  background: rgba(56, 189, 248, .11);
}

.login_wrapper > h1 {
  margin-bottom: 22px;
  color: #fff;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -.05em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}

.login_inner_wrapper {
  max-width: 460px;
  padding: 38px 42px 40px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 22px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.login_inner_wrapper h2 {
  margin-bottom: 28px;
  color: #0f172a;
  font-size: 25px;
  font-weight: 780;
  letter-spacing: -.04em;
  text-transform: none;
}

.login_inner_wrapper .input_container input { background: #fff; color: #0f172a; }
.login_inner_wrapper .input_container label { color: #64748b; }
.login_inner_wrapper .checklist { color: #334155; }
.login_inner_wrapper .btn-primary { width: 100%; min-height: 46px; }
.login_inner_wrapper .forgot { display: block; margin: 16px 0 0; text-align: center; }

/* Pagination */
.pagination-wrapper nav > div > div:last-child span,
.pagination-wrapper nav > div > div:last-child a {
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--color-border) !important;
  border-radius: 9px !important;
  background: var(--color-surface) !important;
  color: var(--color-text) !important;
  box-shadow: none !important;
}

.pagination-wrapper nav > div > div:last-child span[aria-current="page"] span,
.pagination-wrapper nav > div > div:last-child a:hover {
  border-color: transparent !important;
  background: var(--modern-accent-gradient) !important;
  color: #fff !important;
}

@media (max-width: 1199px) {
  .dashboard_header > a { min-width: 220px; }
  .dashboard_header ul { gap: 7px; }
  .dashboard_header .header-bug-report-btn,
  .dashboard_header .header-create-chat-btn,
  .dashboard_header .header-back-to-chats-btn { padding-inline: 11px; }
  .chat_content_wrap { padding-inline: 18px; }
}

@media (max-width: 767px) {
  :root { --modern-header-height: 62px; }
  .dashboard_header { padding: 10px 12px; }
  .dashboard_header > a { min-width: 0; padding: 0 8px; font-size: 15px; }
  .dashboard_header > a::before { display: none; }
  .dashboard_header ul { width: auto; }
  .chat_content_wrap { padding: calc(var(--modern-header-height) + 16px) 12px 16px; }
  .user_ttile { min-height: 58px; padding: 12px 14px; border-radius: 14px; }
  .user_ttile h2 { font-size: 17px; }
  .counter_wrapper ul { margin: 0 -5px; }
  .counter_wrapper ul li { width: 50%; padding: 0 5px; }
  .counter_grid { min-height: 112px; padding: 17px; border-radius: 15px; }
  .counter_grid section span { font-size: 25px; }
  .table_responsive_outer { border-radius: 14px; }
  .modal-dialog { margin: 12px; }
  .modal-content { border-radius: 18px; }
  .login_inner_wrapper { padding: 30px 24px 32px; border-radius: 20px; }
  .login_wrapper > h1 { font-size: 32px; }
  .chat_messages_list ul li { margin-inline: 4px; width: calc(100% - 8px); padding-inline: 9px 12px; }
}

@media (max-width: 480px) {
  .counter_wrapper ul li { width: 100%; }
  .counter_grid { min-height: 96px; }
  .login_wrapper { justify-content: flex-start; padding-top: 9vh; }
  .login_inner_wrapper { padding-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
