/* ================================================
   Caloris — Main Stylesheet (RTL / Arabic)
   ================================================ */

:root {
  --bg-primary:    #0d1117;
  --bg-secondary:  #161b22;
  --bg-card:       #1c2128;
  --border:        #30363d;
  --text-primary:  #e6edf3;
  --text-muted:    #8b949e;
  --accent-green:  #00ff88;
  --accent-cyan:   #00bcd4;
  --accent-grad:   linear-gradient(135deg, #00ff88, #00bcd4);
  --sidebar-w:     240px;
  --navbar-h:      60px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Cairo', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  direction: rtl;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ===== Glass Card ===== */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color .2s;
}
.glass-card:hover { border-color: #484f58; }

/* ===== Auth Page ===== */
.auth-page { background: var(--bg-primary); }
.auth-bg { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.auth-orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px); opacity: .12;
}
.orb1 { width: 500px; height: 500px; background: var(--accent-green); top: -100px; right: -100px; }
.orb2 { width: 400px; height: 400px; background: var(--accent-cyan);  bottom: -100px; left: -100px; }

.auth-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 10;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.auth-logo { font-size: 3rem; }
.logo-text {
  font-size: 2rem; font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.logo-text-sm { font-size: 1.25rem; font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.auth-tabs { background: var(--bg-card); border-radius: 12px; padding: 4px; gap: 4px; }
.auth-tabs .nav-link {
  color: var(--text-muted); border-radius: 10px; padding: .5rem 1rem;
  font-weight: 600; transition: all .2s;
}
.auth-tabs .nav-link.active {
  background: var(--accent-grad) !important; color: #0d1117 !important;
}

/* ===== Form Controls ===== */
.form-control, .form-select, .form-control:focus, .form-select:focus {
  background: var(--bg-primary) !important;
  border-color: var(--border) !important;
  color: var(--text-primary) !important;
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent-green) !important;
  box-shadow: 0 0 0 3px rgba(0,255,136,.12) !important;
}
.form-control::placeholder { color: var(--text-muted); }
.input-group-text {
  background: var(--bg-primary) !important;
  border-color: var(--border) !important;
  color: var(--text-muted) !important;
}

/* ===== Buttons ===== */
.btn-primary-grad {
  background: var(--accent-grad);
  color: #0d1117 !important;
  border: none;
  font-weight: 700;
  border-radius: 10px;
  padding: .6rem 1.5rem;
  transition: opacity .2s, transform .1s;
}
.btn-primary-grad:hover { opacity: .9; transform: translateY(-1px); color: #0d1117 !important; }
.btn-primary-grad:active { transform: translateY(0); }
.btn-outline-light { border-color: var(--border) !important; color: var(--text-primary) !important; }
.btn-outline-light:hover { background: var(--bg-card) !important; }

/* ===== Navbar ===== */
.top-navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--navbar-h);
  background: rgba(22,27,34,.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 1000;
}
.nav-brand { display: flex; align-items: center; gap: .75rem; }
.sidebar-toggle {
  background: none; border: none; color: var(--text-muted);
  font-size: 1.1rem; cursor: pointer; padding: .4rem;
  border-radius: 8px; transition: background .2s;
}
.sidebar-toggle:hover { background: var(--bg-card); color: var(--text-primary); }

.nav-actions { display: flex; align-items: center; gap: .75rem; }
.nav-icon-btn {
  background: none; border: none; color: var(--text-muted);
  font-size: 1.1rem; cursor: pointer; padding: .5rem;
  border-radius: 10px; transition: all .2s; display: flex;
  text-decoration: none;
}
.nav-icon-btn:hover { background: var(--bg-card); color: var(--accent-green); }

.nav-user-btn {
  background: none; border: none; color: var(--text-primary);
  display: flex; align-items: center; gap: .6rem; cursor: pointer;
  padding: .4rem .8rem; border-radius: 10px; transition: background .2s;
  font-family: 'Cairo', sans-serif; font-size: .9rem;
}
.nav-user-btn:hover { background: var(--bg-card); }
.nav-user-btn::after { display: none !important; }

.user-avatar-sm {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-grad);
  color: #0d1117; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
}

/* ===== Sidebar ===== */
.sidebar {
  position: fixed;
  top: var(--navbar-h);
  right: 0;
  width: var(--sidebar-w);
  height: calc(100vh - var(--navbar-h));
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: transform .3s ease;
  z-index: 900;
  overflow-y: auto;
}
.sidebar.collapsed { transform: translateX(100%); }

.sidebar-nav { flex: 1; padding: 1rem .75rem; display: flex; flex-direction: column; gap: .25rem; }
.sidebar-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem 1rem; border-radius: 10px;
  color: var(--text-muted); text-decoration: none;
  font-weight: 600; font-size: .9rem; transition: all .2s;
}
.sidebar-link i { width: 18px; text-align: center; }
.sidebar-link:hover { background: var(--bg-card); color: var(--text-primary); }
.sidebar-link.active {
  background: rgba(0,255,136,.1);
  color: var(--accent-green);
  border: 1px solid rgba(0,255,136,.2);
}
.sidebar-footer { padding: .75rem; border-top: 1px solid var(--border); }

/* ===== App Layout ===== */
.app-container {
  display: flex;
  padding-top: var(--navbar-h);
  min-height: 100vh;
}
.main-content {
  flex: 1;
  margin-right: var(--sidebar-w);
  padding: 2rem;
  overflow-x: hidden;
  transition: margin-right .3s;
}
.content-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.5rem;
}
.content-header h2 { font-size: 1.4rem; font-weight: 700; }

/* ===== Dashboard ===== */
.calorie-ring-wrap {
  position: relative; display: inline-block;
}
.ring-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.ring-val  { font-size: 1.8rem; font-weight: 800; color: var(--accent-green); line-height: 1; }
.ring-lbl  { font-size: .8rem; color: var(--text-muted); }
.ring-unit { font-size: .75rem; color: var(--text-muted); }

.macro-chip { padding: .6rem .4rem; border-radius: 10px; }
.macro-chip.green { background: rgba(0,255,136,.08); }
.macro-chip.blue  { background: rgba(59,130,246,.08); }
.macro-chip.orange { background: rgba(245,158,11,.08); }
.macro-val { font-size: 1rem; font-weight: 700; }
.macro-lbl { font-size: .7rem; color: var(--text-muted); }

.goal-progress { height: 8px; background: var(--bg-primary); border-radius: 4px; }

/* Weight display */
.weight-display .weight-num {
  font-size: 3rem; font-weight: 800; color: var(--accent-cyan); line-height: 1;
}
.weight-unit { font-size: 1.2rem; color: var(--text-muted); font-weight: 400; }

/* Stat Cards */
.stat-big { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.stat-unit { font-size: 1rem; font-weight: 400; color: var(--text-muted); }

/* BMI */
.bmi-circle {
  width: 100px; height: 100px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 800; margin: 0 auto;
  border: 4px solid;
}
.bmi-success { border-color: #198754; color: #198754; }
.bmi-info    { border-color: #0dcaf0; color: #0dcaf0; }
.bmi-warning { border-color: #ffc107; color: #ffc107; }
.bmi-danger  { border-color: #dc3545; color: #dc3545; }
.bmi-scale { font-size: .75rem; color: var(--text-muted); }
.bmi-range { display: inline-block; margin: .15rem .3rem; }

/* Profile Avatar */
.profile-avatar-lg {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--accent-grad);
  color: #0d1117; font-weight: 800; font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
}

/* ===== Meal Badges ===== */
.badge { font-size: .75rem; font-weight: 600; border-radius: 20px; padding: .3rem .7rem; }
.meal-badge-breakfast { background: rgba(245,158,11,.15); color: #f59e0b; }
.meal-badge-lunch     { background: rgba(59,130,246,.15); color: #60a5fa; }
.meal-badge-dinner    { background: rgba(139,92,246,.15); color: #a78bfa; }
.meal-badge-snack     { background: rgba(16,185,129,.15); color: #34d399; }

/* ===== Tables ===== */
.table-dark { --bs-table-bg: transparent; --bs-table-hover-bg: rgba(255,255,255,.03); }
.table > :not(caption) > * > * { border-bottom-color: var(--border); }
.table thead th { color: var(--text-muted); font-weight: 600; font-size: .85rem; }

/* ===== Food Search ===== */
.food-search-results { max-height: 280px; overflow-y: auto; }
.food-result-item {
  padding: .75rem 1rem; border-radius: 10px; cursor: pointer;
  transition: background .15s;
  border: 1px solid transparent;
}
.food-result-item:hover { background: var(--bg-card); border-color: var(--border); }

.nutrition-preview { background: rgba(0,255,136,.05); border: 1px solid rgba(0,255,136,.15); }
.np-val { font-size: 1.2rem; font-weight: 700; }
.np-lbl { font-size: .7rem; color: var(--text-muted); }

/* ===== Upload Zone ===== */
.upload-zone {
  border: 2px dashed var(--border); border-radius: 12px;
  padding: 2rem; text-align: center; cursor: pointer;
  transition: all .2s; color: var(--text-muted);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--accent-green); background: rgba(0,255,136,.05);
  color: var(--accent-green);
}

/* ===== AI Result ===== */
.ai-result-card {
  background: rgba(0,255,136,.05);
  border: 1px solid rgba(0,255,136,.2);
  border-radius: 12px; padding: 1rem;
}
.ai-result-text { color: var(--text-primary); line-height: 1.7; font-size: .9rem; }

/* ===== Chat ===== */
.chat-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}
.ai-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,255,136,.15); color: var(--accent-green);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

.chat-messages {
  flex: 1; overflow-y: auto;
  padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem;
}

.msg-wrap { display: flex; align-items: flex-end; gap: .75rem; }
.msg-user  { flex-direction: row-reverse; }
.msg-ai    { flex-direction: row; }

.msg-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: rgba(0,255,136,.15); color: var(--accent-green);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
}
.user-avatar-chat {
  background: var(--accent-grad) !important; color: #0d1117 !important;
  font-weight: 700; font-size: .85rem;
}

.msg-bubble {
  max-width: 75%; padding: .85rem 1.1rem;
  border-radius: 16px; position: relative;
  line-height: 1.65;
}
.msg-ai   .msg-bubble {
  background: var(--bg-card); border: 1px solid var(--border);
  border-bottom-right-radius: 4px;
}
.msg-user .msg-bubble {
  background: rgba(0,255,136,.12); border: 1px solid rgba(0,255,136,.2);
  border-bottom-left-radius: 4px;
}
.msg-text { font-size: .9rem; }
.msg-time { font-size: .7rem; color: var(--text-muted); margin-top: .3rem; }
.chat-img { max-width: 200px; border-radius: 8px; display: block; }

/* Quick prompts */
.quick-prompts { border-top: 1px solid var(--border); }
.quick-btn {
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-muted); padding: .35rem .8rem;
  border-radius: 20px; font-size: .8rem; cursor: pointer;
  font-family: 'Cairo', sans-serif; transition: all .2s; white-space: nowrap;
}
.quick-btn:hover { border-color: var(--accent-green); color: var(--accent-green); }

/* Chat Input */
.chat-input-area {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}
.chat-input-row { display: flex; gap: .75rem; align-items: flex-end; }
.chat-textarea {
  flex: 1; background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-primary); border-radius: 12px;
  padding: .75rem 1rem; resize: none; font-family: 'Cairo', sans-serif;
  font-size: .9rem; line-height: 1.5; max-height: 120px; overflow-y: auto;
  transition: border-color .2s;
}
.chat-textarea:focus { outline: none; border-color: var(--accent-green); }
.chat-textarea::placeholder { color: var(--text-muted); }

.chat-attach-btn, .chat-send-btn {
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--border); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s; flex-shrink: 0;
}
.chat-attach-btn { background: var(--bg-card); color: var(--text-muted); }
.chat-attach-btn:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }
.chat-send-btn { background: var(--accent-grad); color: #0d1117; border: none; }
.chat-send-btn:hover { opacity: .9; transform: scale(1.05); }
.chat-send-btn:disabled { opacity: .5; transform: none; }

/* Thinking indicator */
.thinking-dots span {
  display: inline-block; width: 8px; height: 8px;
  background: var(--text-muted); border-radius: 50; margin: 0 2px;
  animation: dot-bounce .8s ease-in-out infinite;
}
.thinking-dots span:nth-child(2) { animation-delay: .15s; }
.thinking-dots span:nth-child(3) { animation-delay: .30s; }
@keyframes dot-bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
}

/* ===== Mobile Bottom Navigation ===== */
:root { --bottom-nav-h: 64px; }

.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottom-nav-h);
  background: rgba(13,17,23,.97);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1100;
  align-items: center;
  justify-content: space-around;
  padding: 0 .25rem;
  padding-bottom: env(safe-area-inset-bottom);
}

.mob-nav-item {
  display: flex; flex-direction: column; align-items: center;
  gap: .18rem; text-decoration: none;
  color: var(--text-muted);
  font-size: .6rem; font-family: 'Cairo', sans-serif; font-weight: 600;
  flex: 1; padding: .35rem .1rem;
  transition: color .2s; position: relative;
}
.mob-nav-item i { font-size: 1.2rem; line-height: 1; }
.mob-nav-item span { line-height: 1; }
.mob-nav-item.active { color: var(--accent-green); }
.mob-nav-item.active i { filter: drop-shadow(0 0 6px rgba(0,255,136,.6)); }

/* زر المساعد الذكي المميز في المنتصف */
.mob-nav-ai {
  display: flex; flex-direction: column; align-items: center;
  gap: .18rem; text-decoration: none;
  color: var(--text-muted);
  font-size: .6rem; font-family: 'Cairo', sans-serif; font-weight: 600;
  flex: 1; padding: .1rem .1rem .35rem;
  transition: color .2s;
}
.mob-nav-ai-circle {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-grad);
  display: flex; align-items: center; justify-content: center;
  color: #0d1117; font-size: 1.2rem;
  box-shadow: 0 4px 18px rgba(0,255,136,.45);
  transform: translateY(-8px);
  transition: transform .2s, box-shadow .2s;
}
.mob-nav-ai:active .mob-nav-ai-circle { transform: translateY(-6px) scale(.95); }
.mob-nav-ai.active .mob-nav-ai-circle { box-shadow: 0 4px 24px rgba(0,255,136,.7); }
.mob-nav-ai span { margin-top: -6px; }

/* ===== Responsive — Tablet & Mobile ===== */
@media (max-width: 991.98px) {
  /* أخفِ الـ Sidebar وأظهر شريط الجوال */
  .sidebar { display: none !important; }
  .mobile-bottom-nav { display: flex !important; }

  /* Main content — اجعله يأخذ كامل العرض */
  .app-container { display: block; }
  .main-content {
    margin-right: 0 !important;
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-bottom: calc(var(--bottom-nav-h) + .75rem) !important;
  }
}

@media (max-width: 768px) {
  .main-content { padding: .85rem; padding-bottom: calc(var(--bottom-nav-h) + .75rem) !important; }
  .msg-bubble { max-width: 88%; }
  .glass-card { border-radius: 12px; }
  .content-header { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .content-header h2 { font-size: 1.1rem; }
  .stat-big { font-size: 1.7rem; }
  .ring-val { font-size: 1.4rem; }
  .auth-card { padding: 1.5rem; border-radius: 16px; }

  /* Chat على الجوال */
  .chat-header { padding: .6rem .85rem !important; }
  .ai-avatar { width: 34px !important; height: 34px !important; font-size: .9rem !important; }
  .chat-messages {
    padding: .75rem .6rem !important;
    gap: .65rem !important;
  }
  /* Quick prompts — تمرير أفقي بدون scrollbar مرئي */
  .quick-prompts {
    padding: .35rem .6rem !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .quick-prompts::-webkit-scrollbar { display: none; }
  .quick-prompts .d-flex { flex-wrap: nowrap !important; padding-bottom: 2px; gap: .4rem !important; }
  .quick-btn { font-size: .68rem; padding: .22rem .55rem; white-space: nowrap; }

  /* Chat Input */
  .chat-input-area {
    padding: .55rem .6rem !important;
    padding-bottom: calc(var(--bottom-nav-h) + .55rem) !important;
  }
  .chat-input-row { gap: .4rem !important; }
  .chat-textarea { font-size: .85rem; padding: .6rem .75rem; border-radius: 10px; }
  .chat-attach-btn, .chat-send-btn {
    width: 38px !important; height: 38px !important;
    border-radius: 10px !important;
  }
  .chat-img { max-width: min(155px, 55vw); }

  /* Bubbles */
  .msg-bubble { padding: .7rem .9rem; }
  .msg-text { font-size: .85rem; line-height: 1.6; }
  .msg-time { font-size: .63rem; }
  .msg-avatar { width: 30px !important; height: 30px !important; }
  .msg-wrap { gap: .5rem !important; }

  /* Action card على الجوال */
  .ai-action-card { padding: .65rem .75rem; font-size: .8rem; }
  .action-macros { gap: .3rem !important; }
  .macro-pill { font-size: .68rem !important; padding: .15rem .4rem !important; }
  .action-btns { gap: .35rem !important; flex-wrap: wrap; }
  .action-meal-select { font-size: .75rem !important; padding: .25rem .45rem !important; }
  .btn-action-confirm, .btn-action-dismiss { font-size: .75rem !important; padding: .28rem .65rem !important; }
  .action-friends { font-size: .78rem; }

  /* Navbar */
  .top-navbar { padding: 0 .85rem; }
  .nav-brand span { font-size: 1rem !important; }
}

@media (max-width: 480px) {
  .main-content { padding: .5rem; padding-bottom: calc(var(--bottom-nav-h) + .65rem) !important; }
  .msg-bubble { max-width: 91%; font-size: .83rem; padding: .65rem .8rem; }
  .msg-avatar { width: 28px !important; height: 28px !important; font-size: .75rem !important; }
  .chat-textarea { font-size: .82rem; }
  .chat-attach-btn, .chat-send-btn { width: 36px !important; height: 36px !important; }
}

/* Desktop — sidebar يظهر ويختفي بالتوجل */
@media (min-width: 992px) {
  .sidebar { display: flex !important; flex-direction: column; transform: translateX(0); }
  .sidebar.collapsed { transform: translateX(100%); }
  .mobile-bottom-nav { display: none !important; }
  .main-content { margin-right: var(--sidebar-w); }
  .main-content.sidebar-collapsed { margin-right: 0; }
}

/* ===== Action Cards (AI Actions) ===== */
.ai-action-card {
  margin-top: .65rem;
  background: rgba(0,255,136,.06);
  border: 1px solid rgba(0,255,136,.22);
  border-radius: 12px; padding: .75rem 1rem;
  font-size: .85rem;
}
.ai-action-card .action-title {
  font-weight: 700; color: var(--accent-green); margin-bottom: .4rem;
  display: flex; align-items: center; gap: .4rem;
}
.ai-action-card .action-meta {
  color: var(--text-muted); font-size: .78rem; margin-bottom: .6rem;
}
.ai-action-card .action-macros {
  display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .65rem;
}
.ai-action-card .macro-pill {
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  border-radius: 20px; padding: .2rem .55rem; font-size: .72rem;
  color: var(--text-primary);
}
.ai-action-card .action-btns { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.btn-action-confirm {
  background: var(--accent-grad); color: #0d1117 !important;
  border: none; border-radius: 8px;
  padding: .35rem .9rem; font-size: .8rem; font-weight: 700;
  font-family: 'Cairo', sans-serif; cursor: pointer; transition: opacity .2s;
}
.btn-action-confirm:hover { opacity: .88; }
.btn-action-dismiss {
  background: transparent; border: 1px solid var(--border);
  color: var(--text-muted); border-radius: 8px;
  padding: .35rem .75rem; font-size: .8rem;
  font-family: 'Cairo', sans-serif; cursor: pointer; transition: all .2s;
}
.btn-action-dismiss:hover { border-color: #dc3545; color: #dc3545; }
.action-meal-select {
  background: var(--bg-primary); border: 1px solid var(--border);
  color: var(--text-primary); border-radius: 8px;
  padding: .3rem .6rem; font-size: .78rem;
  font-family: 'Cairo', sans-serif; cursor: pointer;
}
.action-friends {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: .5rem;
  margin-bottom: .5rem;
}
.friend-share-check {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .78rem; color: var(--text-muted); cursor: pointer;
  margin-bottom: .25rem;
}
.friend-share-check input { cursor: pointer; accent-color: var(--accent-green); }

/* ===== Dropdown ===== */
.dropdown-menu-dark {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
}
.dropdown-item { color: var(--text-primary) !important; font-family: 'Cairo', sans-serif; }
.dropdown-item:hover { background: var(--bg-card) !important; }

/* ===== Alerts ===== */
.alert { border-radius: 10px; font-size: .9rem; }

/* ===== Pagination ===== */
.page-link { background: var(--bg-card); border-color: var(--border); color: var(--text-muted); }
.page-link:hover { background: var(--bg-secondary); color: var(--text-primary); }
.page-item.active .page-link { background: var(--accent-green); border-color: var(--accent-green); color: #0d1117; }
