:root {
      --background: oklch(0.99 0.002 247.87);
      --foreground: oklch(0.175 0.015 252.37);
      --card: oklch(1 0 0);
      --card-foreground: oklch(0.175 0.015 252.37);
      --popover: oklch(1 0 0);
      --popover-foreground: oklch(0.175 0.015 252.37);
      --primary: oklch(0.528 0.122 195.39);
      --primary-foreground: oklch(0.985 0.003 247.87);
      --secondary: oklch(0.635 0.089 186.08);
      --secondary-foreground: oklch(0.985 0.003 247.87);
      --muted: oklch(0.95 0.005 252.37);
      --muted-foreground: oklch(0.508 0.015 252.37);
      --accent: oklch(0.46 0.15 203.68);
      --accent-foreground: oklch(0.985 0.003 247.87);
      --destructive: oklch(0.577 0.245 27.325);
      --destructive-foreground: oklch(0.985 0.003 247.87);
      --border: oklch(0.908 0.008 252.37);
      --input: oklch(0.908 0.008 252.37);
      --ring: oklch(0.508 0.122 195.39);
      --chart-1: oklch(0.528 0.122 195.39);
      --chart-2: oklch(0.635 0.089 186.08);
      --chart-3: oklch(0.46 0.15 203.68);
      --chart-4: oklch(0.728 0.088 223.36);
      --chart-5: oklch(0.408 0.12 263.42);
      --radius: 0.75rem;
      --sidebar: oklch(0.985 0.003 247.87);
      --sidebar-foreground: oklch(0.175 0.015 252.37);
      --sidebar-primary: oklch(0.528 0.122 195.39);
      --sidebar-primary-foreground: oklch(0.985 0.003 247.87);
      --sidebar-accent: oklch(0.95 0.005 252.37);
      --sidebar-accent-foreground: oklch(0.175 0.015 252.37);
      --sidebar-border: oklch(0.908 0.008 252.37);
      --sidebar-ring: oklch(0.508 0.122 195.39);
    }

    body {
      min-height: 100vh;
      margin: 0;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: linear-gradient(
        to bottom right,
        #ecfdf5 0%,
        #ffffff 40%,
        #e0f2fe 100%
      ); /* approx: from-emerald-50 via-white to-teal-50 */
      color: var(--foreground);
      position: relative;
    }

    /* Tailwind base-like */
    * {
      box-sizing: border-box;
    }

    /* Background grid overlay (absolute inset-0 bg-[linear-gradient...] ) */
    .bg-grid {
      position: fixed;
      inset: 0;
      background-image:
        linear-gradient(to right, #80808012 1px, transparent 1px),
        linear-gradient(to bottom, #80808012 1px, transparent 1px);
      background-size: 24px 24px;
      pointer-events: none;
      z-index: -1;
    }

    /* Main shell: mx-auto max-w-[1600px] p-4 md:p-6 lg:p-8 */
    .dashboard-shell {
      position: relative;
      max-width: 1600px;
      margin-left: auto;
      margin-right: auto;
      padding: 1rem; /* ~ p-4 */
    }
    @media (min-width: 768px) {
      .dashboard-shell {
        padding: 1.5rem; /* ~ md:p-6 */
      }
    }
    @media (min-width: 1024px) {
      .dashboard-shell {
        padding: 2rem; /* ~ lg:p-8 */
      }
    }

    /* Typography approximations */
    .page-title {
      font-size: 1.875rem; /* text-3xl */
      line-height: 2.25rem;
      font-weight: 700;
      letter-spacing: -0.03em; /* tracking-tight approx */
      color: #020617; /* text-slate-900 */
    }
    @media (min-width: 768px) {
      .page-title {
        font-size: 2.25rem; /* md:text-4xl */
        line-height: 2.5rem;
      }
    }

    .page-subtitle {
      margin-top: 0.4rem;
      font-size: 0.95rem;
      color: #6b7280; /* text-muted-foreground-ish */
    }

    .section-title {
      font-size: 1rem;
      font-weight: 600;
      color: #020617;
      margin-bottom: 0.75rem;
    }

    .text-muted-small {
      font-size: 0.8rem;
      color: #6b7280;
    }

    /* Cards */
    .card-soft {
      border-radius: 0.75rem;
      border: 1px solid var(--border);
      background-color: var(--card);
      color: var(--card-foreground);
      box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    }

    .kpi-card {
      border-radius: 0.75rem;
      border: 1px solid var(--border);
      box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    }
    .kpi-card .card-body {
      padding: 0.9rem 1rem;
    }

    .kpi-border-emerald {
      border-left: 4px solid #10b981;
      background: linear-gradient(135deg, #ffffff, rgba(209, 250, 229, 0.7));
    }
    .kpi-border-teal {
      border-left: 4px solid #14b8a6;
      background: linear-gradient(135deg, #ffffff, rgba(204, 251, 241, 0.7));
    }
    .kpi-border-cyan {
      border-left: 4px solid #06b6d4;
      background: linear-gradient(135deg, #ffffff, rgba(207, 250, 254, 0.7));
    }
    .kpi-border-blue {
      border-left: 4px solid #3b82f6;
      background: linear-gradient(135deg, #ffffff, rgba(219, 234, 254, 0.7));
    }
    .kpi-border-slate {
      border-left: 4px solid #64748b;
      background: linear-gradient(135deg, #ffffff, rgba(241, 245, 249, 0.7));
    }

    .kpi-value {
      font-size: 1.8rem;
      font-weight: 700;
      color: #020617;
    }

    /* Monthly overview cards */
    .metric-value-lg {
      font-size: 1.7rem;
      font-weight: 700;
    }

    /* Gradient main card (Job Convert) */
    .card-gradient-main {
      border-radius: 0.75rem;
      background: linear-gradient(135deg, #10b981, #0f766e);
      color: #ecfdf5;
      box-shadow: 0 18px 40px rgba(4, 120, 87, 0.5);
    }

    .card-gradient-main .card-body {
      padding: 1.1rem 1.25rem;
    }

    /* Tables */
    .table thead th {
      font-size: 0.78rem;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: #6b7280;
      border-bottom-color: #e5e7eb;
    }
    .table tbody td {
      vertical-align: middle;
      font-size: 0.9rem;
      border-top-color: #e5e7eb;
    }

    /* Status badges */
    .badge-status {
      border-radius: 999px;
      font-size: 0.72rem;
      font-weight: 600;
      padding: 0.2rem 0.7rem;
    }
    .badge-status-interview {
      background-color: #d1fae5;
      color: #065f46;
    }
    .badge-status-view {
      background-color: #dbeafe;
      color: #1d4ed8;
    }
    .badge-status-other {
      background-color: #e5e7eb;
      color: #374151;
    }

    /* Small icon buttons for actions */
    .btn-soft-icon {
      padding: 0.15rem 0.35rem;
      border-radius: 999px;
      font-size: 0.8rem;
      line-height: 1;
    }

    /* Performance insights dots */
    .dot-teal {
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: #0d9488;
      display: inline-block;
    }
    .dot-emerald {
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: #10b981;
      display: inline-block;
    }

    .table-sm-custom thead th {
      padding-top: 0.4rem;
      padding-bottom: 0.4rem;
    }
    .table-sm-custom tbody td {
      padding-top: 0.35rem;
      padding-bottom: 0.35rem;
    }

    /* Buttons similar tone to Tailwind teal/emerald */
    .btn-teal {
      background-color: #0d9488;
      border-color: #0f766e;
    }
    .btn-teal:hover {
      background-color: #0f766e;
      border-color: #0f766e;
    }

    .btn-emerald {
      background-color: #059669;
      border-color: #047857;
    }
    .btn-emerald:hover {
      background-color: #047857;
      border-color: #047857;
    }

    /* Modal small text */
    .modal-body .form-label {
      font-size: 0.9rem;
    }

    /* Responsive tweaks to keep grid feel close */
    @media (min-width: 992px) {
      .kpi-row > [class^="col"] {
        flex: 0 0 auto;
        width: 20%;
      }
    }

    /* Main date filter button */
.uwd-date-btn {
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 15px;
    color: #a38e8e;
}

.uwd-date-btn:hover {
    background: #f7f7f7;
}

/* Dropdown Panel */
.uwd-date-panel {
    width: 330px;
    border-radius: 10px;
    background: #ffffff;
    color: #000000;
}

/* Preset List */
.uwd-date-preset li {
    padding: 5px 0;
}

.uwd-date-preset .preset-item {
    color: #000000;
    text-decoration: none;
    display: block;
    padding: 4px 0;
    border-bottom: 1px solid;
}

.uwd-date-preset .preset-item:hover {
    color: #00ff87;
}

/* Custom range input */
.uwd-date-panel input[type="date"] {
    background: #ffffff;
    border: 1px solid #198754;
    color: #000000;
}

.uwd-date-panel input[type="date"]:focus {
    border-color: #00ff87;
    box-shadow: none;
}



/* Monthly Overview: 5 columns per row (responsive) */
.uwd-grid {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}
.uwd-grid .uwd-card {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 0.75rem;
}

/* ≥ 576px -> 2 columns */
@media (min-width: 576px) {
    .uwd-grid .uwd-card {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* ≥ 992px -> 5 columns */
@media (min-width: 992px) {
    .uwd-grid .uwd-card {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* small style polish */
.metric-value-lg { font-size: 1.35rem; font-weight: 700; }
.text-muted-small { font-size: 0.85rem; color: #6b7280; }
.card-soft { border-radius: 0.7rem; box-shadow: 0 1px 2px rgba(16,24,40,0.03); }



/* ---------- Monthly Overview: 10-card accent styles ---------- */
/* Base card polish (keeps previous styles but more pronounced) */
.uwd-grid .uwd-card .card {
  border: 0;
  overflow: visible;
  border-radius: 0.8rem;
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
  background-clip: padding-box;
}

.uwd-grid .uwd-card .card-body {
  padding: 1.1rem;
  min-height: 84px;
}

/* left accent bar */
.uwd-grid .uwd-card .card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 6px;
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03) inset;
}

/* small accent circle / icon placeholder (right) */
.uwd-card-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  opacity: 0.98;
  box-shadow: 0 1px 6px rgba(16,24,40,0.06);
}

/* hover lift */
.uwd-grid .uwd-card .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(16,24,40,0.08);
}

/* metric text */
/* custom 5th column class for large screens */
@media (min-width: 992px) {
    .col-lg-5th {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* keep responsive fallback: small screens still 50% */
@media (max-width: 991.98px) {
    .col-lg-5th {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Small polish for uwd-card wrappers */
.uwd-card { width: 100%; }
.uwd-card .card { border: 0; border-radius: .7rem; overflow: visible; transition: transform .15s ease; position: relative; }
.uwd-card .card-body { padding: 1rem; }

/* left accent */
.uwd-card .card::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 6px; border-radius: 6px; }

/* icon circle */
.uwd-card .uwd-card-icon { width: 18px; height: 18px; display:inline-block; border-radius:50%; }

/* Hover */
.uwd-card .card:hover { transform: translateY(-6px); box-shadow: 0 8px 30px rgba(16,24,40,0.06); }

/* Metric */
.metric-value-lg { font-size: 1.35rem; font-weight: 700; }

/* 1 */
.uwd-card-index-1 .card { background: linear-gradient(180deg, rgba(236,253,245,0.9), rgba(248,255,253,0.8)); }
.uwd-card-index-1 .card::before { background: #059669; }
.uwd-card-index-1 .uwd-card-icon { background: #10b981; }

/* 2 */
.uwd-card-index-2 .card { background: linear-gradient(180deg, rgba(240,253,244,0.95), rgba(249,255,250,0.85)); }
.uwd-card-index-2 .card::before { background: #16a34a; }
.uwd-card-index-2 .uwd-card-icon { background: #34d399; }

/* 3 */
.uwd-card-index-3 .card { background: linear-gradient(180deg, rgba(239,246,255,0.95), rgba(247,250,255,0.9)); }
.uwd-card-index-3 .card::before { background: #0ea5e9; }
.uwd-card-index-3 .uwd-card-icon { background: #38bdf8; }

/* 4 */
.uwd-card-index-4 .card { background: linear-gradient(180deg, rgba(241,245,255,0.95), rgba(250,252,255,0.9)); }
.uwd-card-index-4 .card::before { background: #4f46e5; }
.uwd-card-index-4 .uwd-card-icon { background: #818cf8; }

/* 5 */
.uwd-card-index-5 .card { background: linear-gradient(180deg, rgba(250,245,255,0.95), rgba(255,250,255,0.92)); }
.uwd-card-index-5 .card::before { background: #8b5cf6; }
.uwd-card-index-5 .uwd-card-icon { background: #a78bfa; }

/* 6 */
.uwd-card-index-6 .card { background: linear-gradient(180deg, rgba(255,243,246,0.95), rgba(255,250,251,0.9)); }
.uwd-card-index-6 .card::before { background: #ec4899; }
.uwd-card-index-6 .uwd-card-icon { background: #fb7185; }

/* 7 */
.uwd-card-index-7 .card { background: linear-gradient(180deg, rgba(255,247,237,0.95), rgba(255,250,245,0.92)); }
.uwd-card-index-7 .card::before { background: #f97316; }
.uwd-card-index-7 .uwd-card-icon { background: #fb923c; }

/* 8 */
.uwd-card-index-8 .card { background: linear-gradient(180deg, rgba(255,250,231,0.95), rgba(255,252,238,0.92)); }
.uwd-card-index-8 .card::before { background: #f59e0b; }
.uwd-card-index-8 .uwd-card-icon { background: #fbbf24; }

/* 9 */
.uwd-card-index-9 .card { background: linear-gradient(180deg, rgba(244,247,250,0.95), rgba(250,252,254,0.92)); }
.uwd-card-index-9 .card::before { background: #64748b; }
.uwd-card-index-9 .uwd-card-icon { background: #94a3b8; }

/* 10 (if present) */
.uwd-card-index-10 .card { background: linear-gradient(180deg, rgba(236,253,255,0.95), rgba(246,253,255,0.92)); }
.uwd-card-index-10 .card::before { background: #0891b2; }
.uwd-card-index-10 .uwd-card-icon { background: #67e8f9; }

/* small text tweaks */
.text-muted-small { font-size: .88rem; color: rgba(15,23,42,0.55); }



/* ===============================
   Floating Chat Button
================================ */
#uwd-chat-fab {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 35px rgba(37,99,235,.4);
  z-index: 9999;
}

#uwd-chat-fab .uwd-bot-icon {
  font-size: 26px;
}

/* ===============================
   Chat Popup Container
================================ */
#uwd-chat-popup {
  position: fixed;
  bottom: 100px;
  right: 26px;
  width: 380px;
  height: 540px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
}

.uwd-chat-hidden {
  display: none;
}

/* ===============================
   Header
================================ */
.uwd-chat-header {
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.uwd-chat-user {
  display: flex;
  gap: 12px;
  align-items: center;
}

.uwd-chat-avatar {
  width: 40px;
  height: 40px;
  background: #ffffff;
  color: #2563eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.uwd-chat-name {
  font-weight: 600;
  font-size: 14px;
}

.uwd-chat-status {
  font-size: 12px;
  color: #a7f3d0;
}

#uwd-chat-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

/* ===============================
   Messages Area
================================ */
#uwd-chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #f8fafc;
}

/* Message rows */
.msg-row {
  display: flex;
  margin-bottom: 12px;
}

.msg-row.left {
  justify-content: flex-start;
}

.msg-row.right {
  justify-content: flex-end;
}

/* Bubbles */
.msg-bubble {
  max-width: 75%;
  padding: 12px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
}

.msg-bubble.ai {
  background: #e5e7eb;
  color: #111827;
  border-bottom-left-radius: 6px;
}

.msg-bubble.user {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #ffffff;
  border-bottom-right-radius: 6px;
}

.msg-time {
  font-size: 11px;
  opacity: .6;
  margin-top: 4px;
  text-align: right;
}

/* ===============================
   Input Area (FIXED)
================================ */
#uwd-chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}

#uwd-chat-form input {
  flex: 1;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 0 14px;
  font-size: 14px;
}

#uwd-chat-form input:focus {
  outline: none;
  border-color: #2563eb;
}

#uwd-chat-form button {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
/* ============================
   AI Chat Popup Core Styles
============================ */

#uwd-chat-popup {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 360px;
  max-height: 520px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
  z-index: 99999;
  display: flex;
  flex-direction: column;
}

/* 🔴 THIS is the missing part */
.uwd-chat-hidden {
  display: none !important;
}


