.login-input {
  background: var(--xt-surface-elevated) !important;
  border: 1px solid var(--xt-border-strong) !important;
  color: var(--xt-text) !important;
}

.login-input::placeholder {
  color: var(--xt-text-muted) !important;
}

.login-input:focus {
  border-color: var(--xt-accent) !important;
  box-shadow: 0 0 0 0.125em rgba(45, 212, 191, 0.3) !important;
}

.form-button {
  width: 80px;
  height: 35px;
}

.signup-box {
  margin: auto;
  width: 100%;
  max-width: 420px;
}

.settings-box {
  margin: auto;
  width: 325px;
}

.signup-area {
  padding: 30px;
}

.settings-area {
  padding: 30px;
}

.ml-auto { margin-left: auto !important; }
.ml-3 { margin-left: 1rem !important; }
.mr-2 { margin-right: 0.5rem !important; }
.text-right { text-align: right !important; }

/* Theme tokens — high-contrast text on dark surfaces */
:root {
  --xt-bg: #0f172a;
  --xt-surface: rgba(15, 23, 42, 0.82);
  --xt-surface-elevated: rgba(30, 41, 59, 0.88);
  --xt-surface-hover: rgba(51, 65, 85, 0.75);
  --xt-border: rgba(148, 163, 184, 0.22);
  --xt-border-strong: rgba(148, 163, 184, 0.38);
  --xt-text: #f8fafc;
  --xt-text-secondary: #e2e8f0;
  --xt-text-muted: #cbd5e1;
  --xt-accent: #2dd4bf;
  --xt-accent-bright: #5eead4;
  --xt-link: #5eead4;
  --xt-link-hover: #99f6e4;
  --xt-profit: #86efac;
  --xt-loss: #fca5a5;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
  color: var(--xt-text) !important;
}

#page-content-wrapper .container,
#page-content-wrapper .container-fluid {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  box-sizing: border-box;
}

#page-content-wrapper .columns.is-centered > .column {
  flex: 1 1 100%;
  max-width: none;
}

#page-content-wrapper .box,
#page-content-wrapper .table-container,
#page-content-wrapper .summary-card,
#page-content-wrapper .modal-card {
  border-radius: 12px;
}

#page-content-wrapper .table-container > .table {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

#wrapper {
  display: flex;
  width: 100%;
  flex: 1 1 auto;
  min-height: 100vh;
  height: 100vh;
  align-items: stretch;
  overflow: hidden;
}

#app-main {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#sidebar-wrapper {
  width: 70px;
  min-width: 70px;
  flex-shrink: 0;
  align-self: stretch;
  height: 100%;
  min-height: 100vh;
  background: linear-gradient(180deg, #1e293b 0%, #172033 100%) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-right: 1px solid rgba(45, 212, 191, 0.25) !important;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.45) !important;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
  transition: width 0.3s ease, min-width 0.3s ease;
}

/* Expanded sidebar state */
#sidebar-wrapper.expanded {
  width: 250px;
  min-width: 250px;
  overflow-x: visible;
  overflow-y: auto;
}

#sidebar-wrapper.expanded .sidebar-logo-full {
  display: block !important;
}

#sidebar-wrapper.expanded .sidebar-logo-icon {
  display: none !important;
}

#sidebar-wrapper.expanded .sidebar-group-title {
  display: block;
  padding: 0.75rem 1.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--xt-text-muted);
}

#sidebar-wrapper.expanded .list-group-item {
  width: 250px !important;
  justify-content: flex-start;
  padding: 1rem 1.5rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  overflow: visible;
}

#sidebar-wrapper.expanded .list-group-item i {
  margin: 0 !important;
  margin-right: 15px !important;
}

#sidebar-wrapper.expanded .list-group-item span {
  position: static;
  opacity: 1;
  visibility: visible;
  background: transparent;
  backdrop-filter: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  display: inline;
  border: none;
  min-width: auto;
}

#sidebar-wrapper.expanded .list-group-item span i {
  display: none !important;
}

#sidebar-wrapper .sidebar-heading {
  padding: 1rem 0;
  font-size: 1.25rem;
  font-weight: bold;
  background: rgba(2, 6, 23, 0.55) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  color: white;
  text-align: center;
  border-bottom: 1px solid rgba(45, 212, 191, 0.2) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  flex-shrink: 0;
  width: 70px;
  overflow: hidden;
  transition: width 0.3s ease;
}

#sidebar-wrapper.expanded .sidebar-heading {
  width: 250px;
}

#sidebar-wrapper .sidebar-heading img {
  max-height: 35px;
  transition: max-height 0.3s ease;
}

/* Always show favicon icon, never full logo */
.sidebar-logo-full {
  display: none !important;
}

.sidebar-logo-icon {
  display: block !important;
}

#page-content-wrapper {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  background-color: transparent;
  color: var(--xt-text);
}

#app-main > .footer {
  flex-shrink: 0;
  margin-top: 0 !important;
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

#wrapper.toggled #sidebar-wrapper {
  margin-left: -70px;
}

@media (max-width: 768px) {
  #sidebar-wrapper {
    margin-left: 0;
    position: relative;
    height: 100%;
    min-height: 100vh;
  }
  #wrapper.toggled #sidebar-wrapper {
    margin-left: 0;
  }
}

.sub-header {
  background: var(--xt-surface-elevated) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid var(--xt-border-strong) !important;
  padding: 0.75rem 1.25rem !important;
  min-height: 56px;
  max-height: 56px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

/* Hide group titles in collapsed sidebar */
#sidebar-wrapper .sidebar-group-title {
  display: none;
}

#sidebar-wrapper .list-group {
  width: 70px;
  flex: 1 1 auto;
  min-height: 0;
  display: flex !important;
  flex-direction: column !important;
  padding: 0;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

#sidebar-wrapper.expanded .list-group {
  width: 100%;
}

.list-group-item {
  display: flex !important;
  align-items: center !important;
  padding: 1rem 0 !important;
  text-decoration: none !important;
  color: var(--xt-text) !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  width: 70px !important;
  box-sizing: border-box !important;
  transition: background 0.2s ease, color 0.2s ease;
  line-height: 1.5 !important;
  justify-content: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.list-group-item:hover {
  background: var(--xt-surface-hover) !important;
  color: var(--xt-text) !important;
}

.list-group-item i {
  margin: 0 !important;
  width: 24px !important;
  text-align: center !important;
  font-size: 1.1rem !important;
  display: inline-block !important;
  flex-shrink: 0;
  z-index: 2;
}

.list-group-item span {
  position: absolute;
  left: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20, 184, 166, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 1001;
  min-width: 180px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
}

.list-group-item:hover span {
  opacity: 1;
  visibility: visible;
}

.list-group-item.active {
  background: rgba(20, 184, 166, 0.3) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(20, 184, 166, 0.5) !important;
  color: #ccfbf1 !important;
  font-weight: 600;
  border-left: 3px solid var(--xt-accent-bright) !important;
}

.list-group-item.active i {
  color: #ccfbf1 !important;
}

#wrapper.toggled #sidebar-wrapper {
  margin-left: -70px;
}

@media (max-width: 768px) {
  #sidebar-wrapper {
    margin-left: 0;
    position: relative;
    height: 100%;
    min-height: 100vh;
  }
  #wrapper.toggled #sidebar-wrapper {
    margin-left: 0;
  }
}

/* Glassmorphism Box Styles */
.box {
  background: var(--xt-surface-elevated) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid var(--xt-border-strong) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25) !important;
  border-radius: 16px !important;
}

.box .title {
  color: var(--xt-text) !important;
}

.box .subtitle {
  color: var(--xt-text-secondary) !important;
}

/* Glassmorphism Table Styles */
.table {
  background: var(--xt-surface) !important;
  backdrop-filter: blur(8px) !important;
  color: var(--xt-text) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

.table th {
  background: var(--xt-surface-elevated) !important;
  color: var(--xt-text) !important;
  border-bottom: 1px solid var(--xt-border-strong) !important;
}

.table td {
  border-bottom: 1px solid var(--xt-border) !important;
  color: var(--xt-text-secondary) !important;
}

.table tr:hover {
  background: var(--xt-surface-hover) !important;
}

/* Disable alternating row colors - all rows same background */
.table tr,
.table tbody tr:nth-child(even),
.table tbody tr:nth-child(odd),
.table.is-striped tbody tr:nth-child(even),
.table.is-striped tbody tr:nth-child(odd) {
  background: transparent !important;
}

.table tr:hover,
.table tbody tr:nth-child(even):hover,
.table tbody tr:nth-child(odd):hover {
  background: var(--xt-surface-hover) !important;
}

/* Glassmorphism Navbar */
.navbar {
  background: var(--xt-surface) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid var(--xt-border) !important;
}

.navbar-item {
  color: var(--xt-text) !important;
}

.navbar-item:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

/* table {
  color: red;
} */

/* Teal/Dark Blue Theme Overrides - Matching XergeTrade Logo */
.button.is-primary, .button.is-primary:hover { background-color: #14b8a6 !important; border-color: #14b8a6 !important; }
.button.is-primary.is-outlined { color: #14b8a6 !important; border-color: #14b8a6 !important; background: transparent !important; }
.button.is-primary.is-outlined:hover { color: white !important; background-color: #14b8a6 !important; }

/* Success buttons - map to teal */
.button.is-success, .button.is-success:hover { background-color: #14b8a6 !important; border-color: #14b8a6 !important; color: white !important; }
.button.is-success.is-outlined { color: #14b8a6 !important; border-color: #14b8a6 !important; background: transparent !important; }
.button.is-success.is-outlined:hover { color: white !important; background-color: #14b8a6 !important; }
.button.is-success.is-light { background-color: rgba(20, 184, 166, 0.25) !important; color: #99f6e4 !important; border-color: transparent !important; }
.button.is-success.is-light:hover { background-color: rgba(20, 184, 166, 0.35) !important; color: #ccfbf1 !important; }

.tabs.is-boxed li.is-active a { color: #14b8a6 !important; border-bottom-color: #14b8a6 !important; }
.select.is-primary select { border-color: #14b8a6 !important; }
.input.is-primary { border-color: #14b8a6 !important; }
.has-text-info { color: #14b8a6 !important; }

/* Success tags - map to teal */
.tag.is-success { background-color: #14b8a6 !important; color: white !important; }

a { color: var(--xt-link); }
a:hover { color: var(--xt-link-hover); }
.navbar { border-bottom: none !important; }

#page-content-wrapper .bot-list-table th {
  text-align: center;
  padding-left: 1rem;
  padding-right: 1rem;
}

#page-content-wrapper .bot-form-box {
  padding: 1rem;
}

#page-content-wrapper .bot-form-box .title {
  margin-bottom: 0.35rem !important;
}

#page-content-wrapper .bot-form-box .subtitle {
  margin-bottom: 0.5rem !important;
}

#page-content-wrapper .bot-form-box hr {
  margin: 0.75rem 0;
}

#page-content-wrapper .bot-form-box .columns {
  margin-bottom: 0.25rem;
}

#page-content-wrapper .bot-form-box .column {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

#page-content-wrapper .bot-form-box .field {
  margin-bottom: 0.55rem;
}

.status-badge-active {
    background: rgba(26, 122, 58, 0.7) !important;
    backdrop-filter: blur(4px) !important;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 290486px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 2px 8px rgba(26, 122, 58, 0.3);
}

.status-badge-inactive {
    background: rgba(150, 150, 150, 0.6) !important;
    backdrop-filter: blur(4px) !important;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 290486px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.status-badge-warning {
    background: rgba(255, 221, 87, 0.7) !important;
    backdrop-filter: blur(4px) !important;
    color: rgba(0, 0, 0, 0.8);
    padding: 0.25rem 0.75rem;
    border-radius: 290486px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

#page-content-wrapper .strategy-desc-col {
  width: 32%;
}

#page-content-wrapper td.strategy-desc-col {
  white-space: normal;
  word-break: break-word;
}

#page-content-wrapper .strategy-list-table th:last-child,
#page-content-wrapper .strategy-list-table td:last-child {
  min-width: 11rem;
  white-space: nowrap;
  vertical-align: middle;
}

#page-content-wrapper .strategy-actions.buttons {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0;
}

#page-content-wrapper .strategy-actions.buttons .button {
  margin-bottom: 0 !important;
}

@media (max-width: 900px) {
  #page-content-wrapper .strategy-actions.buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  #page-content-wrapper .strategy-actions.buttons .button {
    width: 100%;
    justify-content: center;
  }
}

#page-content-wrapper .pagination {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

#page-content-wrapper .pagination-list {
  flex: 0 1 auto;
  width: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 0.5rem;
}

#page-content-wrapper .pagination + p.text-right.mt-3,
#page-content-wrapper .pagination-summary {
  width: 100%;
  margin-top: 0.75rem !important;
  text-align: center !important;
  color: var(--xt-text-muted);
}

#page-content-wrapper .pagination-previous,
#page-content-wrapper .pagination-next,
#page-content-wrapper .pagination-link {
  border-color: var(--xt-border-strong);
  color: var(--xt-link);
  border-radius: 8px;
  transition: all 0.2s ease;
}

#page-content-wrapper .pagination-link:hover,
#page-content-wrapper .pagination-previous:hover,
#page-content-wrapper .pagination-next:hover {
  border-color: #14b8a6;
  background-color: rgba(20, 184, 166, 0.2);
  color: var(--xt-link-hover);
}

#page-content-wrapper .pagination-link.is-current {
  background-color: #14b8a6;
  border-color: #14b8a6;
  color: #fff;
}

#page-content-wrapper .pagination-previous[disabled],
#page-content-wrapper .pagination-next[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  #page-content-wrapper .pagination {
    flex-wrap: wrap;
  }

  #page-content-wrapper .pagination-list {
    justify-content: flex-start;
  }
}

.summary-card {
    background: var(--xt-surface-elevated) !important;
    backdrop-filter: blur(8px) !important;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid var(--xt-border-strong) !important;
}

.summary-card-title {
    color: var(--xt-text-muted) !important;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.summary-card-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--xt-text) !important;
}

.text-profit { color: var(--xt-profit) !important; }
.text-loss { color: var(--xt-loss) !important; }

.ui-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  float: left;
  min-width: 160px;
  padding: 5px 0;
  margin: 2px 0 0;
  list-style: none;
  font-size: 14px;
  text-align: left;
  background-color: #ffffff;
  border: 1px solid #cccccc;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  background-clip: padding-box;
}

.ui-autocomplete > li > div {
  display: block;
  padding: 3px 20px;
  clear: both;
  font-weight: normal;
  line-height: 1.42857143;
  color: #333333;
  white-space: nowrap;
}

.ui-state-hover,
.ui-state-active,
.ui-state-focus {
  text-decoration: none;
  color: #262626;
  background-color: #f5f5f5;
  cursor: pointer;
}

.ui-helper-hidden-accessible {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.notification{
  position: fixed;
  top: 0em;
  z-index: 100;
  width: 100%;
  text-align: center;
  display: none;
}

/* Loading Overlay */
.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.loading-overlay.active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.loading-text {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 0.5rem;
  text-align: center;
  max-width: 300px;
}

.loading-spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

.loading-text {
  color: var(--xt-text) !important;
}

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

/* Center page content */
.container-fluid {
  max-width: none;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ── Toast Notification System ───────────────────────────────── */
#toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 420px;
  width: 100%;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  font-size: 0.875rem;
  line-height: 1.45;
  animation: toastSlideIn 0.3s ease-out;
  position: relative;
  overflow: hidden;
}

.toast.toast-removing {
  animation: toastSlideOut 0.25s ease-in forwards;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastSlideOut {
  from { opacity: 1; transform: translateX(0); max-height: 120px; margin-bottom: 0; }
  to   { opacity: 0; transform: translateX(60px); max-height: 0; margin-bottom: -0.5rem; padding: 0; }
}

.toast-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  margin-top: 1px;
}

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-weight: 700;
  margin-bottom: 2px;
}

.toast-msg {
  opacity: 0.9;
}

.toast-hint {
  margin-top: 4px;
  font-size: 0.8rem;
  opacity: 0.75;
  font-style: italic;
}

.toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.6;
  padding: 0 2px;
  line-height: 1;
  color: inherit;
}

.toast-close:hover { opacity: 1; }

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 8px 8px;
  animation: toastCountdown linear forwards;
}

@keyframes toastCountdown {
  from { width: 100%; }
  to   { width: 0%; }
}

/* Toast types */
.toast-success {
  background: rgba(15, 23, 42, 0.95);
  border-left: 4px solid #14b8a6;
  color: #ccfbf1;
}
.toast-success .toast-icon { color: #2dd4bf; }
.toast-success .toast-progress { background: #14b8a6; }

.toast-error {
  background: rgba(69, 10, 10, 0.95);
  border-left: 4px solid #ef4444;
  color: #fecaca;
}
.toast-error .toast-icon { color: #ef4444; }
.toast-error .toast-progress { background: #ef4444; }

.toast-warning {
  background: rgba(69, 52, 10, 0.95);
  border-left: 4px solid #f59e0b;
  color: #fef3c7;
}
.toast-warning .toast-icon { color: #f59e0b; }
.toast-warning .toast-progress { background: #f59e0b; }

.toast-info {
  background: rgba(15, 35, 69, 0.95);
  border-left: 4px solid #3b82f6;
  color: #dbeafe;
}
.toast-info .toast-icon { color: #3b82f6; }
.toast-info .toast-progress { background: #3b82f6; }

/* Glassmorphism Form Elements */
.input, .select select, .textarea {
  background: var(--xt-surface) !important;
  backdrop-filter: blur(4px) !important;
  border: 1px solid var(--xt-border-strong) !important;
  color: var(--xt-text) !important;
  border-radius: 8px !important;
}

.input::placeholder, .textarea::placeholder {
  color: var(--xt-text-muted) !important;
}

.input:focus, .select select:focus, .textarea:focus {
  background: var(--xt-surface-elevated) !important;
  border-color: var(--xt-accent) !important;
  box-shadow: 0 0 0 0.125em rgba(45, 212, 191, 0.25) !important;
}

.label {
  color: var(--xt-text-secondary) !important;
}

/* Glassmorphism Tabs */
.tabs.is-boxed ul {
  border-bottom-color: var(--xt-border) !important;
}

.tabs.is-boxed a {
  background: var(--xt-surface) !important;
  border-color: var(--xt-border) !important;
  color: var(--xt-text-secondary) !important;
  border-radius: 8px 8px 0 0 !important;
}

.tabs.is-boxed a:hover {
  background: var(--xt-surface-hover) !important;
  color: var(--xt-text) !important;
}

.tabs.is-boxed li.is-active a {
  background: var(--xt-surface-elevated) !important;
  border-color: var(--xt-border-strong) !important;
  color: var(--xt-text) !important;
  font-weight: 600;
}

/* Glassmorphism Tags */
.tag {
  background: var(--xt-surface-elevated) !important;
  backdrop-filter: blur(4px) !important;
  border: 1px solid var(--xt-border) !important;
  color: var(--xt-text) !important;
}

.tag.is-light {
  background: var(--xt-surface-hover) !important;
  color: var(--xt-text) !important;
}

/* Mode / status tags — readable in dark and light themes */
.tag.is-success.is-light,
.tag.is-success.is-light.is-small {
  background: rgba(20, 184, 166, 0.3) !important;
  color: #5eead4 !important;
  border: 1px solid rgba(20, 184, 166, 0.45) !important;
  font-weight: 600;
}

.tag.is-info.is-light,
.tag.is-info.is-light.is-small {
  background: rgba(59, 130, 246, 0.3) !important;
  color: #93c5fd !important;
  border: 1px solid rgba(59, 130, 246, 0.45) !important;
  font-weight: 600;
}

.tag.is-warning.is-light,
.tag.is-warning.is-light.is-small {
  background: rgba(245, 158, 11, 0.3) !important;
  color: #fcd34d !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
  font-weight: 600;
}

.tag.is-danger.is-light,
.tag.is-danger.is-light.is-small {
  background: rgba(239, 68, 68, 0.3) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(239, 68, 68, 0.45) !important;
  font-weight: 600;
}

@media (prefers-color-scheme: light) {
  .tag.is-success.is-light,
  .tag.is-success.is-light.is-small {
    background: rgba(13, 148, 136, 0.15) !important;
    color: #0f766e !important;
    border-color: rgba(13, 148, 136, 0.35) !important;
  }

  .tag.is-info.is-light,
  .tag.is-info.is-light.is-small {
    background: rgba(37, 99, 235, 0.12) !important;
    color: #1d4ed8 !important;
    border-color: rgba(37, 99, 235, 0.35) !important;
  }

  .tag.is-warning.is-light,
  .tag.is-warning.is-light.is-small {
    background: rgba(217, 119, 6, 0.12) !important;
    color: #b45309 !important;
    border-color: rgba(217, 119, 6, 0.35) !important;
  }

  .tag.is-danger.is-light,
  .tag.is-danger.is-light.is-small {
    background: rgba(220, 38, 38, 0.12) !important;
    color: #b91c1c !important;
    border-color: rgba(220, 38, 38, 0.35) !important;
  }
}

/* Session tables: allow horizontal scroll so Mode column isn't clipped */
#page-content-wrapper .table-container {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

#page-content-wrapper .bot-list-table th,
#page-content-wrapper .bot-list-table td {
  white-space: nowrap;
}

#page-content-wrapper .bot-list-table th:nth-child(6),
#page-content-wrapper .bot-list-table td:nth-child(6) {
  min-width: 4.5rem;
  text-align: center;
}

/* Glassmorphism Buttons */
.button {
  backdrop-filter: blur(4px) !important;
  border-radius: 8px !important;
}

.button.is-primary {
  background: rgba(26, 122, 58, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 4px 15px rgba(26, 122, 58, 0.4) !important;
}

.button.is-light {
  background: var(--xt-surface-elevated) !important;
  border: 1px solid var(--xt-border-strong) !important;
  color: var(--xt-text) !important;
}

.button.is-danger.is-outlined {
  border-color: rgba(220, 53, 69, 0.6) !important;
  color: #fca5a5 !important;
}

.button.is-danger.is-outlined:hover {
  background: rgba(220, 53, 69, 0.8) !important;
  color: white !important;
}

/* Glassmorphism Modal */
.modal.is-active {
  z-index: 10050;
}

.modal-card {
  background: var(--xt-surface-elevated) !important;
  backdrop-filter: blur(16px) !important;
  border: 1px solid var(--xt-border-strong) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4) !important;
  border-radius: 16px !important;
}

.modal-card-head, .modal-card-foot {
  background: var(--xt-surface) !important;
  border-color: var(--xt-border) !important;
}

.modal-card-title {
  color: var(--xt-text) !important;
}

.modal-card-body {
  background: transparent !important;
  color: var(--xt-text-secondary) !important;
}

.modal-background {
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(4px) !important;
}

/* Glassmorphism Pagination */
.pagination-link, .pagination-previous, .pagination-next {
  background: var(--xt-surface) !important;
  backdrop-filter: blur(4px) !important;
  border-color: var(--xt-border) !important;
  color: var(--xt-text) !important;
}

.pagination-link:hover, .pagination-previous:hover, .pagination-next:hover {
  background: var(--xt-surface-hover) !important;
  border-color: var(--xt-border-strong) !important;
  color: var(--xt-text) !important;
}

.pagination-link.is-current {
  background: rgba(20, 184, 166, 0.85) !important;
  border-color: var(--xt-accent) !important;
  color: #ffffff !important;
}

/* Toast Notifications - Glassmorphism */
.toast {
  background: var(--xt-surface-elevated) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid var(--xt-border-strong) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}

.toast-success {
  background: rgba(15, 23, 42, 0.92) !important;
  border-left: 4px solid #14b8a6 !important;
  color: #ccfbf1 !important;
}

.toast-error {
  background: rgba(69, 10, 10, 0.92) !important;
  border-left: 4px solid #ef4444 !important;
  color: #fecaca !important;
}

.toast-warning {
  background: rgba(69, 52, 10, 0.92) !important;
  border-left: 4px solid #f59e0b !important;
  color: #fef3c7 !important;
}

.toast-info {
  background: rgba(15, 35, 69, 0.92) !important;
  border-left: 4px solid #3b82f6 !important;
  color: #dbeafe !important;
}

/* Login page visibility */
.login-page {
  color: #f8fafc !important;
  display: block !important;
  overflow-y: auto !important;
  height: auto !important;
}

.login-page .login-nav {
  background: rgba(15, 23, 42, 0.95) !important;
  border-bottom: 1px solid var(--xt-border-strong) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

/* Bulma gives the navbar dropdown/menu a white bg on touch widths — keep it dark */
.login-page .login-nav .navbar-menu,
.login-page .login-nav .navbar-menu.is-active {
  background: rgba(15, 23, 42, 0.98) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}

.login-page .login-nav .navbar-item,
.login-page .login-nav .navbar-item:hover {
  background: transparent !important;
}

.login-page .login-nav .navbar-item img {
  filter: brightness(1.05);
}

.login-page .navbar-burger span {
  background-color: #f8fafc !important;
}

.login-page .login-nav .field.has-addons {
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.login-page .login-nav .login-input {
  width: 11rem;
  height: 2.25rem;
  font-size: 0.95rem;
}

.login-page .login-nav .button.is-primary {
  height: 2.25rem;
  font-weight: 600;
  color: #ffffff !important;
}

.login-page .login-nav .icon,
.login-page .login-nav .icon i {
  color: var(--xt-text-muted) !important;
}

.login-page .login-hero .title {
  color: #ffffff !important;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
  font-weight: 700;
}

.login-page .login-hero .subtitle {
  color: #e2e8f0 !important;
}

.login-page .login-hero .content {
  color: #e2e8f0 !important;
}

.login-page .login-hero .content li {
  color: #e2e8f0 !important;
  margin-bottom: 0.65rem;
  padding-left: 0.25rem;
}

.login-page .login-hero .content li::marker {
  color: var(--xt-accent-bright);
}

.login-page #signup-box,
.login-page .signup-box {
  background: rgba(15, 23, 42, 0.94) !important;
  backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45) !important;
  border-radius: 20px !important;
  max-width: 420px;
  margin-left: auto;
}

.login-page #signup-box .title,
.login-page .signup-box .title {
  color: #ffffff !important;
  margin-bottom: 1.25rem !important;
}

.login-page #signup-box .label,
.login-page .signup-box .label {
  color: #e2e8f0 !important;
  font-weight: 600;
}

.login-page #signup-box .input,
.login-page .signup-box .input {
  background: rgba(30, 41, 59, 0.95) !important;
  border: 1px solid rgba(148, 163, 184, 0.4) !important;
  color: #f8fafc !important;
  min-height: 2.75rem;
}

.login-page #signup-box .input::placeholder,
.login-page .signup-box .input::placeholder {
  color: #94a3b8 !important;
}

.login-page #signup-box .input:focus,
.login-page .signup-box .input:focus {
  border-color: var(--xt-accent) !important;
  box-shadow: 0 0 0 0.15em rgba(45, 212, 191, 0.35) !important;
}

.login-page #signup-box .icon,
.login-page #signup-box .icon i,
.login-page .signup-box .icon,
.login-page .signup-box .icon i {
  color: #94a3b8 !important;
}

.login-page #signup-box .button.is-primary,
.login-page .signup-box .button.is-primary {
  min-height: 2.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff !important;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .login-page .login-nav .field.has-addons {
    width: 100%;
  }

  .login-page .login-nav .login-input {
    width: 100%;
  }

  .login-page .login-hero .title {
    font-size: 2.25rem !important;
  }

  .login-page #signup-box,
  .login-page .signup-box {
    margin: 1.5rem auto 0;
  }
}

/* Loading Overlay */
.loading-overlay {
  background: rgba(0, 0, 0, 0.7) !important;
  backdrop-filter: blur(8px) !important;
}

/* Select dropdown options */
.select option {
  background: rgba(50, 50, 70, 0.95) !important;
  color: white !important;
}

/* Content text colors */
.content {
  color: var(--xt-text-secondary) !important;
}

.content h1, .content h2, .content h3, .content h4, .content h5, .content h6 {
  color: var(--xt-text) !important;
}

.content ul, .content li {
  color: var(--xt-text-secondary) !important;
}

.content p {
  color: var(--xt-text-secondary) !important;
}

/* Title colors — force light text on the dark background everywhere */
.title,
h1.title, h2.title, h3.title, h4.title, h5.title, h6.title,
.sub-header .title,
.box .title,
.modal-card-title,
.title strong,
.title a {
  color: #f1f5f9 !important;
}

.subtitle,
.subtitle strong {
  color: var(--xt-text-secondary) !important;
}

.has-text-primary {
  color: var(--xt-accent-bright) !important;
}

.has-text-grey, .has-text-grey-light {
  color: var(--xt-text-muted) !important;
}

/* Hero section for login */
.hero.is-primary.is-bold {
  background: transparent !important;
}

/* Table container */
.table-container {
  background: transparent !important;
}

/* Notification */
.notification {
  background: rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(8px) !important;
  color: var(--xt-text) !important;
}

.notification.is-info {
  background: rgba(25, 118, 210, 0.3) !important;
}

/* Feedback notification */
#feedback {
  background: var(--xt-surface-elevated) !important;
  backdrop-filter: blur(8px) !important;
  border-bottom: 1px solid var(--xt-border) !important;
  color: var(--xt-text) !important;
}

/* Bulma utility overrides for dark theme */
.tabs.is-toggle a,
.tabs.is-small a {
  color: var(--xt-text-secondary) !important;
}

.tabs.is-toggle li.is-active a,
.tabs.is-small li.is-active a {
  background-color: #14b8a6 !important;
  border-color: #14b8a6 !important;
  color: #ffffff !important;
}

.tabs.is-toggle a:hover,
.tabs.is-small a:hover {
  background-color: var(--xt-surface-hover) !important;
  color: var(--xt-text) !important;
}

hr {
  background-color: var(--xt-border) !important;
}

code, pre {
  background: var(--xt-surface) !important;
  color: var(--xt-text) !important;
}

.footer {
  background: var(--xt-surface) !important;
  backdrop-filter: blur(8px) !important;
  border-top: 1px solid var(--xt-border) !important;
  color: var(--xt-text-secondary) !important;
}

.is-size-7, small {
  color: var(--xt-text-muted) !important;
}

.navbar-item:hover {
  background: var(--xt-surface-hover) !important;
  color: var(--xt-text) !important;
}

.select select,
.input,
.textarea {
  color-scheme: light dark;
}

/* ============================================================================
   DESIGN SYSTEM v2  —  styling-only overhaul
   Methods: Glassmorphism · Neumorphism · Parallax · Spring Physics · Adaptive
   (Appended last so it layers cleanly over the base theme. No markup/behavior
    changes.)
   ========================================================================== */

:root {
  /* Motion */
  --xt-spring: cubic-bezier(0.34, 1.56, 0.64, 1);   /* overshoot */
  --xt-ease:   cubic-bezier(0.4, 0, 0.2, 1);
  --xt-dur:    0.28s;

  /* Glass */
  --xt-glass-bg:        rgba(30, 41, 59, 0.55);
  --xt-glass-strong:    rgba(30, 41, 59, 0.68);
  --xt-glass-border:    rgba(148, 163, 184, 0.28);
  --xt-glass-highlight: rgba(255, 255, 255, 0.08);
  --xt-glass-shadow:    0 12px 40px rgba(0, 0, 0, 0.42);
  --xt-glass-blur:      18px;

  /* Neumorphism (dark) */
  --xt-neu-bg:    #1b2536;
  --xt-neu-light: rgba(255, 255, 255, 0.06);
  --xt-neu-dark:  rgba(0, 0, 0, 0.55);

  /* Radius */
  --xt-radius:    16px;
  --xt-radius-sm: 10px;
}

/* ---- Adaptive Theme: light scheme token overrides ---------------------- */
@media (prefers-color-scheme: light) {
  :root {
    --xt-bg:               #eef2f7;
    --xt-surface:          rgba(255, 255, 255, 0.72);
    --xt-surface-elevated: rgba(255, 255, 255, 0.9);
    --xt-surface-hover:    rgba(15, 23, 42, 0.06);
    --xt-border:           rgba(15, 23, 42, 0.12);
    --xt-border-strong:    rgba(15, 23, 42, 0.2);
    --xt-text:             #0f172a;
    --xt-text-secondary:   #334155;
    --xt-text-muted:       #64748b;
    --xt-accent:           #0d9488;
    --xt-accent-bright:    #0f766e;
    --xt-link:             #0d9488;
    --xt-link-hover:       #0f766e;
    --xt-profit:           #15803d;
    --xt-loss:             #b91c1c;

    --xt-glass-bg:        rgba(255, 255, 255, 0.6);
    --xt-glass-strong:    rgba(255, 255, 255, 0.78);
    --xt-glass-border:    rgba(15, 23, 42, 0.14);
    --xt-glass-highlight: rgba(255, 255, 255, 0.7);
    --xt-glass-shadow:    0 12px 40px rgba(15, 23, 42, 0.16);

    --xt-neu-bg:    #e6ebf2;
    --xt-neu-light: rgba(255, 255, 255, 0.9);
    --xt-neu-dark:  rgba(15, 23, 42, 0.15);
  }

  .select select, .input, .textarea { color-scheme: light; }

  /* Keep title text readable on light surfaces */
  .title, h1.title, h2.title, h3.title, h4.title, h5.title, h6.title,
  .sub-header .title, .box .title, .modal-card-title,
  .title strong, .title a {
    color: #0f172a !important;
  }
}

/* ---- Glassmorphism: unified surface treatment ------------------------- */
.box,
.modal-card,
.summary-card,
.navbar,
.sub-header,
.footer,
#feedback {
  background: var(--xt-glass-bg) !important;
  -webkit-backdrop-filter: blur(var(--xt-glass-blur)) saturate(160%) !important;
  backdrop-filter: blur(var(--xt-glass-blur)) saturate(160%) !important;
  border: 1px solid var(--xt-glass-border) !important;
  box-shadow: var(--xt-glass-shadow),
              inset 0 1px 0 var(--xt-glass-highlight) !important;
}

.box,
.modal-card,
.summary-card {
  border-radius: var(--xt-radius) !important;
  transition: transform var(--xt-dur) var(--xt-spring),
              box-shadow var(--xt-dur) var(--xt-ease);
}

/* Spring-physics: card lift on hover */
.box:hover,
.summary-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5),
              inset 0 1px 0 var(--xt-glass-highlight) !important;
}

.modal-card {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55),
              inset 0 1px 0 var(--xt-glass-highlight) !important;
}

/* ---- Neumorphism: buttons & toggles ----------------------------------- */
.button {
  border-radius: var(--xt-radius-sm) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  backdrop-filter: blur(4px) !important;
  transition: transform 0.18s var(--xt-spring),
              box-shadow 0.18s var(--xt-ease),
              background-color 0.18s var(--xt-ease),
              color 0.18s var(--xt-ease) !important;
}

/* Spring-physics: press feedback for all buttons */
.button:hover { transform: translateY(-1px); }
.button:active { transform: scale(0.95); }

/* Secondary / neutral buttons get the soft neumorphic look */
.button.is-light,
.button.is-primary.is-outlined,
.button.is-danger.is-outlined {
  background: var(--xt-neu-bg) !important;
  border: none !important;
  color: var(--xt-text) !important;
  box-shadow: 5px 5px 12px var(--xt-neu-dark),
              -5px -5px 12px var(--xt-neu-light) !important;
}

.button.is-light:hover,
.button.is-primary.is-outlined:hover {
  box-shadow: 6px 6px 16px var(--xt-neu-dark),
              -6px -6px 16px var(--xt-neu-light) !important;
}

.button.is-light:active,
.button.is-primary.is-outlined:active,
.button.is-danger.is-outlined:active {
  box-shadow: inset 4px 4px 10px var(--xt-neu-dark),
              inset -4px -4px 10px var(--xt-neu-light) !important;
  transform: scale(0.97);
}

/* Logout button: neumorphic base, danger tint on hover/press */
.button.is-danger.is-outlined {
  color: var(--xt-loss) !important;
}
.button.is-danger.is-outlined:hover {
  background: rgba(220, 53, 69, 0.85) !important;
  color: #fff !important;
  box-shadow: inset 3px 3px 8px rgba(0,0,0,0.4),
              inset -3px -3px 8px rgba(255,255,255,0.08) !important;
}

/* Primary buttons: cohesive teal glass (fixes green/teal mismatch) */
.button.is-primary,
.button.is-primary:hover {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(20, 184, 166, 0.45),
              inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

/* Neumorphic checkboxes (ON/OFF toggles) */
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--xt-accent);
  width: 1.05em;
  height: 1.05em;
  border-radius: 6px;
  box-shadow: inset 2px 2px 4px var(--xt-neu-dark),
              inset -2px -2px 4px var(--xt-neu-light);
  cursor: pointer;
}

.checkbox:hover { color: var(--xt-text) !important; }

/* ---- Spring-physics: list items, tags, tabs --------------------------- */
.list-group-item {
  transition: background var(--xt-dur) var(--xt-ease),
              color var(--xt-dur) var(--xt-ease),
              transform 0.18s var(--xt-spring) !important;
}
.list-group-item:active { transform: scale(0.97); }

.tag {
  transition: transform 0.18s var(--xt-spring) !important;
}
.tag:hover { transform: translateY(-1px); }

/* Sidebar must never be pushed off-screen (fixes left cut-off, incl. mobile).
   The old `.toggled` hide logic sets negative left margins / absolute position,
   but the toggle only ever adds `.expanded`, so those margins just clipped the
   panel. Keep it in normal flow at every width. */
#sidebar-wrapper,
#sidebar-wrapper.expanded,
#wrapper.toggled #sidebar-wrapper {
  margin-left: 0 !important;
}
@media (max-width: 768px) {
  #sidebar-wrapper,
  #sidebar-wrapper.expanded {
    position: relative !important;
    margin-left: 0 !important;
    height: 100% !important;
    min-height: 100vh !important;
    align-self: stretch !important;
  }
}

/* Sidebar stays dark in both themes — force readable light text */
#sidebar-wrapper .list-group-item { color: #e2e8f0 !important; }
#sidebar-wrapper .list-group-item i { color: #cbd5e1 !important; }
#sidebar-wrapper .list-group-item.active,
#sidebar-wrapper .list-group-item.active i { color: #ccfbf1 !important; }
#sidebar-wrapper .sidebar-group-title { color: #94a3b8 !important; }

/* ---- Parallax --------------------------------------------------------- */
/* Login hero: fixed decorative orbs create depth on scroll */
.login-page .login-hero {
  position: relative;
  overflow: hidden;
}
.login-page .login-hero::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px circle at 15% 20%, rgba(20, 184, 166, 0.18), transparent 45%),
    radial-gradient(700px circle at 85% 80%, rgba(59, 130, 246, 0.16), transparent 50%),
    radial-gradient(500px circle at 70% 15%, rgba(45, 212, 191, 0.12), transparent 45%);
  background-attachment: fixed;
  pointer-events: none;
}

/* Dashboard / page header: subtle fixed sheen behind the app bar */
.sub-header {
  position: relative;
  overflow: hidden;
}
.sub-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
              rgba(20, 184, 166, 0.10) 0%,
              transparent 40%,
              rgba(59, 130, 246, 0.08) 100%);
  background-size: 200% 100%;
  animation: xtHeaderSheen 12s ease-in-out infinite;
  pointer-events: none;
}
@keyframes xtHeaderSheen {
  0%   { background-position: 0% 0; }
  50%  { background-position: 100% 0; }
  100% { background-position: 0% 0; }
}

/* ---- Bold / strong text: keep readable on dark (and adaptive) --------- */
strong,
b,
.has-text-weight-bold,
.has-text-weight-semibold {
  color: inherit !important;
}

.has-text-dark,
.has-text-black,
.has-text-grey-dark,
.has-text-grey-darker {
  color: var(--xt-text) !important;
}

/* Bold text inside tables, cards, titles, content */
.table strong,
.table b,
.box strong,
.content strong,
.title strong,
.subtitle strong,
td strong,
th,
th strong,
.summary-card strong {
  color: var(--xt-text) !important;
}

/* Sidebar bold labels stay light regardless of theme */
#sidebar-wrapper strong { color: #e2e8f0 !important; }

/* ---- Flatpickr range picker (shared date range UX) -------------------- */
.xt-daterange-input {
  cursor: pointer;
  background-image: none;
}
.flatpickr-calendar {
  background: var(--xt-surface-elevated, #1e293b) !important;
  border: 1px solid var(--xt-border-strong, rgba(148, 163, 184, 0.25)) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35) !important;
  color: var(--xt-text, #e2e8f0) !important;
}
.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year,
span.flatpickr-weekday,
.flatpickr-day {
  color: var(--xt-text, #e2e8f0) !important;
  fill: var(--xt-text, #e2e8f0) !important;
}
.flatpickr-day.inRange {
  background: rgba(50, 115, 220, 0.18) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange {
  background: #3273dc !important;
  border-color: #3273dc !important;
  color: #fff !important;
}
.flatpickr-day:hover {
  background: rgba(50, 115, 220, 0.28) !important;
}
.flatpickr-calendar.inline {
  box-shadow: none !important;
  background: transparent !important;
  border: none !important;
}
#xt-date-range-modal .flatpickr-calendar,
#date-modal .flatpickr-calendar {
  box-shadow: none !important;
  background: transparent !important;
  border: none !important;
  width: auto;
}

/* ---- Accessibility: honor reduced-motion ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}