/* Dezhban administration theme */
:root {
  --dz-ink: #172334;
  --dz-muted: #748196;
  --dz-line: #e4eaf1;
  --dz-surface: #fff;
  --dz-canvas: #f3f6fa;
  --dz-accent: #167d73;
  --dz-accent-dark: #10665f;
  --dz-shadow: 0 8px 28px rgba(22, 38, 58, .07);
}

html[dir="rtl"] body {
  background: var(--dz-canvas);
  color: var(--dz-ink);
}

.main-header {
  min-height: 68px;
  padding: 0 1rem;
  background: rgba(255,255,255,.94) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--dz-line) !important;
  box-shadow: 0 2px 12px rgba(22,38,58,.035);
  backdrop-filter: blur(14px);
}
.main-header .nav-link { color: #526176 !important; }
.main-header button.nav-link { border: 0; background: transparent; cursor: pointer; }
.main-header .nav-link:hover { color: var(--dz-accent) !important; }
.header-brand {
  position: absolute;
  left: 26px;
  right: auto;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dz-ink) !important;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.03em;
  white-space: nowrap;
  z-index: 5;
  display: block !important;
}
.header-brand:hover { color: var(--dz-accent) !important; }
.main-header .form-control-navbar {
  height: 38px;
  border: 1px solid var(--dz-line);
  border-radius: 11px;
  background: #f7f9fc;
}
.main-header .btn-navbar { border-radius: 0 11px 11px 0; background: #f7f9fc; }

.main-sidebar {
  width: 276px !important;
  background: #111c2c !important;
  box-shadow: -8px 0 28px rgba(13,25,40,.08);
}
.brand-link {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  color: #fff !important;
  font-size: 1.2rem;
  font-weight: 800 !important;
  letter-spacing: -.03em;
}
.brand-link i {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-left: 10px;
  place-items: center;
  border-radius: 11px;
  color: #c9fff4;
  background: linear-gradient(145deg,#168d81,#12675f);
  box-shadow: 0 5px 16px rgba(22,141,129,.25);
}
.main-sidebar .sidebar { padding: 10px 12px 20px; }
.nav-sidebar .nav-header {
  padding: 18px 12px 8px;
  color: #7f91a8;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .03em;
}
.nav-sidebar .nav-divider {
  height: 1px;
  margin: 9px 8px;
  border-top: 1px solid rgba(255,255,255,.12);
  list-style: none;
}
.nav-sidebar .nav-link {
  min-height: 43px !important;
  margin: 3px 0;
  padding: 10px 12px !important;
  border-radius: 11px;
  color: #c0cad7 !important;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.nav-sidebar .nav-link p { font-size: .86rem; font-weight: 500; }
html[dir="rtl"] .nav-sidebar .nav-link > p > .fa-angle-right,
html[dir="rtl"] .nav-sidebar .nav-link > p > .fa-angle-down {
  position: absolute !important;
  left: 12px !important;
  right: auto !important;
  float: none !important;
  margin: 0 !important;
}
.nav-sidebar .nav-link > .fas,
.nav-sidebar .nav-link > .far,
.nav-sidebar .nav-link > .fab { width: 22px; color: #92a2b7; }
.nav-sidebar .nav-link > svg,
.main-header .nav-link > svg { display: inline-block !important; visibility: visible !important; width: 19px !important; height: 19px !important; flex: 0 0 19px; color: #92a2b7; stroke: currentColor !important; stroke-width: 2.1; vertical-align: -4px; }
.main-header .nav-link > svg { color: #526176; margin-inline-end: 5px; }
.brand-link svg { width: 22px; height: 22px; margin-left: 10px; color: #c9fff4; stroke-width: 2.2; vertical-align: -5px; }
.content-header h1 > svg, .breadcrumb svg, .card-title > svg, .btn > svg, th > svg, label > svg,
.alert svg, .small-box-footer svg, .info-box-icon svg { width: 1.05em; height: 1.05em; margin-inline-end: .35em; vertical-align: -.17em; stroke-width: 2.1; }
.small-box .icon svg { position: absolute; top: 15px; left: 15px; width: 62px; height: 62px; opacity: .18; stroke-width: 1.5; }
.card-body.text-center > svg, .card-body.text-center > i + svg { width: 2rem; height: 2rem; color: var(--dz-accent); stroke-width: 1.9; }
.nav-sidebar .nav-link.active > svg { color: #6ae0cc; }
.dz-icon-source { display: inline-block; }
.nav-sidebar .nav-link:hover { color: #fff !important; background: rgba(255,255,255,.075); transform: translateX(-2px); }
.nav-sidebar .nav-link.active,
.nav-sidebar .menu-open > .nav-link {
  color: #fff !important;
  background: linear-gradient(100deg,rgba(26,145,130,.28),rgba(26,145,130,.09));
  box-shadow: inset -3px 0 #38c5ae;
}
.nav-sidebar .nav-link.active > i { color: #6ae0cc; }
.nav-sidebar .badge { border-radius: 6px; font-size: .65rem; }

/* RTL sidebar: use the full sidebar width and keep the menu rail on the right. */
html[dir="rtl"] .main-sidebar .sidebar,
html[dir="rtl"] .main-sidebar .sidebar nav,
html[dir="rtl"] .main-sidebar .nav-sidebar,
html[dir="rtl"] .main-sidebar .nav-sidebar > .nav-item,
html[dir="rtl"] .main-sidebar .nav-sidebar > .nav-item > .nav-link {
  width: 100% !important;
  box-sizing: border-box;
}
html[dir="rtl"] .main-sidebar .nav-sidebar > .nav-item > .nav-link {
  margin-right: 0 !important;
  margin-left: 0 !important;
  padding: 10px 12px !important;
}
html[dir="rtl"] body:not(.sidebar-collapse) .main-sidebar .sidebar {
  padding: 10px 15px 20px !important;
}
html[dir="rtl"] body:not(.sidebar-collapse) .main-sidebar .nav-sidebar .nav-link > svg,
html[dir="rtl"] body:not(.sidebar-collapse) .main-sidebar .nav-sidebar .nav-link > i {
  position: absolute !important;
  right: 12px !important;
  left: auto !important;
  margin: 0 !important;
}
html[dir="rtl"] body:not(.sidebar-collapse) .main-sidebar .nav-sidebar .nav-link > p {
  width: 100%;
  padding-right: 28px !important;
  padding-left: 0 !important;
  text-align: right;
}

html[dir="rtl"] .content-wrapper,
html[dir="rtl"] .main-footer,
html[dir="rtl"] .main-header { margin-right: 276px; }
.content-wrapper { background: var(--dz-canvas); }
.content-header { padding: 22px 26px 10px; }
.content-header h1 { color: var(--dz-ink); font-size: 1.55rem; font-weight: 800; }
.content-header .breadcrumb { padding: 0; color: var(--dz-muted); font-size: .78rem; }
.content { padding: 12px 26px 28px; }

/* Shared dashboard language for legacy pages. */
.page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 4px 0 22px;
  padding: 24px 28px;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(120deg, #0b233c 0%, #123e68 58%, #087fbd 100%);
  box-shadow: 0 16px 34px rgba(11,45,78,.14);
}
.page-hero h2 { margin: 0 0 6px; font-size: 1.35rem; font-weight: 800; }
.page-hero p { margin: 0; color: #b9d0e7; font-size: .82rem; }
.page-hero-badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid rgba(132,244,182,.2); border-radius: 999px; color: #b8f5d0; background: rgba(25,196,111,.14); font-size: .72rem; white-space: nowrap; }
.page-hero-badge svg { width: 14px; height: 14px; }
.page-stat { min-width: 110px; padding: 12px 16px; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; background: rgba(255,255,255,.08); text-align: center; }
.page-stat strong { display: block; font-size: 1.5rem; line-height: 1; }
.page-stat small { display: block; margin-top: 6px; color: #b9d0e7; font-size: .68rem; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .75fr); gap: 18px; align-items: start; }
.page-card { overflow: hidden; border: 1px solid var(--dz-line); border-radius: 15px; background: #fff; box-shadow: var(--dz-shadow); }
.page-card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 20px; border-bottom: 1px solid var(--dz-line); }
.page-card-header h3 { margin: 0; color: var(--dz-ink); font-size: .96rem; font-weight: 800; }
.page-card-header small { color: var(--dz-muted); font-size: .7rem; }
.page-card-body { padding: 18px 20px; }
.page-card-header svg, .page-card-body svg { vertical-align: -3px; }
.ip-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: #176fae; background: #edf7ff; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; direction: ltr; }
.ip-pill svg { width: 15px; height: 15px; }
.file-pill { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 7px 10px; border-radius: 8px; color: #256b91; background: #eef8fb; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .76rem; direction: ltr; word-break: break-all; }
.file-pill svg { width: 15px; height: 15px; flex: 0 0 15px; }
.empty-state { padding: 34px 12px; color: var(--dz-muted); text-align: center; font-size: .8rem; }
.empty-state svg { display: block; width: 30px; height: 30px; margin: 0 auto 9px; color: #94b1c6; }
@media (max-width: 767px) { .page-hero { align-items: flex-start; flex-direction: column; padding: 21px; } .page-grid { grid-template-columns: 1fr; } }

/* Visit analytics: dashboard-style overview */
.analytics-page .content { padding-top: 12px; }
.analytics-hero { margin-top: 2px; }
.analytics-hero-meta { display: flex; gap: 10px; flex-shrink: 0; }
.analytics-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 26px 0 12px; }
.analytics-section-heading h3 { margin: 0; color: var(--dz-ink); font-size: 1rem; font-weight: 800; }
.analytics-section-heading p { margin: 5px 0 0; color: var(--dz-muted); font-size: .75rem; }
.analytics-refresh { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid var(--dz-line); border-radius: 9px; color: #167d73; background: #fff; font-size: .72rem; font-weight: 700; }
.analytics-refresh:hover { color: #10665f; background: #f6fbfa; }
.analytics-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.analytics-stat { position: relative; display: flex; min-height: 145px; flex-direction: column; justify-content: space-between; padding: 18px; overflow: hidden; border: 1px solid var(--dz-line); border-radius: 15px; background: #fff; box-shadow: var(--dz-shadow); }
.analytics-stat:after { position: absolute; left: -26px; bottom: -42px; width: 110px; height: 110px; border-radius: 50%; content: ''; opacity: .06; background: currentColor; }
.analytics-stat small, .analytics-stat > span:last-child { color: var(--dz-muted); font-size: .7rem; }
.analytics-stat strong { color: var(--dz-ink); font-size: 1.85rem; line-height: 1; }
.analytics-stat-icon { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 11px; font-size: .95rem; }
.analytics-stat.tone-green, .analytics-stat.tone-blue, .analytics-stat.tone-red, .analytics-stat.tone-amber { color: var(--dz-ink); background: #fff; }
.analytics-stat.tone-green .analytics-stat-icon { color: #159667; background: #e9faf3; }
.analytics-stat.tone-blue .analytics-stat-icon { color: #0879dc; background: #eaf4ff; }
.analytics-stat.tone-red .analytics-stat-icon { color: #d54456; background: #fff0f2; }
.analytics-stat.tone-amber .analytics-stat-icon { color: #a56f00; background: #fff8e4; }
.tone-green { color: #159667; background: #e9faf3; }
.tone-blue { color: #0879dc; background: #eaf4ff; }
.tone-red { color: #d54456; background: #fff0f2; }
.tone-amber { color: #a56f00; background: #fff8e4; }
.analytics-main-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .75fr); gap: 18px; align-items: stretch; }
.analytics-chart-card .page-card-body { padding: 12px 18px 16px; }
.analytics-chart-container { height: 250px; min-height: 220px; position: relative; width: 100%; }
.analytics-line-chart { height: 330px; min-height: 270px; }
.analytics-chart-container canvas { width: 100% !important; height: 100% !important; }
.analytics-month-list { display: flex; height: calc(100% - 58px); flex-direction: column; justify-content: center; gap: 8px; padding: 16px; }
.analytics-month-list > div { display: grid; grid-template-columns: 35px 1fr auto; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #edf1f6; }
.analytics-month-list > div:last-child { border-bottom: 0; }
.analytics-month-list span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; font-size: .8rem; }
.analytics-month-list small { color: var(--dz-muted); font-size: .7rem; }
.analytics-month-list strong { color: var(--dz-ink); font-size: 1.15rem; }
.analytics-breakdown-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.analytics-breakdown-grid .page-card-body { padding: 14px 18px 18px; }
.analytics-breakdown-grid .analytics-chart-container { height: 225px; }
.analytics-country-card { margin-top: 18px; }
.analytics-table-badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 8px; color: #176fae; background: #edf7ff; font-size: .68rem; }
.analytics-table-wrap { padding-top: 8px; overflow-x: auto; }
.analytics-table-wrap table { margin-bottom: 0; }
.analytics-table-wrap thead th { border-top: 0; color: var(--dz-muted); font-size: .72rem; }
.analytics-table-wrap tbody td { color: var(--dz-ink); font-size: .76rem; vertical-align: middle; }
.analytics-table-wrap tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 1100px) { .analytics-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .analytics-main-grid { grid-template-columns: 1fr; } .analytics-breakdown-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) { .analytics-page .content { padding-right: 14px; padding-left: 14px; } .analytics-hero-meta { width: 100%; } .analytics-hero-meta .page-stat { flex: 1; } .analytics-stat-grid, .analytics-breakdown-grid { grid-template-columns: 1fr; } .analytics-section-heading { align-items: flex-start; flex-direction: column; } .analytics-line-chart { height: 260px; } }

.card, .small-box, .info-box, .callout, .content .box {
  overflow: hidden;
  border: 1px solid var(--dz-line) !important;
  border-radius: 16px !important;
  background: var(--dz-surface);
  box-shadow: var(--dz-shadow) !important;
}
.card { margin-bottom: 20px; }
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--dz-line);
  background: #fff;
}
.card-dark:not(.card-outline) > .card-header,
.card-primary:not(.card-outline) > .card-header,
.card-success:not(.card-outline) > .card-header,
.card-danger:not(.card-outline) > .card-header,
.card-info:not(.card-outline) > .card-header,
.card-warning:not(.card-outline) > .card-header {
  color: var(--dz-ink);
  border-bottom: 1px solid var(--dz-line);
  background: #fff !important;
}
.card-dark:not(.card-outline) > .card-header a { color: var(--dz-ink); }
.card.card-dark > .card-body,
.card.card-dark > .card-footer { color: var(--dz-ink); background: #fff !important; }
.card.card-dark { border-top: 1px solid var(--dz-line) !important; }
.card-title { color: var(--dz-ink); font-size: 1rem; font-weight: 700 !important; }
.card-body { padding: 20px; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--dz-line); background: #f9fafc; }
.small-box { position: relative; transition: transform .2s ease, box-shadow .2s ease; }
.small-box:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(22,38,58,.11) !important; }
.small-box .inner { padding: 20px; }
.small-box h3 { font-weight: 800; }
.info-box { min-height: 82px; padding: 10px; }
.info-box-icon { width: 58px; height: 58px; border-radius: 13px; }
.table { color: #39475a; }
.table .btn { white-space: nowrap; }
.table svg { width: 1em; height: 1em; vertical-align: -2px; stroke-width: 2.1; }
.table td:first-child { color: var(--dz-muted); font-size: .72rem; font-weight: 700; }
.table thead th { border-top: 0; border-bottom: 1px solid var(--dz-line); background: #f7f9fc; color: #6a788b; font-size: .78rem; font-weight: 700; }
.table td, .table th { padding: .8rem .75rem; border-color: #edf0f4; vertical-align: middle; }
.table-hover tbody tr:hover { background: #f6faf9; }

.form-control, .custom-select, .select2-container--default .select2-selection--single {
  min-height: 40px;
  border: 1px solid #dce4ed;
  border-radius: 9px;
  color: var(--dz-ink);
  background-color: #fff;
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus, .custom-select:focus {
  border-color: #56b9ad;
  box-shadow: 0 0 0 3px rgba(22,125,115,.11);
}
.form-group { margin-bottom: 1.15rem; }
.form-group > .col-sm-12 { padding-right: 0; padding-left: 0; }
.form-control::placeholder { color: #a0acbb; opacity: 1; }
textarea.form-control { min-height: 100px; }
label { color: #34445a; font-weight: 600; }
.btn { min-height: 36px; padding: .48rem .9rem; border-radius: 9px; font-weight: 600; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 5px 13px rgba(22,38,58,.11); }
.btn-primary, .btn-success { border-color: var(--dz-accent); background: var(--dz-accent); }
.btn-primary:hover, .btn-success:hover { border-color: var(--dz-accent-dark); background: var(--dz-accent-dark); }
.btn-default, .btn-secondary { border-color: var(--dz-line); background: #fff; }
.alert { border: 0; border-radius: 11px; }
.badge { padding: .4em .65em; border-radius: 7px; }
.pagination .page-link { margin: 0 2px; border: 0; border-radius: 8px !important; color: var(--dz-accent); }
.pagination .page-item.active .page-link { background: var(--dz-accent); }
.main-footer {
  min-height: 58px;
  padding: 18px 26px;
  border-top: 1px solid var(--dz-line);
  background: #fff !important;
  color: var(--dz-muted);
  font-size: .8rem;
}
.main-footer a { color: var(--dz-accent); font-weight: 700; }
.scroll-btn { border: 0; border-radius: 50%; background: var(--dz-accent); box-shadow: 0 5px 16px rgba(22,125,115,.28); }

/* AdminLTE's collapse rules are written for an LTR sidebar.  Mirror the
   geometry for this RTL layout so the sidebar really becomes an icon rail. */
@media (min-width: 992px) {
  html[dir="rtl"] .main-sidebar {
    right: 0;
    left: auto !important;
    width: 276px !important;
    margin-left: 0 !important;
    transform: none !important;
    transition: width .3s ease-in-out, transform .3s ease-in-out;
  }
  html[dir="rtl"] body.sidebar-collapse .main-sidebar,
  html[dir="rtl"] body.sidebar-collapse .main-sidebar:before {
    right: 0;
    left: auto;
    width: 5.5rem !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    transform: none !important;
  }
  html[dir="rtl"] body.sidebar-collapse .content-wrapper,
  html[dir="rtl"] body.sidebar-collapse .main-footer,
  html[dir="rtl"] body.sidebar-collapse .main-header {
    margin-right: 5.5rem !important;
    margin-left: 0 !important;
  }
  html[dir="rtl"] body.sidebar-collapse .brand-link {
    justify-content: center;
    padding-right: 0;
    padding-left: 0;
  }
  html[dir="rtl"] body.sidebar-collapse .brand-link i,
  html[dir="rtl"] body.sidebar-collapse .brand-link svg {
    margin-left: 0;
    margin-right: 0;
  }
  html[dir="rtl"] body.sidebar-collapse .main-sidebar .sidebar {
    padding-right: 8px;
    padding-left: 8px;
  }
  html[dir="rtl"] body.sidebar-collapse .nav-sidebar .nav-item,
  html[dir="rtl"] body.sidebar-collapse .nav-sidebar .nav-link {
    width: 100% !important;
    box-sizing: border-box;
  }
  html[dir="rtl"] body.sidebar-collapse .nav-sidebar .nav-link {
    display: flex !important;
    position: relative;
    align-items: center;
    justify-content: center;
    gap: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    overflow: visible !important;
  }
  html[dir="rtl"] body.sidebar-collapse .nav-sidebar .nav-link > p {
    display: none !important;
  }
  html[dir="rtl"] body.sidebar-collapse .nav-sidebar .nav-link > svg,
  html[dir="rtl"] body.sidebar-collapse .nav-sidebar .nav-link > i {
    display: inline-block !important;
    visibility: visible !important;
    position: static !important;
    transform: none !important;
    flex: none !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    opacity: 1 !important;
    color: #aebbd0 !important;
    stroke: currentColor !important;
    stroke-width: 2.1 !important;
    margin-right: 0;
    margin-left: 0;
  }
  html[dir="rtl"] body.sidebar-collapse .nav-sidebar .nav-link.active > svg,
  html[dir="rtl"] body.sidebar-collapse .nav-sidebar .nav-link.active > i { color: #6ae0cc !important; }
}

@media (max-width: 991.98px) {
  /* Keep the hamburger above the open drawer so it can close it again. */
  .main-header { position: relative; z-index: 1200; }
  html[dir="rtl"] .content-wrapper,
  html[dir="rtl"] .main-footer,
  html[dir="rtl"] .main-header { margin-right: 0 !important; }
  html[dir="rtl"] .main-sidebar {
    right: 0 !important;
    left: auto !important;
    width: 276px !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    transform: translateX(100%) !important;
    transition: transform .3s ease-in-out;
  }
  html[dir="rtl"] body.sidebar-open .main-sidebar { transform: translateX(0) !important; }
  #dz-sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 1099;
    display: none;
    background: rgba(10, 20, 34, .42);
  }
  body.sidebar-open #dz-sidebar-overlay { display: block; }
  .content-header { padding: 18px 16px 8px; }
  .content { padding: 10px 16px 22px; }
}
@media (max-width: 575.98px) {
  .main-header { padding: 0 .4rem; }
  .header-brand { left: 12px; right: auto; font-size: 1rem; }
  .main-header .header-account-link { font-size: 0 !important; }
  .main-header .header-account-link i { font-size: 1rem; }
  .header-brand { right: 12px; left: auto; font-size: 1rem; }
  .content-header h1 { font-size: 1.25rem; }
  .card-body { padding: 15px; }
  .card-header, .card-footer { padding: 13px 15px; }
  .main-footer { padding: 15px; }
}
/* Warning pages dashboard */
.warning-pages-wrapper { background: #f4f7fb; min-height: calc(100vh - 57px); }
.warning-pages-header { padding: 28px 0 22px; }
.warning-pages-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.warning-pages-heading .eyebrow, .card-kicker { color: #55708e; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.warning-pages-heading .eyebrow i { color: #14a78d; margin-left: 6px; }
.warning-pages-heading h1 { color: #10243d; font-size: 28px; font-weight: 800; margin: 8px 0 6px; }
.warning-pages-heading p { color: #71839a; font-size: 13px; margin: 0; }
.warning-pages-breadcrumb { display: flex; align-items: center; gap: 10px; color: #8a9aad; font-size: 12px; padding-bottom: 7px; }
.warning-pages-breadcrumb a { color: #147fe6; }
.warning-pages-breadcrumb strong { color: #3a526d; }
.warning-save-alert { background: #e9fbf4; border: 1px solid #b7eed7; border-radius: 12px; color: #087d5e; font-size: 13px; padding: 13px 16px; margin-bottom: 16px; }
.warning-save-alert i { margin-left: 8px; }
.warning-pages-card { background: #fff; border: 1px solid #e3eaf2; border-radius: 18px; box-shadow: 0 12px 30px rgba(34, 67, 104, .07); overflow: hidden; }
.warning-pages-card-top { display: flex; justify-content: space-between; align-items: center; padding: 24px 28px 20px; }
.warning-pages-card h2 { color: #132b46; font-size: 19px; font-weight: 800; margin: 7px 0 0; }
.status-pill { color: #0c8f6b; background: #e8faf4; border-radius: 20px; font-size: 12px; padding: 7px 12px; }
.status-pill i { font-size: 7px; vertical-align: middle; margin-left: 5px; }
.warning-tabs { display: flex; gap: 6px; padding: 0 22px; border-bottom: 1px solid #e7edf4; overflow-x: auto; scrollbar-width: thin; }
.warning-tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; color: #647991; background: transparent; border: 0; border-bottom: 3px solid transparent; cursor: pointer; font-family: inherit; font-size: 12px; font-weight: 700; padding: 15px 10px 13px; white-space: nowrap; transition: .2s ease; }
.warning-tab:hover { color: #146fe0; text-decoration: none; background: #f8fbff; }
.warning-tab.active { color: #146fe0; border-bottom-color: #146fe0; }
.warning-tab-icon, .editor-icon { display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; width: 29px; height: 29px; color: #fff; font-size: 12px; }
.warning-tab-icon.danger, .editor-icon.danger { background: #ee5b6e; } .warning-tab-icon.warning, .editor-icon.warning { background: #e8a52c; }
.warning-tab-icon.purple, .editor-icon.purple { background: #8d70db; } .warning-tab-icon.orange, .editor-icon.orange { background: #ef8442; }
.warning-tab-icon.blue, .editor-icon.blue { background: #418fe2; } .warning-tab-icon.teal, .editor-icon.teal { background: #17a795; }
.warning-tab-icon.indigo, .editor-icon.indigo { background: #6072d8; } .warning-tab-icon.cyan, .editor-icon.cyan { background: #2baac1; }
.warning-tab-icon.pink, .editor-icon.pink { background: #d764a4; } .warning-tab-icon.green, .editor-icon.green { background: #2eae71; }
.warning-tab-content { padding: 28px 30px 10px; min-height: 290px; }
.warning-tab-panel { display: block; }
.warning-tab-panel[hidden] { display: none !important; }
.message-editor-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.message-editor-title { display: flex; align-items: center; gap: 12px; } .message-editor-title h3 { color: #1b3552; font-size: 16px; font-weight: 800; margin: 0 0 5px; }
.message-editor-title p { color: #8a9aad; font-size: 12px; margin: 0; }
.message-language { color: #6b7e94; background: #f1f5f9; border-radius: 8px; font-size: 12px; padding: 7px 10px; }
.message-language i { margin-left: 5px; color: #54718f; }
.warning-tab-content label { color: #304b67; display: block; font-size: 13px; font-weight: 700; margin-bottom: 9px; }
.warning-tab-content textarea { border: 1px solid #dce5ef; border-radius: 11px; color: #263e58; font-family: inherit; font-size: 14px; line-height: 2; min-height: 128px; padding: 13px 15px; resize: vertical; transition: .2s; }
.warning-tab-content textarea:focus { border-color: #5aa6f0; box-shadow: 0 0 0 3px rgba(49, 136, 226, .12); }
.editor-hint { color: #8a9aad; font-size: 11px; margin-top: 9px; } .editor-hint i { margin-left: 5px; color: #6ca9df; }
.warning-pages-actions { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #edf1f5; padding: 18px 28px; color: #8798aa; font-size: 11px; }
.warning-pages-actions i { margin-left: 5px; } .warning-save-button { background: #148f7d; border: 0; border-radius: 9px; color: #fff; font-family: inherit; font-size: 13px; font-weight: 700; padding: 11px 22px; }
.warning-save-button:hover { background: #0d7667; color: #fff; } .warning-save-button i { margin-left: 7px; }
@media (max-width: 700px) { .warning-pages-heading, .warning-pages-actions { align-items: stretch; flex-direction: column; } .warning-pages-breadcrumb { padding-top: 10px; } .warning-pages-card-top, .warning-tab-content { padding-right: 18px; padding-left: 18px; } .warning-tabs { padding: 0 12px; } }

/* Login history dashboard */
.login-history-page { background: #f4f7fb; min-height: calc(100vh - 57px); }
.login-history-header { padding: 28px 0 22px; }
.page-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.page-eyebrow, .card-kicker { color: #55708e; font-size: 12px; font-weight: 700; }
.page-eyebrow i { color: #14a78d; margin-left: 6px; }
.page-heading-row h1 { color: #10243d; font-size: 28px; font-weight: 800; margin: 8px 0 6px; }
.page-heading-row h1 i { color: #6072d8; font-size: 24px; margin-left: 8px; }
.page-heading-row p { color: #71839a; font-size: 13px; margin: 0; }
.page-breadcrumb { display: flex; align-items: center; gap: 10px; color: #8a9aad; font-size: 12px; padding-bottom: 7px; }
.page-breadcrumb a { color: #147fe6; } .page-breadcrumb strong { color: #3a526d; }
.login-history-content { padding-bottom: 30px; }
.login-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-bottom: 18px; }
.login-summary-card { align-items: center; background: #fff; border: 1px solid #e3eaf2; border-radius: 14px; box-shadow: 0 8px 22px rgba(34, 67, 104, .05); display: flex; gap: 13px; padding: 17px 19px; }
.summary-icon { align-items: center; border-radius: 11px; display: inline-flex; height: 42px; justify-content: center; width: 42px; }
.login-summary-card.total .summary-icon { background: #edf3ff; color: #5474d9; }
.login-summary-card.success .summary-icon { background: #e8faf4; color: #119272; }
.login-summary-card.failed .summary-icon { background: #fff0f2; color: #e4576b; }
.login-summary-card div { display: flex; flex-direction: column; gap: 3px; }
.login-summary-card span:not(.summary-icon) { color: #7c8da0; font-size: 11px; font-weight: 700; }
.login-summary-card strong { color: #1c3653; font-size: 21px; line-height: 1; }
.login-history-card { background: #fff; border: 1px solid #e3eaf2; border-radius: 18px; box-shadow: 0 12px 30px rgba(34, 67, 104, .07); overflow: hidden; }
.login-history-card-head { align-items: center; border-bottom: 1px solid #e7edf4; display: flex; justify-content: space-between; padding: 21px 25px 18px; }
.login-history-card-head h2 { color: #132b46; font-size: 18px; font-weight: 800; margin: 6px 0 4px; }
.login-history-card-head p { color: #8a9aad; font-size: 12px; margin: 0; }
.history-card-icon { align-items: center; background: #edf3ff; border-radius: 12px; color: #5474d9; display: inline-flex; font-size: 17px; height: 42px; justify-content: center; width: 42px; }
.login-history-table-wrap { padding: 18px 20px 11px; }
.login-history-table { color: #39475a; margin-bottom: 0 !important; }
.login-history-table thead th { background: #f7f9fc; color: #647991; font-size: 11px; font-weight: 800; padding: 13px 12px; white-space: nowrap; }
.login-history-table thead th i { color: #8ca0b5; margin-left: 5px; }
.login-history-table tbody td { border-color: #edf0f4; font-size: 12px; padding: 13px 12px; vertical-align: middle; }
.login-history-table tbody tr:hover { background: #f8fbff; }
.record-id { color: #6f8297 !important; font-size: 11px !important; font-weight: 800; }
.login-username { align-items: center; color: #294561; display: inline-flex; font-weight: 700; gap: 7px; }
.login-username i { color: #93a5b7; font-size: 16px; }
.login-ip { background: #f3f6fa; border-radius: 6px; color: #42617e; direction: ltr; font-family: monospace; font-size: 11px; padding: 5px 7px; }
.login-date { color: #415a75; display: inline-block; direction: ltr; }
.login-history-table td small { color: #9aa8b7; direction: ltr; display: inline-block; font-size: 10px; margin-right: 7px; }
.login-status { align-items: center; border-radius: 20px; display: inline-flex; font-size: 11px; font-weight: 800; gap: 5px; padding: 5px 9px; }
.login-status.success { background: #e8faf0; color: #15945d; } .login-status.failed { background: #fff0f2; color: #dd4b62; }
.login-lookup-button { background: #148f7d; border-radius: 7px; color: #fff; display: inline-flex; font-size: 11px; font-weight: 700; gap: 6px; padding: 8px 12px; white-space: nowrap; }
.login-lookup-button:hover { background: #0d7667; color: #fff; text-decoration: none; }
.login-history-table-wrap .dataTables_wrapper .dataTables_filter input { border: 1px solid #dce5ef; border-radius: 8px; color: #304b67; font-family: inherit; font-size: 12px; margin-right: 7px; padding: 7px 10px; }
.login-history-table-wrap .dataTables_wrapper .dataTables_filter input:focus { border-color: #5aa6f0; box-shadow: 0 0 0 3px rgba(49, 136, 226, .12); outline: 0; }
.login-history-table-wrap .dataTables_wrapper .dataTables_length select { border: 1px solid #dce5ef; border-radius: 7px; color: #304b67; font-family: inherit; margin: 0 5px; padding: 5px 7px; }
.login-history-table-wrap .dataTables_wrapper .dataTables_info { color: #8293a5; font-size: 11px; padding-top: 15px; }
.login-history-table-wrap .dataTables_wrapper .dataTables_paginate { padding-top: 10px; }
.login-history-table-wrap .dataTables_wrapper .paginate_button { border-radius: 7px !important; color: #55708e !important; font-size: 11px; margin: 0 2px; }
.login-history-table-wrap .dataTables_wrapper .paginate_button.current { background: #148f7d !important; border-color: #148f7d !important; color: #fff !important; }
@media (max-width: 700px) { .page-heading-row { align-items: stretch; flex-direction: column; } .page-breadcrumb { padding-top: 10px; } .login-summary-grid { grid-template-columns: 1fr; } .login-history-card-head { padding: 18px; } .login-history-table-wrap { padding: 12px 10px; } }

/* SQL injection module dashboard */
.sqli-page { background: #f4f7fb; min-height: calc(100vh - 57px); }
.sqli-header { padding: 28px 0 22px; }
.sqli-content { padding-bottom: 30px; }
.sqli-save-alert { background: #e9fbf4; border: 1px solid #b7eed7; border-radius: 12px; color: #087d5e; font-size: 13px; margin-bottom: 16px; padding: 13px 16px; }
.sqli-save-alert i { margin-left: 8px; }
.sqli-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(285px, .9fr); align-items: start; gap: 18px; }
.sqli-status-card, .sqli-panel, .sqli-info-card { background: #fff; border: 1px solid #e3eaf2; border-radius: 17px; box-shadow: 0 10px 28px rgba(34, 67, 104, .06); }
.sqli-status-card { align-items: center; border-right: 4px solid #14a78d; display: flex; gap: 15px; margin-bottom: 18px; padding: 20px 22px; }
.sqli-status-card.is-disabled { border-right-color: #e4576b; }
.sqli-status-icon { align-items: center; background: #e8faf4; border-radius: 13px; color: #148f7d; display: inline-flex; flex: 0 0 48px; font-size: 20px; height: 48px; justify-content: center; }
.is-disabled .sqli-status-icon { background: #fff0f2; color: #dd4b62; }
.sqli-status-copy { flex: 1; }
.sqli-status-copy h2 { color: #142f4b; font-size: 18px; font-weight: 800; margin: 5px 0 4px; }
.sqli-status-copy p { color: #8091a4; font-size: 12px; margin: 0; }
.sqli-status-badge { background: #e8faf4; border-radius: 18px; color: #0d8c6b; font-size: 12px; font-weight: 800; padding: 8px 12px; white-space: nowrap; }
.sqli-status-badge i { font-size: 7px; margin-left: 5px; vertical-align: middle; }
.is-disabled .sqli-status-badge { background: #fff0f2; color: #dd4b62; }
.sqli-panel { overflow: hidden; }
.sqli-panel-head { align-items: center; border-bottom: 1px solid #e7edf4; display: flex; justify-content: space-between; padding: 21px 23px 17px; }
.sqli-panel-head.compact { padding-bottom: 18px; }
.sqli-panel-head h2 { color: #132b46; font-size: 18px; font-weight: 800; margin: 6px 0 4px; }
.sqli-panel-head p { color: #8a9aad; font-size: 12px; margin: 0; }
.sqli-panel-icon, .aside-icon { align-items: center; background: #edf3ff; border-radius: 11px; color: #5474d9; display: inline-flex; height: 40px; justify-content: center; width: 40px; }
.sqli-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 20px 22px; }
.sqli-feature-card { align-items: center; border: 1px solid #e5ebf2; border-radius: 12px; cursor: pointer; display: flex; gap: 11px; min-height: 79px; padding: 12px 13px; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.sqli-feature-card:hover { border-color: #a9d9d0; box-shadow: 0 6px 15px rgba(34, 67, 104, .06); transform: translateY(-1px); }
.feature-icon { align-items: center; border-radius: 10px; color: #fff; display: inline-flex; flex: 0 0 35px; height: 35px; justify-content: center; }
.feature-icon.cyan { background: #2baac1; } .feature-icon.purple { background: #8d70db; } .feature-icon.blue { background: #418fe2; }
.feature-icon.orange { background: #ef8442; } .feature-icon.green { background: #2eae71; } .feature-icon.indigo { background: #6072d8; } .feature-icon.pink { background: #d764a4; }
.feature-copy { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.feature-copy strong, .module-option strong { color: #294561; font-size: 12px; font-weight: 800; }
.feature-copy small, .module-option small, .module-redirect small { color: #8a9aad; font-size: 10px; line-height: 1.7; }
.sqli-feature-card .switchery { flex: 0 0 auto; }
.sqli-panel-actions { align-items: center; border-top: 1px solid #edf1f5; color: #8a9aad; display: flex; font-size: 11px; justify-content: space-between; padding: 16px 22px; }
.sqli-panel-actions i { color: #6ca9df; margin-left: 5px; }
.sqli-save-button { background: #148f7d; border: 0; border-radius: 8px; color: #fff; cursor: pointer; font-family: inherit; font-size: 12px; font-weight: 800; padding: 10px 14px; transition: background .18s ease, transform .18s ease; }
.sqli-save-button:hover { background: #0d7667; color: #fff; transform: translateY(-1px); }
.sqli-save-button i { margin-left: 6px; }
.sqli-info-card { margin-bottom: 18px; padding: 21px 22px; }
.sqli-aside-title { align-items: center; display: flex; gap: 10px; }
.sqli-aside-title h2 { color: #132b46; font-size: 16px; font-weight: 800; margin: 0; }
.aside-icon { background: #fff4e9; color: #e98b3c; height: 35px; width: 35px; }
.sqli-info-card p { color: #667b92; font-size: 12px; line-height: 2; margin: 16px 0; }
.sqli-tip { align-items: flex-start; background: #f1f7ff; border-radius: 9px; color: #54718f; display: flex; font-size: 11px; gap: 7px; line-height: 1.8; padding: 9px 10px; }
.sqli-tip i { color: #e8a52c; margin-top: 4px; }
.module-options { padding: 7px 22px 15px; }
.module-option { align-items: center; border-bottom: 1px solid #edf1f5; cursor: pointer; display: flex; justify-content: space-between; margin: 0; padding: 14px 0; }
.module-option > span { display: flex; flex-direction: column; gap: 3px; }
.module-option:last-of-type { border-bottom: 0; }
.module-redirect { padding: 16px 0 7px; }
.module-redirect label { color: #304b67; display: block; font-size: 12px; margin-bottom: 8px; }
.module-redirect .form-control { font-size: 12px; }
.module-redirect small { display: block; margin-top: 6px; }
.sqli-save-button.full { border-radius: 0; display: block; padding: 13px; width: 100%; }
@media (max-width: 900px) { .sqli-layout { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .sqli-feature-grid { grid-template-columns: 1fr; padding: 15px; } .sqli-status-card { align-items: flex-start; flex-wrap: wrap; padding: 17px; } .sqli-status-badge { margin-right: 63px; } .sqli-panel-actions { align-items: stretch; flex-direction: column; gap: 12px; } }

/* All logs dashboard */
.logs-page { background: #f4f7fb; min-height: calc(100vh - 68px); }
.logs-header { padding: 28px 0 22px; }
.logs-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.logs-heading-row h1 { color: #10243d; font-size: 28px; font-weight: 800; margin: 8px 0 6px; }
.logs-heading-row h1 i { color: #5474d9; font-size: 24px; margin-left: 8px; }
.logs-heading-row p { color: #71839a; font-size: 13px; margin: 0; }
.logs-content { padding-bottom: 30px; }
.logs-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 18px; }
.logs-summary-card { align-items: center; background: #fff; border: 1px solid #e3eaf2; border-radius: 14px; box-shadow: 0 8px 22px rgba(34,67,104,.05); display: flex; gap: 13px; padding: 17px 19px; }
.logs-summary-card .summary-icon { align-items: center; border-radius: 11px; display: inline-flex; height: 42px; justify-content: center; width: 42px; }
.logs-summary-card.total .summary-icon { background: #edf3ff; color: #5474d9; } .logs-summary-card.danger .summary-icon { background: #fff0f2; color: #e4576b; } .logs-summary-card.warning .summary-icon { background: #fff7e8; color: #df9a2b; } .logs-summary-card.success .summary-icon { background: #e8faf4; color: #119272; }
.logs-summary-card div { display: flex; flex-direction: column; gap: 3px; } .logs-summary-card span:not(.summary-icon) { color: #7c8da0; font-size: 11px; font-weight: 700; } .logs-summary-card strong { color: #1c3653; font-size: 21px; line-height: 1; }
.logs-card { background: #fff; border: 1px solid #e3eaf2; border-radius: 18px; box-shadow: 0 12px 30px rgba(34,67,104,.07); overflow: hidden; }
.logs-card-head { align-items: center; border-bottom: 1px solid #e7edf4; display: flex; justify-content: space-between; gap: 18px; padding: 21px 25px 18px; }
.logs-card-head h2 { color: #132b46; font-size: 18px; font-weight: 800; margin: 6px 0 4px; } .logs-card-head p { color: #8a9aad; font-size: 12px; margin: 0; }
.logs-delete-button { background: #fff0f2; border: 1px solid #ffd5dc; border-radius: 8px; color: #d84c61; cursor: pointer; font-family: inherit; font-size: 12px; font-weight: 800; padding: 10px 14px; white-space: nowrap; } .logs-delete-button:hover { background: #d84c61; color: #fff; }
.logs-table-wrap { padding: 18px 20px 11px; overflow-x: auto; } .logs-table { color: #39475a; margin-bottom: 0 !important; min-width: 980px; }
.logs-table thead th { background: #f7f9fc; color: #647991; font-size: 11px; font-weight: 800; padding: 13px 12px; white-space: nowrap; } .logs-table thead th i { color: #8ca0b5; margin-left: 5px; }
.logs-table tbody td { border-color: #edf0f4; font-size: 12px; padding: 12px; vertical-align: middle; white-space: nowrap; } .logs-table tbody tr:hover { background: #f8fbff; }
.record-id { color: #6f8297 !important; font-size: 11px !important; font-weight: 800; } .logs-ip { background: #f3f6fa; border-radius: 6px; color: #42617e; direction: ltr; font-family: monospace; font-size: 11px; padding: 5px 7px; }
.logs-date { color: #415a75; direction: ltr; display: inline-block; } .logs-table td small { color: #9aa8b7; direction: ltr; display: inline-block; font-size: 10px; margin-right: 7px; }
.logs-device { align-items: center; display: inline-flex; gap: 6px; } .logs-device img { height: 16px; max-width: 20px; object-fit: contain; }
.log-type { align-items: center; border-radius: 20px; display: inline-flex; font-size: 11px; font-weight: 800; gap: 5px; padding: 5px 9px; } .log-type.blue { background: #edf3ff; color: #5474d9; } .log-type.green { background: #e8faf4; color: #119272; } .log-type.amber { background: #fff7e8; color: #b47b1b; } .log-type.red { background: #fff0f2; color: #dd4b62; }
.logs-actions { display: flex; gap: 6px; } .logs-action { align-items: center; border-radius: 7px; display: inline-flex; height: 30px; justify-content: center; width: 30px; } .logs-action.view { background: #edf3ff; color: #5474d9; } .logs-action.warning { background: #fff7e8; color: #b47b1b; } .logs-action.success { background: #e8faf4; color: #119272; } .logs-action.danger { background: #fff0f2; color: #dd4b62; } .logs-action:hover { filter: brightness(.94); text-decoration: none; }
.logs-table-wrap .dataTables_wrapper .dataTables_filter input { border: 1px solid #dce5ef; border-radius: 8px; color: #304b67; font-family: inherit; font-size: 12px; margin-right: 7px; padding: 7px 10px; } .logs-table-wrap .dataTables_wrapper .dataTables_length select { border: 1px solid #dce5ef; border-radius: 7px; color: #304b67; font-family: inherit; margin: 0 5px; padding: 5px 7px; } .logs-table-wrap .dataTables_wrapper .dataTables_info { color: #8293a5; font-size: 11px; padding-top: 15px; } .logs-table-wrap .dataTables_wrapper .dataTables_paginate { padding-top: 10px; } .logs-table-wrap .dataTables_wrapper .paginate_button { border-radius: 7px !important; color: #55708e !important; font-size: 11px; margin: 0 2px; } .logs-table-wrap .dataTables_wrapper .paginate_button.current { background: #5474d9 !important; border-color: #5474d9 !important; color: #fff !important; }
@media (max-width: 900px) { .logs-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .logs-heading-row { align-items: stretch; flex-direction: column; } .page-breadcrumb { padding-top: 10px; } }
@media (max-width: 600px) { .logs-summary-grid { grid-template-columns: 1fr; } .logs-card-head { align-items: stretch; flex-direction: column; padding: 18px; } .logs-delete-button { width: 100%; } .logs-table-wrap { padding: 12px 10px; } }

/* IP bans dashboard */
.bans-page { background: #f4f7fb; min-height: calc(100vh - 68px); }
.bans-header { padding: 28px 0 22px; }
.bans-heading-row { align-items: flex-end; display: flex; gap: 24px; justify-content: space-between; }
.bans-heading-row h1 { color: #10243d; font-size: 28px; font-weight: 800; margin: 8px 0 6px; }
.bans-heading-row h1 i { color: #e4576b; font-size: 24px; margin-left: 8px; }
.bans-heading-row p { color: #71839a; font-size: 13px; margin: 0; }
.bans-content { padding-bottom: 30px; }
.bans-alert { align-items: center; border: 1px solid; border-radius: 10px; display: flex; font-size: 12px; gap: 8px; margin-bottom: 16px; padding: 12px 15px; }
.bans-alert.success { background: #e8faf4; border-color: #bceede; color: #16866f; }
.bans-alert.info { background: #edf3ff; border-color: #cfddff; color: #5474d9; }
.bans-alert.danger { background: #fff0f2; border-color: #ffd3da; color: #d84c61; }
.bans-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-bottom: 18px; }
.bans-summary-card { align-items: center; background: #fff; border: 1px solid #e3eaf2; border-radius: 14px; box-shadow: 0 8px 22px rgba(34,67,104,.05); display: flex; gap: 13px; padding: 17px 19px; }
.bans-summary-card .summary-icon { align-items: center; background: #fff0f2; border-radius: 11px; color: #e4576b; display: inline-flex; height: 42px; justify-content: center; width: 42px; }
.bans-summary-card:nth-child(2) .summary-icon { background: #edf3ff; color: #5474d9; }
.bans-summary-card:nth-child(3) .summary-icon { background: #e8faf4; color: #119272; }
.bans-summary-card div { display: flex; flex-direction: column; gap: 3px; }
.bans-summary-card span:not(.summary-icon) { color: #7c8da0; font-size: 11px; font-weight: 700; }
.bans-summary-card strong { color: #1c3653; font-size: 21px; line-height: 1; }
.bans-layout { align-items: start; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) 320px; }
.bans-panel, .bans-form-panel { background: #fff; border: 1px solid #e3eaf2; border-radius: 18px; box-shadow: 0 12px 30px rgba(34,67,104,.07); overflow: hidden; }
.bans-panel-head { align-items: center; border-bottom: 1px solid #e7edf4; display: flex; gap: 18px; justify-content: space-between; padding: 21px 25px 18px; }
.bans-panel-head h2, .bans-form-head h2 { color: #132b46; font-size: 18px; font-weight: 800; margin: 6px 0 4px; }
.bans-panel-head p, .bans-form-head p { color: #8a9aad; font-size: 12px; margin: 0; }
.bans-delete-button { background: #fff0f2; border: 1px solid #ffd5dc; border-radius: 8px; color: #d84c61; cursor: pointer; font-family: inherit; font-size: 12px; font-weight: 800; padding: 10px 14px; white-space: nowrap; }
.bans-delete-button:hover { background: #d84c61; color: #fff; }
.bans-table-wrap { overflow-x: auto; padding: 18px 20px 11px; }
.bans-table { color: #39475a; margin-bottom: 0 !important; min-width: 820px; }
.bans-table thead th { background: #f7f9fc; color: #647991; font-size: 11px; font-weight: 800; padding: 13px 12px; white-space: nowrap; }
.bans-table thead th i { color: #8ca0b5; margin-left: 5px; }
.bans-table tbody td { border-color: #edf0f4; font-size: 12px; padding: 12px; vertical-align: middle; white-space: nowrap; }
.bans-table tbody tr:hover { background: #f8fbff; }
.bans-ip { background: #f3f6fa; border-radius: 6px; color: #42617e; direction: ltr; font-family: monospace; font-size: 11px; padding: 5px 7px; }
.bans-date { color: #415a75; direction: ltr; display: inline-block; }
.bans-table td small { color: #9aa8b7; direction: ltr; display: inline-block; font-size: 10px; margin-right: 7px; }
.bans-reason { color: #63758a; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.bans-pill { border-radius: 20px; display: inline-block; font-size: 11px; font-weight: 800; min-width: 34px; padding: 5px 9px; text-align: center; }
.bans-pill.yes { background: #e8faf4; color: #119272; }
.bans-pill.no { background: #f3f6fa; color: #8494a6; }
.bans-actions { display: flex; gap: 6px; }
.bans-action { align-items: center; border-radius: 7px; display: inline-flex; height: 30px; justify-content: center; width: 30px; }
.bans-action.edit { background: #edf3ff; color: #5474d9; }
.bans-action.success { background: #e8faf4; color: #119272; }
.bans-action:hover { filter: brightness(.94); text-decoration: none; }
.bans-form-head { align-items: center; border-bottom: 1px solid #e7edf4; display: flex; gap: 12px; padding: 20px 21px 17px; }
.form-icon { align-items: center; background: #fff0f2; border-radius: 11px; color: #e4576b; display: inline-flex; flex: 0 0 42px; height: 42px; justify-content: center; }
.form-icon.edit { background: #edf3ff; color: #5474d9; }
.bans-form { padding: 19px 21px 21px; }
.bans-form label { color: #516982; display: block; font-size: 11px; font-weight: 800; margin-bottom: 15px; }
.bans-form input, .bans-form select { background: #f8fafc; border: 1px solid #dfe7ef; border-radius: 8px; box-sizing: border-box; color: #304b67; display: block; font-family: inherit; font-size: 12px; margin-top: 7px; min-height: 39px; padding: 8px 10px; width: 100%; }
.bans-form input:focus, .bans-form select:focus { border-color: #9cb5dd; box-shadow: 0 0 0 3px rgba(84,116,217,.1); outline: 0; }
.bans-readonly-grid { background: #f7f9fc; border: 1px solid #e6edf4; border-radius: 9px; display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin: 4px 0 18px; padding: 11px; }
.bans-readonly-grid span { color: #8999aa; font-size: 10px; }
.bans-readonly-grid strong { color: #506982; display: block; font-size: 11px; margin-top: 4px; }
.bans-form-actions { display: flex; gap: 8px; }
.bans-primary, .bans-danger, .bans-secondary { border-radius: 8px; cursor: pointer; font-family: inherit; font-size: 12px; font-weight: 800; padding: 10px 13px; }
.bans-primary { background: #5474d9; border: 1px solid #5474d9; color: #fff; }
.bans-danger { background: #e4576b; border: 1px solid #e4576b; color: #fff; }
.bans-secondary { background: #f3f6fa; border: 1px solid #dfe7ef; color: #60758c; text-decoration: none; }
.bans-help { color: #8a9aad; display: block; font-size: 10px; line-height: 1.8; margin: -7px 0 17px; }
.bans-pill.black { background: #fff0f2; color: #d84c61; }
.country-name { color: #405a76; display: block; font-weight: 800; }
.country-code { color: #9aa8b7; display: block; font-size: 10px; margin-top: 3px; }
.country-mode-panel { align-items: center; background: linear-gradient(110deg,#172f4b,#203f62); border-radius: 16px; box-shadow: 0 12px 28px rgba(23,47,75,.14); color: #fff; display: flex; gap: 20px; justify-content: space-between; margin-bottom: 18px; padding: 19px 23px; }
.country-mode-panel h2 { font-size: 17px; font-weight: 800; margin: 5px 0 4px; }
.country-mode-panel p { color: #c3d1e0; font-size: 11px; margin: 0; }
.country-mode-actions form { display: flex; gap: 8px; }
.country-mode-actions button { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.18); border-radius: 8px; color: #e8f0f8; cursor: pointer; font-family: inherit; font-size: 11px; font-weight: 800; padding: 10px 13px; }
.country-mode-actions button.active-danger { background: #e4576b; border-color: #e4576b; color: #fff; }
.country-mode-actions button.active-success { background: #20a987; border-color: #20a987; color: #fff; }
.other-block-layout { align-items: start; display: grid; gap: 18px; grid-template-columns: 300px minmax(0,1fr); }
.other-block-grid { display: grid; gap: 18px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.other-list-panel { min-width: 0; }
.other-list-panel .bans-panel-head { padding: 17px 19px 15px; }
.other-list-panel .bans-panel-head h2 { font-size: 15px; }
.other-list-panel .bans-panel-head h2 i { color: #5474d9; margin-left: 5px; }
.other-list-panel .bans-table-wrap { padding: 11px 13px 13px; }
.other-table { min-width: 260px; }
.other-table thead th { padding: 10px 9px; }
.other-table tbody td { padding: 10px 9px; }
.other-value { color: #405a76; display: block; max-width: 245px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.other-table .bans-actions { justify-content: flex-end; }
.other-block-layout .bans-form-panel { position: sticky; top: 84px; }
.bans-primary:hover, .bans-danger:hover { filter: brightness(.95); }
@media (max-width: 1100px) { .bans-layout { grid-template-columns: 1fr; } .bans-form-panel { order: -1; } }
@media (max-width: 900px) { .bans-summary-grid { grid-template-columns: 1fr; } .bans-heading-row { align-items: stretch; flex-direction: column; } }
@media (max-width: 600px) { .bans-panel-head { align-items: stretch; flex-direction: column; padding: 18px; } .bans-delete-button { width: 100%; } .bans-table-wrap { padding: 12px 10px; } }
@media (max-width: 1050px) { .other-block-layout { grid-template-columns: 1fr; } .other-block-layout .bans-form-panel { order: -1; position: static; } }
@media (max-width: 760px) { .other-block-grid { grid-template-columns: 1fr; } .country-mode-panel { align-items: stretch; flex-direction: column; } .country-mode-actions form { width: 100%; } .country-mode-actions button { flex: 1; } }

/* Malicious bots module dashboard */
.badbot-page { background: #f4f7fb; min-height: calc(100vh - 57px); }
.badbot-header { padding: 28px 0 22px; }
.badbot-content { padding-bottom: 30px; }
.badbot-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 20px 22px; }
.feature-icon.danger { background: #ee5b6e; }
.badbot-feature-grid .sqli-feature-card { align-items: flex-start; flex-direction: column; min-height: 178px; padding: 16px; }
.badbot-feature-grid .sqli-feature-card .feature-copy { gap: 7px; }
.badbot-feature-grid .sqli-feature-card .feature-copy strong { font-size: 13px; }
.badbot-feature-grid .sqli-feature-card .feature-copy small { font-size: 11px; line-height: 1.9; }
.badbot-feature-grid .sqli-feature-card .switchery { margin-top: auto; }
@media (max-width: 1100px) { .badbot-feature-grid { grid-template-columns: 1fr; } .badbot-feature-grid .sqli-feature-card { min-height: 0; } }

/* Content protection page */
.content-protection-page .content-header { padding-bottom: 4px; }
.content-protection-page .content-header h1 { font-size: 1.7rem; }
.content-protection-page .content { padding-top: 8px; }
.protection-intro-card {
  align-items: center;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  min-height: 104px;
  margin-bottom: 16px !important;
  padding: 22px 26px !important;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbfc 100%) !important;
}
.protection-intro-card .form-group { align-items: center; display: contents; }
.protection-intro-card .col-md-2 { flex: 0 0 auto; order: -1; padding: 0; }
.protection-intro-card .col-md-10 { padding: 0; }
.protection-intro-card .control-label { display: block; color: #19314b; font-size: 1rem; font-weight: 800; margin: 0 0 7px; }
.protection-intro-card .col-md-10 { color: #75879a; font-size: .79rem; }
.protection-intro-card .switchery { margin: 0; }
.protection-save {
  display: block;
  width: 100%;
  margin: 0 0 24px !important;
  border: 0 !important;
  border-radius: 0 !important;
  min-height: 43px;
  color: #fff;
  background: linear-gradient(100deg, #117d73, #159789) !important;
  box-shadow: 0 8px 18px rgba(17,125,115,.17) !important;
  font-size: .88rem;
}
.protection-save:hover { background: linear-gradient(100deg, #0e6d65, #117d73) !important; }
.protection-grid {
  display: grid !important;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px;
  margin: 0 !important;
  direction: rtl;
  align-items: stretch;
  grid-auto-flow: row;
}
.protection-item {
  display: flex;
  align-self: start;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
}
.protection-card {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: auto;
  margin: 0 !important;
  border-radius: 15px !important;
  box-shadow: 0 7px 22px rgba(30,58,82,.055) !important;
}
.protection-card-header { min-height: 54px; padding: 15px 18px !important; }
.protection-card-header .card-title { font-size: .91rem; line-height: 1.7; }
.protection-card-header .card-title i { color: #1a8d82; margin-left: 5px; }
.protection-card-body { display: flex; flex: 1 1 auto; flex-direction: column; padding: 17px 20px 13px !important; }
.protection-description { min-height: 42px; margin: 0 !important; color: #40566d; font-size: .78rem; line-height: 2; }
.protection-card-body hr { width: 100%; margin: 12px 0 16px; border-top-color: #edf0f4; }
.protection-card-body .form-group { margin-bottom: 14px; }
.protection-card-body .form-group > label { display: block; margin-bottom: 7px; color: #253f59; font-size: .78rem; }
.protection-card-body .form-group > .col-md-12 { padding: 0; }
.protection-card-body .switchery { margin: 0; }
.protection-card-body .form-group:last-child { margin-top: auto; margin-bottom: 0; }
.protection-card-body .form-control { height: 40px; min-height: 40px; background: #fbfcfe; }
.protection-card-developer_tools {
  align-self: start;
  height: 50vh !important;
  min-height: 0 !important;
  max-height: 50vh !important;
}
.protection-card-developer_tools .protection-card-body {
  overflow: visible;
}
@media (max-width: 1450px) {
  .protection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 700px) {
  .protection-intro-card { align-items: flex-start; flex-direction: column; gap: 16px; padding: 20px !important; }
  .protection-intro-card .col-md-2 { order: 0; }
  .protection-grid { grid-template-columns: 1fr !important; }
  .protection-card-developer_tools { height: auto !important; min-height: 0 !important; max-height: none !important; }
}
