@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;0,14..32,900;1,14..32,400&display=swap');

/* ---------------------------------------------------
   BULANGUAGENTFLOW — ENTERPRISE TECH DESIGN SYSTEM
   Dark Navy × Cyan Accent × Glassmorphism
---------------------------------------------------- */
:root {
  /* -- Core Brand -- */
  --primary: #007D53;
  --primary-dim: #056937;
  --primary-glow: rgba(0, 125, 83, 0.18);
  --primary-border: rgba(0, 125, 83, 0.25);
  --secondary: #056937;
  --secondary-glow: rgba(5, 105, 55, 0.18);
  --accent-green: #007D53;
  --accent-amber: #ffb020;
  --accent-red: #d32f2f;

  /* -- Surface Palette (Light Theme) -- */
  --bg: #f8fbf9;
  --bg-2: #f0f5f2;
  --surface: #ffffff;
  --surface-2: #f4f7f5;
  --surface-3: #eef2f0;
  --glass: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 125, 83, 0.15);
  --glass-hover: rgba(0, 125, 83, 0.08);

  /* -- Text -- */
  --text: #0a2614;
  --text-muted: #4e6b59;
  --text-dim: #7a9c86;
  --text-bright: #021a0c;

  /* -- Borders -- */
  --border: rgba(0, 0, 0, 0.08);
  --border-active: rgba(0, 125, 83, 0.45);

  /* -- Status -- */
  --green: #00e5a0;
  --green-bg: rgba(0, 229, 160, 0.10);
  --green-border: rgba(0, 229, 160, 0.25);
  --amber: #ffb020;
  --amber-bg: rgba(255, 176, 32, 0.10);
  --amber-border: rgba(255, 176, 32, 0.25);
  --red: #d32f2f;
  --red-bg: rgba(211, 47, 47, 0.10);
  --red-border: rgba(211, 47, 47, 0.25);
  --blue: var(--primary);
  --blue-bg: var(--primary-glow);
  --purple: #9d86ff;
  --purple-bg: rgba(157, 134, 255, 0.10);
  --orange: #ff7c4d;

  /* -- Sidebar -- */
  --sidebar-bg: #004D33;
  --sidebar-w: 260px;
  --sidebar-text: #a4b4ab;
  --sidebar-hover: rgba(0, 125, 83, 0.15);
  --sidebar-active: rgba(0, 125, 83, 0.25);

  /* -- Layout -- */
  --header-h: 64px;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-xs: 7px;
  --radius-pill: 100px;

  /* -- Shadows & Effects -- */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.12);
  --glow-cyan: 0 0 15px rgba(0, 125, 83, 0.15);
  --glow-green: 0 0 15px rgba(0, 125, 83, 0.15);
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Backward-compatible aliases — old pages reference these names */
:root {
  --white: #ffffff;
  --border-light: var(--border);
  --gray-50: #f8fbf9;
  --gray-100: #f0f5f2;
  --gray-200: #eef2f0;
  --gray-300: #e2e8e5;
  --gray-400: #c4cdc8;
  --gray-500: #a3afaa;
  --gray-600: #84968c;
  --gray-700: #5c6e64;
  --gray-800: #254030;
  --gray-900: #0a2614;
  --primary-light: #00cf5f;
  --primary-dark: #056937;
  --primary-bg: rgba(0, 125, 83, 0.12);
  --primary-muted: rgba(0, 125, 83, 0.18);
  --accent: var(--primary);
  --accent-light: #00cf5f;
  --accent-bg: rgba(0, 125, 83, 0.10);
  --green-light: var(--green);
  --green-bg: rgba(0, 229, 160, 0.10);
  --green-border: rgba(0, 229, 160, 0.25);
  --amber-bg: rgba(255, 176, 32, 0.10);
  --amber-border: rgba(255, 176, 32, 0.25);
  --red-bg: rgba(211, 47, 47, 0.10);
  --red-border: rgba(211, 47, 47, 0.25);
  --blue: var(--primary);
  --blue-bg: var(--primary-glow);
  --purple: #9d86ff;
  --purple-bg: rgba(157, 134, 255, 0.10);
  --sidebar-accent: #007D53;
  --orange: #ff7c4d;
}

/* -- RESET & BASE -- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(0, 125, 83, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(5, 105, 55, 0.05) 0%, transparent 60%);
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

input,
select,
textarea,
button {
  font-family: inherit;
}

/* -- TYPOGRAPHY -- */
h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-bright);
}

h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-bright);
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.text-primary {
  color: var(--primary);
}

.text-muted {
  color: var(--text-muted);
}

.text-danger {
  color: var(--red);
}

.text-success {
  color: var(--green);
}

.text-center {
  text-align: center;
}

.fw-bold {
  font-weight: 700;
}

.fs-sm {
  font-size: 0.85rem;
}

.fs-xs {
  font-size: 0.73rem;
}

/* -- SCROLLBAR -- */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 125, 83, 0.20);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 125, 83, 0.40);
}

/* --------------------------------------
   BUTTONS
-------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1.4;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn:hover::after {
  opacity: 1;
}

.btn-xl {
  padding: 13px 28px;
  font-size: 1rem;
  border-radius: var(--radius-sm);
}

.btn-sm {
  padding: 5px 13px;
  font-size: 0.78rem;
}

.btn-lg {
  padding: 12px 26px;
  font-size: 0.93rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-primary {
  background: var(--primary);
  border-color: transparent;
  box-shadow: 0 2px 14px rgba(0, 125, 83, 0.30);
  font-weight: 700;
  color: #ffffff !important;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 125, 83, 0.45);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-active);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-glow);
  transform: translateY(-1px);
}

.btn-outline-muted {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.btn-outline-muted:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-glow);
}

.btn-danger {
  background: var(--red-bg);
  color: var(--red);
  border-color: var(--red-border);
}

.btn-danger:hover {
  background: rgba(255, 77, 106, 0.20);
}

.btn-secondary {
  background: var(--surface-3);
  color: var(--text-muted);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--surface-2);
  color: var(--text);
}

.btn-success {
  background: var(--green-bg);
  color: var(--green);
  border-color: var(--green-border);
  font-weight: 700;
}

.btn-success:hover {
  background: rgba(0, 229, 160, 0.20);
}

.btn-warning {
  background: var(--amber-bg);
  color: var(--amber);
  border-color: var(--amber-border);
  font-weight: 700;
}

.btn-warning:hover {
  background: rgba(255, 176, 32, 0.20);
}

.btn-gold {
  background: linear-gradient(135deg, #ffb020, #e07d00);
  color: #ffffff;
  font-weight: 700;
}

/* --------------------------------------
   FORMS
-------------------------------------- */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 0.88rem;
  background: var(--surface-2);
  color: var(--text);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface-3);
  box-shadow: 0 0 0 3px var(--primary-glow), var(--glow-cyan);
}

.form-control::placeholder {
  color: var(--text-dim);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300843D' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-error {
  font-size: 0.78rem;
  color: var(--red);
  margin-top: 5px;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 5px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* --------------------------------------
   CARDS
-------------------------------------- */
.card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  border-color: var(--border-active);
  box-shadow: var(--glow-cyan), var(--shadow);
}

.card-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.02);
}

.card-body {
  padding: 22px;
}

.card-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.04);
}

.card-title {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: 0.2px;
}

.p-0 {
  padding: 0;
}

/* --------------------------------------
   STAT CARDS
-------------------------------------- */
.stat-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-cyan), var(--shadow);
  border-color: var(--border-active);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card .stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
}

.stat-card .stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-bright);
}

.stat-card .stat-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.stat-card .stat-trend {
  font-size: 0.73rem;
  font-weight: 600;
  margin-top: 6px;
}

.stat-card .stat-trend.up {
  color: var(--green);
}

.stat-card .stat-trend.down {
  color: var(--red);
}

/* Gradient hero stat cards */
.stat-bg-green {
  background: linear-gradient(135deg, rgba(0, 125, 83, 0.8), rgba(0, 125, 83, 0.9));
  border-color: rgba(0, 125, 83, 0.25);
  color: #ffffff !important;
}

.stat-bg-green .stat-value,
.stat-bg-green .stat-label {
  color: #ffffff !important;
}

.stat-bg-blue {
  background: linear-gradient(135deg, rgba(0, 100, 180, 0.8), rgba(0, 100, 180, 0.9));
  border-color: rgba(0, 100, 180, 0.25);
  color: #ffffff !important;
}

.stat-bg-blue .stat-value,
.stat-bg-blue .stat-label {
  color: #ffffff !important;
}

/* Icon bg tints */
.icon-primary {
  background: var(--primary-glow);
  color: var(--primary);
}

.icon-green {
  background: var(--green-bg);
  color: var(--green);
}

.icon-amber {
  background: var(--amber-bg);
  color: var(--amber);
}

.icon-blue {
  background: var(--blue-bg);
  color: var(--blue);
}

.icon-red {
  background: var(--red-bg);
  color: var(--red);
}

.icon-teal {
  background: rgba(0, 212, 255, 0.10);
  color: var(--primary);
}

.icon-purple {
  background: var(--purple-bg);
  color: var(--purple);
}

.icon-orange {
  background: rgba(255, 124, 77, 0.10);
  color: var(--orange);
}

.icon-gold {
  background: rgba(255, 176, 32, 0.10);
  color: var(--amber);
}

/* --------------------------------------
   BADGES
-------------------------------------- */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  border: 1px solid transparent;
}

.badge-success {
  background: var(--green-bg);
  color: var(--green);
  border-color: var(--green-border);
}

.badge-warning {
  background: var(--amber-bg);
  color: var(--amber);
  border-color: var(--amber-border);
}

.badge-danger {
  background: var(--red-bg);
  color: var(--red);
  border-color: var(--red-border);
}

.badge-info {
  background: var(--blue-bg);
  color: var(--blue);
  border-color: var(--primary-border);
}

.badge-secondary {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-muted);
  border-color: var(--border);
}

.badge-primary {
  background: var(--primary-glow);
  color: var(--primary);
  border-color: var(--primary-border);
}

.badge-purple {
  background: var(--purple-bg);
  color: var(--purple);
  border-color: rgba(157, 134, 255, 0.25);
}

.badge-pink {
  background: rgba(236, 72, 153, 0.10);
  color: #ec4899;
  border-color: rgba(236, 72, 153, 0.25);
}

/* --------------------------------------
   TABLES
-------------------------------------- */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.865rem;
}

thead th {
  background: rgba(0, 125, 83, 0.08);
  color: var(--primary);
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-active);
  white-space: nowrap;
  font-size: 0.70rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background: var(--glass-hover);
}

tbody tr {
  transition: background 0.15s;
}

/* --------------------------------------
   ALERTS
-------------------------------------- */
.alert {
  padding: 13px 17px;
  border-radius: var(--radius-xs);
  font-size: 0.875rem;
  margin-bottom: 16px;
  border: 1px solid transparent;
  border-left-width: 3px;
}

.alert-success {
  background: var(--green-bg);
  color: #00603b;
  border-color: var(--green);
}

.alert-danger {
  background: var(--red-bg);
  color: #a51b2a;
  border-color: var(--red);
}

.alert-warning {
  background: var(--amber-bg);
  color: #8a5e00;
  border-color: var(--amber);
}

.alert-info {
  background: var(--blue-bg);
  color: #004a80;
  border-color: var(--blue);
}

/* --------------------------------------
   APP LAYOUT
-------------------------------------- */
/* -- SIDEBAR DROPDOWNS -- */
.nav-dropdown {
  width: 100%;
  margin-bottom: 4px;
}

.dropdown-toggle {
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.dropdown-chevron {
  transition: transform 0.3s ease;
  width: 14px !important;
  height: 14px !important;
  opacity: 0.6;
}

.nav-dropdown.active .dropdown-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.dropdown-content {
  display: none;
  padding-left: 32px;
  background: rgba(0, 0, 0, 0.15);
  margin-top: 2px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.nav-dropdown.active .dropdown-content {
  display: block;
}

.dropdown-content .nav-item {
  padding: 8px 14px;
  font-size: 0.82rem;
  opacity: 0.85;
}

.dropdown-content .nav-item:hover {
  opacity: 1;
  background: var(--sidebar-hover);
}

.dropdown-content .nav-item.active {
  background: var(--sidebar-active);
  color: #fff;
  opacity: 1;
}

.app-layout {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  padding: 28px;
  flex: 1;
}

.page-header {
  margin-bottom: 26px;
}

.page-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-bright);
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-subtitle {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 3px;
}

/* -- Grids -- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.gap-2 {
  gap: 8px;
}

.gap-3 {
  gap: 12px;
}

.gap-4 {
  gap: 16px;
}

.mt-1 {
  margin-top: 6px
}

.mt-2 {
  margin-top: 14px
}

.mt-3 {
  margin-top: 22px
}

.mt-4 {
  margin-top: 32px
}

.mb-1 {
  margin-bottom: 6px
}

.mb-2 {
  margin-bottom: 14px
}

.mb-3 {
  margin-bottom: 22px
}

.mb-4 {
  margin-bottom: 32px
}

/* --------------------------------------
   SIDEBAR
-------------------------------------- */
.sidebar {
  width: var(--sidebar-w);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  overflow-y: auto;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
}

.sidebar::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

.sidebar::-webkit-scrollbar {
  width: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--primary-glow);
}

.sidebar-header {
  padding: 22px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0a0a;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, #007D53, #056937);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 125, 83, 0.25);
}

.sidebar-title {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.3px;
}

.sidebar-sub {
  color: var(--primary);
  font-size: 0.60rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-top: 1px;
}

.sidebar-user {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 11px;
  background: #0a0a0a;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #007D53, #7c6cf3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #ffffff;
  flex-shrink: 0;
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.user-name {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.2;
}

.user-role {
  color: var(--primary);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  opacity: 0.8;
}

/* Sidebar Nav */
.sidebar-nav {
  padding: 12px 0;
  flex: 1;
}

.nav-section-title {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 16px 18px 6px;
  font-weight: 700;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 18px;
  color: var(--sidebar-text);
  font-size: 0.865rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
  border-radius: 0;
  margin: 1px 0;
}

.nav-item:hover {
  color: #ffffff;
  background: var(--sidebar-hover);
}

.nav-item.active {
  color: var(--primary) !important;
  background: var(--sidebar-active) !important;
  font-weight: 700;
  color: var(--primary);
  background: var(--sidebar-active);
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 60%;
  width: 2px;
  background: var(--primary);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px var(--primary);
}

.nav-icon {
  font-size: 0.95rem;
  width: 20px;
  text-align: center;
}

.nav-label {
  flex: 1;
}

.nav-badge {
  background: var(--red);
  color: var(--text-bright);
  font-size: 0.63rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.nav-logout {
  color: rgba(255, 77, 106, 0.6);
}

.nav-logout:hover {
  color: var(--red);
  background: rgba(255, 77, 106, 0.08);
}

.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0a0a;
}

/* --------------------------------------
   TOPBAR
-------------------------------------- */
.topbar {
  height: var(--header-h);
  background: #111111;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-btn {
  height: 36px;
  min-width: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  color: #a4b4ab;
  font-size: 0.875rem;
  transition: var(--transition);
  padding: 0 10px;
}

.topbar-btn:hover {
  background: var(--primary-glow);
  border-color: var(--primary-border);
  color: var(--primary);
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.03);
}

.topbar-user:hover {
  background: var(--primary-glow);
  border-color: var(--primary-border);
}

.user-avatar-sm {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #007D53, #7c6cf3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
}

/* --------------------------------------
   PROGRESS
-------------------------------------- */
.progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--primary);
  transition: width 0.7s ease;
  box-shadow: 0 0 8px rgba(0, 125, 83, 0.4);
}

/* --------------------------------------
   MODAL
-------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.22s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-14px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 212, 255, 0.03);
}

.modal-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-bright);
}

.modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--red-bg);
  color: var(--red);
  border-color: var(--red-border);
}

.modal-body {
  padding: 22px;
}

.modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.15);
}

/* --------------------------------------
   SEARCH / FILTER
-------------------------------------- */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 9px 14px;
  transition: var(--transition);
}

.search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-bar input {
  border: none;
  outline: none;
  font-size: 0.875rem;
  flex: 1;
  background: transparent;
  color: var(--text);
}

.search-bar input::placeholder {
  color: var(--text-dim);
}

.search-bar .search-icon {
  color: var(--text-muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* --------------------------------------
   DROPDOWN
-------------------------------------- */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 210px;
  z-index: 1000;
  display: none;
  animation: fadeIn 0.15s ease;
}

.dropdown.open .dropdown-menu {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-header {
  padding: 11px 15px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.02);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  font-size: 0.875rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--primary-glow);
  color: var(--primary);
}

.dropdown-item.text-danger {
  color: rgba(255, 77, 106, 0.7);
}

.dropdown-item.text-danger:hover {
  background: var(--red-bg);
  color: var(--red);
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 5px 0;
}

.dropdown-item-text {
  padding: 10px 15px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* --------------------------------------
   PAGINATION
-------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  gap: 5px;
}

.page-item {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
}

.page-item.active {
  background: var(--primary-glow);
  color: var(--primary);
  border-color: var(--primary-border);
}

.page-item:hover:not(.active) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-glow);
}

/* --------------------------------------
   EMPTY STATE
-------------------------------------- */
.empty-state {
  text-align: center;
  padding: 50px 24px;
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 14px;
  opacity: 0.5;
  display: block;
}

.empty-state h4 {
  color: var(--text);
  margin-bottom: 8px;
  font-size: 1rem;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* --------------------------------------
   TABS
-------------------------------------- */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 22px;
}

.tab-btn {
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: var(--transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-btn:hover {
  color: var(--text);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* --------------------------------------
   TIMELINE
-------------------------------------- */
.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

.timeline-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
}

.timeline-time {
  font-size: 0.73rem;
  color: var(--text-muted);
}

/* --------------------------------------
   CHECKLIST
-------------------------------------- */
.checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.checklist-item:last-child {
  border-bottom: none;
}

.check-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.check-done {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid var(--green-border);
}

.check-pending {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.check-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

/* --------------------------------------
   STEPS
-------------------------------------- */
.steps {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
}

.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  width: 100%;
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.step.done:not(:last-child)::after {
  background: var(--primary);
}

.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 1;
  position: relative;
  color: var(--text-muted);
}

.step.done .step-circle {
  background: var(--primary-glow);
  color: var(--primary);
  border-color: var(--primary-border);
  box-shadow: 0 0 10px var(--primary-glow);
}

.step.active .step-circle {
  background: var(--secondary-glow);
  color: var(--secondary);
  border-color: rgba(124, 108, 243, 0.4);
  box-shadow: 0 0 10px var(--secondary-glow);
}

.step-label {
  font-size: 0.68rem;
  font-weight: 600;
  margin-top: 6px;
  color: var(--text-dim);
  text-align: center;
}

.step.done .step-label,
.step.active .step-label {
  color: var(--text-muted);
}

/* --------------------------------------
   SIDEBAR TOGGLE (mobile)
-------------------------------------- */
.sidebar-toggle {
  font-size: 1.1rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.sidebar-toggle:hover {
  background: var(--primary-glow);
  color: var(--primary);
  border-color: var(--primary-border);
}

/* --------------------------------------
   UTILITY OVERLAYS & MISC
-------------------------------------- */
.divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.70rem;
  font-weight: 700;
  background: var(--primary-glow);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.glow-text {
  color: var(--primary);
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* -- SHINE ANIMATION for hero cards -- */
@keyframes shine {
  0% {
    transform: translateX(-100%) skewX(-15deg);
  }

  100% {
    transform: translateX(250%) skewX(-15deg);
  }
}

.shine-on-hover {
  position: relative;
  overflow: hidden;
}

.shine-on-hover::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 30%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  transform: skewX(-15deg);
  transition: none;
}

.shine-on-hover:hover::after {
  animation: shine 0.6s ease forwards;
}

/* -- PULSE DOT -- */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(0, 229, 160, 0.4);
  animation: pulse-anim 2s infinite;
}

@keyframes pulse-anim {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 229, 160, 0.4);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(0, 229, 160, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 229, 160, 0);
  }
}

/* --------------------------------------
   RESPONSIVE
-------------------------------------- */
@media (max-width: 1200px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .form-row,
  .form-row-3 {
    grid-template-columns: 1fr;
  }

  .page-content {
    padding: 16px;
  }

  h1 {
    font-size: 1.55rem;
  }

  .topbar {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .btn {
    padding: 8px 14px;
  }
