/* ==========================================================================
   FaithConnect Admin — UI kit
   --------------------------------------------------------------------------
   One stylesheet, built on top of Bootstrap 3 (kept for grid + JS plugins).
   It replaces the old AdminBSB "style.css", "modern-church-theme.css" and
   "themes/all-themes.css" for every admin screen.

   QUICK REBRAND
   Change the 4 variables below (--fc-primary-*) and the whole back-office
   follows. Dark mode is automatic (toggle in the top bar).

   Sections
     1. Fonts & icons        7. Forms
     2. Design tokens        8. Tables & DataTables
     3. Base                 9. Feedback (alerts, labels, modals, toasts)
     4. App shell           10. Third-party plugins
     5. Page header, cards  11. Dashboard
     6. Buttons             12. Auth pages
                            13. Legacy markup compatibility
   ========================================================================== */

/* 1. FONTS & ICONS ------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations'),
       url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations'),
       url('../fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'FC Material Icons';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('../fonts/material-icons-outlined.woff2') format('woff2');
}

.material-icons {
  font-family: 'FC Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  vertical-align: middle;
  -webkit-font-feature-settings: 'liga';
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 2. DESIGN TOKENS ------------------------------------------------------- */
:root {
  /* Brand — change these to rebrand the admin */
  --fc-primary-50:  #f1f0ff;
  --fc-primary-100: #e4e2ff;
  --fc-primary-500: #6a5cf6;
  --fc-primary-600: #5b4be8;
  --fc-primary-700: #4a3bcf;
  --fc-primary:     var(--fc-primary-600);
  --fc-primary-hover: var(--fc-primary-700);
  --fc-primary-soft: var(--fc-primary-50);
  --fc-primary-ring: rgba(106, 92, 246, .22);
  --fc-on-primary: #ffffff;

  /* Neutrals */
  --fc-bg:          #f6f7fb;
  --fc-surface:     #ffffff;
  --fc-surface-2:   #fafafd;
  --fc-surface-3:   #f2f3f9;
  --fc-border:      #e8e9f1;
  --fc-border-strong: #d7d9e6;
  --fc-text:        #151729;
  --fc-text-2:      #4a4f68;
  --fc-muted:       #8388a1;
  --fc-placeholder: #a5a9be;

  /* Semantic */
  --fc-success: #12a76a;  --fc-success-soft: #e6f7ef;
  --fc-warning: #dd8207;  --fc-warning-soft: #fef3e0;
  --fc-danger:  #e5443a;  --fc-danger-soft:  #fdebea;
  --fc-info:    #2b85f0;  --fc-info-soft:    #e8f2ff;

  /* Shape & depth */
  --fc-radius-sm: 8px;
  --fc-radius:    10px;
  --fc-radius-lg: 14px;
  --fc-radius-xl: 18px;
  --fc-shadow-xs: 0 1px 2px rgba(16, 24, 40, .04);
  --fc-shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --fc-shadow-md: 0 4px 12px -2px rgba(16, 24, 40, .08), 0 2px 4px -2px rgba(16, 24, 40, .05);
  --fc-shadow-lg: 0 16px 40px -8px rgba(16, 24, 40, .18), 0 4px 10px -4px rgba(16, 24, 40, .08);

  /* Layout */
  --fc-sidebar-w: 268px;
  --fc-topbar-h: 64px;
  --fc-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  color-scheme: light;
}

html[data-theme="dark"] {
  --fc-primary:     #8b80ff;
  --fc-primary-hover: #a197ff;
  --fc-primary-soft: rgba(139, 128, 255, .14);
  --fc-primary-ring: rgba(139, 128, 255, .28);
  --fc-on-primary: #14112f;

  --fc-bg:          #0d0f19;
  --fc-surface:     #141726;
  --fc-surface-2:   #181b2c;
  --fc-surface-3:   #1e2236;
  --fc-border:      #252a40;
  --fc-border-strong: #333952;
  --fc-text:        #eceef8;
  --fc-text-2:      #b5b9d0;
  --fc-muted:       #868cab;
  --fc-placeholder: #5f6584;

  --fc-success: #3ddc97;  --fc-success-soft: rgba(61, 220, 151, .13);
  --fc-warning: #ffb547;  --fc-warning-soft: rgba(255, 181, 71, .13);
  --fc-danger:  #ff6b62;  --fc-danger-soft:  rgba(255, 107, 98, .14);
  --fc-info:    #59a6ff;  --fc-info-soft:    rgba(89, 166, 255, .14);

  --fc-shadow-xs: 0 1px 2px rgba(0, 0, 0, .3);
  --fc-shadow-sm: 0 1px 2px rgba(0, 0, 0, .35), 0 1px 3px rgba(0, 0, 0, .3);
  --fc-shadow-md: 0 6px 16px -4px rgba(0, 0, 0, .5);
  --fc-shadow-lg: 0 20px 48px -8px rgba(0, 0, 0, .65);

  color-scheme: dark;
}

/* 3. BASE ---------------------------------------------------------------- */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--fc-font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--fc-text);
  background: var(--fc-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss03';
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--fc-font);
  font-weight: 650;
  color: var(--fc-text);
  letter-spacing: -.012em;
  line-height: 1.3;
}
p { color: inherit; }
a { color: var(--fc-primary); text-decoration: none; transition: color .15s; }
a:hover, a:focus { color: var(--fc-primary-hover); text-decoration: none; }
hr { border-top: 1px solid var(--fc-border); margin: 20px 0; }
small, .small { font-size: 12.5px; }
strong, b { font-weight: 650; }
::selection { background: var(--fc-primary-ring); color: var(--fc-text); }
img { max-width: 100%; }
code { color: var(--fc-primary); background: var(--fc-primary-soft); border-radius: 6px; padding: 2px 6px; font-size: 90%; }
pre { background: var(--fc-surface-3); border: 1px solid var(--fc-border); color: var(--fc-text); border-radius: var(--fc-radius); }
.text-muted, .help-block { color: var(--fc-muted) !important; }
.text-danger { color: var(--fc-danger) !important; }
.text-success { color: var(--fc-success) !important; }
.text-primary { color: var(--fc-primary) !important; }
.text-warning { color: var(--fc-warning) !important; }
.text-info { color: var(--fc-info) !important; }
:focus-visible { outline: 2px solid var(--fc-primary); outline-offset: 2px; }

/* Thin scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--fc-border-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--fc-border-strong); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--fc-muted); background-clip: padding-box; border: 2px solid transparent; }

/* Utilities that legacy views rely on */
.m-l-15 { margin-left: 15px; }
.mb-0 { margin-bottom: 0 !important; } .mb-2 { margin-bottom: 8px !important; } .mb-3 { margin-bottom: 16px !important; } .mb-4 { margin-bottom: 24px !important; }
.mt-3 { margin-top: 16px !important; } .my-4 { margin-top: 24px; margin-bottom: 24px; } .p-4 { padding: 24px; }
.align-center { text-align: center; } .align-right { text-align: right; }
.d-flex { display: flex; } .align-items-center { align-items: center; } .justify-content-between { justify-content: space-between; } .justify-content-center { justify-content: center; }
.clearfix:after { content: ""; display: table; clear: both; }
.img-responsive { max-width: 100%; height: auto; }

/* 4. APP SHELL ----------------------------------------------------------- */
.page-loader-wrapper { display: none; }
.fc-overlay {
  position: fixed; inset: 0; z-index: 1035;
  background: rgba(10, 12, 24, .5);
  backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s;
}

/* --- Sidebar --- */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--fc-sidebar-w);
  z-index: 1040;
  display: flex; flex-direction: column;
  background: var(--fc-surface);
  border-right: 1px solid var(--fc-border);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}
.fc-brand { flex: 0 0 var(--fc-topbar-h); display: flex; align-items: center; padding: 0 20px; border-bottom: 1px solid var(--fc-border); }
.fc-brand-link { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--fc-text) !important; }
.fc-brand-mark {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--fc-primary-500), #8a5cf6 60%, #b06cf7);
  box-shadow: 0 6px 14px -4px var(--fc-primary-ring), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.fc-brand-mark .material-icons { font-size: 21px; }
.fc-brand-text { font-size: 15.5px; font-weight: 700; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar .menu { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; padding: 6px 14px 16px; }
.sidebar .menu .list { list-style: none; margin: 0; padding: 0; }
.sidebar .menu .list > li.header {
  padding: 20px 12px 8px; margin: 0;
  font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--fc-muted); background: none;
}
.sidebar .menu .list > li.header:first-child { padding-top: 14px; }
.sidebar .menu .list > li { margin: 2px 0; }
.sidebar .menu .list > li > a {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: var(--fc-radius);
  color: var(--fc-text-2); font-size: 13.5px; font-weight: 550;
  transition: background .15s, color .15s;
}
.sidebar .menu .list > li > a > .material-icons { font-size: 20px; color: var(--fc-muted); transition: color .15s; }
.sidebar .menu .list > li > a > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar .menu .list > li > a:hover { background: var(--fc-surface-3); color: var(--fc-text); }
.sidebar .menu .list > li > a:hover > .material-icons { color: var(--fc-text-2); }
.sidebar .menu .list > li.active > a { background: var(--fc-primary-soft); color: var(--fc-primary); font-weight: 650; }
.sidebar .menu .list > li.active > a > .material-icons { color: var(--fc-primary); }
.sidebar .menu-toggle::after {
  content: 'expand_more'; font-family: 'FC Material Icons'; font-size: 18px; line-height: 1;
  margin-left: auto; color: var(--fc-muted);
  -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga';
  transition: transform .25s;
}
.sidebar .menu-toggle.toggled::after { transform: rotate(180deg); }
.sidebar .ml-menu {
  display: none; list-style: none; margin: 2px 0 6px 21px; padding: 0 0 0 13px;
  border-left: 1px solid var(--fc-border);
}
.sidebar .ml-menu li { margin: 1px 0; }
.sidebar .ml-menu li a {
  display: block; padding: 7px 12px; border-radius: var(--fc-radius-sm);
  color: var(--fc-text-2); font-size: 13px; font-weight: 500;
}
.sidebar .ml-menu li a:hover { background: var(--fc-surface-3); color: var(--fc-text); }
.sidebar .ml-menu li.active a { color: var(--fc-primary); font-weight: 650; background: var(--fc-primary-soft); }
.sidebar .legal { flex: 0 0 auto; padding: 14px 20px; border-top: 1px solid var(--fc-border); }
.sidebar .legal .copyright { font-size: 12px; color: var(--fc-muted); }
.sidebar .legal .copyright a { color: var(--fc-text-2); font-weight: 600; }

/* --- Top bar --- */
.fc-topbar {
  position: fixed; top: 0; right: 0; left: var(--fc-sidebar-w);
  height: var(--fc-topbar-h); z-index: 1030;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 32px;
  background: var(--fc-bg);
  background: color-mix(in srgb, var(--fc-bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--fc-border);
  transition: left .28s cubic-bezier(.4, 0, .2, 1);
}
.fc-topbar-left, .fc-topbar-right { display: flex; align-items: center; gap: 8px; }
.fc-icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border-radius: var(--fc-radius); border: 1px solid transparent; background: transparent;
  color: var(--fc-text-2); cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.fc-icon-btn:hover, .fc-icon-btn:focus { background: var(--fc-surface); border-color: var(--fc-border); color: var(--fc-text); outline: none; }
.fc-icon-btn .material-icons { font-size: 22px; }
.fc-theme-toggle .fc-ico-light { display: none; }
html[data-theme="dark"] .fc-theme-toggle .fc-ico-dark { display: none; }
html[data-theme="dark"] .fc-theme-toggle .fc-ico-light { display: inline-block; }

.fc-topbar .dropdown { position: relative; }
.fc-pill-btn, .fc-account-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px;
  border-radius: var(--fc-radius); border: 1px solid var(--fc-border);
  background: var(--fc-surface); color: var(--fc-text) !important;
  font-size: 13px; font-weight: 600; box-shadow: var(--fc-shadow-xs);
  transition: border-color .15s, box-shadow .15s;
}
.fc-pill-btn:hover, .fc-account-btn:hover, .open > .fc-pill-btn, .open > .fc-account-btn { border-color: var(--fc-border-strong); box-shadow: var(--fc-shadow-sm); }
.fc-pill-btn .flag { width: 20px; height: 14px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.fc-pill-btn .lang-code { text-transform: uppercase; letter-spacing: .03em; font-size: 12px; }
.fc-pill-btn .fc-caret, .fc-account-btn .fc-caret { font-size: 18px; color: var(--fc-muted); margin-left: -2px; }
.fc-account-btn { padding: 0 8px 0 5px; }
.fc-avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12.5px; font-weight: 700; color: #fff; text-transform: uppercase;
  background: linear-gradient(140deg, var(--fc-primary-500), #b06cf7);
}
.fc-topbar .dropdown-menu { right: 0; left: auto; margin-top: 8px; min-width: 232px; }
.fc-menu-head { padding: 10px 14px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--fc-border); list-style: none; }
.fc-menu-head strong { display: block; font-size: 13.5px; color: var(--fc-text); word-break: break-all; }
.fc-menu-head span { font-size: 12px; color: var(--fc-muted); }
.fc-topbar .dropdown-menu > li > a { display: flex; align-items: center; gap: 10px; }
.fc-topbar .dropdown-menu > li > a .material-icons { font-size: 18px; color: var(--fc-muted); }
.fc-topbar .dropdown-menu > li > a:hover .material-icons { color: var(--fc-primary); }
.fc-topbar .dropdown-menu > li.active > a { background: var(--fc-primary-soft); color: var(--fc-primary); }
.fc-topbar .dropdown-menu .flag { width: 20px; height: 14px; object-fit: cover; border-radius: 3px; }

/* --- Main area --- */
section.content {
  margin-left: var(--fc-sidebar-w);
  padding: calc(var(--fc-topbar-h) + 28px) 32px 48px;
  min-height: 100vh;
  transition: margin-left .28s cubic-bezier(.4, 0, .2, 1);
}
section.content > .container-fluid { max-width: 1560px; margin: 0 auto; padding: 0; }
.content-wrapper { margin: 0; padding: 0; }
.content-wrapper > .container-fluid { padding: 0; }

body.fc-collapsed .sidebar { transform: translateX(-100%); }
body.fc-collapsed .fc-topbar { left: 0; }
body.fc-collapsed section.content { margin-left: 0; }

@media (max-width: 1199px) {
  .sidebar { transform: translateX(-100%); box-shadow: none; }
  .fc-topbar { left: 0; padding: 0 16px; }
  section.content { margin-left: 0; padding-left: 16px; padding-right: 16px; }
  body.fc-nav-open .sidebar { transform: translateX(0); box-shadow: var(--fc-shadow-lg); }
  body.fc-nav-open .fc-overlay { opacity: 1; visibility: visible; }
  body.fc-collapsed .sidebar { transform: translateX(-100%); }
  body.fc-nav-open.fc-collapsed .sidebar { transform: translateX(0); }
}
@media (max-width: 575px) {
  section.content { padding-left: 14px; padding-right: 14px; }
  .fc-pill-btn .lang-code { display: none; }
}

/* 5. PAGE HEADER & CARDS ------------------------------------------------- */
.block-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 0 0 22px; }
.block-header .breadcrumb { margin: 0; padding: 0; }
.block-header .breadcrumb > li { display: inline-block; }
.block-header .breadcrumb > li + li:before { display: none; }
.block-header .btn-lg { height: 40px; padding: 0 16px; font-size: 13.5px; border-radius: var(--fc-radius); color: var(--fc-on-primary) !important; }
.block-header .btn-default.btn-lg { color: var(--fc-text) !important; }
.block-header h2 {
  margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.025em; color: var(--fc-text);
}
.block-header h2 small { display: block; margin-top: 4px; font-size: 13.5px; font-weight: 400; letter-spacing: 0; color: var(--fc-muted); }
.block-header h2:after, .card .header h2:after { display: none; }

.card {
  position: relative; margin: 0 0 24px;
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-lg);
  box-shadow: var(--fc-shadow-xs);
}
.card .header, .card .card-header {
  padding: 18px 24px; margin: 0;
  background: transparent; border-bottom: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-lg) var(--fc-radius-lg) 0 0;
}
.card .header h2, .card .card-header h2 {
  margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -.01em; color: var(--fc-text);
}
.card .header h2 small, .card .card-header h6 { display: block; margin: 3px 0 0; font-size: 13px; font-weight: 400; color: var(--fc-muted); letter-spacing: 0; }
.card .header > .row { display: flex; align-items: center; flex-wrap: wrap; margin: 0; }
.card .header > .row:before, .card .header > .row:after { display: none; }
.card .header > .row > [class*="col-"] { flex: 1 1 auto; width: auto; float: none; padding-left: 0; padding-right: 0; }
.card .header > .row > .text-right { flex: 0 0 auto; }
.card .body { padding: 24px; }
.card .body > .alert:first-child { margin-top: 0; }
.card .card-inner { padding: 0; }
.card .card-body { padding: 24px; }
.card .box-footer, .box-footer {
  margin-top: 28px !important; padding-top: 20px; border-top: 1px solid var(--fc-border);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; background: none;
}
.box-footer.text-center { justify-content: flex-end; text-align: right; }
.card .body .text-center > .btn + .btn { margin-left: 4px; }

/* 6. BUTTONS ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px;
  font-family: var(--fc-font); font-size: 13.5px; font-weight: 600; line-height: 1; letter-spacing: 0;
  border: 1px solid transparent; border-radius: var(--fc-radius);
  box-shadow: none; text-shadow: none; white-space: nowrap; vertical-align: middle;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s;
}
.btn:active, .btn.active { box-shadow: none; transform: translateY(1px); }
.btn:focus, .btn.focus { outline: none; box-shadow: 0 0 0 4px var(--fc-primary-ring); }
.btn .material-icons, .btn i.material-icons { font-size: 18px; margin: 0; }
.btn.disabled, .btn[disabled], fieldset[disabled] .btn { opacity: .55; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 14.5px; border-radius: 12px; }
.btn-sm, .btn-xs { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: var(--fc-radius-sm); gap: 6px; }
.btn-sm .material-icons { font-size: 17px; }
.btn-block { display: flex; width: 100%; }

.btn-primary {
  color: var(--fc-on-primary); background: var(--fc-primary); border-color: var(--fc-primary);
  box-shadow: 0 1px 2px rgba(16, 24, 40, .12), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .open > .dropdown-toggle.btn-primary {
  color: var(--fc-on-primary); background: var(--fc-primary-hover); border-color: var(--fc-primary-hover);
}
.btn-default {
  color: var(--fc-text); background: var(--fc-surface); border-color: var(--fc-border-strong); box-shadow: var(--fc-shadow-xs);
}
.btn-default:hover, .btn-default:focus, .btn-default:active, .open > .dropdown-toggle.btn-default {
  color: var(--fc-text); background: var(--fc-surface-3); border-color: var(--fc-border-strong);
}
.btn-success { color: #fff; background: var(--fc-success); border-color: var(--fc-success); }
.btn-success:hover, .btn-success:focus, .btn-success:active { color: #fff; background: var(--fc-success); border-color: var(--fc-success); filter: brightness(.93); }
.btn-danger  { color: #fff; background: var(--fc-danger); border-color: var(--fc-danger); }
.btn-danger:hover, .btn-danger:focus, .btn-danger:active { color: #fff; background: var(--fc-danger); border-color: var(--fc-danger); filter: brightness(.93); }
.btn-warning { color: #fff; background: var(--fc-warning); border-color: var(--fc-warning); }
.btn-warning:hover, .btn-warning:focus, .btn-warning:active { color: #fff; background: var(--fc-warning); border-color: var(--fc-warning); filter: brightness(.93); }
.btn-info    { color: #fff; background: var(--fc-info); border-color: var(--fc-info); }
.btn-info:hover, .btn-info:focus, .btn-info:active { color: #fff; background: var(--fc-info); border-color: var(--fc-info); filter: brightness(.93); }
.btn-link { color: var(--fc-primary); background: none; border-color: transparent; padding: 0 6px; }
.btn-link:hover { color: var(--fc-primary-hover); background: none; text-decoration: underline; }
html[data-theme="dark"] .btn-success, html[data-theme="dark"] .btn-danger,
html[data-theme="dark"] .btn-warning, html[data-theme="dark"] .btn-info { color: #10121c; }

/* "Soft" small buttons — used for row actions inside tables */
td .btn, td .btn-lg, td .btn-group-sm > .btn {
  height: 32px; min-width: 32px; padding: 0 9px; font-size: 12.5px; border-radius: var(--fc-radius-sm); box-shadow: none; gap: 6px;
}
td .btn .material-icons { font-size: 17px; }
.btn .list-icon { color: inherit !important; margin: 0 !important; }
td .btn.btn-primary { color: var(--fc-primary); background: var(--fc-primary-soft); border-color: transparent; }
td .btn.btn-primary:hover { color: var(--fc-on-primary); background: var(--fc-primary); }
td .btn.btn-danger { color: var(--fc-danger); background: var(--fc-danger-soft); border-color: transparent; }
td .btn.btn-danger:hover { color: #fff; background: var(--fc-danger); filter: none; }
td .btn.btn-success { color: var(--fc-success); background: var(--fc-success-soft); border-color: transparent; }
td .btn.btn-success:hover { color: #fff; background: var(--fc-success); filter: none; }
td .btn.btn-warning { color: var(--fc-warning); background: var(--fc-warning-soft); border-color: transparent; }
td .btn.btn-warning:hover { color: #fff; background: var(--fc-warning); filter: none; }
td .btn.btn-info { color: var(--fc-info); background: var(--fc-info-soft); border-color: transparent; }
td .btn.btn-info:hover { color: #fff; background: var(--fc-info); filter: none; }
td .btn.btn-default { color: var(--fc-text-2); background: var(--fc-surface-3); border-color: transparent; }
td .btn.btn-default:hover { color: var(--fc-text); background: var(--fc-border); }
html[data-theme="dark"] td .btn.btn-primary:hover { color: var(--fc-on-primary); }

.btn-group { display: inline-flex; gap: 6px; vertical-align: middle; }
.btn-group > .btn, .btn-group > .btn:not(:first-child):not(:last-child), .btn-group > .btn:first-child, .btn-group > .btn:last-child {
  float: none; margin: 0; border-radius: var(--fc-radius-sm);
}
.btn-group > .btn + .btn { margin-left: 0; }
.btn-group.open .dropdown-toggle { box-shadow: none; }
.btn .caret { margin-left: 2px; }

/* 7. FORMS --------------------------------------------------------------- */
label, .control-label { font-size: 13px; font-weight: 600; color: var(--fc-text); margin-bottom: 6px; max-width: 100%; }
label .material-icons { font-size: 17px; color: var(--fc-muted); margin-right: 4px; }
.form-group { margin-bottom: 20px; }
.form-group:last-child { margin-bottom: 0; }
.form-group > label { display: block; }

.form-control {
  height: 42px; padding: 9px 14px;
  font-family: var(--fc-font); font-size: 14px; color: var(--fc-text);
  background-color: var(--fc-surface); background-image: none;
  border: 1px solid var(--fc-border-strong); border-radius: var(--fc-radius);
  box-shadow: var(--fc-shadow-xs);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.form-control::placeholder { color: var(--fc-placeholder); opacity: 1; }
.form-control:hover { border-color: var(--fc-muted); border-color: color-mix(in srgb, var(--fc-primary) 35%, var(--fc-border-strong)); }
.form-control:focus { border-color: var(--fc-primary); box-shadow: 0 0 0 4px var(--fc-primary-ring); outline: none; background-color: var(--fc-surface); }
.form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control { background-color: var(--fc-surface-3); color: var(--fc-muted); opacity: 1; cursor: not-allowed; }
textarea.form-control { height: auto; min-height: 104px; line-height: 1.55; resize: vertical; }
input[type="file"].form-control { height: auto; padding: 8px 12px; }
select.form-control {
  -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238388a1' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.has-error .form-control { border-color: var(--fc-danger); }
.has-error .form-control:focus { box-shadow: 0 0 0 4px var(--fc-danger-soft); }
.has-error .help-block, .has-error .control-label { color: var(--fc-danger) !important; }
.form-text, .help-block, small.form-text { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: var(--fc-muted); }
.form-text strong { color: var(--fc-text-2); }

/* Legacy material wrappers: neutral containers now */
.form-line, .addon-line { position: relative; display: block; border: 0; padding: 0; margin: 0; background: none; box-shadow: none; }
.form-line:before, .form-line:after, .form-line .form-label { display: none; }
.form-line > label, .addon-line > label { display: block; }
.input-group.addon-line { display: block; width: 100%; margin-bottom: 4px; }
.input-group.addon-line .form-line { display: block; width: 100%; }
.input-group.addon-line .form-control { display: block; width: 100%; float: none; }
.input-group.addon-line + .input-group.addon-line, .addon-line + .addon-line { margin-top: 18px; }
.addon-line .form-line + .form-line { margin-top: 12px; }

/* Input groups (login, prefixed fields) */
.input-group { width: 100%; }
.input-group-addon {
  min-width: 44px; padding: 0 12px; color: var(--fc-muted); background: var(--fc-surface-2);
  border: 1px solid var(--fc-border-strong); border-radius: var(--fc-radius) 0 0 var(--fc-radius);
}
.input-group-addon .material-icons { font-size: 19px; }
.input-group .form-control:first-child { border-radius: var(--fc-radius) 0 0 var(--fc-radius); }
.input-group .form-control:last-child, .input-group-addon:last-child { border-radius: 0 var(--fc-radius) var(--fc-radius) 0; }
.input-group .form-line { display: table-cell; width: 100%; }
.input-group .form-line .form-control { border-radius: 0 var(--fc-radius) var(--fc-radius) 0; }
.input-group-btn .btn { height: 42px; }

/* Checkbox / radio (AdminBSB "filled-in" pattern: input + label) */
input[type="checkbox"].filled-in, input[type="radio"].with-gap { position: absolute; opacity: 0; pointer-events: none; }
input[type="checkbox"].filled-in + label {
  position: relative; display: inline-block; padding-left: 30px; margin: 0; min-height: 22px; line-height: 22px;
  cursor: pointer; user-select: none; font-weight: 500;
}
input[type="checkbox"].filled-in + label:before {
  content: ''; position: absolute; left: 0; top: 0; width: 22px; height: 22px;
  background: var(--fc-surface); border: 1.5px solid var(--fc-border-strong); border-radius: 7px;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
input[type="checkbox"].filled-in + label:after {
  content: ''; position: absolute; left: 7.5px; top: 3.5px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .15s;
}
input[type="checkbox"].filled-in:checked + label:before { background: var(--fc-primary); border-color: var(--fc-primary); }
input[type="checkbox"].filled-in:checked + label:after { transform: rotate(45deg) scale(1); }
input[type="checkbox"].filled-in:focus + label:before { box-shadow: 0 0 0 4px var(--fc-primary-ring); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--fc-primary); }
.checkbox, .radio { margin: 8px 0; }

/* Bootstrap-select (turns every <select> into a styled dropdown) */
.bootstrap-select { width: 100% !important; }
.bootstrap-select > .dropdown-toggle {
  display: flex; align-items: center; width: 100%; height: 42px; padding: 0 14px;
  font-size: 14px; font-weight: 400; color: var(--fc-text); text-align: left;
  background: var(--fc-surface); border: 1px solid var(--fc-border-strong); border-radius: var(--fc-radius);
  box-shadow: var(--fc-shadow-xs);
}
.bootstrap-select > .dropdown-toggle:hover { border-color: var(--fc-muted); border-color: color-mix(in srgb, var(--fc-primary) 35%, var(--fc-border-strong)); background: var(--fc-surface); }
.bootstrap-select > .dropdown-toggle:focus, .bootstrap-select.open > .dropdown-toggle {
  border-color: var(--fc-primary) !important; box-shadow: 0 0 0 4px var(--fc-primary-ring); outline: none !important; background: var(--fc-surface);
}
.bootstrap-select > .dropdown-toggle .filter-option { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; text-align: left; position: static; float: none; }
.bootstrap-select > .dropdown-toggle .caret {
  position: static; margin: 0 0 0 8px; width: 16px; height: 16px; border: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238388a1' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.bootstrap-select .dropdown-menu { min-width: 100%; padding: 6px; margin-top: 6px; }
.bootstrap-select .dropdown-menu > li > a, .bootstrap-select .dropdown-menu.inner > li > a { border-radius: var(--fc-radius-sm); padding: 8px 12px; font-size: 13.5px; }
.bootstrap-select .dropdown-menu li.selected a, .bootstrap-select .dropdown-menu li.active a { background: var(--fc-primary-soft) !important; color: var(--fc-primary) !important; font-weight: 600; }
.bootstrap-select .dropdown-menu li a:hover { background: var(--fc-surface-3); }
.bootstrap-select .dropdown-menu li a:focus, .bootstrap-select .dropdown-menu li a:active { outline: none !important; background: var(--fc-surface-3); }
.bootstrap-select.open > .dropdown-toggle, .bootstrap-select > .dropdown-toggle:active, .bootstrap-select > .dropdown-toggle.active { background: var(--fc-surface) !important; box-shadow: 0 0 0 4px var(--fc-primary-ring); }
.bootstrap-select .bs-searchbox { padding: 4px 4px 8px; }
.bootstrap-select .bs-searchbox .form-control { height: 36px; }
.bootstrap-select .dropdown-menu .divider { margin: 4px 0; }
.bootstrap-select.btn-group .dropdown-menu li .check-mark { color: var(--fc-primary); }
.bootstrap-select.btn-group, .bootstrap-select { display: block; }
.bootstrap-select.btn-group > .dropdown-toggle .filter-option + .caret { margin-top: 0; }

/* Native file inputs */
input[type="file"] { max-width: 100%; font-size: 13px; color: var(--fc-text-2); }
input[type="file"]::file-selector-button {
  height: 34px; margin-right: 12px; padding: 0 14px; font: 600 12.5px var(--fc-font); color: var(--fc-text);
  background: var(--fc-surface-3); border: 1px solid var(--fc-border-strong); border-radius: var(--fc-radius-sm); cursor: pointer;
  transition: background .15s;
}
input[type="file"]::file-selector-button:hover { background: var(--fc-border); }

/* Dropify (drag & drop upload) */
.dropify-wrapper {
  min-height: 150px; font-family: var(--fc-font); font-size: 13.5px; color: var(--fc-muted);
  background: var(--fc-surface-2); border: 1.5px dashed var(--fc-border-strong); border-radius: var(--fc-radius-lg);
  transition: border-color .15s, background .15s;
}
.dropify-wrapper:hover { background: var(--fc-primary-soft); border-color: var(--fc-primary); }
.dropify-wrapper .dropify-message span.file-icon { color: var(--fc-primary); font-size: 40px; }
.dropify-wrapper .dropify-message p { margin: 6px 0 0; font-size: 14px; color: var(--fc-text-2); }
.dropify-wrapper .dropify-preview { background: var(--fc-surface); }
.dropify-wrapper .dropify-preview .dropify-infos .dropify-infos-inner { background: rgba(16, 20, 40, .72); }
.dropify-wrapper .dropify-clear { border-radius: 8px; font-family: var(--fc-font); }
.dropify-wrapper .dropify-loader:before { border-color: var(--fc-primary) transparent; }

/* TinyMCE frame */
.mce-tinymce { border: 1px solid var(--fc-border-strong) !important; border-radius: var(--fc-radius) !important; box-shadow: var(--fc-shadow-xs) !important; overflow: hidden; }
.mce-panel { border-color: var(--fc-border) !important; }
.mce-menubar, .mce-toolbar-grp { background: var(--fc-surface-2) !important; }

/* 8. TABLES & DATATABLES ------------------------------------------------- */
.table-responsive { border: 0; margin-bottom: 0; }
.table {
  width: 100%; margin: 0 0 4px; background: transparent; color: var(--fc-text);
  border-collapse: separate; border-spacing: 0;
}
.table > thead > tr > th {
  padding: 11px 16px; vertical-align: middle;
  font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--fc-muted);
  background: var(--fc-surface-2);
  border-top: 1px solid var(--fc-border); border-bottom: 1px solid var(--fc-border);
  white-space: nowrap;
}
.table > thead > tr > th:first-child { border-left: 1px solid var(--fc-border); border-top-left-radius: var(--fc-radius); }
.table > thead > tr > th:last-child  { border-right: 1px solid var(--fc-border); border-top-right-radius: var(--fc-radius); }
.table > tbody > tr > td, .table > tbody > tr > th, .table > tfoot > tr > td {
  padding: 14px 16px; vertical-align: middle; color: var(--fc-text-2);
  border: 0; border-bottom: 1px solid var(--fc-border);
}
.table > tbody > tr > td:first-child { border-left: 1px solid var(--fc-border); }
.table > tbody > tr > td:last-child  { border-right: 1px solid var(--fc-border); }
.table > tbody > tr:last-child > td:first-child { border-bottom-left-radius: var(--fc-radius); }
.table > tbody > tr:last-child > td:last-child  { border-bottom-right-radius: var(--fc-radius); }
.table > tbody > tr > td strong, .table > tbody > tr > td b { color: var(--fc-text); }
.table-hover > tbody > tr:hover > td, .table-hover > tbody > tr:hover > th { background: var(--fc-surface-2); }
.table-striped > tbody > tr:nth-of-type(odd) { background-color: transparent; }
.table-striped > tbody > tr:nth-of-type(odd) > td { background: transparent; }
.table-striped.table-hover > tbody > tr:hover > td { background: var(--fc-surface-2); }
.table-bordered, .table-bordered > thead > tr > th, .table-bordered > tbody > tr > td { border-color: var(--fc-border); }
.table > tbody > tr > td img { border-radius: 10px; }
.table .text-center { text-align: center; }
table.table td .btn-group { flex-wrap: nowrap; }
.table > tbody > tr.active > td, .table > tbody > tr.success > td { background: var(--fc-success-soft); }
.table > tbody > tr.danger > td { background: var(--fc-danger-soft); }
.table > tbody > tr.warning > td { background: var(--fc-warning-soft); }
.table td.td_width { max-width: 320px; overflow: hidden; text-overflow: ellipsis; }

div.dataTables_wrapper { padding-top: 2px; }
div.dataTables_wrapper > .row { margin: 0; }
div.dataTables_wrapper > .row > [class*="col-"] { padding: 0; }
.dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter { margin: 0 0 16px; }
.dataTables_wrapper .dataTables_filter { text-align: right; }
.dataTables_wrapper .dataTables_length label, .dataTables_wrapper .dataTables_filter label {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; font-weight: 500; color: var(--fc-muted);
}
.dataTables_wrapper .dataTables_filter input {
  width: 240px; height: 38px; margin: 0; padding: 0 12px 0 38px; font-size: 13.5px; color: var(--fc-text);
  background: var(--fc-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238388a1' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 13px center;
  border: 1px solid var(--fc-border-strong); border-radius: var(--fc-radius); box-shadow: var(--fc-shadow-xs);
}
.dataTables_wrapper .dataTables_filter input:focus { outline: none; border-color: var(--fc-primary); box-shadow: 0 0 0 4px var(--fc-primary-ring); }
.dataTables_wrapper .dataTables_length select { height: 38px; width: auto; display: inline-block; padding: 0 30px 0 12px; margin: 0; }
.dataTables_wrapper .dataTables_info { padding-top: 22px; font-size: 13px; color: var(--fc-muted); }
.dataTables_wrapper .dataTables_paginate { padding-top: 16px; text-align: right; }
.dataTables_wrapper .dataTables_processing {
  position: absolute; top: 44px; left: 50%; width: 200px; margin-left: -100px; padding: 10px 14px;
  font-size: 13px; font-weight: 600; text-align: center; color: var(--fc-primary);
  background: var(--fc-surface); border: 1px solid var(--fc-border); border-radius: var(--fc-radius); box-shadow: var(--fc-shadow-md); z-index: 5;
}
table.dataTable { margin-top: 0 !important; margin-bottom: 0 !important; border-collapse: separate !important; }
table.dataTable thead th, table.dataTable thead td { border-bottom: 1px solid var(--fc-border); padding-right: 32px; }
table.dataTable thead .sorting, table.dataTable thead .sorting_asc, table.dataTable thead .sorting_desc { cursor: pointer; }
table.dataTable thead .sorting:after, table.dataTable thead .sorting_asc:after, table.dataTable thead .sorting_desc:after {
  font-family: 'FC Material Icons'; font-size: 16px; line-height: 1; bottom: auto; top: 50%; right: 10px; margin-top: -8px;
  -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga'; text-transform: none; letter-spacing: 0; color: var(--fc-muted);
}
table.dataTable thead .sorting:after      { content: 'unfold_more'; opacity: .45; }
table.dataTable thead .sorting_asc:after  { content: 'arrow_upward'; opacity: 1; color: var(--fc-primary); }
table.dataTable thead .sorting_desc:after { content: 'arrow_downward'; opacity: 1; color: var(--fc-primary); }
table.dataTable td.dataTables_empty { padding: 40px 16px !important; text-align: center; color: var(--fc-muted); }
.dt-buttons { margin-bottom: 16px; display: inline-flex; gap: 6px; flex-wrap: wrap; }
.dt-buttons .btn, .dt-buttons .dt-button { height: 34px; font-size: 12.5px; padding: 0 12px; }
table.dataTable.dtr-inline.collapsed > tbody > tr > td:first-child:before { background: var(--fc-primary); box-shadow: none; border: 0; }

/* Pagination */
.pagination { display: inline-flex; gap: 4px; margin: 0; padding: 0; border-radius: 0; }
.pagination > li > a, .pagination > li > span {
  float: none; display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; margin: 0;
  font-size: 13px; font-weight: 600; color: var(--fc-text-2);
  background: var(--fc-surface); border: 1px solid var(--fc-border); border-radius: var(--fc-radius-sm) !important;
}
.pagination > li > a:hover { color: var(--fc-text); background: var(--fc-surface-3); border-color: var(--fc-border-strong); }
.pagination > .active > a, .pagination > .active > a:hover, .pagination > .active > a:focus,
.pagination > .active > span { color: var(--fc-on-primary); background: var(--fc-primary); border-color: var(--fc-primary); }
.pagination > .disabled > a, .pagination > .disabled > a:hover { color: var(--fc-placeholder); background: var(--fc-surface-2); border-color: var(--fc-border); }
.pager li > a { border-radius: var(--fc-radius-sm); border-color: var(--fc-border); background: var(--fc-surface); color: var(--fc-text-2); }

/* 9. FEEDBACK ------------------------------------------------------------ */
.alert {
  position: relative; display: block; margin: 0 0 18px; padding: 13px 44px 13px 16px;
  font-size: 13.5px; line-height: 1.5; border: 1px solid; border-radius: var(--fc-radius);
}
.alert .close { position: absolute; top: 50%; right: 10px; margin-top: -13px; width: 26px; height: 26px; line-height: 24px; text-align: center; border-radius: 8px; font-size: 20px; font-weight: 400; opacity: .55; color: inherit; text-shadow: none; }
.alert .close:hover { opacity: 1; background: rgba(0, 0, 0, .06); }
.alert-success { color: #0b6b45; background: var(--fc-success-soft); border-color: rgba(18, 167, 106, .3); border-color: color-mix(in srgb, var(--fc-success) 28%, transparent); }
.alert-danger  { color: #a3241c; background: var(--fc-danger-soft);  border-color: rgba(229, 68, 58, .3); border-color: color-mix(in srgb, var(--fc-danger) 28%, transparent); }
.alert-warning { color: #8a5204; background: var(--fc-warning-soft); border-color: rgba(221, 130, 7, .3); border-color: color-mix(in srgb, var(--fc-warning) 30%, transparent); }
.alert-info    { color: #1b5fb0; background: var(--fc-info-soft);    border-color: rgba(43, 133, 240, .3); border-color: color-mix(in srgb, var(--fc-info) 28%, transparent); }
html[data-theme="dark"] .alert-success { color: var(--fc-success); }
html[data-theme="dark"] .alert-danger  { color: var(--fc-danger); }
html[data-theme="dark"] .alert-warning { color: var(--fc-warning); }
html[data-theme="dark"] .alert-info    { color: var(--fc-info); }
.alert a { font-weight: 650; text-decoration: underline; color: inherit; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }

.label, .badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 650; line-height: 1.5; letter-spacing: .01em; color: var(--fc-text-2);
  background: var(--fc-surface-3); text-shadow: none; vertical-align: middle; white-space: nowrap;
}
.label-default { background: var(--fc-surface-3); color: var(--fc-text-2); }
.label-primary, .badge-primary { background: var(--fc-primary-soft); color: var(--fc-primary); }
.label-success, .bg-green, .bg-light-green, .label.bg-green, .label.bg-light-green { background: var(--fc-success-soft); color: var(--fc-success); }
.label-danger, .label.bg-red, .label.bg-pink { background: var(--fc-danger-soft); color: var(--fc-danger); }
.label-warning, .label.bg-orange, .label.bg-amber { background: var(--fc-warning-soft); color: var(--fc-warning); }
.label-info, .label.bg-cyan, .label.bg-blue, .label.bg-light-blue { background: var(--fc-info-soft); color: var(--fc-info); }
.bg-red:not(.label):not(.btn), .bg-pink:not(.label):not(.btn), .bg-orange:not(.label):not(.btn), .bg-cyan:not(.label):not(.btn), .bg-light-green:not(.label):not(.btn) { color: #fff; }
.btn.bg-pink, .btn.bg-red { background: var(--fc-primary); border-color: var(--fc-primary); color: var(--fc-on-primary); }
.btn.bg-pink:hover, .btn.bg-red:hover { background: var(--fc-primary-hover); color: var(--fc-on-primary); }
.label a { color: inherit; }

.breadcrumb { margin: 0 0 16px; padding: 0; background: none; border-radius: 0; font-size: 13px; color: var(--fc-muted); list-style: none; }
.breadcrumb > li + li:before { content: '/'; padding: 0 8px; color: var(--fc-border-strong); }
.breadcrumb > .active { color: var(--fc-text-2); }
.breadcrumb .material-icons { font-size: 16px; }
ol.breadcrumb#loader, #loader.breadcrumb { margin-top: 14px; padding: 14px; text-align: center; background: var(--fc-surface-2); border: 1px dashed var(--fc-border-strong); border-radius: var(--fc-radius); }

.nav-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 4px; border-bottom: 1px solid var(--fc-border); }
.nav-tabs > li { float: none; margin: 0 0 -1px; }
.nav-tabs > li > a {
  display: flex; align-items: center; gap: 6px; margin: 0; padding: 12px 14px; font-size: 13.5px; font-weight: 600;
  color: var(--fc-muted); border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none;
  transition: color .15s, border-color .15s;
}
.nav-tabs > li > a:hover { color: var(--fc-text); background: none; border-color: var(--fc-border-strong); }
.nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus {
  color: var(--fc-primary); background: none; border: 0; border-bottom: 2px solid var(--fc-primary);
}
.nav-tabs .material-icons { font-size: 18px; margin: 0; }
.tab-content { padding-top: 20px; }
.settings-tabs { margin-bottom: 0; background: none; border-bottom: 1px solid var(--fc-border); overflow-x: auto; overflow-y: hidden; flex-wrap: nowrap; }
.settings-tabs > li > a { white-space: nowrap; padding: 14px 16px; }

.dropdown-menu {
  min-width: 190px; margin: 6px 0 0; padding: 6px; font-size: 13.5px;
  background: var(--fc-surface); border: 1px solid var(--fc-border); border-radius: var(--fc-radius-lg); box-shadow: var(--fc-shadow-lg);
}
.dropdown-menu > li > a { padding: 8px 12px; color: var(--fc-text-2); font-weight: 500; border-radius: var(--fc-radius-sm); }
.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { color: var(--fc-text); background: var(--fc-surface-3); }
.dropdown-menu .divider { margin: 6px 0; background: var(--fc-border); }
.dropdown-header { padding: 6px 12px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fc-muted); }

.modal-backdrop { background: #0a0c18; }
.modal-backdrop.in { opacity: .55; }
.modal-content { background: var(--fc-surface); color: var(--fc-text); border: 1px solid var(--fc-border); border-radius: var(--fc-radius-xl); box-shadow: var(--fc-shadow-lg); }
.modal-header { padding: 20px 24px 8px; border-bottom: 0; }
.modal-title { font-size: 18px; font-weight: 700; }
.modal-body { padding: 12px 24px 8px; }
.modal-footer { padding: 16px 24px 22px; border-top: 0; }
.close { color: var(--fc-muted); text-shadow: none; opacity: .8; font-weight: 400; }
.close:hover { color: var(--fc-text); opacity: 1; }
.tooltip-inner { padding: 6px 10px; font-size: 12px; font-weight: 500; background: #1c2033; border-radius: 8px; }
.popover { border: 1px solid var(--fc-border); border-radius: var(--fc-radius-lg); box-shadow: var(--fc-shadow-lg); background: var(--fc-surface); }
.popover-title { background: var(--fc-surface-2); border-bottom: 1px solid var(--fc-border); }
.popover-content { color: var(--fc-text-2); }
.well { background: var(--fc-surface-2); border: 1px solid var(--fc-border); border-radius: var(--fc-radius); box-shadow: none; }
.progress { height: 8px; background: var(--fc-surface-3); border-radius: 999px; box-shadow: none; overflow: hidden; }
.progress-bar { background: var(--fc-primary); box-shadow: none; }
.list-group-item { background: var(--fc-surface); border-color: var(--fc-border); color: var(--fc-text-2); }

/* Legacy spinner (Material "preloader") -> lightweight ring */
.preloader {
  display: inline-block; width: 28px; height: 28px; position: relative; vertical-align: middle;
  border: 3px solid var(--fc-primary-100); border-top-color: var(--fc-primary); border-radius: 50%;
  animation: fc-spin .75s linear infinite;
}
.preloader > * { display: none; }
.preloader.pl-size-xs { width: 24px; height: 24px; border-width: 2.5px; }
html[data-theme="dark"] .preloader { border-color: var(--fc-border-strong); border-top-color: var(--fc-primary); }
@keyframes fc-spin { to { transform: rotate(360deg); } }

/* 10. THIRD-PARTY PLUGINS ------------------------------------------------ */
/* SweetAlert 1.x */
.sweet-overlay { background-color: rgba(10, 12, 24, .55) !important; backdrop-filter: blur(2px); }
.sweet-alert {
  font-family: var(--fc-font); padding: 32px 28px 26px; border-radius: var(--fc-radius-xl);
  background: var(--fc-surface); color: var(--fc-text); box-shadow: var(--fc-shadow-lg);
}
.sweet-alert h2 { margin: 18px 0 8px; font-size: 20px; font-weight: 700; color: var(--fc-text); }
.sweet-alert p { font-size: 14px; line-height: 1.55; color: var(--fc-muted); }
.sweet-alert button {
  height: 40px; padding: 0 20px; font-family: var(--fc-font); font-size: 13.5px; font-weight: 600; border-radius: var(--fc-radius);
  margin: 26px 5px 0; box-shadow: none !important;
}
.sweet-alert button.confirm { background-color: var(--fc-primary) !important; color: var(--fc-on-primary); }
.sweet-alert button.confirm.btn-success, .sweet-alert .btn-success { background-color: var(--fc-primary) !important; }
.sweet-alert button.cancel { background-color: var(--fc-surface-3) !important; color: var(--fc-text) !important; }
.sweet-alert input { height: 42px; border-radius: var(--fc-radius); border: 1px solid var(--fc-border-strong); box-shadow: none; }

/* Alertify + bootstrap-notify toasts */
.alertify-logs > * { border-radius: var(--fc-radius) !important; font-family: var(--fc-font); box-shadow: var(--fc-shadow-lg); }
.alertify { font-family: var(--fc-font); }
[data-notify="container"] {
  border-radius: var(--fc-radius) !important; padding: 14px 18px !important; font-family: var(--fc-font);
  box-shadow: var(--fc-shadow-lg) !important; border: 0 !important;
}

/* Date range picker */
.daterangepicker {
  font-family: var(--fc-font); background: var(--fc-surface); border: 1px solid var(--fc-border); border-radius: var(--fc-radius-lg);
  box-shadow: var(--fc-shadow-lg); color: var(--fc-text);
}
.daterangepicker:before, .daterangepicker:after { display: none; }
.daterangepicker .calendar-table { background: transparent; border: 0; }
.daterangepicker td.available:hover, .daterangepicker th.available:hover { background: var(--fc-surface-3); border-radius: 8px; }
.daterangepicker td.in-range { background: var(--fc-primary-soft); color: var(--fc-text); }
.daterangepicker td.active, .daterangepicker td.active:hover { background: var(--fc-primary); color: var(--fc-on-primary); border-radius: 8px; }
.daterangepicker td.off, .daterangepicker td.off.in-range, .daterangepicker td.off.start-date, .daterangepicker td.off.end-date { background: transparent; color: var(--fc-placeholder); }
.daterangepicker .ranges li { border-radius: 8px; color: var(--fc-text-2); }
.daterangepicker .ranges li:hover { background: var(--fc-surface-3); }
.daterangepicker .ranges li.active { background: var(--fc-primary); color: var(--fc-on-primary); }
.daterangepicker select.monthselect, .daterangepicker select.yearselect { height: 30px; padding: 0 6px; }
.daterangepicker .drp-buttons .btn { height: 32px; }

/* Material datetime picker */
.dtp { font-family: var(--fc-font); }
.dtp > .dtp-content { border-radius: var(--fc-radius-xl); overflow: hidden; box-shadow: var(--fc-shadow-lg); background: var(--fc-surface); }
.dtp div.dtp-date, .dtp div.dtp-time { background: var(--fc-primary); }
.dtp table.dtp-picker-days tr > td > a.selected { background: var(--fc-primary); }
.dtp .dtp-buttons .dtp-btn-ok, .dtp .dtp-buttons .dtp-btn-cancel { border-radius: var(--fc-radius-sm); }

/* Font Awesome inside admin keeps its own font; nothing to override */

/* 11. DASHBOARD ---------------------------------------------------------- */
.fc-dash-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 26px; }
.fc-dash-head h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.028em; }
.fc-dash-head p { margin: 4px 0 0; font-size: 14px; color: var(--fc-muted); }
.fc-dash-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.fc-grid { display: grid; gap: 20px; margin-bottom: 20px; }
.fc-grid-kpi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fc-grid-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.fc-grid-mini { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1399px) { .fc-grid-kpi, .fc-grid-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1199px) { .fc-grid-main { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 575px) {
  .fc-grid-kpi, .fc-grid-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .fc-dash-head h1 { font-size: 23px; }
  .fc-stat { padding: 16px; gap: 10px; }
  .fc-stat-value { font-size: 24px; }
  .fc-stat-icon { width: 34px; height: 34px; }
  .fc-stat-note { font-size: 12px; }
  .fc-mini { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .fc-panel { padding: 18px 16px; }
  .card .header, .card .card-header { padding: 16px; }
  .card .body, .card .card-body { padding: 16px; }
  .block-header h2 { font-size: 21px; }
  .dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dataTables_length { text-align: left; }
  .dataTables_wrapper .dataTables_filter label, .dataTables_wrapper .dataTables_length label { width: 100%; }
  .dataTables_wrapper .dataTables_filter input { width: 100%; flex: 1; }
  .dataTables_wrapper .dataTables_paginate { text-align: left; }
}

.fc-stat {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px;
  background: var(--fc-surface); border: 1px solid var(--fc-border); border-radius: var(--fc-radius-lg); box-shadow: var(--fc-shadow-xs);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
a.fc-stat, .fc-stat.is-link { color: inherit; }
.fc-stat:hover { box-shadow: var(--fc-shadow-md); border-color: var(--fc-border-strong); transform: translateY(-2px); }
.fc-stat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fc-stat-label { font-size: 13px; font-weight: 600; color: var(--fc-muted); }
.fc-stat-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; }
.fc-stat-icon .material-icons { font-size: 21px; }
.fc-stat-value { font-size: 30px; font-weight: 700; line-height: 1.05; letter-spacing: -.03em; color: var(--fc-text); font-variant-numeric: tabular-nums; }
.fc-stat-value small { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--fc-muted); margin-left: 4px; }
.fc-stat-note { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--fc-muted); margin-top: -6px; }
.fc-stat-note .material-icons { font-size: 15px; }
.fc-stat-note.is-good { color: var(--fc-success); }
.fc-stat-note.is-bad  { color: var(--fc-danger); font-weight: 600; }

.fc-tone-violet { background: var(--fc-primary-soft); color: var(--fc-primary); }
.fc-tone-blue   { background: var(--fc-info-soft);    color: var(--fc-info); }
.fc-tone-green  { background: var(--fc-success-soft); color: var(--fc-success); }
.fc-tone-amber  { background: var(--fc-warning-soft); color: var(--fc-warning); }
.fc-tone-red    { background: var(--fc-danger-soft);  color: var(--fc-danger); }
.fc-tone-pink   { background: rgba(232, 72, 149, .12); color: #d63384; }
.fc-tone-teal   { background: rgba(20, 184, 166, .13); color: #0e9f91; }
html[data-theme="dark"] .fc-tone-pink { color: #ff7ab8; }
html[data-theme="dark"] .fc-tone-teal { color: #3dd6c6; }

.fc-panel { background: var(--fc-surface); border: 1px solid var(--fc-border); border-radius: var(--fc-radius-lg); box-shadow: var(--fc-shadow-xs); padding: 22px 24px; min-width: 0; }
.fc-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.fc-panel-head h3 { margin: 0; font-size: 16px; font-weight: 650; }
.fc-panel-head p { margin: 3px 0 0; font-size: 13px; color: var(--fc-muted); }
.fc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--fc-success-soft); color: var(--fc-success); white-space: nowrap; }
.fc-chip:before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: fc-pulse 1.8s ease-in-out infinite; }
@keyframes fc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.fc-chart-box { position: relative; height: 300px; }
.fc-chart-box.is-donut { height: 210px; }
.fc-legend { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.fc-legend-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--fc-text-2); }
.fc-legend-row i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 8px; }
.fc-legend-row b { color: var(--fc-text); font-variant-numeric: tabular-nums; }

.fc-mini { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--fc-surface); border: 1px solid var(--fc-border); border-radius: var(--fc-radius-lg); box-shadow: var(--fc-shadow-xs); transition: border-color .2s, box-shadow .2s; }
.fc-mini:hover { border-color: var(--fc-border-strong); box-shadow: var(--fc-shadow-sm); }
.fc-mini .fc-stat-icon { width: 38px; height: 38px; border-radius: 11px; }
.fc-mini-body { min-width: 0; }
.fc-mini-value { font-size: 20px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; color: var(--fc-text); font-variant-numeric: tabular-nums; }
.fc-mini-label { font-size: 12.5px; color: var(--fc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-section-title { display: flex; align-items: center; gap: 10px; margin: 30px 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fc-muted); }
.fc-section-title:after { content: ''; flex: 1; height: 1px; background: var(--fc-border); }

/* 12. AUTH PAGES --------------------------------------------------------- */
body.login-page { margin: 0; min-height: 100vh; background: var(--fc-bg); }
.fc-auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.fc-auth-hero {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 48px 56px; color: #fff;
  background:
    radial-gradient(900px 500px at 12% -10%, rgba(255, 255, 255, .18), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(255, 138, 226, .35), transparent 60%),
    linear-gradient(150deg, #3b2fbf 0%, #5b4be8 45%, #8a5cf6 100%);
}
.fc-auth-hero:before {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px); background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
}
.fc-auth-hero > * { position: relative; }
.fc-auth-brand { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.fc-auth-brand .fc-brand-mark { background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.fc-auth-hero h2 { margin: 0 0 14px; max-width: 460px; font-size: 38px; line-height: 1.12; font-weight: 700; letter-spacing: -.035em; color: #fff; }
.fc-auth-hero p { margin: 0; max-width: 430px; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .78); }
.fc-auth-features { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; max-width: 520px; }
.fc-auth-features span {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 13.5px; font-weight: 550; color: #fff;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.fc-auth-features .material-icons { font-size: 18px; }
.fc-auth-card .msg h1 { margin: 0 0 6px; }
.fc-auth-foot { font-size: 13px; color: rgba(255, 255, 255, .65); }
.fc-auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; position: relative; }
.fc-auth-card { width: 100%; max-width: 400px; }
.fc-auth-card h1 { margin: 0 0 6px; font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.fc-auth-card .fc-auth-sub { margin: 0 0 26px; color: var(--fc-muted); font-size: 14px; }
.fc-auth-mobile-brand { display: none; align-items: center; gap: 10px; margin-bottom: 30px; font-size: 17px; font-weight: 700; color: var(--fc-text); }
.fc-auth-lang { position: absolute; top: 24px; right: 24px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.fc-auth-lang a, .login-lang a {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 12px; font-weight: 600; color: var(--fc-text-2);
  background: var(--fc-surface); border: 1px solid var(--fc-border); border-radius: 999px;
}
.fc-auth-lang a img, .login-lang a img { width: 18px; height: 13px; object-fit: cover; border-radius: 3px; }
.fc-auth-lang a:hover, .fc-auth-lang a.active, .login-lang a:hover, .login-lang a.active { color: var(--fc-primary); border-color: var(--fc-primary); background: var(--fc-primary-soft); }
.fc-auth-card .form-group { margin-bottom: 18px; }
.fc-auth-card .input-group { display: flex; width: 100%; }
.fc-auth-card .input-group .form-control { flex: 1 1 auto; display: block; width: 100%; height: 46px; float: none; }
.fc-auth-card .input-group-addon { display: grid; place-items: center; height: 46px; min-width: 46px; padding: 0; }
.fc-auth-card .btn-block { height: 48px; font-size: 15px; margin-top: 8px; }
.fc-auth-theme { position: absolute; bottom: 24px; right: 24px; }
@media (max-width: 991px) {
  .fc-auth { grid-template-columns: minmax(0, 1fr); }
  .fc-auth-hero { display: none; }
  .fc-auth-mobile-brand { display: flex; }
  .fc-auth-main { justify-content: flex-start; padding-top: 88px; }
}

/* Legacy centred login box (forgot / reset pages keep this markup) */
body.login-page .login-box { width: 100%; max-width: 420px; margin: 8vh auto 0; padding: 0 16px; }
body.login-page .login-box .card { padding: 0; box-shadow: var(--fc-shadow-md); }
body.login-page .login-box .card .body { padding: 32px; }
body.login-page .login-box .msg { margin-bottom: 22px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; text-align: center; color: var(--fc-text); }
body.login-page .login-box .msg h2 { margin: 0; font-size: 22px; }
body.login-page .login-box .input-group { display: flex; margin-bottom: 16px; }
body.login-page .login-box .input-group .form-line { flex: 1 1 auto; display: block; }
body.login-page .login-box .input-group .form-control { display: block; width: 100%; float: none; }
body.login-page .login-box .input-group-addon { display: grid; place-items: center; }
body.login-page .login-box .btn.bg-pink { height: 46px; }
.login-lang { text-align: center; margin-bottom: 18px; }
.login-lang a { margin: 0 3px; }

/* Status pages (404, message.php) */
body.fc-status-page { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--fc-bg); }
body.fc-status-page > section { width: 100%; }
body.fc-status-page > section [class*="col-"] { float: none; width: 100%; padding: 0; }
.fc-status { max-width: 460px; margin: 0 auto; text-align: center; }
.fc-status-code {
  font-size: clamp(88px, 22vw, 150px); font-weight: 800; line-height: 1; letter-spacing: -.06em;
  background: linear-gradient(140deg, var(--fc-primary-500), #b06cf7); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fc-status-title { margin: 12px 0 26px; font-size: 20px; font-weight: 650; letter-spacing: -.015em; color: var(--fc-text); }
.fc-status-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.fc-status-card { padding: 40px 32px; background: var(--fc-surface); border: 1px solid var(--fc-border); border-radius: var(--fc-radius-xl); box-shadow: var(--fc-shadow-md); }
.fc-status-card .fc-status-title { margin: 16px 0 0; }
.fc-status-icon { width: 76px; height: 76px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; }
.fc-status-icon .material-icons { font-size: 42px; }
.fc-status-icon.is-success { background: var(--fc-success-soft); color: var(--fc-success); }
.fc-status-icon.is-error { background: var(--fc-danger-soft); color: var(--fc-danger); }

/* 13. LEGACY MARKUP COMPATIBILITY --------------------------------------- */
.list-icon { color: var(--fc-primary); }
.table .list-icon { vertical-align: middle; }
.info-box {
  display: flex; align-items: center; gap: 16px; margin-bottom: 20px; padding: 18px 20px;
  background: var(--fc-surface); border: 1px solid var(--fc-border); border-radius: var(--fc-radius-lg); box-shadow: var(--fc-shadow-xs);
}
.info-box .icon { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; float: none; color: #fff; background: var(--fc-primary); }
.info-box .icon i { font-size: 26px; color: #fff; }
.info-box .content .text { font-size: 12.5px; font-weight: 600; color: var(--fc-muted); text-transform: none; letter-spacing: 0; }
.info-box .content .number { font-size: 24px; font-weight: 700; color: var(--fc-text); }
.hover-zoom-effect { transition: transform .2s; }
.hover-zoom-effect:hover { transform: translateY(-2px); }
.jumbotron { background: var(--fc-surface-2); border-radius: var(--fc-radius-lg); }
.waves-effect { position: relative; }
.overlay { display: none; }
hr.divider, .divider { background: var(--fc-border); }
.gw-card { border: 1px solid var(--fc-border) !important; border-radius: var(--fc-radius-lg) !important; background: var(--fc-surface) !important; }
.gw-card-header { background: var(--fc-surface-2) !important; border-bottom: 1px solid var(--fc-border) !important; }
.gw-field input.form-control { border: 1px solid var(--fc-border-strong) !important; border-radius: var(--fc-radius) !important; height: 42px !important; background: var(--fc-surface) !important; }
.gw-status-on { color: var(--fc-success) !important; } .gw-status-off { color: var(--fc-muted) !important; }
.gw-help, .gw-card-header .gw-meta { color: var(--fc-muted) !important; }
.gw-card-header h4 { color: var(--fc-text); }
