/* ============================================
   MIKHMON UI â€” Blue Theme (Modern Redesign)
   LebraGroup Edition
   ============================================ */

:root {
  --bg-body: #0c1222;
  --bg-surface: #132035;
  --bg-card: #172640;
  --bg-card-header: #1c2e4a;
  --bg-sidebar: #0f1a2e;
  --bg-navbar: #0f1a2e;
  --bg-input: #0f1a2e;
  --bg-hover: #1e3352;
  --bg-active: rgba(59, 130, 246, 0.12);

  --border-color: rgba(255, 255, 255, 0.06);
  --border-focus: #6366f1;

  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-heading: #f1f5f9;

  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-subtle: rgba(59, 130, 246, 0.15);

  --blue: #3b82f6;
  --green: #22c55e;
  --yellow: #eab308;
  --red: #ef4444;
  --orange: #f97316;
  --cyan: #06b6d4;
  --purple: #a855f7;
  --pink: #ec4899;
  --teal: #14b8a6;
  --indigo: #6366f1;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* â”€â”€ Reset & Base â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-body);
  margin: 0;
  padding: 0;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-hover);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--accent);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-heading);
  margin: 0;
  padding: 0;
  font-weight: 600;
}

input,
select,
textarea,
button {
  font-family: var(--font-sans);
}

/* â”€â”€ Scrollbar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

::-webkit-scrollbar-corner {
  background: var(--bg-body);
}

/* â”€â”€ Navbar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 56px;
  background: var(--bg-navbar);
  border-bottom: 1px solid var(--border-color);
  z-index: 100;
  display: flex;
  align-items: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

.navbar-left {
  display: flex;
  align-items: center;
  flex: 1;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 14px;
  flex-shrink: 0;
  white-space: nowrap;
}

.navbar-left a,
.navbar-right a {
  color: var(--text-primary);
  text-align: center;
  padding: 10px 14px;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.navbar-left a:hover,
.navbar-right a:hover {
  color: #fff;
  background: var(--bg-hover);
}

.navbar-hover:hover {
  background: var(--bg-hover);
}

/* Navbar right items */
.navbar-right .nav-divider {
  width: 1px;
  height: 24px;
  background: var(--border-color);
  margin: 0 4px;
}

#logout {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 12px !important;
  padding: 6px 12px !important;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: transparent;
  transition: var(--transition-fast);
}

#logout:hover {
  color: #fff !important;
  background: var(--red) !important;
  border-color: var(--red) !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.navbar-right .nav-idle {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 12px;
  padding: 6px 10px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

#brand {
  min-width: 180px;
  font-weight: 700;
  font-size: 18px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 10px 20px;
}

#brand span {
  font-size: 18px;
  line-height: 1;
}

/* — Grid System ————————————————————————— */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -8px;
}

.col-1,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-10,
.col-11,
.col-12 {
  padding: 0 8px;
  box-sizing: border-box;
  min-width: 0;
  flex-shrink: 0;
}

.col-1 {
  flex: 0 0 8.333%;
  max-width: 8.333%;
}

.col-2 {
  flex: 0 0 16.666%;
  max-width: 16.666%;
}

.col-3 {
  flex: 0 0 25%;
  max-width: 25%;
}

.col-4 {
  flex: 0 0 33.333%;
  max-width: 33.333%;
}

.col-5 {
  flex: 0 0 41.666%;
  max-width: 41.666%;
}

.col-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.col-7 {
  flex: 0 0 58.333%;
  max-width: 58.333%;
}

.col-8 {
  flex: 0 0 66.666%;
  max-width: 66.666%;
}

.col-9 {
  flex: 0 0 75%;
  max-width: 75%;
}

.col-10 {
  flex: 0 0 83.333%;
  max-width: 83.333%;
}

.col-11 {
  flex: 0 0 91.666%;
  max-width: 91.666%;
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}


#cpage {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 14px;
}

/* â”€â”€ Theme & Session Selects â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ses,
.dropd {
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 12px;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2364748b'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 24px;
}

.ses:hover,
.dropd:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.ses:focus,
.dropd:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-subtle);
}

.ses option,
.dropd option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.optfa {
  min-width: 120px;
}

/* â”€â”€ Sidebar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sidenav {
  position: fixed;
  height: 100%;
  width: 0;
  z-index: 99;
  top: 0;
  left: 0;
  background: var(--bg-sidebar);
  overflow-x: hidden;
  overflow-y: auto;
  margin-top: 57px;
  border-right: 1px solid var(--border-color);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding-bottom: 60px;
}

.sidenav::-webkit-scrollbar {
  width: 3px;
}

.sidenav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.sidenav a,
.dropdown-btn {
  text-decoration: none;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  background: none;
  width: calc(100% - 16px);
  text-align: left;
  cursor: pointer;
  outline: 0;
  transition: var(--transition-fast);
  padding: 10px 14px;
  margin: 2px 8px;
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

.sidenav i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  margin: 0;
  padding: 0;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.dropdown-btn:hover,
.sidenav a:hover {
  color: #fff;
  background: var(--bg-hover);
}

.dropdown-btn:hover i,
.sidenav a:hover i {
  color: var(--accent-hover);
}

.active {
  background: var(--bg-active) !important;
  color: var(--accent-hover) !important;
  font-weight: 500;
}

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

.dropdown-container {
  display: none;
  transition: var(--transition);
  padding-left: 10px;
}

.dropdown-container i {
  padding-left: 0;
  font-size: 14px;
}

.menu-open {
  display: block;
}

.fa-caret-down,
.fa-caret-left {
  float: right;
  color: var(--text-muted);
  margin-left: auto;
  font-size: 12px;
}

.spa {
  border-bottom: 1px solid var(--border-color);
  margin: 8px 12px;
}

.menu.text-center.align-middle.card-header {
  background: var(--bg-card-header);
  color: var(--text-primary);
  padding: 16px;
  margin: 0 0 8px 0;
  border-radius: 0;
  border: none;
  text-align: center;
}

.menu.text-center.align-middle.card-header h3 {
  color: var(--text-primary);
  font-size: 15px;
}

/* â”€â”€ Main Content â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#main {
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 60px;
  min-height: calc(100vh - 60px);
}

.main-container {
  padding: 8px 12px 20px 12px;
}

.wrapper {
  width: 100%;
}

/* â”€â”€ Notify & Loading â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#notify {
  display: none;
  position: fixed;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  width: 240px;
  left: 50%;
  margin-left: -120px;
  padding: 12px 16px;
  text-align: center;
  border-radius: var(--radius-md);
  z-index: 999;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  top: 70px;
}

#temp {
  display: none;
}

.lds-dual-ring {
  display: inline-block;
  width: 64px;
  height: 64px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -32px;
  margin-left: -32px;
}

.lds-dual-ring:after {
  content: " ";
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: var(--accent);
  border-bottom-color: var(--cyan);
  animation: lds-dual-ring 0.8s ease-in-out infinite;
}

@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* â”€â”€ Cards â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.card {
  background: var(--bg-card);
  margin: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
}

.card a {
  text-decoration: none;
  color: var(--text-primary);
}

.card h3 {
  margin: 0;
  font-size: 15px;
}

.card-header {
  padding: 12px 16px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card-header);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.card-body {
  padding: 12px 16px;
  margin-bottom: 8px;
}

.card-footer a {
  padding: 0 0 5px;
  margin-top: 5px;
  min-height: 20px;
}

/* â”€â”€ Boxes (Stat Cards) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.box {
  padding: 14px;
  margin: 6px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  background: var(--bg-card);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.box a {
  color: #fff;
  text-decoration: none;
}

.box h1 {
  padding: 0;
  margin: 0;
  font-size: 28px;
  font-weight: 700;
}

.box-bordered {
  border: 1px solid var(--border-color);
}

.box-group>div {
  display: table-cell;
  vertical-align: middle;
}

.box-group-icon {
  font-size: 32px;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
  width: 25%;
  padding: 8px;
  margin: 4px;
  border-radius: var(--radius-sm);
  border: none;
  line-height: 1.5;
  color: var(--accent-hover);
}

.box-group-area {
  padding: 6px;
  line-height: 1.7;
}

.bmh-50 {
  min-height: 50px;
}

.bmh-55 {
  min-height: 55px;
}

.bmh-60 {
  min-height: 60px;
}

.bmh-65 {
  min-height: 65px;
}

.bmh-70 {
  min-height: 70px;
}

.bmh-75 {
  min-height: 75px;
}

.bmh-80 {
  min-height: 80px;
}

.bmh-85 {
  min-height: 85px;
}

.bmh-90 {
  min-height: 90px;
}

.bmh-95 {
  min-height: 95px;
}

.bmh-100 {
  min-height: 100px;
}

/* â”€â”€ Grid System â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */





/* â”€â”€ Tables â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.table {
  width: 100%;
  border-collapse: collapse !important;
}

.table td,
.table th {
  padding: 10px 12px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
  border-bottom: 1px solid var(--border-color);
}

.table th {
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  background: var(--bg-card-header);
}

.table-bordered td,
.table-bordered th {
  border: 1px solid var(--border-color) !important;
}

.table-hover tbody tr {
  transition: var(--transition-fast);
}

.table-hover:hover tbody tr:hover {
  background: var(--bg-hover);
}

.table-sm td,
.table-sm th {
  padding: 6px 8px;
}

.tscroll tbody {
  display: block;
  overflow: auto;
  height: 70vh;
}

.tscroll thead {
  position: relative;
  display: block;
}

/* â”€â”€ Forms â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.form-control {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-sizing: border-box;
  transition: var(--transition-fast);
}

.form-control:focus {
  color: var(--text-primary);
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.form-control::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

input {
  margin: auto;
  box-sizing: border-box;
  vertical-align: middle;
}

.input-group::after {
  content: "";
  clear: both;
  display: table;
}

[class*="input-group-"] {
  float: left;
}

.input-group-1 {
  width: 8.33%
}

.input-group-2 {
  width: 16.66%
}

.input-group-3 {
  width: 25%
}

.input-group-4 {
  width: 33.33%
}

.input-group-5 {
  width: 41.66%
}

.input-group-6 {
  width: 50%
}

.input-group-7 {
  width: 58.33%
}

.input-group-8 {
  width: 66.66%
}

.input-group-9 {
  width: 75%
}

.input-group-10 {
  width: 83.33%
}

.input-group-11 {
  width: 91.66%
}

.input-group-12 {
  width: 100%
}

.group-item {
  display: block;
  font-size: 14px;
  background: var(--bg-input);
  color: var(--text-primary);
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  box-sizing: border-box;
  transition: var(--transition-fast);
}

.group-item:focus {
  color: var(--text-primary);
  border-color: var(--accent);
  outline: 0;
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.group-item::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.group-item-l {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.group-item-r {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.group-item-md {
  border-radius: 0;
}

/* â”€â”€ Buttons â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  user-select: none;
  padding: 8px 16px;
  vertical-align: middle;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  margin: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition-fast);
}

.btn:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  padding: 12px 24px;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
}

.btn-login:hover {
  box-shadow: 0 0 0 3px var(--accent-subtle);
  transform: translateY(-1px);
}

button {
  text-decoration: none;
  display: inline-block;
  border: none;
  background: none;
  font-size: 14px;
  cursor: pointer;
  line-height: 1.5;
}

/* â”€â”€ Color Classes â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
[class*="bg-"] {
  text-decoration: none;
}

.bg-primary {
  background: linear-gradient(135deg, #6366f1, #818cf8);
  color: #fff;
}

.bg-secondary {
  background: #334155;
  color: #e2e8f0;
}

.bg-success {
  background: linear-gradient(135deg, #22c55e, #4ade80);
  color: #fff;
}

.bg-info {
  background: linear-gradient(135deg, #06b6d4, #22d3ee);
  color: #fff;
}

.bg-warning {
  background: linear-gradient(135deg, #eab308, #facc15);
  color: #1a1d27;
}

.bg-danger {
  background: linear-gradient(135deg, #ef4444, #f87171);
  color: #fff;
}

.bg-light {
  background: #f1f5f9;
  color: #1e293b;
}

.bg-dark {
  background: var(--bg-body);
  color: var(--text-primary);
}

.bg-blue {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: #fff;
}

.bg-indigo {
  background: linear-gradient(135deg, #6366f1, #818cf8);
  color: #fff;
}

.bg-purple {
  background: linear-gradient(135deg, #a855f7, #c084fc);
  color: #fff;
}

.bg-pink {
  background: linear-gradient(135deg, #ec4899, #f472b6);
  color: #fff;
}

.bg-red {
  background: linear-gradient(135deg, #ef4444, #f87171);
  color: #fff;
}

.bg-orange {
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: #fff;
}

.bg-yellow {
  background: linear-gradient(135deg, #eab308, #facc15);
  color: #1a1d27;
}

.bg-green {
  background: linear-gradient(135deg, #22c55e, #4ade80);
  color: #fff;
}

.bg-teal {
  background: linear-gradient(135deg, #14b8a6, #2dd4bf);
  color: #fff;
}

.bg-cyan {
  background: linear-gradient(135deg, #06b6d4, #22d3ee);
  color: #fff;
}

.bg-white {
  background: #fff;
  color: #1e293b;
}

.bg-grey,
.bg-grey-dark {
  background: #334155;
  color: #e2e8f0;
}

.bg-light-blue {
  background: linear-gradient(135deg, #38bdf8, #7dd3fc);
  color: #fff;
}

/* Text Colors */
[class*="text-"] {
  text-decoration: none;
}

.text-primary {
  color: var(--accent);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-success {
  color: var(--green);
}

.text-info {
  color: var(--cyan);
}

.text-warning {
  color: var(--yellow);
}

.text-danger {
  color: var(--red);
}

.text-light {
  color: #f1f5f9;
}

.text-dark {
  color: #1e293b;
}

.text-blue {
  color: var(--blue);
}

.text-indigo {
  color: var(--indigo);
}

.text-purple {
  color: var(--purple);
}

.text-pink {
  color: var(--pink);
}

.text-red {
  color: var(--red);
}

.text-orange {
  color: var(--orange);
}

.text-yellow {
  color: var(--yellow);
}

.text-green {
  color: var(--green);
}

.text-teal {
  color: var(--teal);
}

.text-cyan {
  color: var(--cyan);
}

.text-white {
  color: #fff;
}

.text-grey {
  color: var(--text-secondary);
}

.text-grey-dark {
  color: var(--text-muted);
}

.text-light-blue {
  color: #38bdf8;
}

.cl-w {
  color: var(--text-primary);
}

/* â”€â”€ Text Utilities â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.text-bold,
.text-center b {
  font-weight: 600;
}

.align-middle {
  vertical-align: middle;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.text-nowrap {
  white-space: nowrap;
}

/* â”€â”€ Login â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.login-box,
.register-box {
  width: 420px;
  margin: 0 auto;
  padding-top: 8%;
}

@media (max-width: 576px) {

  .login-box,
  .register-box {
    width: 92%;
    margin-top: 20px;
    padding-top: 15%;
  }
}

/* â”€â”€ Settings â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.settings {
  width: 66.66%;
  margin-top: 5%;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 750px) {
  .settings {
    width: 95%;
    margin-top: 5px;
  }
}

/* â”€â”€ Progress Bar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.progress {
  width: 100%;
  background: var(--bg-body);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 10px;
  max-width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

.progress-bar-blue {
  height: 10px;
  max-width: 100%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: var(--radius-full);
}

.progress-bar-red {
  height: 10px;
  max-width: 100%;
  background: linear-gradient(90deg, var(--red), var(--orange));
  border-radius: var(--radius-full);
}

/* â”€â”€ Modal â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.modal-window {
  position: fixed;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.modal-window:target {
  opacity: 1;
  pointer-events: auto;
}

.modal-window>div {
  width: 33.33%;
  position: relative;
  margin: 8% auto;
  padding: 24px;
  background: var(--bg-card);
  color: var(--text-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.modal-close {
  color: #fff;
  line-height: 28px;
  position: absolute;
  right: 0;
  text-align: center;
  top: 0;
  width: 40px;
  text-decoration: none;
  background: var(--red);
  border-top-right-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-sm);
  font-size: 16px;
}

.modal-close:hover {
  background: #dc2626;
  color: #fff;
}

.modal-window h1 {
  font-size: 150%;
  margin: 0 0 15px;
}

/* â”€â”€ Overflow â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.overflow {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 80vh;
}

/* â”€â”€ Alert â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.alert {
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

/* â”€â”€ Radius â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.radius-l-3 {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.radius-r-3 {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.radius-b-3 {
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.radius-3 {
  border-radius: var(--radius-sm);
}

.radius-l-5 {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.radius-r-5 {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.radius-5 {
  border-radius: var(--radius-sm);
}

/* â”€â”€ Spacing â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pd-2 {
  padding: 2px
}

.pd-2p5 {
  padding: 2.5px
}

.pd-3 {
  padding: 3px
}

.pd-3p5 {
  padding: 3.5px
}

.pd-4 {
  padding: 4px
}

.pd-4p5 {
  padding: 4.5px
}

.pd-5 {
  padding: 5px
}

.pd-5p5 {
  padding: 5.5px
}

.pd-6 {
  padding: 6px
}

.pd-7 {
  padding: 7px
}

.pd-8 {
  padding: 8px
}

.pd-9 {
  padding: 9px
}

.pd-10 {
  padding: 10px
}

.pd-t-2 {
  padding-top: 2px
}

.pd-t-3 {
  padding-top: 3px
}

.pd-t-4 {
  padding-top: 4px
}

.pd-t-5 {
  padding-top: 5px
}

.pd-t-6 {
  padding-top: 6px
}

.pd-t-7 {
  padding-top: 7px
}

.pd-t-8 {
  padding-top: 8px
}

.pd-t-9 {
  padding-top: 9px
}

.pd-t-10 {
  padding-top: 10px
}

.pd-b-2 {
  padding-bottom: 2px
}

.pd-b-3 {
  padding-bottom: 3px
}

.pd-b-4 {
  padding-bottom: 4px
}

.pd-b-5 {
  padding-bottom: 5px
}

.pd-b-6 {
  padding-bottom: 6px
}

.pd-b-7 {
  padding-bottom: 7px
}

.pd-b-8 {
  padding-bottom: 8px
}

.pd-b-9 {
  padding-bottom: 9px
}

.pd-b-10 {
  padding-bottom: 10px
}

.pd-r-2 {
  padding-right: 2px
}

.pd-r-3 {
  padding-right: 3px
}

.pd-r-4 {
  padding-right: 4px
}

.pd-r-5 {
  padding-right: 5px
}

.pd-r-6 {
  padding-right: 6px
}

.pd-r-7 {
  padding-right: 7px
}

.pd-r-8 {
  padding-right: 8px
}

.pd-r-9 {
  padding-right: 9px
}

.pd-r-10 {
  padding-right: 10px
}

.pd-l-2 {
  padding-left: 2px
}

.pd-l-3 {
  padding-left: 3px
}

.pd-l-4 {
  padding-left: 4px
}

.pd-l-5 {
  padding-left: 5px
}

.pd-l-6 {
  padding-left: 6px
}

.pd-l-7 {
  padding-left: 7px
}

.pd-l-8 {
  padding-left: 8px
}

.pd-l-9 {
  padding-left: 9px
}

.pd-l-10 {
  padding-left: 10px
}

.mr-a {
  margin: auto
}

.mr-1 {
  margin: 1px
}

.mr-2 {
  margin: 2px
}

.mr-3 {
  margin: 3px
}

.mr-4 {
  margin: 4px
}

.mr-5 {
  margin: 5px
}

.mr-6 {
  margin: 6px
}

.mr-7 {
  margin: 7px
}

.mr-8 {
  margin: 8px
}

.mr-9 {
  margin: 9px
}

.mr-10 {
  margin: 10px
}

.mr-t-2 {
  margin-top: 2px
}

.mr-t-3 {
  margin-top: 3px
}

.mr-t-4 {
  margin-top: 4px
}

.mr-t-5 {
  margin-top: 5px
}

.mr-t-6 {
  margin-top: 6px
}

.mr-t-7 {
  margin-top: 7px
}

.mr-t-8 {
  margin-top: 8px
}

.mr-t-9 {
  margin-top: 9px
}

.mr-t-10 {
  margin-top: 10px
}

.mr-b-2 {
  margin-bottom: 2px
}

.mr-b-3 {
  margin-bottom: 3px
}

.mr-b-4 {
  margin-bottom: 4px
}

.mr-b-5 {
  margin-bottom: 5px
}

.mr-b-6 {
  margin-bottom: 6px
}

.mr-b-7 {
  margin-bottom: 7px
}

.mr-b-8 {
  margin-bottom: 8px
}

.mr-b-9 {
  margin-bottom: 9px
}

.mr-b-10 {
  margin-bottom: 10px
}

.mr-r-2 {
  margin-right: 2px
}

.mr-r-3 {
  margin-right: 3px
}

.mr-r-4 {
  margin-right: 4px
}

.mr-r-5 {
  margin-right: 5px
}

.mr-r-6 {
  margin-right: 6px
}

.mr-r-7 {
  margin-right: 7px
}

.mr-r-8 {
  margin-right: 8px
}

.mr-r-9 {
  margin-right: 9px
}

.mr-r-10 {
  margin-right: 10px
}

.mr-l-2 {
  margin-left: 2px
}

.mr-l-3 {
  margin-left: 3px
}

.mr-l-4 {
  margin-left: 4px
}

.mr-l-5 {
  margin-left: 5px
}

.mr-l-6 {
  margin-left: 6px
}

.mr-l-7 {
  margin-left: 7px
}

.mr-l-8 {
  margin-left: 8px
}

.mr-l-9 {
  margin-left: 9px
}

.mr-l-10 {
  margin-left: 10px
}

.pointer {
  cursor: pointer;
}

/* â”€â”€ Placeholder Centering â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.plch-center::-webkit-input-placeholder {
  text-align: center;
}

.plch-center:-moz-placeholder {
  text-align: center;
}

/* â”€â”€ Responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media screen and (min-width: 750px) {
  .sidenav {
    width: 230px;
  }

  #main {
    margin-left: 230px;
  }

  #openNav {
    display: none;
  }

  #shareWA {
    display: inline-block;
  }

  #closeNav {
    display: block;
  }
}

@media screen and (max-width: 750px) {
  .sidenav {
    width: 0;
    border-right: 0;
  }

  #brand,
  #closeNav,
  #cpage {
    display: none;
  }

  #main {
    margin-left: 0;
  }

  #openNav {
    display: block;
  }

  #shareWA {
    display: inline-block;
  }

  .modal-window>div {
    width: 90%;
  }

  [class*="col-"] {
    width: 100%;
  }

  .col-box-1 {
    width: 8.33%
  }

  .col-box-2 {
    width: 16.66%
  }

  .col-box-3 {
    width: 25%
  }

  .col-box-4 {
    width: 33.33%
  }

  .col-box-5 {
    width: 41.66%
  }

  .col-box-6 {
    width: 50%
  }

  .col-box-7 {
    width: 58.33%
  }

  .col-box-8 {
    width: 66.66%
  }

  .col-box-9 {
    width: 75%
  }

  .col-box-10 {
    width: 83.33%
  }

  .col-box-11 {
    width: 91.66%
  }

  .col-box-12 {
    width: 100%
  }
}

/* â”€â”€ CodeMirror Material Theme â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.cm-s-material.CodeMirror {
  background-color: #1e2230;
  color: rgba(233, 237, 237, 1)
}

.cm-s-material .CodeMirror-gutters {
  background: #1e2230;
  color: #537f7e;
  border: none
}

.cm-s-material .CodeMirror-guttermarker,
.cm-s-material .CodeMirror-guttermarker-subtle,
.cm-s-material .CodeMirror-linenumber {
  color: #537f7e
}

.cm-s-material .CodeMirror-cursor {
  border-left: 1px solid #f8f8f0
}

.cm-s-material div.CodeMirror-selected {
  background: rgba(255, 255, 255, .15)
}

.cm-s-material.CodeMirror-focused div.CodeMirror-selected {
  background: rgba(255, 255, 255, .1)
}

.cm-s-material .CodeMirror-line::selection,
.cm-s-material .CodeMirror-line>span::selection,
.cm-s-material .CodeMirror-line>span>span::selection {
  background: rgba(255, 255, 255, .1)
}

.cm-s-material .CodeMirror-line::-moz-selection,
.cm-s-material .CodeMirror-line>span::-moz-selection,
.cm-s-material .CodeMirror-line>span>span::-moz-selection {
  background: rgba(255, 255, 255, .1)
}

.cm-s-material .CodeMirror-activeline-background {
  background: rgba(0, 0, 0, 0)
}

.cm-s-material .cm-keyword {
  color: rgba(199, 146, 234, 1)
}

.cm-s-material .cm-operator {
  color: rgba(233, 237, 237, 1)
}

.cm-s-material .cm-variable-2 {
  color: #80CBC4
}

.cm-s-material .cm-builtin {
  color: #DECB6B
}

.cm-s-material .cm-atom,
.cm-s-material .cm-number {
  color: #F77669
}

.cm-s-material .cm-def {
  color: rgba(233, 237, 237, 1)
}

.cm-s-material .cm-string {
  color: #C3E88D
}

.cm-s-material .cm-string-2 {
  color: #80CBC4
}

.cm-s-material .cm-comment {
  color: #546E7A
}

.cm-s-material .cm-variable {
  color: #82B1FF
}

.cm-s-material .cm-meta,
.cm-s-material .cm-tag {
  color: #80CBC4
}

.cm-s-material .cm-attribute {
  color: #FFCB6B
}

.cm-s-material .cm-property {
  color: #80CBAE
}

.cm-s-material .cm-qualifier,
.cm-s-material .cm-type,
.cm-s-material .cm-variable-3 {
  color: #DECB6B
}

.cm-s-material .cm-tag {
  color: rgba(255, 83, 112, 1)
}

.cm-s-material .cm-error {
  color: rgba(255, 255, 255, 1);
  background-color: #EC5F67
}

.cm-s-material .CodeMirror-matchingbracket {
  text-decoration: underline;
  color: #fff !important
}

/* â”€â”€ Footer â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 60px;
  background: var(--bg-card);
}



/* â”€â”€ Phase 2: Content Page Enhancements â”€â”€â”€â”€ */

/* Enhanced Table Styling */
.table thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-card-header);
  box-shadow: 0 1px 0 var(--border-color);
}

.table-hover tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

.table-hover tbody tr {
  cursor: default;
}

.table-hover tbody tr:hover {
  background: var(--bg-active) !important;
}

.table-hover tbody tr:hover td {
  color: var(--text-heading);
}

.table td a {
  color: var(--accent-hover);
}

.table td a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Table action icons */
.table .fa-minus-square {
  font-size: 14px;
  opacity: 0.7;
  transition: all 0.2s ease;
}

.table .fa-minus-square:hover {
  opacity: 1;
  transform: scale(1.2);
}

.table .fa-edit {
  color: var(--accent-hover);
}

.table .fa-print {
  color: var(--cyan);
}

.table .fa-qrcode {
  color: var(--green);
}

.table .fa-search {
  color: var(--text-muted);
}

.table .fa-lock {
  color: var(--yellow);
}

.table .fa-unlock {
  color: var(--green);
}

/* Card Header with action links */
.card-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-header h3 a {
  color: var(--accent-hover);
  font-size: 13px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.card-header h3 a:hover {
  background: var(--accent-subtle);
  color: #fff;
}

.card-header h3 span {
  font-weight: 400;
}

/* Select in card-body */
.card-body select {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13px;
  transition: var(--transition-fast);
}

.card-body select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.card-body select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* Textarea */
textarea,
.textarea {
  font-family: var(--font-sans);
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-sizing: border-box;
  transition: var(--transition-fast);
  resize: vertical;
}

textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

/* Form table layout */
.card-body .table td {
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.card-body .table td:first-child {
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  width: 160px;
}

/* Checkbox and Radio */
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Badge / Label */
.badge,
.label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Filter table */
#filterTable {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  width: 100%;
  box-sizing: border-box;
  transition: var(--transition-fast);
}

#filterTable:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

/* Loader */
.fa-spin {
  animation: fa-spin 1s linear infinite;
}

@keyframes fa-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.fa-circle-o-notch {
  color: var(--accent-hover);
}

/* Enhanced buttons */
.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn.bg-red:hover {
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn.bg-primary:hover {
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn.bg-warning:hover {
  box-shadow: 0 4px 15px rgba(234, 179, 8, 0.3);
}

.btn.bg-green:hover,
.btn.bg-success:hover {
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

/* Sort heads */
th.pointer {
  cursor: pointer;
  user-select: none;
}

th.pointer:hover {
  background: var(--bg-hover);
  color: var(--text-heading);
}

th.pointer .fa-sort {
  opacity: 0.4;
  margin-right: 4px;
  transition: opacity 0.2s;
}

th.pointer:hover .fa-sort {
  opacity: 1;
  color: var(--accent-hover);
}

/* Page animation */
.main-container {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Status */
.status-online {
  color: var(--green);
}

.status-offline {
  color: var(--red);
}

.status-expired {
  color: var(--yellow);
}

/* Responsive table */
@media (max-width: 750px) {
  .table {
    font-size: 12px;
  }

  .table td,
  .table th {
    padding: 7px 8px;
  }

  .card-body {
    padding: 8px 10px;
  }

  .card-header {
    padding: 10px 12px;
  }

  .card-header h3 {
    font-size: 14px;
  }

  .btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .card-body .table td:first-child {
    width: auto;
  }
}

/* ── Sidebar & Footer Responsive ──── */

/* Sidebar smooth scroll */
.sidenav {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-subtle) transparent;
  -webkit-overflow-scrolling: touch;
}

.sidenav::-webkit-scrollbar {
  width: 4px;
}

.sidenav::-webkit-scrollbar-track {
  background: transparent;
}

.sidenav::-webkit-scrollbar-thumb {
  background: var(--accent-subtle);
  border-radius: 4px;
}

/* Dashboard flex layout */
.dash-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dash-col-8 {
  flex: 0 0 calc(66.66% - 6px);
  min-width: 0;
}

.dash-col-4 {
  flex: 0 0 calc(33.33% - 6px);
  min-width: 0;
}

.dash-col-7 {
  flex: 0 0 calc(58.33% - 6px);
  min-width: 0;
}

.dash-col-5 {
  flex: 0 0 calc(41.66% - 6px);
  min-width: 0;
}

/* Info cards */
.info-card {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: border-color 0.25s;
}

.info-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.info-card-header {
  font-size: 13px;
  font-weight: 600;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.info-card-header i {
  color: var(--accent-hover);
  font-size: 14px;
}

.info-card-body {
  padding: 12px 18px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 13px;
}

.info-row-label {
  color: var(--text-secondary);
}

.info-row-value {
  font-weight: 600;
  color: var(--text-primary);
}

/* Active user pills */
.active-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  margin: 3px 0;
  font-size: 12px;
  transition: background 0.2s;
}

.active-pill:hover {
  background: rgba(255, 255, 255, 0.06);
}

.active-pill-user {
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.active-pill-user::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

.active-pill-time {
  color: var(--text-muted);
  font-size: 11px;
}

/* Dash stat layout */
.dash-stat {
  border-radius: 16px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 140px;
}

.dash-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.dash-stat a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
}

.dash-stat-icon {
  font-size: 20px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.dash-stat-info {
  flex: 1;
}

.dash-stat-value {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
}

.dash-stat-label {
  font-size: 11px;
  opacity: 0.8;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Quick actions */
.quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  text-decoration: none;
  transition: all 0.2s;
}

.quick-btn:hover {
  background: var(--accent-subtle);
  border-color: var(--accent);
  color: var(--accent-hover);
  transform: translateY(-1px);
}

/* Dashboard footer */
.dash-footer {
  text-align: center;
  padding: 18px 0;
  margin-top: 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 12px;
}

.dash-footer a {
  color: var(--accent-hover);
  text-decoration: none;
}

/* Metric bars */
.metric-bar {
  height: 6px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  margin-top: 4px;
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  border-radius: 20px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-fill-blue {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.metric-fill-green {
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

.metric-fill-yellow {
  background: linear-gradient(90deg, #eab308, #facc15);
}

.metric-fill-red {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .sidenav {
    width: 240px !important;
  }

  #main {
    margin-left: 0 !important;
  }

  .dash-row {
    flex-direction: column;
    gap: 8px;
  }

  .dash-col-8,
  .dash-col-7,
  .dash-col-5,
  .dash-col-4 {
    flex: none !important;
    width: 100% !important;
  }

  .dash-stat {
    min-width: calc(50% - 10px);
    flex: 0 0 calc(50% - 6px);
  }

  .quick-actions {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .quick-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .navbar-right select {
    max-width: 80px;
    font-size: 11px !important;
  }
}

@media (max-width: 480px) {
  .dash-stat {
    flex: 0 0 100%;
  }

  .main-container {
    padding: 8px !important;
  }
}