/* ==========================================================================
   AUXILIARY DASHBOARD - MODERN DESIGN SYSTEM & STYLES
   Pixel-faithful recreation of IT Helpdesk / Currency & Duty Dashboard
   ========================================================================== */

:root {
  /* Brand Green Palette */
  --primary: #7ec31e;
  --primary-hover: #72b219;
  --primary-dark: #5e9512;
  --primary-light: #9fe238;
  --primary-subtle: rgba(126, 195, 30, 0.12);
  --primary-glow: rgba(126, 195, 30, 0.35);
  --primary-glow-heavy: rgba(126, 195, 30, 0.55);
  
  /* Bar chart specific greens */
  --green-bar-1: #84cc16;
  --green-bar-2: #bef264;
  --green-bar-3: #65a30d;
  --green-bar-4: #16a34a;

  /* Neutrals & Backgrounds */
  --bg-app: #f4f6f8;
  --bg-card: #ffffff;
  --bg-input: #f8fafc;
  --bg-muted: #f1f5f9;
  --border-subtle: #e2e8f0;
  --border-card: rgba(226, 232, 240, 0.7);

  /* Typography Colors */
  --text-main: #0f172a;
  --text-headings: #111827;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  /* Typography Specs */
  --font-family: 'Plus Jakarta Sans', 'Outfit', system-ui, -apple-system, sans-serif;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-card: 0 10px 30px -4px rgba(0, 0, 0, 0.04), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  --shadow-pill: 0 4px 14px rgba(126, 195, 30, 0.35);
  --shadow-hover: 0 14px 34px -4px rgba(0, 0, 0, 0.07);

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-family);
  background: radial-gradient(circle at 50% 16%, #cbd5e1 0%, #94a3b8 35%, #64748b 70%, #475569 100%) fixed;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
  overflow-x: hidden;
}

/* Ambient Backdrops - Anti-Gravity Ethereal Glows */
.ambient-glow {
  position: fixed;
  pointer-events: none !important;
  z-index: 0;
  border-radius: 50%;
}

.ambient-glow-left {
  bottom: -60px;
  left: 20px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(132, 204, 22, 0.32) 0%, rgba(34, 197, 94, 0.12) 45%, transparent 75%);
  filter: blur(85px);
}

.ambient-glow-right {
  top: 40px;
  right: 60px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.28) 0%, rgba(56, 189, 248, 0.12) 50%, transparent 75%);
  filter: blur(95px);
}

/* ==================== DASHBOARD BRAND WATERMARK ==================== */
.dashboard-brand-watermark {
  position: absolute;
  top: 180px;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 94%);
  height: auto;
  aspect-ratio: 1 / 1;
  pointer-events: none !important;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.26;
  filter: saturate(1.22) contrast(1.08);
  user-select: none;
}

.dashboard-watermark-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.06));
  pointer-events: none !important;
  user-select: none;
}

/* Anti-Gravity Plasma Energy Field */
.anti-gravity-plasma-field {
  position: absolute;
  top: 120px;
  left: 0;
  width: 100%;
  height: 650px;
  pointer-events: none !important;
  z-index: 1;
  overflow: visible;
  opacity: 0.72;
}

.plasma-filament {
  width: 100%;
  height: 100%;
  animation: levitateDrift 10s ease-in-out infinite alternate;
}

@keyframes levitateDrift {
  0% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-8px) scale(1.02); opacity: 0.85; }
  100% { transform: translateY(6px) scale(0.99); opacity: 0.65; }
}

@media (max-width: 1200px) {
  .dashboard-brand-watermark {
    top: 200px;
    width: min(580px, 92%);
    opacity: 0.24;
  }
}

@media (max-width: 768px) {
  .dashboard-brand-watermark {
    top: 170px;
    width: min(390px, 92%);
    opacity: 0.20;
  }
}

/* ==================== APP LAYOUT ==================== */
.app-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 260px 1fr 340px;
  gap: 24px;
  max-width: 1540px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px;
}

/* ==================== 1. LEFT SIDEBAR ==================== */
.sidebar {
  display: flex;
  flex-direction: column;
}

.sidebar-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 48px -12px rgba(15, 23, 42, 0.14), 0 2px 8px rgba(0, 0, 0, 0.03);
  padding: 30px 18px 28px;
  height: 100%;
  min-height: 680px;
  overflow: hidden;
}

/* Ambient glow inside lower left of sidebar */
.sidebar-bottom-glow {
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 195, 30, 0.42) 0%, rgba(126, 195, 30, 0.12) 45%, transparent 75%);
  pointer-events: none;
  z-index: 0;
  filter: blur(25px);
}

/* Brand Header */
.brand-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
  transition: transform var(--transition-fast);
}

.brand-header:hover .brand-logo-img {
  transform: rotate(6deg) scale(1.06);
}

.leaf-icon {
  width: 100%;
  height: 100%;
  transition: transform var(--transition-fast);
}

.brand-header:hover .leaf-icon {
  transform: rotate(6deg) scale(1.05);
}

.brand-title {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: var(--text-headings);
  line-height: 1.25;
  display: inline-block;
  transition: opacity var(--transition-fast), width var(--transition-fast);
}

/* Sidebar Collapse Toggle Button */
.sidebar-collapse-btn {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-muted);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.sidebar-collapse-btn:hover {
  background: var(--primary-subtle);
  color: var(--primary-dark);
  border-color: var(--primary-light);
}

.sidebar-collapse-btn svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-base);
}

/* Collapsed Sidebar Rail Mode */
.app-container {
  transition: grid-template-columns 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-container.sidebar-collapsed {
  grid-template-columns: 84px 1fr 340px;
}

.sidebar-collapsed .sidebar-inner {
  padding: 34px 12px 30px;
  align-items: center;
}

.sidebar-collapsed .brand-header {
  justify-content: center;
  width: 100%;
}

.sidebar-collapsed .brand-title,
.sidebar-collapsed .sidebar-section-title,
.sidebar-collapsed .nav-pill-label,
.sidebar-collapsed .nav-label,
.sidebar-collapsed .badge-dot {
  display: none !important;
}

.sidebar-collapsed .sidebar-collapse-btn {
  display: none;
}

.sidebar-collapsed .brand-logo {
  cursor: pointer;
}

.sidebar-collapsed .nav-pill {
  padding: 12px;
  justify-content: center;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  margin: 0 auto;
}

.sidebar-collapsed .nav-pill-icon {
  display: block;
  font-size: 18px;
}

.sidebar-collapsed .nav-links {
  align-items: center;
}

.sidebar-collapsed .nav-link {
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
}

.sidebar-collapsed .nav-chevron {
  margin-right: 0;
  font-size: 22px;
}

/* Sidebar Section Title */
.sidebar-section-title {
  position: relative;
  z-index: 1;
  margin-top: 36px;
  margin-bottom: 22px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text-headings);
  text-transform: uppercase;
  white-space: nowrap;
}

/* Sidebar Navigation */
.sidebar-nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
}

/* Active Main Pill (Health Rate) */
.nav-pill {
  width: 100%;
  background: linear-gradient(135deg, #84cc16 0%, #22c55e 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-pill);
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.42), 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
  text-align: left;
}

.nav-pill-icon {
  display: none;
}

.nav-pill:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.52);
}

.nav-pill:active {
  transform: translateY(0);
}

/* Secondary Navigation Links */
.nav-links {
  list-style: none;
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nav-item {
  width: 100%;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.nav-chevron {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.6);
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.2);
  transform: translateX(4px);
}

.nav-link:hover .nav-chevron {
  color: #16a34a;
  transform: translateX(2px);
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(132, 204, 22, 0.16) 0%, rgba(34, 197, 94, 0.24) 100%);
  color: #15803d;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(132, 204, 22, 0.35);
}

.nav-link.active .nav-chevron {
  color: #16a34a;
  transform: translateX(2px);
}

/* Nav Divider */
.nav-divider {
  height: 1px;
  margin: 10px 0;
  background: linear-gradient(90deg, rgba(226, 232, 240, 0.9) 0%, rgba(226, 232, 240, 0.2) 100%);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  margin-left: auto;
  box-shadow: 0 0 8px var(--primary);
}

/* ==================== 2. MAIN CONTENT ==================== */
.main-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Top Bar */
.top-bar {
  position: relative;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 52px;
}

/* Search Bar */
.search-container {
  position: relative;
  z-index: 1001;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-pill);
  padding: 4px 18px 4px 6px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.95);
  width: 100%;
  max-width: 360px;
  transition: all var(--transition-fast);
}

.search-container:focus-within {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22), 0 8px 24px rgba(15, 23, 42, 0.1);
  background: #ffffff;
}

.search-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #84cc16 0%, #22c55e 100%);
  color: var(--text-white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.35);
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.search-btn:hover {
  filter: brightness(1.1);
  transform: scale(1.06);
}

.icon-search {
  width: 17px;
  height: 17px;
}

.search-input {
  border: none;
  outline: none;
  background: transparent;
  padding: 0 12px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text-main);
  width: 100%;
}

.search-input::placeholder {
  color: var(--text-light);
}

.search-autocomplete-box {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(420px, calc(100vw - 32px));
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 16px;
  box-shadow: 0 20px 48px -6px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.95);
  padding: 8px 0;
  z-index: 2000;
  display: none;
  max-height: 420px;
  overflow-y: auto;
}

.search-autocomplete-box.show {
  display: block;
}

.search-autocomplete-header {
  padding: 6px 16px 6px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  margin-bottom: 4px;
}

.autocomplete-item {
  padding: 10px 16px;
  font-size: 13.5px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all var(--transition-fast);
}

.autocomplete-item:hover,
.autocomplete-item.selected {
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
}

.autocomplete-item .item-text {
  font-weight: 600;
  color: #0f172a;
}

.autocomplete-item .item-category {
  font-size: 10.5px;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.autocomplete-item .item-go {
  font-size: 11.5px;
  color: #16a34a;
  font-weight: 700;
  white-space: nowrap;
}

/* Top Right Actions */
.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-action-plus {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #84cc16 0%, #22c55e 100%);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.42);
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.btn-action-plus:hover {
  filter: brightness(1.1);
  transform: rotate(90deg) scale(1.08);
}

.icon-plus {
  width: 20px;
  height: 20px;
}

/* CMS Admin Top Bar Button */
.btn-cms-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  color: var(--text-headings);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all var(--transition-fast);
}

.btn-cms-link:hover {
  background: rgba(255, 255, 255, 0.98);
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.15);
}

.btn-cms-link svg {
  width: 15px;
  height: 15px;
  color: #16a34a;
}

/* Live Cloud Feed Indicator */
.live-sync-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(240, 253, 244, 0.9);
  backdrop-filter: blur(14px);
  border: 1px solid #bbf7d0;
  color: #15803d;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.08);
  transition: all var(--transition-fast);
}

.live-sync-indicator:hover {
  background: #dcfce7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.18);
}

.live-sync-indicator .live-sync-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(22, 163, 74, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
  }
}

/* Top Bar IT Helpdesk Badge (Transferred to Top Right) */
.top-helpdesk-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  color: var(--text-headings);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  white-space: nowrap;
  user-select: none;
  transition: all var(--transition-fast);
}

.top-helpdesk-pill:hover {
  border-color: var(--primary-light);
  box-shadow: 0 4px 12px rgba(126, 195, 30, 0.15);
  transform: translateY(-1px);
}

.top-helpdesk-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(126, 195, 30, 0.7);
  animation: pulseHelpdesk 2s infinite;
  flex-shrink: 0;
}

@keyframes pulseHelpdesk {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(126, 195, 30, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(126, 195, 30, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(126, 195, 30, 0);
  }
}

.top-helpdesk-text {
  font-weight: 800;
  color: var(--text-headings);
  letter-spacing: 0.3px;
}

/* Activity Logs Styling for Dashboard */
.activity-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6);
  animation: livePulse 2s infinite;
  display: inline-block;
  flex-shrink: 0;
}

.activity-log-table {
  width: 100%;
  border-collapse: collapse;
}

.activity-log-table th {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: #f8fafc;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

.activity-log-table td {
  padding: 14px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.activity-log-table tr:hover td {
  background: #f8faf6;
}

.log-time-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.log-time-primary {
  font-weight: 700;
  color: var(--text-headings);
  font-size: 12.5px;
}

.log-time-rel {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.log-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
}

.log-badge.rate-change {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.log-badge.denomination {
  background: #faf5ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

.log-badge.system {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.log-details-wrap {
  line-height: 1.45;
  color: #334155;
  font-weight: 500;
}

.log-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--text-headings);
  font-size: 12.5px;
}

.log-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

/* Card Quick Edit Badges */
.card-edit-badge {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  background: var(--bg-muted);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-edit-badge:hover {
  background: var(--primary-subtle);
  color: var(--primary-dark);
  border-color: var(--primary-light);
  transform: scale(1.05);
}

.card-services-chart .card-edit-badge {
  position: static;
}

/* User Profile Header */
.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  transition: background var(--transition-fast);
}

.user-profile:hover {
  background: rgba(0, 0, 0, 0.03);
}

.avatar-wrapper {
  position: relative;
  width: 44px;
  height: 44px;
}

.user-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.online-indicator {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.user-greeting {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.user-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

/* Views Management */
.view-container {
  display: none;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 0.3s ease-out;
  position: relative;
  z-index: 2;
}

.view-container.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header with Titles & Dropdown */
.content-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 10px;
}

.header-titles {
  display: flex;
  flex-direction: column;
}

.page-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1.2px;
  color: var(--text-headings);
  line-height: 1.1;
}

.page-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 6px;
}

/* Period Dropdown Pill */
.period-select-wrapper {
  position: relative;
}

.period-select-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 9px 20px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-secondary);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: all var(--transition-fast);
}

.period-select-btn:hover {
  background: var(--bg-muted);
  color: var(--text-main);
}

.icon-chevron-down {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.period-select-wrapper.open .icon-chevron-down {
  transform: rotate(180deg);
}

.period-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border-subtle);
  min-width: 140px;
  padding: 6px;
  z-index: 50;
  display: none;
}

.period-dropdown-menu.show {
  display: block;
}

.dropdown-item {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.dropdown-item:hover, .dropdown-item.active {
  background: var(--primary-subtle);
  color: var(--primary-dark);
  font-weight: 700;
}

/* ==================== 3. DASHBOARD CARDS ==================== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-card);
  transition: box-shadow var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

/* Translucent Glassmorphism Dashboard & Currency Cards - 1:1 Matching User Reference Mockup */
.main-content .card,
.currency-card-rich,
.form-card-rich {
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 10px 32px -4px rgba(15, 23, 42, 0.08), 0 0 20px rgba(34, 211, 238, 0.08) !important;
  border-radius: 18px !important;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease !important;
}

.main-content .card:hover,
.currency-card-rich:hover,
.form-card-rich:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 18px 42px -6px rgba(15, 23, 42, 0.14), 0 0 24px rgba(34, 211, 238, 0.18) !important;
  border-color: rgba(34, 197, 94, 0.45) !important;
}

.currency-card-header {
  background: rgba(255, 255, 255, 0.88) !important;
  border-bottom: 1px solid rgba(241, 245, 249, 0.85) !important;
}

.currency-card-body {
  background: rgba(255, 255, 255, 0.65) !important;
}

.currency-tier-row {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(226, 232, 240, 0.85) !important;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.currency-tier-row:hover {
  background: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}

/* --- TOP CARD: DOLLAR RATE --- */
.card-dollar-rate {
  padding: 30px 32px;
}

.dollar-rate-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 32px;
  align-items: start;
}

.rate-stats-col {
  display: flex;
  flex-direction: column;
}

.rate-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.rate-badge-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.rate-currency-tag {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(126, 195, 30, 0.15);
  color: #528b10;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(126, 195, 30, 0.3);
}

.rate-stat-group {
  margin-bottom: 12px;
}

.rate-type-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 2px;
}

.rate-value-display {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.rate-value-display .currency-symbol {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-headings);
}

.rate-value-display .rate-amount {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-headings);
  font-variant-numeric: tabular-nums;
}

/* Denomination Converted Amount Preview Pill */
.denom-converted-preview {
  font-size: 11.5px;
  font-weight: 600;
  color: #528b10;
  background: #f4fbf0;
  padding: 3px 8px;
  border-radius: 6px;
  width: fit-content;
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #d9f0c2;
}

.preview-denom-tag {
  color: var(--text-muted);
  font-weight: 600;
}

.preview-converted-amount {
  color: #3b6b07;
  font-weight: 800;
}

/* Denomination Selector Row */
.denom-selector-row {
  margin-top: 4px;
  margin-bottom: 14px;
}

.denom-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.denom-selector-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-matrix-toggle {
  background: transparent;
  border: none;
  color: #528b10;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.btn-matrix-toggle:hover {
  background: rgba(126, 195, 30, 0.12);
}

.denom-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.denom-chip {
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  border: 1px solid var(--border-subtle);
  background: var(--bg-muted);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.denom-chip:hover {
  background: var(--primary-subtle);
  color: var(--primary-dark);
  border-color: var(--primary-light);
}

.denom-chip.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(126, 195, 30, 0.4);
}

.chart-point-active {
  r: 6.5 !important;
  stroke-width: 3.5 !important;
  filter: drop-shadow(0 0 8px rgba(126, 195, 30, 0.7));
}

/* Convert Button in Card */
.btn-trade-calc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-top: 4px;
  width: fit-content;
  transition: all var(--transition-fast);
}

.btn-trade-calc:hover {
  background: var(--primary-subtle);
  color: var(--primary-dark);
  border-color: var(--primary-light);
}

.icon-calc {
  width: 15px;
  height: 15px;
}

/* Chart Canvas & Header Bar */
.rate-chart-col {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.chart-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
  flex-wrap: wrap;
}

.chart-legend-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.legend-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.dot-high {
  background: #7ec31e;
  box-shadow: 0 0 6px rgba(126, 195, 30, 0.6);
}

.legend-dot.dot-low {
  background: #a3e635;
  box-shadow: 0 0 6px rgba(163, 230, 53, 0.6);
}

.chart-timeframe-switch {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 20px;
  gap: 2px;
}

.tf-btn {
  border: none;
  background: transparent;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  padding: 4px 10px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.tf-btn:hover {
  color: #1e293b;
}

.tf-btn.active {
  background: #ffffff;
  color: #528b10;
  font-weight: 800;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.chart-canvas-container {
  position: relative;
  width: 100%;
  height: 190px;
}

/* Banknote Denomination Conversion Table (Bottom of Denomination) */
.denom-matrix-drawer {
  display: block;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.denom-matrix-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.denom-matrix-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-headings);
}

.icon-matrix {
  font-size: 15px;
}

.matrix-hint-badge {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-muted);
  padding: 2px 7px;
  border-radius: 6px;
}

.denom-matrix-close {
  background: transparent;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.2s;
}

.denom-matrix-close:hover {
  color: var(--text-headings);
}

.denom-matrix-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
}

.denom-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: left;
}

.denom-matrix-table th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 700;
  padding: 9px 14px;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 1px solid var(--border-subtle);
}

.denom-matrix-table td {
  padding: 9px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-body);
}

.denom-matrix-table tbody tr {
  cursor: pointer;
  transition: background 0.15s ease;
}

.denom-matrix-table tbody tr:hover {
  background: #f7fee7;
}

.denom-matrix-table tbody tr.active-row {
  background: #f0fdf4;
}

.denom-matrix-table tbody tr:last-child td {
  border-bottom: none;
}

.matrix-denom-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  font-size: 11.5px;
}

.matrix-denom-badge.badge-active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(126, 195, 30, 0.4);
}

.line-chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Grid & Axes Styling inside SVG */
.chart-grid-line {
  stroke: #f1f3f6;
  stroke-width: 1.2;
}

.chart-axis-text {
  font-size: 11px;
  fill: #94a3b8;
  font-family: var(--font-family);
  font-weight: 500;
}

/* SVG Line Paths */
.chart-line-path-1 {
  fill: none;
  stroke: #7ec31e;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 6px rgba(126, 195, 30, 0.3));
}

.chart-line-path-2 {
  fill: none;
  stroke: #a3e635;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-point-1 {
  fill: #ffffff;
  stroke: #7ec31e;
  stroke-width: 2.5;
  cursor: pointer;
  transition: transform var(--transition-fast), r var(--transition-fast);
}

.chart-point-1:hover {
  r: 6;
  fill: #7ec31e;
}

.chart-point-2 {
  fill: #ffffff;
  stroke: #86d11f;
  stroke-width: 2.5;
  cursor: pointer;
  transition: transform var(--transition-fast), r var(--transition-fast);
}

.chart-point-2:hover {
  r: 6;
  fill: #86d11f;
}

/* Tooltip */
.chart-tooltip {
  position: absolute;
  padding: 6px 12px;
  background: var(--text-headings);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -120%);
  transition: opacity 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10;
}

/* --- BOTTOM ROW: TWO CARDS --- */
.bottom-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Bottom Left: List of Services */
.card-services-chart {
  padding: 26px 28px;
}

.card-header-simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-headings);
}

.card-action-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary);
}

.services-chart-container {
  display: flex;
  align-items: flex-end;
  height: 180px;
  gap: 16px;
}

.chart-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 140px;
  padding-bottom: 24px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-light);
  text-align: right;
  min-width: 20px;
}

.bars-wrapper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  flex: 1;
  height: 100%;
  align-items: flex-end;
  border-bottom: 1px solid #f1f3f6;
  padding-bottom: 4px;
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  cursor: pointer;
  group: 1;
}

.bar-track {
  width: 32px;
  height: 140px;
  display: flex;
  align-items: flex-end;
}

.bar-fill {
  width: 100%;
  border-radius: 8px 8px 0 0;
  transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), transform var(--transition-fast);
}

.bar-col:hover .bar-fill {
  transform: scaleY(1.04);
  filter: brightness(1.08);
}

.bar-fill-1 {
  background: var(--green-bar-1);
}

.bar-fill-2 {
  background: var(--green-bar-2);
}

.bar-fill-3 {
  background: var(--green-bar-3);
}

.bar-fill-4 {
  background: var(--green-bar-4);
}

.bar-label {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Bottom Right: 3rd Currency (Euro Gauge) */
.card-gauge-currency {
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
}

.currency-gauge-content {
  display: flex;
  flex-direction: column;
}

.gauge-card-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
}

.gauge-currency-name {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-headings);
  letter-spacing: -0.4px;
  margin-top: 2px;
}

.gauge-rate-value {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-size: 28px;
  font-weight: 800;
  color: var(--text-headings);
  letter-spacing: -0.6px;
  margin-top: 4px;
  margin-bottom: 12px;
}

.gauge-rate-value .symbol {
  font-size: 22px;
}

.gauge-container {
  position: relative;
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gauge-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.gauge-needle-group {
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gauge-value-tooltip {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-top: -6px;
  background: var(--primary-subtle);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

/* ==================== 4. RIGHT SCHEDULE PANEL ==================== */
.schedule-panel {
  position: relative;
  display: flex;
  flex-direction: column;
}

.schedule-inner {
  position: relative;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 48px -12px rgba(15, 23, 42, 0.14), 0 2px 8px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 32px 26px 28px;
  height: 100%;
  min-height: 680px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Radiant lime-green glow at top left of schedule panel */
.schedule-ambient-glow {
  position: absolute;
  top: -40px;
  left: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 195, 30, 0.45) 0%, rgba(132, 204, 22, 0.18) 45%, transparent 75%);
  pointer-events: none;
  z-index: 0;
  filter: blur(28px);
}

.schedule-title {
  position: relative;
  z-index: 1;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-headings);
  text-transform: uppercase;
  margin-bottom: 22px;
}

/* Doctor Search Bar */
.doctor-search-box {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: var(--radius-pill);
  padding: 4px 14px 4px 4px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  margin-bottom: 26px;
}

.doctor-search-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.icon-search-sm {
  width: 14px;
  height: 14px;
}

.doctor-input {
  border: none;
  outline: none;
  background: transparent;
  padding: 0 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-main);
  width: 100%;
}

.doctor-input::placeholder {
  color: var(--text-light);
}

.doctor-dropdown-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border-subtle);
  padding: 6px 0;
  z-index: 60;
  display: none;
}

.doctor-dropdown-results.show {
  display: block;
}

.doctor-item {
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.doctor-item:hover {
  background: var(--bg-muted);
}

.doctor-item-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-subtle);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.doctor-item-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-headings);
}

/* Calendar Section */
.calendar-section {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.calendar-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-label {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.calendar-nav-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cal-nav-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.cal-nav-btn:hover {
  color: var(--primary);
  background: var(--bg-muted);
}

.cal-current-month {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.calendar-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px 2px;
  text-align: center;
}

.cal-day {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.cal-day:hover:not(.empty):not(.active) {
  background: var(--bg-muted);
  color: var(--text-headings);
}

.cal-day.active {
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(126, 195, 30, 0.45);
}

.cal-day.empty {
  cursor: default;
}

/* Time Slot Section */
.time-slot-section {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.time-slot-section .section-label {
  display: block;
  margin-bottom: 12px;
}

.time-chips-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.time-chip {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.time-chip:hover:not(.active) {
  border-color: var(--primary-light);
  color: var(--primary-dark);
}

.time-chip.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-pill);
}

/* Duty Action Button */
.duty-action-wrapper {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  margin-bottom: 18px;
}

.btn-duty-action {
  width: 100%;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  box-shadow: var(--shadow-pill);
  transition: all var(--transition-fast);
}

.btn-duty-action:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(126, 195, 30, 0.45);
}

.duty-text-label {
  letter-spacing: 0.2px;
}

.duty-doctor-name {
  font-weight: 600;
  opacity: 0.95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Duty Status Card Summary */
.duty-status-card {
  position: relative;
  z-index: 1;
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  border: 1px dashed var(--border-subtle);
  margin-top: auto;
}

.duty-status-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 6px var(--primary);
}

.duty-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-headings);
}

.duty-details-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 4px;
}

.duty-details-row .detail-label {
  color: var(--text-muted);
}

.duty-details-row .detail-val {
  font-weight: 600;
  color: var(--text-headings);
}

/* Live Digital Clock Card */
.live-clock-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: #ffffff;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.live-clock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.live-clock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #a3e635;
}

.clock-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a3e635;
  box-shadow: 0 0 8px #a3e635;
  animation: pulseLiveClock 1.8s infinite;
}

@keyframes pulseLiveClock {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px #a3e635; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.btn-today-jump {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-today-jump:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.live-clock-time {
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #f8fafc;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.live-clock-date {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 4px;
  font-weight: 500;
}

/* Calendar Today Indicator */
.cal-day.today {
  position: relative;
  font-weight: 800;
  color: var(--primary-dark);
  background: rgba(126, 195, 30, 0.16);
  border: 1.5px solid var(--primary);
}

.cal-day.today::after {
  content: '';
  position: absolute;
  bottom: 2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
}

.cal-day.today.active {
  background: var(--primary);
  color: #ffffff;
}

.cal-day.today.active::after {
  background: #ffffff;
}

/* Microsoft Teams Presence Pill & Actions */
.teams-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 12px;
  background: #f1f5f9;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  border: 1px solid var(--border-subtle);
}

.teams-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.teams-dot.available, .teams-status-dot.available {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.teams-dot.busy, .teams-status-dot.busy {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
}

.teams-dot.away, .teams-status-dot.away {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}

.teams-dot.offline, .teams-status-dot.offline {
  background: #94a3b8;
}

.teams-quick-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.btn-teams-link {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-teams-link.chat {
  background: #4f46e5;
  color: #ffffff;
}

.btn-teams-link.chat:hover {
  background: #4338ca;
  transform: translateY(-1px);
}

.btn-teams-link.call {
  background: #0ea5e9;
  color: #ffffff;
}

.btn-teams-link.call:hover {
  background: #0284c7;
  transform: translateY(-1px);
}

.btn-teams-link.app {
  background: #e2e8f0;
  color: #334155;
}

.btn-teams-link.app:hover {
  background: #cbd5e1;
}

.teams-svg-icon {
  width: 13px;
  height: 13px;
}

/* ==================== HELPDESK ROSTER & TEAMS LIVE INTEGRATION ==================== */
.live-teams-summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.helpdesk-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.helpdesk-filter-pill {
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.helpdesk-filter-pill:hover {
  background: var(--bg-muted);
  color: var(--text-headings);
}

.helpdesk-filter-pill.active {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
}

.helpdesk-roster-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: 520px;
  padding-right: 4px;
}

/* Custom scrollbar for roster */
.helpdesk-roster-list::-webkit-scrollbar {
  width: 5px;
}
.helpdesk-roster-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

/* Interactive Helpdesk Officer Card */
.helpdesk-officer-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 14px 15px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.helpdesk-officer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: transparent;
  transition: background 0.2s ease;
}

.helpdesk-officer-card.status-available::before {
  background: #10b981;
}
.helpdesk-officer-card.status-busy::before {
  background: #ef4444;
}
.helpdesk-officer-card.status-away::before {
  background: #f59e0b;
}
.helpdesk-officer-card.status-offline::before {
  background: #94a3b8;
}

.helpdesk-officer-card:hover {
  transform: translateY(-2px);
  border-color: #6366f1;
  box-shadow: 0 10px 25px -4px rgba(79, 70, 229, 0.18), 0 4px 6px -2px rgba(79, 70, 229, 0.05);
}

.helpdesk-card-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.helpdesk-avatar-box {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.helpdesk-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.helpdesk-avatar-initials {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.helpdesk-avatar-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid #ffffff;
}

.helpdesk-avatar-dot.available {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
  animation: pulsePresence 2s infinite;
}

.helpdesk-avatar-dot.busy {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
  animation: pulsePresence 2s infinite;
}

.helpdesk-avatar-dot.away {
  background: #f59e0b;
}

.helpdesk-avatar-dot.offline {
  background: #94a3b8;
}

@keyframes pulsePresence {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

.helpdesk-info {
  flex: 1;
  min-width: 0;
}

.helpdesk-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}

.helpdesk-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-headings);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.helpdesk-status-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.helpdesk-status-pill.available {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}
.helpdesk-status-pill.busy {
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}
.helpdesk-status-pill.away {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}
.helpdesk-status-pill.offline {
  background: rgba(148, 163, 184, 0.14);
  color: #64748b;
}

.helpdesk-role {
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.helpdesk-teams-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  padding: 2px 6px;
  border-radius: 4px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.helpdesk-teams-tag svg {
  width: 12px;
  height: 12px;
  color: #4f46e5;
  flex-shrink: 0;
}

/* Card Bottom Action Bar */
.helpdesk-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
  gap: 8px;
}

.helpdesk-click-cta {
  font-size: 11px;
  font-weight: 700;
  color: #4f46e5;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s ease;
}

.helpdesk-officer-card:hover .helpdesk-click-cta {
  gap: 7px;
  color: #4338ca;
}

.helpdesk-btn-group {
  display: flex;
  gap: 6px;
}

.btn-card-teams {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
  border: none;
  cursor: pointer;
}

.btn-card-teams.chat {
  background: #4f46e5;
  color: #ffffff;
}
.btn-card-teams.chat:hover {
  background: #4338ca;
  transform: scale(1.04);
}

.btn-card-teams.call {
  background: #0ea5e9;
  color: #ffffff;
}
.btn-card-teams.call:hover {
  background: #0284c7;
  transform: scale(1.04);
}

/* ==================== 5. SECONDARY VIEW STYLES ==================== */
.activity-view-card, .advisory-view-card, .updates-view-card {
  padding: 24px;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.activity-item:last-child {
  border-bottom: none;
}

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-subtle);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
}

.activity-content {
  flex: 1;
}

.activity-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-headings);
}

.activity-time {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}

/* Services Grid */
.services-directory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-badge-healthy {
  background: var(--primary-subtle);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

/* Forms Grid */
.forms-view-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-template-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==================== 6. MODALS ==================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--border-subtle);
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-headings);
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--text-headings);
}

.modal-body {
  padding: 24px 26px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 26px;
  background: #f8fafc;
  border-top: 1px solid var(--border-subtle);
}

/* Converter Modal Body */
.converter-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.converter-field {
  flex: 1;
}

.converter-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.input-with-symbol {
  display: flex;
  align-items: center;
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 12px;
}

.input-with-symbol span {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 6px;
}

.input-with-symbol input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  color: var(--text-headings);
  width: 100%;
}

.converter-switch-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-subtle);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 18px;
  transition: transform var(--transition-fast);
}

.converter-switch-icon:hover {
  transform: rotate(180deg);
}

.converter-switch-icon svg {
  width: 18px;
  height: 18px;
}

.converter-info-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.info-pill {
  font-size: 12px;
  background: var(--bg-muted);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.info-pill.fee {
  background: var(--primary-subtle);
  color: var(--primary-dark);
}

/* Duty Modal Profile Preview */
.doctor-profile-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-muted);
  padding: 16px;
  border-radius: var(--radius-md);
}

.preview-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff;
}

.preview-info h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-headings);
}

.preview-dept {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.badge-status-on {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

/* Forms in Modal */
.form-group {
  margin-top: 14px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition-fast);
}

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

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  font-size: 14.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--bg-muted);
}

/* Quick Add Modal Tabs */
.quick-add-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.tab-btn {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid transparent;
  background: var(--bg-muted);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn.active {
  background: var(--primary);
  color: #ffffff;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--text-headings);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  min-width: 260px;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 4px solid var(--primary);
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Mobile Backdrop */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.sidebar-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-btn, .mobile-schedule-btn {
  display: none;
}

/* ==================== 7. RESPONSIVE MEDIA QUERIES ==================== */
@media (max-width: 1280px) {
  .app-container {
    grid-template-columns: 240px 1fr 310px;
    gap: 18px;
    padding: 18px;
  }
}

@media (max-width: 1080px) {
  .app-container, .app-container.sidebar-collapsed {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 16px;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-pill);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-headings);
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all var(--transition-fast);
  }

  .mobile-menu-btn:hover {
    background: var(--primary-subtle);
    color: var(--primary-dark);
    border-color: var(--primary-light);
  }

  .mobile-menu-btn svg {
    width: 20px;
    height: 20px;
  }

  .mobile-schedule-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    background: var(--primary-subtle);
    border: 1px solid var(--primary-light);
    color: var(--primary-dark);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
  }

  .mobile-schedule-btn:hover {
    background: var(--primary);
    color: #ffffff;
  }

  .mobile-schedule-btn svg {
    width: 15px;
    height: 15px;
  }

  /* Off-Canvas Navigation Drawer for Sidebar */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-width: 85vw;
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 16px;
    height: 100vh;
  }

  .sidebar.drawer-open {
    transform: translateX(0);
  }

  .sidebar-inner {
    height: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  }

  .sidebar-collapse-btn {
    display: none;
  }

  /* Off-Canvas Schedule Drawer on Tablet / Mobile */
  .schedule-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 340px;
    max-width: 90vw;
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 16px;
    height: 100vh;
  }

  .schedule-panel.drawer-open {
    transform: translateX(0);
  }

  .schedule-inner {
    height: 100%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
  }

  .bottom-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar {
    gap: 12px;
  }

  .search-container {
    max-width: none;
  }

  .user-greeting {
    display: none;
  }

  .dollar-rate-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .rate-stats-col {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }

  .page-title {
    font-size: 26px;
  }

  /* Grid adjustments for Tablet / CP */
  .services-directory-grid,
  .forms-view-grid,
  .forms-management-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  #live-third-currencies-container {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .schedule-live-summary-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .forms-toolbar {
    padding: 12px;
  }

  .forms-toolbar-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .forms-search-box {
    max-width: 100%;
    width: 100%;
  }

  .forms-filter-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

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

@media (max-width: 640px) {
  .app-container {
    padding: 10px 8px;
    gap: 14px;
  }

  .top-bar {
    padding: 10px 12px;
    gap: 8px;
  }

  .page-title {
    font-size: 22px;
  }

  .page-subtitle {
    font-size: 12.5px;
  }

  .card {
    padding: 16px 12px !important;
    border-radius: 14px !important;
  }

  /* Ensure inputs on mobile have 16px font-size to prevent iOS Safari auto-zoom */
  input[type="text"],
  input[type="password"],
  input[type="search"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
  }

  .card-edit-badge {
    padding: 4px 8px;
    font-size: 11px;
  }

  .rate-number-box {
    font-size: 28px;
  }

  .currency-tier-row {
    padding: 8px 10px;
    font-size: 13px;
  }
}

/* Teams ID Badge in User & Helpdesk Tables */
.teams-id-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(79, 70, 229, 0.08);
  color: #4f46e5;
  border: 1px solid rgba(79, 70, 229, 0.22);
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  font-family: inherit;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.teams-id-badge:hover {
  background: #4f46e5;
  color: #ffffff;
  border-color: #4f46e5;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.35);
  transform: translateY(-1px);
}

/* Presence Filter Toolbar & Tags */
.helpdesk-presence-toolbar {
  padding: 10px 16px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.btn-filter-presence {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-filter-presence:hover {
  background: #f1f5f9;
  color: var(--text-headings);
  border-color: var(--primary-light);
}

.btn-filter-presence.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(126, 195, 30, 0.35);
}

.helpdesk-status-tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.helpdesk-status-tag.available {
  background: #dcfce7;
  color: #15803d;
}

.helpdesk-status-tag.busy {
  background: #fee2e2;
  color: #b91c1c;
}

.helpdesk-status-tag.away {
  background: #fef3c7;
  color: #b45309;
}

.helpdesk-status-tag.offline {
  background: #f1f5f9;
  color: #64748b;
}

/* ==================== 15. LIVE DASHBOARD TEAMS HELPDESK WIDGET ==================== */

/* Top Bar Quick Teams Ticker Pill (Disabled in Live) */
.live-teams-top-pill {
  display: none !important;
  align-items: center;
  gap: 8px;
  background: rgba(80, 90, 201, 0.08);
  border: 1px solid rgba(80, 90, 201, 0.22);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  cursor: default;
  transition: all 0.2s ease;
}

.live-teams-top-pill:hover {
  background: rgba(80, 90, 201, 0.12);
  border-color: rgba(80, 90, 201, 0.35);
}

.teams-top-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #4338ca;
  letter-spacing: 0.2px;
}

.teams-top-avatars {
  display: flex;
  align-items: center;
  gap: 6px;
}

.teams-top-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  border: 1px solid rgba(80, 90, 201, 0.25);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  color: #312e81;
  text-decoration: none;
  transition: all 0.15s ease;
}

.teams-top-chip:hover {
  background: #eef2ff;
  border-color: #505ac9;
  transform: translateY(-1px);
}

.live-officer-presence-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Schedule Panel Live Teams Card */
.live-teams-panel-card {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid rgba(80, 90, 201, 0.2);
  box-shadow: 0 4px 18px rgba(80, 90, 201, 0.08);
  padding: 14px 16px;
  transition: all 0.2s ease;
}

.live-teams-panel-card:hover {
  box-shadow: 0 6px 24px rgba(80, 90, 201, 0.13);
  border-color: rgba(80, 90, 201, 0.35);
}

.live-teams-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.live-teams-title-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.teams-logo-badge {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #505ac9;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(80, 90, 201, 0.35);
}

.live-teams-heading {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--text-headings);
  margin: 0;
  text-transform: uppercase;
}

.live-teams-subtext {
  font-size: 10px;
  color: var(--text-muted);
  display: block;
}

.live-teams-online-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #dcfce7;
  border: 1px solid rgba(22, 163, 74, 0.25);
  color: #15803d;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.teams-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 6px #16a34a;
  animation: teamsPulseAnim 2s infinite ease-in-out;
}

@keyframes teamsPulseAnim {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 10px #16a34a; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Officers Container & Rows */
.live-teams-officers-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.live-officer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #f1f5f9;
  transition: all 0.18s ease;
}

.live-officer-row:hover {
  background: #ffffff;
  border-color: rgba(80, 90, 201, 0.3);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.live-officer-avatar-wrap {
  position: relative;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.live-officer-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.live-officer-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #e0e7ff;
  color: #4338ca;
  font-size: 11.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #ffffff;
}

.live-officer-presence-dot {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #ffffff;
}

.live-officer-presence-dot.available {
  background: #10b981;
  box-shadow: 0 0 5px rgba(16, 185, 129, 0.6);
}

.live-officer-presence-dot.busy {
  background: #ef4444;
}

.live-officer-presence-dot.away {
  background: #f59e0b;
}

.live-officer-presence-dot.offline {
  background: #94a3b8;
}

.live-officer-info {
  flex: 1;
  min-width: 0;
}

.live-officer-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.live-officer-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-headings);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-officer-role-tag {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(126, 195, 30, 0.15);
  color: #4d7c0f;
  white-space: nowrap;
}

.live-officer-teams-id {
  font-size: 11px;
  color: #505ac9;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
  font-family: monospace;
}

.btn-teams-chat {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #505ac9;
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(80, 90, 201, 0.3);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-teams-chat:hover {
  background: #444cb0;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(80, 90, 201, 0.45);
}

/* ==========================================================================
   LIVE INQUIRY CHAT WIDGET & PRE-CHAT REGISTRATION GATE
   ========================================================================== */

/* Floating Launcher Action Button */
.inquiry-chat-launcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7ec31e 0%, #5a9712 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(126, 195, 30, 0.4), 0 3px 10px rgba(0, 0, 0, 0.12);
  cursor: pointer !important;
  z-index: 99999 !important;
  pointer-events: auto !important;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.inquiry-chat-launcher * {
  pointer-events: none !important;
}

.inquiry-chat-launcher:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 30px rgba(126, 195, 30, 0.55), 0 4px 12px rgba(0, 0, 0, 0.16);
}

.inquiry-chat-launcher:active {
  transform: translateY(0) scale(0.96);
}

.inquiry-chat-launcher .chat-launcher-icon {
  position: relative;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inquiry-chat-launcher .icon-chat-open {
  width: 26px;
  height: 26px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.inquiry-chat-launcher .icon-chat-close {
  position: absolute;
  width: 24px;
  height: 24px;
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.inquiry-chat-launcher.active .icon-chat-open {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

.inquiry-chat-launcher.active .icon-chat-close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Pulsing aura */
.chat-launcher-pulse {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid rgba(126, 195, 30, 0.6);
  animation: launcherAura 2.2s infinite ease-out;
  pointer-events: none;
}

@keyframes launcherAura {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}

/* Unread Badge */
.chat-launcher-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.5);
}

/* Launcher Hover Tooltip */
.chat-launcher-tooltip {
  position: absolute;
  right: 70px;
  background: #0f172a;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-launcher-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  border-width: 5px 0 5px 5px;
  border-style: solid;
  border-color: transparent transparent transparent #0f172a;
}

.inquiry-chat-launcher:hover .chat-launcher-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.chat-launcher-tooltip .tooltip-title {
  font-weight: 700;
  color: #ffffff;
}

.chat-launcher-tooltip .tooltip-status {
  font-size: 10px;
  color: #86efac;
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-launcher-tooltip .tooltip-status .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

/* ==================== CHAT BOX MAIN CONTAINER ==================== */
.inquiry-chat-box {
  position: fixed;
  bottom: 94px;
  right: 24px;
  width: 390px;
  max-width: calc(100vw - 32px);
  height: 600px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2), 0 4px 16px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.95);
  z-index: 100000 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.96);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.inquiry-chat-box.open {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
  display: flex !important;
  visibility: visible !important;
}

/* Chat Header */
.inquiry-chat-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.header-rep-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.header-rep-info .rep-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.header-rep-info .rep-status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #0f172a;
}

.header-rep-info .rep-text {
  min-width: 0;
}

.header-rep-info h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-rep-info .rep-status-text {
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
}

.header-rep-info .pulse-indicator {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
}

.inquiry-chat-header .header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.chat-header-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #e2e8f0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chat-header-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* Screens */
.inquiry-screen {
  flex: 1;
  overflow-y: auto;
  position: relative;
}

/* ==================== SCREEN 1: REGISTRATION GATE ==================== */
.inquiry-screen-register {
  padding: 18px 20px;
  background: #ffffff;
}

.registration-intro-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.registration-intro-banner .shield-icon {
  font-size: 22px;
  line-height: 1;
}

.registration-intro-banner .intro-text h5 {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 3px;
}

.registration-intro-banner .intro-text p {
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

/* Registration Form */
.inquiry-register-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group-inquiry {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group-inquiry label {
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
}

.form-group-inquiry label .required {
  color: #ef4444;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon .input-icon {
  position: absolute;
  left: 10px;
  font-size: 13px;
  color: #94a3b8;
  pointer-events: none;
}

.input-with-icon input,
.input-with-icon select {
  width: 100%;
  padding: 9px 12px 9px 32px;
  font-size: 12px;
  font-family: inherit;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  transition: all 0.15s ease;
  outline: none;
}

.input-with-icon input:focus,
.input-with-icon select:focus {
  border-color: #7ec31e;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(126, 195, 30, 0.18);
}

.queue-notice-card {
  background: rgba(126, 195, 30, 0.09);
  border: 1px dashed rgba(126, 195, 30, 0.4);
  border-radius: 10px;
  padding: 9px 12px;
  margin-top: 2px;
}

.queue-notice-card .queue-badge {
  font-size: 11px;
  font-weight: 700;
  color: #4d7c0f;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.queue-notice-card .dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
}

.queue-notice-card .queue-text {
  font-size: 10.5px;
  color: #475569;
  line-height: 1.35;
  display: block;
}

.btn-register-chat {
  margin-top: 6px;
  background: linear-gradient(135deg, #7ec31e 0%, #65a30d 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(126, 195, 30, 0.35);
  transition: all 0.2s ease;
}

.btn-register-chat:hover {
  background: linear-gradient(135deg, #8ad324 0%, #5a9712 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(126, 195, 30, 0.45);
}

.btn-register-chat:active {
  transform: translateY(0);
}

/* ==================== SCREEN 2: ACTIVE CHAT ==================== */
.inquiry-screen-chat {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #f8fafc;
}

/* Active User Strip */
.chat-user-strip {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  font-size: 11.5px;
}

.user-strip-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: #0f172a;
}

.user-strip-badge .verified-icon {
  background: #7ec31e;
  color: #ffffff;
  font-size: 9px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.user-strip-ticket {
  font-size: 11px;
  font-weight: 600;
  color: #2563eb;
  background: #eff6ff;
  padding: 2px 7px;
  border-radius: 6px;
  font-family: monospace;
}

.btn-strip-end {
  background: none;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-strip-end:hover {
  background: #fee2e2;
}

/* Auxiliary System Helpdesk Live Status Banner */
.chat-system-banner {
  background: #f0fdf4;
  border-bottom: 1px solid #dcfce7;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #166534;
  flex-shrink: 0;
}

.chat-system-banner .system-chat-icon {
  font-size: 14px;
}

.chat-system-banner .system-banner-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-system-banner .system-status-chip {
  background: #16a34a;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(22, 163, 74, 0.25);
}

/* Messages Container */
.chat-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-empty-state {
  margin: auto;
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
}

.chat-empty-state span {
  font-size: 32px;
  display: block;
  margin-bottom: 6px;
}

/* Message Bubble Rows */
.chat-bubble-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 90%;
  animation: bubbleSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bubbleSlideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-bubble-row.agent-row {
  align-self: flex-start;
}

.chat-bubble-row.user-row {
  align-self: flex-end;
  flex-direction: row;
}

.chat-avatar-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.chat-avatar-user {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #7ec31e;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.chat-bubble {
  border-radius: 16px;
  padding: 10px 13px;
  font-size: 12px;
  line-height: 1.45;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.chat-bubble-agent {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
}

.chat-bubble-user {
  background: linear-gradient(135deg, #7ec31e 0%, #65a30d 100%);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.chat-bubble-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  font-size: 10px;
  opacity: 0.8;
}

.chat-bubble-name {
  font-weight: 700;
}

.chat-bubble-time {
  font-size: 9.5px;
}

.chat-bubble-content {
  word-break: break-word;
}

.chat-bubble-content strong {
  font-weight: 700;
}

.chat-bubble-content code {
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 5px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 11px;
}

.chat-bubble-user .chat-bubble-content code {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.chat-teams-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #505ac9;
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 14px;
  margin-top: 4px;
  box-shadow: 0 2px 6px rgba(80, 90, 201, 0.35);
  transition: all 0.15s ease;
}

.chat-teams-pill-btn:hover {
  background: #444cb0;
}

/* Quick Suggestions */
.chat-quick-suggestions {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 12px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  flex-shrink: 0;
  scrollbar-width: none;
}

.chat-quick-suggestions::-webkit-scrollbar {
  display: none;
}

.quick-chip {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-chip:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-1px);
}

/* Typing Indicator */
.chat-typing-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  background: transparent;
  font-size: 11px;
  color: #64748b;
  flex-shrink: 0;
}

.typing-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #94a3b8;
  animation: typingDot 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.typing-text {
  margin-left: 4px;
  font-style: italic;
  font-size: 10.5px;
}

/* Chat Input Bar */
.chat-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.chat-input-bar input {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 12px;
  font-family: inherit;
  background: #f8fafc;
  outline: none;
  transition: all 0.15s ease;
}

.chat-input-bar input:focus {
  border-color: #7ec31e;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(126, 195, 30, 0.18);
}

.btn-chat-send {
  background: linear-gradient(135deg, #7ec31e 0%, #65a30d 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(126, 195, 30, 0.35);
  transition: all 0.15s ease;
}

.btn-chat-send:hover {
  background: linear-gradient(135deg, #8ad324 0%, #5a9712 100%);
  transform: translateY(-1px);
}

.btn-chat-send:active {
  transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
  .inquiry-chat-launcher {
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
  }

  .inquiry-chat-box {
    bottom: 78px;
    right: 12px;
    width: calc(100vw - 24px);
    height: 75vh;
    max-height: calc(100vh - 95px);
    border-radius: 20px;
  }
}

/* ==========================================================================
   AUTOMATED CURRENCY FEED & THRESHOLD RATE ALERTS STYLING
   ========================================================================== */

/* 1. Header Alert Bell Button & Badge */
.btn-top-alert {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-top-alert:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.btn-top-alert .icon-bell {
  width: 20px;
  height: 20px;
}

.alert-badge-count {
  position: absolute;
  top: -2px;
  right: -2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 10px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* 2. Floating Rate Threshold Alert Banner */
.rate-alert-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fef2f2 0%, #fff1f2 100%);
  border: 1px solid #fecaca;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.12);
  animation: slideDownBanner 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownBanner {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.banner-pulse {
  animation: alertBannerGlow 3s infinite alternate;
}

@keyframes alertBannerGlow {
  0% { box-shadow: 0 4px 12px rgba(239, 68, 68, 0.12); border-color: #fecaca; }
  100% { box-shadow: 0 6px 20px rgba(239, 68, 68, 0.28); border-color: #f87171; }
}

.alert-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-banner-icon {
  font-size: 20px;
  animation: ringAlert 1.2s ease infinite;
}

@keyframes ringAlert {
  0%, 100% { transform: rotate(0deg); }
  20%, 60% { transform: rotate(14deg); }
  40%, 80% { transform: rotate(-14deg); }
}

.alert-banner-text {
  font-size: 13.5px;
  color: #991b1b;
}

.alert-banner-text strong {
  font-weight: 800;
  margin-right: 4px;
}

.alert-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-banner-action {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #f87171;
  background: #ffffff;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-banner-action:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #dc2626;
}

.btn-banner-close {
  background: transparent;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: #991b1b;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-banner-close:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* 3. Currency Pair Switcher Pills on Chart */
.chart-pair-pills {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 20px;
  gap: 2px;
}

.pair-pill {
  border: none;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  padding: 4px 11px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.pair-pill:hover {
  color: #0f172a;
}

.pair-pill.active {
  background: #ffffff;
  color: #1e293b;
  font-weight: 800;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* 4. 24-Hour Market Metrics Row */
.chart-metrics-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 14px;
  margin-bottom: 12px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  flex-wrap: wrap;
}

.metric-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
}

.metric-item .m-label {
  color: #64748b;
  font-weight: 600;
}

.metric-item .m-val {
  color: #0f172a;
  font-weight: 800;
}

.m-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
}

.m-badge.positive {
  background: #dcfce7;
  color: #15803d;
}

.m-badge.negative {
  background: #fee2e2;
  color: #b91c1c;
}

.btn-sync-market-mini {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 14px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-sync-market-mini:hover {
  background: #dcfce7;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.15);
}

.btn-sync-market-mini .sync-icon {
  display: inline-block;
  font-size: 12px;
}

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

/* 5. SVG Area Gradient Fill & Pulsing Live Points */
.chart-area-polygon {
  opacity: 0.85;
  transition: all 0.3s ease;
}

.chart-point-pulse-ring {
  pointer-events: none;
}

.chart-alert-ref-line {
  animation: dashMove 20s linear infinite;
}

@keyframes dashMove {
  to { stroke-dashoffset: -100; }
}

/* 6. Rate Alerts & FX Feed Modal */
.modal-card-alerts {
  max-width: 820px;
  width: 95%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.alert-header-icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  font-size: 18px;
}

.alert-modal-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.alert-modal-tab {
  padding: 7px 16px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.alert-modal-tab:hover {
  color: #0f172a;
  background: #f8fafc;
}

.alert-modal-tab.active {
  background: #f0fdf4;
  color: #15803d;
  font-weight: 800;
}

.alert-modal-pane {
  display: none;
  animation: fadeInPane 0.25s ease;
}

.alert-modal-pane.active {
  display: block;
}

@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.pane-split-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .pane-split-grid {
    grid-template-columns: 1fr;
  }
}

.section-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 10px;
}

.alerts-list-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.alert-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  transition: all 0.2s ease;
}

.alert-item-card.active {
  border-color: #cbd5e1;
  background: #ffffff;
}

.alert-item-card.disabled {
  opacity: 0.55;
  background: #f8fafc;
}

.alert-item-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.alert-item-pair {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pair-tag {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.type-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 6px;
  text-transform: uppercase;
}

.type-badge.buying {
  background: #dcfce7;
  color: #15803d;
}

.type-badge.selling {
  background: #e0f2fe;
  color: #0369a1;
}

.type-badge.mid {
  background: #f3e8ff;
  color: #7e22ce;
}

.condition-badge {
  font-size: 10.5px;
  font-weight: 700;
}

.condition-badge.above {
  color: #16a34a;
}

.condition-badge.below {
  color: #ea580c;
}

.alert-item-target {
  font-size: 12.5px;
  color: #334155;
}

.alert-note-preview {
  color: #64748b;
  font-size: 11.5px;
}

.alert-item-meta {
  font-size: 11px;
  color: #94a3b8;
}

.alert-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-delete-alert {
  background: transparent;
  border: none;
  font-size: 14px;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-delete-alert:hover {
  color: #ef4444;
  background: #fee2e2;
}

/* Switch Toggle Component */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-toggle .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.25s;
  border-radius: 20px;
}

.switch-toggle .slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s;
  border-radius: 50%;
}

.switch-toggle input:checked + .slider {
  background-color: #7ec31e;
}

.switch-toggle input:checked + .slider:before {
  transform: translateX(16px);
}

.switch-toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
}

/* Form Styles for Alert Creation */
.create-alert-section {
  background: #f8fafc;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.alert-form-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group-sm {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group-sm label {
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
}

.form-control-sm {
  padding: 7px 11px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 13px;
  color: #0f172a;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.form-control-sm:focus {
  border-color: #7ec31e;
  box-shadow: 0 0 0 3px rgba(126, 195, 30, 0.15);
}

.form-row-sm {
  display: flex;
  gap: 10px;
}

.input-prefix-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix-wrap span {
  position: absolute;
  left: 10px;
  font-weight: 700;
  color: #64748b;
}

.input-prefix-wrap input {
  padding-left: 26px;
  width: 100%;
}

.alert-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #475569;
  cursor: pointer;
}

.btn-link-action {
  background: none;
  border: none;
  color: #0284c7;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.btn-link-action:hover {
  text-decoration: underline;
}

.btn-primary-sm {
  padding: 8px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7ec31e 0%, #65a30d 100%);
  color: #ffffff;
  border: none;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(101, 163, 13, 0.25);
  transition: all 0.2s ease;
}

.btn-primary-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(101, 163, 13, 0.35);
}

.btn-subtle-sm {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-subtle-sm:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.empty-alerts-box {
  text-align: center;
  padding: 40px 20px;
  border: 2px dashed #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

/* Feed Settings Pane */
.feed-settings-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feed-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
}

.feed-status-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.status-indicator-dot.online {
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}

.feed-controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .feed-controls-grid {
    grid-template-columns: 1fr;
  }
}

.feed-card-box {
  background: #f8fafc;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.feed-card-box h4 {
  margin: 0;
  font-size: 13.5px;
  color: #0f172a;
  font-weight: 800;
}

.market-rate-preview-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
}

.market-rate-highlight {
  font-size: 15px;
  color: #16a34a;
  font-weight: 800;
}

.feed-form-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
}

/* Trigger History Table */
.history-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.alert-history-scroll {
  max-height: 380px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.alert-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.alert-history-table th {
  position: sticky;
  top: 0;
  background: #f1f5f9;
  padding: 10px 14px;
  text-align: left;
  font-weight: 800;
  color: #475569;
  border-bottom: 1px solid #cbd5e1;
}

.alert-history-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}

.alert-history-table tr:hover {
  background: #f8fafc;
}

/* ==================== 16. IT SUPPORT SCHEDULE (NOVEMBER 2026) ==================== */

/* Right Panel Duty Card */
.it-support-duty-card {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  margin-top: 14px;
}

.it-support-duty-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.duty-day-pill {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: rgba(225, 29, 72, 0.1);
  color: #be185d;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.it-duty-section-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.it-duty-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.it-duty-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  font-size: 12.5px;
}

.it-duty-item.off {
  background: #fdf2f8;
  border-color: #fce7f3;
  opacity: 0.85;
}

.it-duty-name {
  font-weight: 800;
  color: var(--text-headings);
  display: flex;
  align-items: center;
  gap: 6px;
}

.it-duty-hours {
  font-weight: 700;
  color: #0284c7;
  font-size: 11.5px;
}

.it-duty-hours.off-hours {
  color: #be185d;
}

.btn-view-full-schedule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 12px;
  padding: 8px 12px;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.08) 0%, rgba(190, 24, 93, 0.12) 100%);
  border: 1px solid rgba(225, 29, 72, 0.25);
  border-radius: var(--radius-pill);
  color: #be185d;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-view-full-schedule:hover {
  background: #be185d;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Schedule View Components */
.btn-schedule-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #be185d;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(190, 24, 93, 0.25);
  transition: all var(--transition-fast);
}

.btn-schedule-action:hover {
  background: #9d174d;
  transform: translateY(-1px);
}

.btn-schedule-action.secondary {
  background: #ffffff;
  color: var(--text-headings);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-schedule-action.secondary:hover {
  background: #fdf2f8;
  color: #be185d;
  border-color: #fbcfe8;
}

/* Official Schedule Banner Card */
.schedule-banner-card {
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #fbcfe8;
  box-shadow: 0 6px 20px rgba(190, 24, 93, 0.06);
}

.schedule-banner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #fff1f2;
  border-bottom: 1px solid #fce7f3;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-pink {
  background: #be185d;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 3px 8px;
  border-radius: 6px;
}

.btn-banner-expand {
  padding: 5px 12px;
  background: #ffffff;
  border: 1px solid #fbcfe8;
  border-radius: var(--radius-pill);
  color: #be185d;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-banner-expand:hover {
  background: #be185d;
  color: #ffffff;
}

.schedule-banner-img-wrap {
  width: 100%;
  background: #ffffff;
  text-align: center;
  padding: 10px;
  cursor: pointer;
}

.schedule-banner-img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 10px;
  transition: transform var(--transition-base);
}

.schedule-banner-img:hover {
  transform: scale(1.01);
}

/* Today Summary Strip */
.schedule-live-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.schedule-summary-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.summary-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.summary-card-info {
  display: flex;
  flex-direction: column;
}

.summary-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-names {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-headings);
  margin-top: 2px;
}

/* Main Pattern Table Styling */
.schedule-table-card {
  padding: 24px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-card);
}

.schedule-section-header {
  text-align: center;
  margin-bottom: 22px;
}

.schedule-section-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #db2777;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(219, 39, 119, 0.2);
  margin-bottom: 4px;
}

.schedule-section-tag {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #be185d;
  text-transform: uppercase;
}

.schedule-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 2px solid #be185d;
}

.schedule-grid-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  background: #ffffff;
}

.schedule-grid-table thead tr {
  background: #be185d;
  color: #ffffff;
}

.schedule-grid-table th {
  padding: 12px 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  white-space: nowrap;
}

.schedule-grid-table th.col-role-header {
  background: #9d174d;
  width: 15%;
  font-size: 14px;
  letter-spacing: 1px;
}

.schedule-grid-table th.col-day.today-header {
  background: #e11d48;
  position: relative;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.2);
}

.schedule-grid-table td {
  padding: 12px 8px;
  border: 1px solid #fbcfe8;
  font-size: 13.5px;
  vertical-align: middle;
}

.col-person-name {
  background: #fff1f2;
  font-weight: 800;
  color: var(--text-headings);
  border-right: 2px solid #be185d !important;
}

.person-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 10px;
}

.person-initials {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #be185d;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

.shift-cell {
  background: #ffffff;
  transition: background var(--transition-fast);
}

.shift-cell.today-col {
  background: rgba(244, 63, 94, 0.08);
  font-weight: 800;
}

.shift-time {
  font-weight: 800;
  color: #0f172a;
}

.shift-time.special {
  color: #0369a1;
}

.shift-cell.off {
  background: #fff5f7;
}

.day-off-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.it-team-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

.it-team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 10px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: all var(--transition-fast);
}

.it-team-card:hover {
  transform: translateY(-2px);
  border-color: #fbcfe8;
  box-shadow: 0 4px 12px rgba(190, 24, 93, 0.08);
}

.it-team-avatar-initials {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #be185d 0%, #e11d48 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(190, 24, 93, 0.25);
}

.it-team-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-headings);
  margin-bottom: 2px;
}

.it-team-role {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.modal-card-schedule-img {
  max-width: 960px;
  width: 95%;
}
