
/* ── VARIABLES ─────────────────────────────────────── */
:root {
  --sidebar-bg: #0f1923;
  --sidebar-hover: #1a2736;
  --accent: #e8192c;
  --accent-hover: #c41225;
  --accent-light: rgba(232,25,44,0.08);
  --body-bg: #f0f2f5;
  --card-bg: #ffffff;
  --text-primary: #1a2332;
  --text-secondary: #6b7a8d;
  --text-light: #a0aab4;
  --border: #e2e8f0;
  --input-bg: #f8fafc;
  --success: #10b981;
  --sidebar-width: 230px;
  --topbar-height: 57px;
}

/* ── BASE ──────────────────────────────────────────── */
* { box-sizing: border-box; }

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--body-bg);
}

a { color: #5A738E; text-decoration: none; }
a:hover, a:focus { text-decoration: none; color: var(--accent); outline: 0; }
a, a:visited, a:focus, a:active,
.btn:focus, .btn:active:focus, .btn.active:focus { outline: 0; }

.container { width: 100%; padding: 0; }
.no-padding { padding: 0 !important; }
.clearfix::after, form::after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }

/* ── LAYOUT ─────────────────────────────────────────── */
.nav-md .container.body .col-md-3.left_col {
  min-height: 100%;
  width: var(--sidebar-width);
  padding: 0;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.nav-md .container.body .col-md-3.left_col.menu_fixed {
  position: fixed;
  height: 100%;
}

body .container.body .right_col {
  background: var(--body-bg);
}

.nav-md .container.body .right_col {
  padding: calc(var(--topbar-height) + 24px) 24px 24px;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

/* ── SIDEBAR ─────────────────────────────────────────── */
.left_col {
  background: var(--sidebar-bg);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #2a3f54 transparent;
}

.left_col::-webkit-scrollbar { width: 4px; }
.left_col::-webkit-scrollbar-thumb { background: #2a3f54; border-radius: 4px; }

/* ── LOGO / SITE TITLE ────────────────────────────── */
.navbar.nav_title {
  background: var(--sidebar-bg) !important;
  border: none !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
  width: var(--sidebar-width);
  float: none;
  height: var(--topbar-height);
  padding: 0 16px;
  display: flex !important;
  align-items: center;
  margin: 0;
  border-radius: 0 !important;
}

.site_title {
  font-size: 18px;
  font-weight: 700;
  color: #fff !important;
  height: var(--topbar-height);
  line-height: var(--topbar-height);
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding-left: 0;
  margin: 0;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
}

.site_title:hover, .site_title:focus {
  text-decoration: none;
  color: #fff !important;
}

.site_title i {
  font-size: 14px;
  background: var(--accent);
  width: 32px; height: 32px;
  border-radius: 8px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0 !important;
}

/* ── PROFILE ─────────────────────────────────────────── */
.profile {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.profile_pic {
  width: 40px;
  float: none;
  flex-shrink: 0;
}

.img-circle.profile_img {
  width: 40px !important;
  height: 40px;
  border-radius: 50% !important;
  margin: 0 !important;
  margin-left: 0 !important;
  margin-top: 0 !important;
  border: 2px solid rgba(255,255,255,0.15) !important;
  padding: 1px !important;
  background: rgba(255,255,255,0.08);
  object-fit: cover;
  position: static !important;
  z-index: auto;
}

.profile_info {
  padding: 0 !important;
  width: auto !important;
  float: none !important;
  flex: 1;
  min-width: 0;
}

.profile_info span {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  line-height: 1.4;
  display: block;
}

.profile_info h2 {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #fff !important;
  margin: 0 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── SIDEBAR MENU ────────────────────────────────────── */
.main_menu_side { padding: 0; }

.menu_section { margin-bottom: 6px; }

.menu_section h3 {
  font-size: 9px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.22) !important;
  padding: 14px 20px 4px;
  margin: 0;
  text-shadow: none !important;
}

.menu_section > ul { margin-top: 0; }

.nav.side-menu > li {
  position: relative;
  display: block;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: border-color 0.15s;
}

.nav.side-menu > li > a {
  padding: 9px 16px;
  color: rgba(255,255,255,0.58);
  font-size: 12.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  transition: all 0.15s;
  position: relative;
}

.nav.side-menu > li > a:hover,
.nav.side-menu > li > a:focus {
  color: rgba(255,255,255,0.92);
  background: var(--sidebar-hover);
  text-decoration: none;
}

.nav.side-menu > li > a i {
  width: 16px !important;
  text-align: center;
  font-size: 13px !important;
  flex-shrink: 0;
  margin-bottom: 0 !important;
}

.nav.side-menu > li.current-page,
.nav.side-menu > li.active {
  border-left: 3px solid var(--accent);
  background: var(--accent-light);
}

.nav.side-menu > li.active > a {
  color: #fff !important;
  text-shadow: none !important;
  background: none !important;
  box-shadow: none !important;
}

.main_menu span.fa {
  float: right;
  margin-top: 2px !important;
  font-size: 10px !important;
  min-width: inherit;
  color: rgba(255,255,255,0.25) !important;
}

.active a span.fa { text-align: right !important; margin-right: 0; }

/* ── CHILD MENU ──────────────────────────────────────── */
.nav.child_menu {
  display: none;
  background: rgba(0,0,0,0.18);
  padding: 4px 0;
}

.nav.child_menu li { padding: 0; }

.nav.child_menu li:hover,
.nav.child_menu li.active {
  background: rgba(255,255,255,0.04);
}

.nav.child_menu > li > a {
  color: rgba(255,255,255,0.42);
  font-size: 12px;
  padding: 7px 16px 7px 44px;
  display: block;
  transition: color 0.15s;
  font-weight: 400;
}

.nav.child_menu li:hover > a,
.nav.child_menu li.active > a,
.nav.child_menu li li a:hover,
.nav.child_menu li li a.active {
  color: rgba(255,255,255,0.88);
  background: none;
  text-decoration: none;
}

.nav.child_menu li li:hover,
.nav.child_menu li li.active { background: none; }

.nav-md ul.nav.child_menu li:before,
.nav-md ul.nav.child_menu li:after { display: none !important; }

/* ── SIDEBAR FOOTER ──────────────────────────────────── */
.sidebar-footer {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 8px;
  display: flex;
  gap: 6px;
  background: var(--sidebar-bg);
  width: var(--sidebar-width);
  position: sticky;
  bottom: 0;
  clear: both;
}

.sidebar-footer a {
  flex: 1;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 8px !important;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  color: rgba(255,255,255,0.45) !important;
  font-size: 14px;
  transition: all 0.15s;
  text-align: center;
  float: none !important;
  width: auto !important;
}

.sidebar-footer a:hover {
  background: rgba(255,255,255,0.12);
  color: #fff !important;
}

/* ── TOPBAR ──────────────────────────────────────────── */
.main_container .top_nav {
  display: block;
  margin-left: var(--sidebar-width);
  position: fixed;
  top: 0;
  right: 0;
  left: var(--sidebar-width);
  z-index: 50;
}

.navbar-static-top {
  position: fixed;
  top: 0;
  width: 100%;
}

.nav_menu {
  float: none;
  background: #fff;
  border-bottom: 1px solid var(--border);
  width: 100%;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  padding: 0 20px;
  margin-bottom: 0;
  position: relative;
}

.nav_menu nav {
  display: flex;
  align-items: center;
  width: 100%;
}

.toggle {
  float: none;
  margin: 0;
  padding: 0;
  width: auto;
}

.toggle a {
  padding: 8px;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  border-radius: 6px;
  transition: all 0.15s;
}

.toggle a:hover { background: var(--body-bg); color: var(--text-primary); }
.toggle a i { font-size: 20px; }

.navbar { margin-bottom: 0; }
.navbar-header { background: transparent; }
.navbar-right { margin-right: 0; }

.navbar-brand,
.navbar-nav > li > a {
  color: var(--text-primary) !important;
  font-weight: 500;
  margin-left: 0 !important;
  line-height: var(--topbar-height);
}

.nav.navbar-nav > li > a { color: #515356 !important; }

.top_nav .navbar-right { margin: 0; width: 70%; float: right; }
.top_nav .navbar-right li { display: inline-block; float: right; position: static; }
.top_nav .dropdown-menu li { width: 100%; }
.top_nav .dropdown-menu li a { width: 100%; padding: 10px 18px; }
.top_nav .nav > li > a:focus,
.top_nav .nav > li > a:hover,
.top_nav .nav .open > a,
.top_nav .nav .open > a:focus,
.top_nav .nav .open > a:hover { background: var(--body-bg); }

/* ── PAGE TITLE ──────────────────────────────────────── */
.page-title {
  width: 100%;
  height: auto;
  padding: 0 0 20px;
}

.page-title .title_left {
  width: 55%;
  float: left;
  display: block;
}

.page-title .title_left h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.page-title .title_right {
  width: 45%;
  float: left;
  display: block;
}

.page-title .title_right .pull-right { margin: 0; }

/* ── X_PANEL (cartes) ────────────────────────────────── */
.x_panel {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
  padding: 0;
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  opacity: 1;
  transition: all 0.2s ease;
  overflow: hidden;
  -webkit-column-break-inside: avoid;
  -moz-column-break-inside: avoid;
  column-break-inside: avoid;
}

.x_title {
  border-bottom: 2px solid var(--border);
  padding: 14px 20px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  background: #fafbfc;
}

.x_title h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  float: left;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.x_title h2 small {
  margin-left: 8px;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 400;
}

.x_title span { color: var(--text-light); }
.x_title .filter { width: 40%; float: right; }

.x_content {
  padding: 20px;
  position: relative;
  width: 100%;
  float: left;
  clear: both;
  margin-top: 0;
}

/* ── FORMS ───────────────────────────────────────────── */
.form-control {
  border-radius: 6px !important;
  width: 100%;
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--input-bg);
  border: 1px solid var(--border);
  transition: all 0.15s;
  box-shadow: none !important;
  height: auto;
}

.form-control:focus {
  border-color: var(--accent) !important;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(232,25,44,0.08) !important;
  outline: none;
}

.form-control:disabled,
.form-control[disabled] {
  background: #f1f5f9;
  color: var(--text-light);
  cursor: not-allowed;
  opacity: 1;
}

select.form-control { cursor: pointer; }

.form-horizontal .form-group {
  margin-right: 0;
  margin-left: 0;
  margin-bottom: 16px;
}

.form-horizontal .control-label {
  padding-top: 9px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.form-group { margin-bottom: 16px; }

.input-group { margin-bottom: 0; }

.input-group-addon {
  background: #eef2f7;
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 6px 0 0 6px !important;
  color: var(--text-secondary);
  padding: 8px 12px;
}

.input-group .form-control {
  border-radius: 0 6px 6px 0 !important;
}

.required { color: var(--accent); }

.ln_solid {
  border-top: 1px solid var(--border);
  background: transparent;
  height: 1px;
  margin: 20px 0;
  color: transparent;
}

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  padding: 8px 18px;
  transition: all 0.15s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  margin-right: 5px;
}

.btn-group .btn { margin-bottom: 0; margin-right: 0; }
.btn-group-vertical .btn { margin-bottom: 0; margin-right: 0; }

.btn-success {
  background: var(--accent) !important;
  border: 1px solid var(--accent) !important;
  color: #fff !important;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success.active,
.open .dropdown-toggle.btn-success {
  background: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(232,25,44,0.28);
}

.btn-default {
  background: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-default:hover {
  background: #e9eef5;
  border-color: #c8d0dc;
  color: var(--text-primary);
}

.btn-primary {
  background: #3498DB;
  border: 1px solid #2980b9;
  color: #fff;
}

.btn-primary:hover {
  background: #2980b9;
  border-color: #217dbb;
  color: #fff;
}

.btn-dark {
  background: #4B5F71;
  border-color: #364B5F;
  color: #E9EDEF;
}

.btn-dark:hover,
.btn-dark:focus,
.btn-dark:active {
  background: #394D5F;
  border-color: #394D5F;
  color: #fff;
}

.btn-round { border-radius: 30px; }

a.btn-success, a.btn-primary, a.btn-warning, a.btn-danger { color: #fff; }

/* ── CHECKBOXES / TOGGLES ────────────────────────────── */
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent);
  cursor: pointer;
}

/* ── DROPDOWN ────────────────────────────────────────── */
.dropdown-menu {
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  padding: 4px 0;
  font-size: 13px;
  background: #fff;
  float: left;
  list-style: none outside none;
  text-shadow: none;
  top: 100%;
  z-index: 9998;
}

.dropdown-menu > li > a {
  padding: 8px 16px;
  color: var(--text-primary);
  display: block;
  transition: all 0.1s;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
  background: var(--body-bg);
  color: var(--accent);
  text-decoration: none;
}

.navbar-nav .open .dropdown-menu {
  position: absolute;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 220px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  margin-top: 0;
  right: 0;
  left: auto;
}

.navbar-nav .open .dropdown-menu.msg_list { width: 300px; }

.info-number .badge {
  font-size: 10px;
  font-weight: normal;
  line-height: 13px;
  padding: 2px 6px;
  position: absolute;
  right: 2px;
  top: 8px;
  background: var(--accent);
}

/* ── ALERTS ──────────────────────────────────────────── */
.alert-success { color: #fff; background-color: rgba(38,185,154,0.88); border-color: rgba(38,185,154,0.88); }
.alert-info    { color: #E9EDEF; background-color: rgba(52,152,219,0.88); border-color: rgba(52,152,219,0.88); }
.alert-warning { color: #E9EDEF; background-color: rgba(243,156,18,0.88); border-color: rgba(243,156,18,0.88); }
.alert-danger, .alert-error { color: #E9EDEF; background-color: rgba(231,76,60,0.88); border-color: rgba(231,76,60,0.88); }

/* ── PROGRESS ────────────────────────────────────────── */
.progress { border-radius: 4px; }
.progress-bar-info    { background-color: #3498DB; }
.progress-bar-success { background-color: #1ABB9C; }
.progress-bar-dark    { background-color: #34495E !important; }
.progress-bar-gray    { background-color: #BDC3C7 !important; }

/* ── TILES / STATS ───────────────────────────────────── */
.tile-stats {
  position: relative;
  display: block;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: all 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  padding-bottom: 5px;
}

.tile-stats .icon {
  width: 20px; height: 20px;
  color: #BAB8B8;
  position: absolute;
  right: 48px; top: 18px;
  z-index: 1;
}

.tile-stats .icon i { margin: 0; font-size: 56px; line-height: 0; vertical-align: bottom; }

.tile-stats .count {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.6;
  position: relative;
  margin: 0;
  margin-left: 12px;
  z-index: 5;
}

.tile-stats h3 { color: var(--text-secondary); position: relative; margin: 0; margin-left: 12px; z-index: 5; }
.tile-stats p  { margin-top: 4px; margin-left: 12px; font-size: 12px; position: relative; z-index: 5; }

.tile_count { margin-bottom: 20px; margin-top: 20px; }

.tile_count .tile_stats_count {
  border-bottom: 1px solid var(--border);
  padding: 0 10px 0 20px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.tile_count .tile_stats_count:before {
  content: "";
  position: absolute;
  left: 0;
  height: 65px;
  border-left: 2px solid var(--border);
  margin-top: 10px;
}

.tile_count .tile_stats_count .count { font-size: 30px; line-height: 47px; font-weight: 600; }
.tile_count .tile_stats_count span { font-size: 12px; }

/* ── PANEL TOOLBOX ───────────────────────────────────── */
.panel_toolbox { float: right; min-width: 70px; }
.panel_toolbox > li { float: left; cursor: pointer; }
.panel_toolbox > li > a { padding: 5px; color: var(--text-light); font-size: 14px; display: block; }
.panel_toolbox > li > a:hover { color: var(--accent); background: transparent; }

/* ── TABLES ──────────────────────────────────────────── */
table.jambo_table { border: 1px solid rgba(221,221,221,0.78); }
table.jambo_table thead { background: var(--sidebar-bg); color: #ECF0F1; }
table.jambo_table tbody tr:hover td {
  background: rgba(232,25,44,0.05);
  border-top: 1px solid rgba(232,25,44,0.1);
  border-bottom: 1px solid rgba(232,25,44,0.1);
}
table.jambo_table tbody tr.selected { background: rgba(232,25,44,0.1); }
table.jambo_table tbody tr.selected td {
  border-top: 1px solid rgba(232,25,44,0.35);
  border-bottom: 1px solid rgba(232,25,44,0.35);
}
table.dataTable th.focus,
table.dataTable td.focus { outline: 2px solid var(--accent) !important; outline-offset: -1px; }

.dataTables_wrapper { position: relative; clear: both; zoom: 1; }
.dataTables_length { width: 40%; float: left; }
.dataTables_filter { width: 50%; float: right; text-align: right; }
.dataTables_info { width: 60%; float: left; }
.dataTables_paginate { float: right; text-align: right; }
.dataTables_paginate a { padding: 6px 9px !important; background: #ddd !important; border-color: #ddd !important; }
.paging_full_numbers a.paginate_active { background-color: rgba(232,25,44,0.55) !important; border-color: rgba(232,25,44,0.55) !important; }

/* ── FOOTER ──────────────────────────────────────────── */
footer {
  background: #fff;
  padding: 14px 24px;
  display: block;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
}

.nav-sm footer { margin-left: 70px; }

/* ── NPROGRESS ───────────────────────────────────────── */
#nprogress .bar { background: var(--accent); }
#nprogress .peg { box-shadow: 0 0 10px var(--accent), 0 0 5px var(--accent); }
#nprogress .spinner-icon { border-top-color: var(--accent); border-left-color: var(--accent); }

/* ── DATERANGEPICKER ─────────────────────────────────── */
.daterangepicker .ranges li { color: var(--text-secondary); }
.daterangepicker .ranges li.active,
.daterangepicker .ranges li:hover { background: var(--accent); border: 1px solid var(--accent); color: #fff; }
.daterangepicker td.active,
.daterangepicker td.active:hover { background-color: var(--accent); color: #fff; }
.daterangepicker td.in-range { background: rgba(232,25,44,0.08); color: var(--text-primary); }
.daterangepicker th.available:hover { background: #eee; color: var(--text-primary); }
.daterangepicker .input-mini { background-color: #eee; border: 1px solid #ccc; box-shadow: none !important; }
.daterangepicker .input-mini.active { border: 1px solid #ccc; }
.daterangepicker select.monthselect,
.daterangepicker select.yearselect,
.daterangepicker select.hourselect,
.daterangepicker select.minuteselect,
.daterangepicker select.secondselect,
.daterangepicker select.ampmselect {
  font-size: 12px; padding: 1px; height: 30px; margin: 0;
  cursor: default; border: 1px solid #ADB2B5;
  line-height: 30px; border-radius: 0 !important;
}

/* ── COLOR UTILITIES ─────────────────────────────────── */
.blue   { color: #3498DB; }
.purple { color: #9B59B6; }
.green  { color: #1ABB9C; }
.aero   { color: #9CC2CB; }
.red    { color: #E74C3C; }
.dark   { color: #34495E; }

.bg-white  { background: #fff !important; border: 1px solid #fff !important; color: #73879C; }
.bg-green  { background: #1ABB9C !important; border: 1px solid #1ABB9C !important; color: #fff; }
.bg-red    { background: #E74C3C !important; border: 1px solid #E74C3C !important; color: #fff; }
.bg-blue   { background: #3498DB !important; border: 1px solid #3498DB !important; color: #fff; }
.bg-orange { background: #F39C12 !important; border: 1px solid #F39C12 !important; color: #fff; }
.bg-purple { background: #9B59B6 !important; border: 1px solid #9B59B6 !important; color: #fff; }

/* ── GRID ────────────────────────────────────────────── */
.col-md-55, .col-xs-1, .col-sm-1, .col-md-1, .col-lg-1,
.col-xs-2, .col-sm-2, .col-md-2, .col-lg-2,
.col-xs-3, .col-sm-3, .col-md-3, .col-lg-3,
.col-xs-4, .col-sm-4, .col-md-4, .col-lg-4,
.col-xs-5, .col-sm-5, .col-md-5, .col-lg-5,
.col-xs-6, .col-sm-6, .col-md-6, .col-lg-6,
.col-xs-7, .col-sm-7, .col-md-7, .col-lg-7,
.col-xs-8, .col-sm-8, .col-md-8, .col-lg-8,
.col-xs-9, .col-sm-9, .col-md-9, .col-lg-9,
.col-xs-10, .col-sm-10, .col-md-10, .col-lg-10,
.col-xs-11, .col-sm-11, .col-md-11, .col-lg-11,
.col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 {
  position: relative;
  min-height: 1px;
  float: left;
  padding-right: 10px;
  padding-left: 10px;
}

.row { margin-right: -10px; margin-left: -10px; }

/* ── HEADINGS ────────────────────────────────────────── */
h1, .h1, h2, .h2, h3, .h3 { margin-top: 10px; margin-bottom: 10px; }
h2 { font-size: 18px; font-weight: 600; }

/* ── COLLAPSED SIDEBAR (nav-sm) ──────────────────────── */
.nav-sm .container.body .col-md-3.left_col {
  width: 70px; padding: 0; z-index: 9999; position: fixed; min-height: 100%;
}
.nav-sm .container.body .col-md-3.left_col.menu_fixed { position: fixed; height: 100%; }
.nav-sm .hidden-small { visibility: hidden; }
.nav-sm .container.body .right_col { padding: 80px 20px 20px; margin-left: 70px; z-index: 2; }
.nav-sm .navbar.nav_title { width: 70px; }
.nav-sm .navbar.nav_title a span { display: none; }
.nav-sm .navbar.nav_title a i { font-size: 24px; margin: 0 auto; display: block; }
.nav-sm .main_container .top_nav { display: block; margin-left: 70px; z-index: 2; }
.nav-sm .nav.side-menu li a { text-align: center !important; font-weight: 400; font-size: 10px; padding: 10px 5px; flex-direction: column; gap: 3px; }
.nav-sm .nav.child_menu li.active,
.nav-sm .nav.side-menu li.active-sm { border-right: 5px solid var(--accent); }
.nav-sm > .nav.side-menu > li.active-sm > a { color: var(--accent) !important; }
.nav-sm .nav.side-menu li a i { font-size: 22px !important; text-align: center; width: 100% !important; margin-bottom: 3px; }
.nav-sm ul.nav.child_menu { left: 100%; position: absolute; top: 0; width: 210px; z-index: 4000; background: #1a2736; display: none; border-radius: 0 8px 8px 0; }
.nav-sm ul.nav.child_menu li { padding: 0 10px; }
.nav-sm ul.nav.child_menu li a { text-align: left !important; }
.nav-sm .profile { display: none; }
.nav-sm span.fa, .nav-sm .menu_section h3 { display: none; }
.nav-sm li li span.fa { display: inline-block; }
.nav-sm .menu_section { margin: 0; }
.nav-sm footer { margin-left: 70px; }
.nav-sm .sidebar-footer { width: 70px; }

/* ── MISC ────────────────────────────────────────────── */
.hidden-small { visibility: hidden; }
legend { font-size: 18px; color: inherit; padding-bottom: 7px; }
.line_30 { line-height: 30px; }
.main_content { padding: 10px 20px; }
.fixed_height_320 { height: 320px; }
.fixed_height_390 { height: 390px; }
.fixed_height_200 { height: 200px; }
.overflow_hidden { overflow: hidden; }
.center-margin { margin: 0 auto; float: none !important; }
.sidebar-header { border-bottom: 0; margin-top: 46px; }
.sidebar-header:first-of-type { margin-top: 0; }
table.no-margin .progress { margin-bottom: 0; }

/* ── SCROLLBAR ───────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 991px) {
  .nav-md .container.body .right_col,
  .nav-md .container.body .top_nav { width: 100%; margin: 0; }
  .nav-md .container.body .col-md-3.left_col { display: none; }
  .nav-md .container.body .right_col { width: 100%; padding: 80px 16px 16px; }
  .main_container .top_nav { margin-left: 0 !important; left: 0; }
  .right_col { padding: 10px !important; }
}

@media (min-width: 992px) {
  footer { margin-left: var(--sidebar-width); }
  .tile_count .tile_stats_count { margin-bottom: 10px; border-bottom: 0; padding-bottom: 10px; }
  .tile_count .tile_stats_count:first-child:before { border-left: 0; }
  .tile_count .tile_stats_count .count { font-size: 40px; }
}

@media (max-width: 1200px) {
  .x_title h2 { width: 62%; font-size: 14px; }
}

/* ════════════════════════════════════════════════════════
   LOGIN PAGE
   ════════════════════════════════════════════════════════ */

body.login {
  background: linear-gradient(135deg, #0f1923 0%, #1a2f45 50%, #0f1923 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Decorative background circles */
body.login::before,
body.login::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
}

body.login::before {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,25,44,0.08) 0%, transparent 70%);
  top: -200px; right: -100px;
}

body.login::after {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,25,44,0.05) 0%, transparent 70%);
  bottom: -100px; left: -100px;
}

/* Hidden anchors for signup/signin toggle */
a.hiddenanchor { display: none; }

/* Wrapper */
.login_wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 16px;
  z-index: 1;
}

/* Form containers */
.animate.form {
  -webkit-animation-duration: 0.4s;
  animation-duration: 0.4s;
  -webkit-animation-timing-function: ease;
  animation-timing-function: ease;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

.login_form {
  position: relative;
  z-index: 22;
  width: 100%;
}

.registration_form {
  position: absolute;
  top: 0; left: 0;
  z-index: 21;
  opacity: 0;
  width: 100%;
  pointer-events: none;
}

#signup:target ~ .login_wrapper .registration_form,
#signin:target ~ .login_wrapper .login_form {
  z-index: 22;
  opacity: 1;
  pointer-events: auto;
  -webkit-animation-name: fadeInLeft;
  animation-name: fadeInLeft;
  -webkit-animation-delay: 0.05s;
  animation-delay: 0.05s;
}

#signup:target ~ .login_wrapper .login_form,
#signin:target ~ .login_wrapper .registration_form {
  -webkit-animation-name: fadeOutLeft;
  animation-name: fadeOutLeft;
}

/* Login content card */
.login_content {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 36px 36px;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.35),
    0 4px 16px rgba(0,0,0,0.2);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Top accent bar */
.login_content::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #ff5f70);
  border-radius: 16px 16px 0 0;
}

/* Logo / Title */
.login_content h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin: 0 0 8px;
  line-height: 1.2;
}

.login_content h1:first-child {
  /* First empty h1 used as logo placeholder */
  font-size: 0;
  margin: 0 0 20px;
  display: block;
}

.login_content h1:first-child::before {
  content: 'RadioTools';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 255px; height: 64px;
  background: linear-gradient(135deg, var(--accent), #ff5f70);
  border-radius: 16px;
  font-size: 22px;
  font-weight: 900;
  color: white;
  letter-spacing: 1px;
  box-shadow: 0 8px 24px rgba(232,25,44,0.35);
}

/* Form inputs */
.login_content form {
  margin: 24px 0 0;
  position: relative;
  text-align: left;
}

.login_content form > div {
  margin-bottom: 14px;
}

.login_content form input[type="text"],
.login_content form input[type="email"],
.login_content form input[type="password"] {
  width: 100%;
  padding: 11px 16px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  transition: all 0.2s;
  outline: none;
  box-shadow: none;
  margin: 0 0 0;
}

.login_content form input[type="text"]:focus,
.login_content form input[type="email"]:focus,
.login_content form input[type="password"]:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(232,25,44,0.1);
}

.login_content form input[type="text"]::placeholder,
.login_content form input[type="email"]::placeholder,
.login_content form input[type="password"]::placeholder {
  color: var(--text-light);
}

/* Submit button */
.login_content form .btn-success {
  width: 100%;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), #ff3d52) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(232,25,44,0.35);
  margin: 6px 0 0;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}

.login_content form .btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(232,25,44,0.45) !important;
  background: linear-gradient(135deg, #c41225, var(--accent)) !important;
}

.login_content form .btn-success:active {
  transform: translateY(0);
}

/* Links */
.login_content a {
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 500;
  transition: color 0.15s;
}

.login_content a:hover { color: var(--accent-hover); text-decoration: underline; }

.login_content form div a {
  font-size: 12px;
  display: inline-block;
  margin-top: 10px;
}

.reset_pass {
  float: right;
  margin-top: 12px !important;
  font-size: 12px;
}

/* Separator */
.separator {
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 16px;
  text-align: center;
}

.separator p { font-size: 12.5px; color: var(--text-secondary); margin: 0; }

.change_link .to_register {
  color: var(--accent);
  font-weight: 600;
}

/* Register form btn */
.login_content .btn-default.submit {
  width: 100%;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  justify-content: center;
  border: 1.5px solid var(--border) !important;
  color: var(--text-primary) !important;
  background: var(--input-bg) !important;
}

.login_content .btn-default.submit:hover {
  background: #e9eef5 !important;
  border-color: #c8d0dc !important;
}

/* Subtitle below title */
.login_content h1 + h1 + form,
.login_content h1 ~ p {
  color: var(--text-secondary);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 480px) {
  .login_wrapper { padding: 12px; }
  .login_content { padding: 32px 24px 28px; }
  .login_content h1 { font-size: 22px; }
}
