/* =========================================================
   THEME OVERRIDES — paste at the very end of your CSS file
   ========================================================= */

/* 1) Font: Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
:root{
  /* Brand palette */
  --brand: #002d5c;        /* Dark blue (primary) */
  --accent-blue: #4e8bda;  /* Light blue (secondary) */
  --pale-grey: #f4f5f6;    /* Background */
  --turquoise: #31a6d6;    /* Light turquoise (CTA/links) */
  --purple: #7566de;       /* Accent */

  /* Re-map existing tokens so the rest of your UI picks it up */
  --bg: var(--pale-grey);
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e7eaf0;
  --brand-2: var(--turquoise);
  --soft: #f8faff;
  --ring: rgba(0,45,92,.22);
}

/* 2) Base font */
html, body, input, select, textarea, button {
  font-family: 'Poppins', ui-sans-serif, system-ui, Segoe UI, Roboto, Helvetica, Arial !important;
}

/* 3) Background + subtle brand flares (light look) */
body{
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(78,139,218,.10), rgba(78,139,218,0) 60%),
    radial-gradient(750px 360px at 110% 8%, rgba(49,166,214,.08), rgba(49,166,214,0) 55%),
    var(--bg) !important;
  color: var(--ink);
}

/* 4) Header with logo + title */
.header{
  border-bottom:1px solid var(--line) !important;
  background:#ffffff !important;
  padding:16px 0 !important;
}

/* Position the brand row nicely */
.header .wrap{ gap:14px !important }

/* Replace the coloured square with your actual logo */
.brand .logo{
  width:40px; height:40px; border-radius:8px;
  background: transparent !important;
  box-shadow: none !important;
  background-image: url('assets/logo.png');    /* <-- update this path */
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

/* Force the visible title to "Statement of Affairs Information"
   while keeping original text in the DOM for a11y/SEO */
.brand h1{
  position:relative;
  font-size:18px; font-weight:600; letter-spacing:.2px; margin:0;
  color: transparent;                               /* hide original */
}
.brand h1::after{
  content: "Statement of Affairs Information";
  position: absolute; inset: 0;
  color: var(--brand);                              /* dark blue */
}

/* 5) Buttons & interactive states with new palette */
button,
.btn,
input[type="submit"]{
  background: linear-gradient(180deg, var(--brand), #001e3e) !important;
  color:#fff !important;
  border:1px solid transparent !important;
  box-shadow: 0 8px 22px rgba(0,45,92,.25) !important;
}
button:hover,
.btn:hover,
input[type="submit"]:hover{
  filter: brightness(1.05);
}
.btn.ghost{
  background:#fff !important;
  color:var(--brand) !important;
  border:1px solid var(--line) !important;
}

/* Focus ring in brand colour */
input:focus, select:focus, textarea:focus, .input:focus, .select:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 6px var(--ring) !important;
}

/* 6) Links & small accents */
a{ color: var(--turquoise) }
a:hover{ color: var(--purple) }

/* 7) Cards, tables, panels in light palette */
.card, .panel, .table{
  background:#fff !important;
  border:1px solid var(--line) !important;
  box-shadow: 0 8px 24px rgba(15,23,42,.06) !important;
}
.table thead th{
  background:#f6f8fc !important;
  color:#334155 !important;
}

/* 8) Status chips recoloured to match palette */
.status.initiated{
  background:#eaf2ff; border-color:#c9dcff; color:#002d5c;
}
.status.in_progress{
  background:#ecfbff; border-color:#b8ecf7; color:#0ea5e9;
}
.status.completed{
  background:#e9fbf3; border-color:#bfeedd; color:#0b7a4f;
}
.status.needs_rework{
  background:#fff0f2; border-color:#ffd0d6; color:#b4233b;
}
.status.archived{
  background:#f1f5f9; border-color:#e2e8f0; color:#475569;
}

/* 9) Progress bars & decorative gradients updated */
.bar > span,
.progressbar > span{
  background: linear-gradient(90deg, var(--brand), var(--accent-blue), var(--turquoise)) !important;
}

/* 10) Badges / pills */
.badge{
  color:#0b3b75 !important;
  background: rgba(78,139,218,.14) !important;
  border: 1px solid rgba(78,139,218,.28) !important;
}

/* 11) Optional – header nav hover to fit theme */
.nav a:hover{
  color: var(--brand) !important;
  background: rgba(78,139,218,.10) !important;
}


/* =========================================================
   LOGIN PAGE STYLING — FDI Secure Portal
   ========================================================= */

.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(800px 400px at 15% -10%, rgba(78,139,218,.08), rgba(78,139,218,0) 60%),
    radial-gradient(900px 400px at 90% 10%, rgba(49,166,214,.08), rgba(49,166,214,0) 60%),
    var(--bg);
}

.login-card {
  background: var(--panel);
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0,45,92,.10);
  width: 400px;
  max-width: 92%;
  padding: 45px 50px;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}

.login-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0,45,92,.15);
}

.login-card .logo {
  width: 160px;
  margin-bottom: 18px;
}

.login-card h1 {
  font-size: 20px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 8px;
}

.login-card .subtitle {
  font-size: 14px;
  color: var(--accent-blue);
  margin-bottom: 28px;
  font-weight: 500;
}

.login-card form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-card label {
  align-self: flex-start;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.login-card input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 18px;
  outline: none;
  transition: all .3s ease;
}

.login-card input[type="email"]:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--ring);
}

.login-card button {
  width: 100%;
  background: linear-gradient(180deg, var(--brand), #001e3e);
  border-radius: 8px;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,45,92,.25);
  cursor: pointer;
  transition: all .25s ease;
}

.login-card button:hover {
  background: var(--accent-blue);
  box-shadow: 0 8px 20px rgba(78,139,218,.35);
}

.secure-text {
  font-size: 12px;
  color: var(--accent-blue);
  margin-top: 22px;
  font-weight: 500;
}

.secure-text::before {
  content: "🛡️ ";
}

footer {
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
}

/* Optional mini seal (visual cue for safe site) */
.fdi-seal {
  margin: 12px auto 0;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--brand);
  box-shadow: 0 0 12px rgba(78,139,218,.25);
  background: rgba(78,139,218,.06);
  transition: all .3s ease;
}

.fdi-seal:hover {
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(78,139,218,.35);
}
/* =========================================================
   HEADER + LOGIN ALIGNMENT FIXES
   ========================================================= */

/* --- Header alignment cleanup --- */
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 40px;
}

.topbar .logo img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.topbar h1 {
  font-size: 20px;
  font-weight: 600;
  color: var(--brand);
  margin: 0;
  flex-grow: 1;
  text-align: center;
}

.topbar nav a {
  font-size: 14px;
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
}

.topbar nav a:hover {
  color: var(--purple);
}

/* --- Center login card nearer to top --- */
.login-wrapper {
  min-height: 70vh; /* shorter so card sits higher */
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: 40px;
}

.login-card {
  background: var(--panel);
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0,45,92,.12);
  width: 400px;
  max-width: 90%;
  padding: 35px 40px;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}

.login-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,45,92,.18);
}

/* Optional: subtle gradient behind login */
body {
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(78,139,218,.10), rgba(78,139,218,0) 60%),
    radial-gradient(750px 360px at 110% 8%, rgba(49,166,214,.08), rgba(49,166,214,0) 55%),
    var(--bg) !important;
}

/* Adjust footer to stay close below */
footer.container {
  text-align: center;
  margin-top: 20px;
  color: var(--muted);
}


/* =========================================================
   CUSTOM FDI SECURE SEAL (copyright-safe)
   ========================================================= */
.fdi-seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 20px auto 5px;
}

.fdi-seal .shield {
  width: 60px;
  height: 70px;
  background: linear-gradient(180deg, var(--brand), var(--accent-blue));
  clip-path: polygon(50% 0%, 95% 25%, 95% 65%, 50% 100%, 5% 65%, 5% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(78,139,218,.3);
  border: 2px solid #fff;
  position: relative;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .5px;
}

.fdi-seal .shield::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: radial-gradient(circle at center, rgba(255,255,255,.25), transparent 70%);
  opacity: 0.3;
}

.fdi-seal .seal-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-blue);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: .6px;
}

/* optional glowing animation */
@keyframes glowPulse {
  0% { box-shadow: 0 0 8px rgba(78,139,218,.3); }
  50% { box-shadow: 0 0 14px rgba(78,139,218,.6); }
  100% { box-shadow: 0 0 8px rgba(78,139,218,.3); }
}
.fdi-seal .shield {
  animation: glowPulse 3s ease-in-out infinite;
}
/* =========================================================
   REFINED HEADER (Centered + Professional)
   ========================================================= */

.topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 25px 0;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,45,92,.06);
}

.header-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.header-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
  margin-bottom: 4px;
}

.topbar h1 {
  font-size: 20px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.4px;
  margin: 0;
}

@media (min-width: 768px) {
  .header-center {
    flex-direction: row;
    justify-content: center;
    gap: 14px;
  }

  .topbar h1 {
    font-size: 22px;
  }
}
/* =========================================================
   PROFESSIONAL HEADER BAR WITH TIME + CONTACT INFO
   ========================================================= */

.topbar {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 16px rgba(0,45,92,0.06);
  padding: 12px 40px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.left-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo {
  height: 50px;
  width: auto;
}

.company-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.5px;
}

.center-block {
  text-align: center;
  flex: 1;
}

.center-block h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--brand);
}

.center-block .subtext {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.right-block {
  text-align: right;
  font-size: 13px;
  color: var(--muted);
}

.right-block a {
  color: var(--accent-blue);
  text-decoration: none;
}

.right-block a:hover {
  color: var(--purple);
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .right-block {
    text-align: center;
  }
}
/* =========================================================
   PROFESSIONAL BACKGROUND ANIMATION
   ========================================================= */

body {
  position: relative;
  overflow-x: hidden;
  background: var(--bg);
}

/* Animated gradient overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(78,139,218,.12), transparent 60%),
              radial-gradient(circle at 80% 70%, rgba(49,166,214,.12), transparent 65%);
  animation: bgMove 12s ease-in-out infinite alternate;
  z-index: -1;
}

/* Gentle movement of the gradients */
@keyframes bgMove {
  0% {
    background-position: 20% 30%, 80% 70%;
    transform: scale(1);
  }
  50% {
    background-position: 25% 25%, 75% 75%;
    transform: scale(1.02);
  }
  100% {
    background-position: 18% 32%, 82% 68%;
    transform: scale(1);
  }
}

/* Optional – add floating light particles (very subtle) */
.bg-particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.bg-particles span {
  position: absolute;
  width: 6px; height: 6px;
  background: rgba(78,139,218,0.12);
  border-radius: 50%;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 0.4; }
  50% { opacity: 0.6; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-100vh) scale(0.8); opacity: 0; }
}


/* =========================================================
   MODERN ADMIN TABLE + DASHBOARD REFINEMENTS
   ========================================================= */

/* --- Table container --- */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
}

.table thead th {
  background: #f9fafc;
  color: #334155;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.table tbody tr {
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
  transition: all .25s ease;
}

.table tbody tr:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.table td {
  padding: 12px 14px;
  border: none;
  vertical-align: middle;
}

/* --- ID column highlight --- */
.table td:first-child {
  font-weight: 600;
  color: var(--brand);
}

/* --- Company name --- */
.table td:nth-child(2) {
  font-weight: 500;
  color: #0f172a;
}

/* --- Status chips --- */
.status {
  display: inline-block;
  font-weight: 600;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 13px;
  letter-spacing: 0.2px;
}
.status.initiated {
  background: rgba(78,139,218,.12);
  color: var(--brand);
}
.status.needs_rework {
  background: rgba(255,99,132,.15);
  color: #b4233b;
}
.status.completed {
  background: rgba(16,185,129,.12);
  color: #0b7a4f;
}

/* --- Progress bar --- */
.progress-cell {
  min-width: 100px;
}
.progress-bar {
  height: 6px;
  border-radius: 4px;
  background: #e5e7eb;
  overflow: hidden;
}
.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--accent-blue));
  transition: width .4s ease;
}

/* --- Actions --- */
.table a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
}
.table a:hover {
  text-decoration: underline;
}

/* --- Search & filters bar --- */
.filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.filters input[type="text"],
.filters select {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border .25s ease, box-shadow .25s ease;
}

.filters input:focus,
.filters select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(78,139,218,.15);
}

.filters button {
  background: linear-gradient(180deg, var(--brand), #001e3e);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all .25s ease;
}

.filters button:hover {
  background: var(--accent-blue);
}

/* --- Pagination & footer --- */
.pagination,
.table-footer {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}

.pagination a {
  color: var(--accent-blue);
  text-decoration: none;
  margin: 0 4px;
}
.pagination a:hover {
  text-decoration: underline;
}
/* =========================================================
   FDI ADMIN CASES — VISUAL ENHANCEMENTS (non-breaking)
   ========================================================= */

/* Toolbar & Filters */
.toolbar {
  background: #ffffff;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,45,92,0.08);
  margin-bottom: 18px;
}

.toolbar .input, 
.toolbar .select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.toolbar .input:focus,
.toolbar .select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(78,139,218,.15);
}

/* Buttons */
.btn {
  border-radius: 8px !important;
  font-weight: 500 !important;
  padding: 8px 16px !important;
  font-size: 14px;
  transition: all .2s ease-in-out;
}

.btn.icon {
  background: linear-gradient(180deg, var(--brand), #001e3e) !important;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(0,45,92,.25);
}
.btn.icon:hover {
  background: var(--accent-blue) !important;
}

/* Ghost buttons */
.btn.ghost {
  background: #fff !important;
  color: var(--brand) !important;
  border: 1px solid var(--line) !important;
}
.btn.ghost:hover {
  background: rgba(78,139,218,.08) !important;
}

/* Table styling */
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,45,92,.06);
  border-radius: 10px;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
}

.table th {
  background: #f8fafc;
  color: #334155;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.table tbody tr:hover {
  background: rgba(78,139,218,.05);
}

/* Progress Bar */
.bar {
  height: 6px;
  border-radius: 4px;
  background: #e5e7eb;
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent-blue));
  transition: width .3s ease;
}

/* Status chips */
.status {
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 500;
  display: inline-block;
  text-transform: capitalize;
}
.status.initiated {
  background: rgba(78,139,218,.12);
  color: var(--brand);
}
.status.needs_rework {
  background: rgba(255,99,132,.12);
  color: #b4233b;
}
.status.completed {
  background: rgba(16,185,129,.15);
  color: #0b7a4f;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,45,92,.05);
  margin-top: 20px;
  font-size: 13px;
}

.pagebtn {
  border-radius: 6px;
  padding: 5px 10px;
  background: #f1f5f9;
  color: var(--brand);
  text-decoration: none;
  transition: all .2s ease;
}
.pagebtn:hover {
  background: var(--accent-blue);
  color: #fff;
}
.pagebtn.active {
  background: var(--brand);
  color: #fff;
}

/* New Case section */
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 14px 20px;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0,45,92,0.08);
}

.actions h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--brand);
  margin: 0;
}

#btn-open-newcase {
  background: linear-gradient(180deg, var(--brand), #001e3e);
  color: #fff;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  box-shadow: 0 4px 10px rgba(0,45,92,.2);
  transition: all .25s ease;
}
#btn-open-newcase:hover {
  background: var(--accent-blue);
  transform: translateY(-1px);
}

/* Modal improvements */
#modal {
  backdrop-filter: blur(4px);
}
#modal .card, #modal .modal-card {
  border-radius: 12px;
  box-shadow: 0 12px 50px rgba(15,23,42,.3);
}


/* =========================================================
   PROFESSIONAL FILTER TOOLBAR – Sleek UI
   ========================================================= */

.toolbar {
  background: #ffffff;
  border: 1px solid rgba(0,45,92,0.06);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,45,92,0.05);
  padding: 18px 22px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toolbar .row {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.7fr 0.5fr 0.4fr;
  gap: 12px;
}

.toolbar .input,
.toolbar .select {
  background: #fff;
  border: 1px solid #e4e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.toolbar .input:focus,
.toolbar .select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(78,139,218,0.15);
}

/* --- Buttons --- */
.toolbar .btn.icon {
  background: linear-gradient(180deg, var(--brand), #001e3e);
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 500;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0,45,92,.25);
  transition: all .25s ease;
}

.toolbar .btn.icon:hover {
  background: var(--accent-blue);
  box-shadow: 0 8px 18px rgba(78,139,218,.35);
  transform: translateY(-1px);
}

.toolbar a.btn.ghost {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 500;
  color: var(--brand);
  box-shadow: 0 3px 8px rgba(0,45,92,.05);
}

.toolbar a.btn.ghost:hover {
  background: rgba(78,139,218,.06);
}

/* Slight gradient background under bar for depth */
.toolbar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 200px at 30% -10%, rgba(78,139,218,0.05), transparent 70%);
  z-index: -1;
  border-radius: 14px;
}


/* =========================================================
   PROFESSIONAL FILTER TOOLBAR – Sleek UI
   ========================================================= */

.toolbar {
  background: #ffffff;
  border: 1px solid rgba(0,45,92,0.06);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,45,92,0.05);
  padding: 18px 22px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toolbar .row {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.7fr 0.5fr 0.4fr;
  gap: 12px;
}

.toolbar .input,
.toolbar .select {
  background: #fff;
  border: 1px solid #e4e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.toolbar .input:focus,
.toolbar .select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(78,139,218,0.15);
}

/* --- Buttons --- */
.toolbar .btn.icon {
  background: linear-gradient(180deg, var(--brand), #001e3e);
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 500;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0,45,92,.25);
  transition: all .25s ease;
}

.toolbar .btn.icon:hover {
  background: var(--accent-blue);
  box-shadow: 0 8px 18px rgba(78,139,218,.35);
  transform: translateY(-1px);
}

.toolbar a.btn.ghost {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 500;
  color: var(--brand);
  box-shadow: 0 3px 8px rgba(0,45,92,.05);
}

.toolbar a.btn.ghost:hover {
  background: rgba(78,139,218,.06);
}

/* Slight gradient background under bar for depth */
.toolbar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 200px at 30% -10%, rgba(78,139,218,0.05), transparent 70%);
  z-index: -1;
  border-radius: 14px;
}


/* =========================================================
   BOXED FILTER BAR — Enterprise Look
   ========================================================= */

.filterbar {
  background: #ffffff;
  border: 1px solid rgba(0,45,92,0.06);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,45,92,0.08);
  padding: 16px 22px;
  margin: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.8fr 0.5fr 0.4fr;
  gap: 12px;
}

.filterbar .input,
.filterbar .select {
  border: 1px solid #e4e8f0;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 14px;
  transition: all 0.25s ease;
  background: #fff;
}

.filterbar .input:focus,
.filterbar .select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(78,139,218,0.15);
}

.filterbar .btn.primary {
  background: linear-gradient(180deg, var(--brand), #001e3e);
  border-radius: 10px;
  color: #fff;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,45,92,.25);
  transition: all .25s ease;
}

.filterbar .btn.primary:hover {
  background: var(--accent-blue);
  transform: translateY(-1px);
}

.filterbar .btn.ghost {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-weight: 500;
  color: var(--brand);
  padding: 8px 14px;
  box-shadow: 0 3px 6px rgba(0,45,92,.05);
}
.filterbar .btn.ghost:hover {
  background: rgba(78,139,218,.06);
}

/* Right side export buttons */
.filter-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Slight top gradient for nice depth */
.filterbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 180px at 30% -20%, rgba(78,139,218,0.05), transparent 70%);
  border-radius: 12px;
  z-index: -1;
}


/* =========================================================
   FINAL FILTER GRID — Balanced, Professional Layout
   ========================================================= */

.filter-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 0.8fr 0.5fr 0.4fr;
  align-items: center;
  gap: 12px;
}

/* Search input */
.filter-grid input[name="q"] {
  font-size: 14.5px;
  padding: 10px 14px 10px 38px;
  border-radius: 10px;
  border: 1px solid #e4e8f0;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%234e8bda' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 12px center;
  background-size: 17px;
  transition: all .25s ease;
  box-shadow: 0 2px 6px rgba(0,45,92,.05);
}

.filter-grid input[name="q"]:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(78,139,218,.15);
  outline: none;
}

/* Dropdowns */
.filter-grid .select {
  border: 1px solid #e4e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  transition: all .25s ease;
}

.filter-grid .select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(78,139,218,.15);
}

/* Buttons */
.filter-grid .btn.primary {
  background: linear-gradient(180deg, var(--brand), #001e3e);
  border-radius: 10px;
  color: #fff;
  font-weight: 500;
  padding: 9px 18px;
  box-shadow: 0 4px 10px rgba(0,45,92,.25);
  transition: all .25s ease;
}
.filter-grid .btn.primary:hover {
  background: var(--accent-blue);
  transform: translateY(-1px);
}

.filter-grid .btn.ghost {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  color: var(--brand);
  font-weight: 500;
  padding: 9px 16px;
  box-shadow: 0 2px 6px rgba(0,45,92,.05);
}
.filter-grid .btn.ghost:hover {
  background: rgba(78,139,218,.06);
}


/* =========================================================
   TOP ACTION BAR + BUTTONS
   ========================================================= */

.topbar-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 10px;
}

.page-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--brand);
  margin: 0;
}

/* New Case button */
.btn.newcase {
  background: linear-gradient(180deg, var(--turquoise), var(--accent-blue));
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 500;
  padding: 10px 20px;
  box-shadow: 0 5px 14px rgba(78,139,218,.25);
  transition: all .25s ease;
}
.btn.newcase:hover {
  background: var(--brand);
  transform: translateY(-1px);
}

/* Updated Search button */
.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(180deg, var(--brand), #001e3e) !important;
  padding: 9px 20px !important;
  font-size: 14.5px;
}
.search-btn .icon {
  font-size: 16px;
}

/* Export section */
.export-label {
  color: var(--muted);
  font-weight: 500;
  margin-right: 6px;
}


/* =========================================================
   SEARCH CASES BUTTON — FDI COLOUR PALETTE
   ========================================================= */
   
   /* =========================================================
   SEARCH CASES BUTTON — FDI DARK BLUE (MAIN COLOUR)
   ========================================================= */

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2px;
  color: #fff !important;

  /* Solid FDI Main Blue */
  background-color: #002d5c !important;

  /* Shape + spacing */
  padding: 13px 30px !important;
  border-radius: 12px;
  border: none;
  box-shadow: 0 6px 14px rgba(0, 45, 92, 0.25);
  transition: all 0.25s ease;
}

.search-btn .icon {
  font-size: 18px;
  line-height: 1;
}

/* Hover / Focus Effects */
.search-btn:hover {
  background-color: #004080 !important; /* Slightly lighter hover tone */
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 45, 92, 0.35);
}

.search-btn:active {
  transform: scale(0.98);
  box-shadow: 0 3px 8px rgba(0, 45, 92, 0.25);
}

.search-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(78, 139, 218, 0.25);
}

/* =========================================================
   SEARCH CASES BUTTON — FDI DARK BLUE (MAIN COLOUR)
   ========================================================= */

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2px;
  color: #fff !important;

  /* Solid FDI Main Blue */
  background-color: #002d5c !important;

  /* Shape + spacing */
  padding: 13px 30px !important;
  border-radius: 12px;
  border: none;
  box-shadow: 0 6px 14px rgba(0, 45, 92, 0.25);
  transition: all 0.25s ease;
}

.search-btn .icon {
  font-size: 18px;
  line-height: 1;
}

/* Hover / Focus Effects */
.search-btn:hover {
  background-color: #004080 !important; /* Slightly lighter hover tone */
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 45, 92, 0.35);
}

.search-btn:active {
  transform: scale(0.98);
  box-shadow: 0 3px 8px rgba(0, 45, 92, 0.25);
}

.search-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(78, 139, 218, 0.25);
}



/* =========================================================
   ENHANCED SEARCH FIELD + MULTISELECT
   ========================================================= */

/* Wider main search field */
.filter-grid input[name="q"] {
  grid-column: span 2;
  width: 120%;
  font-size: 15px;
  padding: 12px 16px 12px 42px;
  border-radius: 12px;
  border: 1px solid #e4e8f0;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%234e8bda' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 12px center;
  background-size: 18px;
  transition: all .25s ease;
  box-shadow: 0 2px 8px rgba(0,45,92,.05);
}

.filter-grid input[name="q"]:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(78,139,218,.15);
  outline: none;
}

/* Multiselect styling */
.filter-grid select[multiple] {
  height: 46px;
  min-width: 180px;
  border: 1px solid #e4e8f0;
  border-radius: 10px;
  padding: 8px 10px;
  background-color: #fff;
  color: #0f172a;
  font-size: 14px;
  cursor: pointer;
}

.filter-grid select[multiple]:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(78,139,218,.15);
}

/* Scrollable dropdown if long */
.filter-grid select[multiple] option {
  padding: 4px 8px;
  border-radius: 6px;
}


/* =========================================================
   TOOLBAR + SEARCH AREA FIX
   ========================================================= */

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

.toolbar-header h2 {
  font-weight: 700;
  color: var(--brand);
  font-size: 22px;
}

/* Filters grid */
.filter-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 18px 22px;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0,45,92,0.08);
}

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

.export-section {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

/* Search field wider */
.search-field {
  min-width: 360px;
  font-size: 15px;
  padding: 12px 16px 12px 44px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%234e8bda' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 14px center;
  background-size: 18px;
  transition: all .2s ease;
}

.search-field:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(78,139,218,0.15);
  outline: none;
}

/* Search button dark blue */
.search-btn {
  background-color: #002d5c !important;
  color: #fff !important;
  padding: 13px 26px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0,45,92,0.25);
  transition: all 0.25s ease;
}

.search-btn:hover {
  background-color: #004080 !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0,45,92,0.35);
}

/* Reset button */
.reset-btn {
  background: #f8fafc;
  color: var(--brand);
  border-radius: 10px;
}

/* Export buttons */
.export-section .btn {
  padding: 10px 18px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e4e8f0;
  color: var(--brand);
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(15,23,42,.06);
  transition: all .25s ease;
}

.export-section .btn:hover {
  background: var(--soft);
  border-color: var(--accent-blue);
}

/* New case button */
.new-case-btn {
  background-color: #002d5c !important;
  color: #fff !important;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,45,92,0.25);
  transition: all .25s ease;
}

.new-case-btn:hover {
  background-color: #004080 !important;
  transform: translateY(-1px);
}


/* =========================================================
   CASE MANAGEMENT HEADER & FILTERS
   ========================================================= */

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 4px 18px;
  border-bottom: 1px solid var(--line);
}

.case-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.3px;
}

.case-filters {
  background: #ffffff;
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: 0 6px 18px rgba(0, 45, 92, 0.08);
  margin-bottom: 20px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.search-field {
  flex: 1.2;
  font-size: 15px;
  padding: 12px 16px 12px 44px;
  border-radius: 12px;
  border: 1px solid #e4e8f0;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%234e8bda' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 14px center;
  background-size: 18px;
  transition: all 0.2s ease;
}

.search-field:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(78,139,218,0.15);
}

/* Buttons */
.search-btn {
  background-color: #002d5c !important;
  color: #fff !important;
  padding: 13px 26px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(0, 45, 92, 0.25);
  transition: all 0.25s ease;
}

.search-btn:hover {
  background-color: #004080 !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0,45,92,0.35);
}

.reset-btn {
  background: #f8fafc;
  color: var(--brand);
  font-weight: 500;
  border-radius: 10px;
}

/* Export section */
.export-row {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.export-row .btn {
  padding: 10px 18px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e4e8f0;
  color: var(--brand);
  font-weight: 500;
  transition: all .25s ease;
}

.export-row .btn:hover {
  background: var(--soft);
  border-color: var(--accent-blue);
}

/* + Initiate New Case */
#btn-open-newcase {
  background-color: #002d5c !important;
  color: #fff !important;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,45,92,0.25);
  transition: all .25s ease;
}

#btn-open-newcase:hover {
  background-color: #004080 !important;
  transform: translateY(-1px);
}
/* =========================================================
   IMPROVED DROPDOWNS — PROFESSIONAL LOOK
   ========================================================= */

.dropdown-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
}

.dropdown-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding-left: 4px;
}

.select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23002d5c' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  font-size: 14px;
  color: #0f172a;
  padding: 10px 36px 10px 14px;
  border: 1px solid #d7dee9;
  border-radius: 10px;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,45,92,0.05);
}

.select:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(78,139,218,0.12);
}

.select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(0,45,92,0.18);
  outline: none;
}


/* =========================================================
   ALIGNMENT FIX — UNIFIED TOOLBAR ROW
   ========================================================= */

.filter-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 4px;
}

/* Make all inputs, selects, and buttons equal height */
.filter-row .input,
.filter-row .select,
.filter-row .btn,
.filter-row a.btn {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dropdown groups now align nicely in-line */
.dropdown-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  gap: 0;
  margin-top: 0;
}

.dropdown-label {
  position: absolute;
  top: -20px;
  left: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

/* Input and dropdown widths */
.search-field {
  flex: 1.3;
  min-width: 360px;
}

.dropdown-group .select {
  min-width: 160px;
}

/* Consistent button sizing */
.search-btn {
  padding: 0 26px !important;
  min-width: 160px;
}

/* Reset button keeps same height */
.reset-btn {
  height: 46px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 500;
}

/* Export row */
.export-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-left: 4px;
}
/* =========================================================
   COMPANY SEARCH MODAL — FIXED HEIGHT WITH SCROLL
   ========================================================= */

#modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.45);
  z-index: 9999;
  backdrop-filter: blur(3px);
}

#modal > div {
  max-width: 960px;
  margin: 5vh auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15,23,42,0.25);
  display: flex;
  flex-direction: column;
  max-height: 90vh; /* ✅ Key fix: limit overall modal height */
}

/* Make content scrollable inside modal */
#modal > div > div {
  flex: 1;
  overflow-y: auto;   /* ✅ enables vertical scroll */
  padding: 16px 18px;
}

/* Custom scrollbar styling (optional but nice) */
#modal > div > div::-webkit-scrollbar {
  width: 10px;
}

#modal > div > div::-webkit-scrollbar-thumb {
  background-color: rgba(0,45,92,0.3);
  border-radius: 6px;
}

#modal > div > div::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0,45,92,0.5);
}
/* =========================================================
   CY BRANDED LOADER OVERLAY
   ========================================================= */
/* =========================================================
   CY BRANDED LOADER OVERLAY (FIXED VISIBILITY)
   ========================================================= */

#cy-loader {
  display: none !important; /* ✅ force hidden by default */
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.loader-content {
  text-align: center;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

.loader-content img {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 10px rgba(78, 139, 218, 0.5));
}

.loader-content p {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.3px;
  opacity: 0.9;
}

/* CY logo subtle glowing spin animation */
.cy-spin {
  animation: cy-rotate 2s linear infinite, cy-glow 3s ease-in-out infinite alternate;
}

@keyframes cy-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes cy-glow {
  from { filter: drop-shadow(0 0 6px #31a6d6); }
  to { filter: drop-shadow(0 0 12px #7566de); }
}
/* ===== CY Branded Loader ===== */
.cy-loader {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.loader-content {
  text-align: center;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

.loader-content img {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 10px rgba(78, 139, 218, 0.5));
}

.loader-content p {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.3px;
  opacity: 0.9;
}

.cy-spin {
  animation: cy-rotate 2s linear infinite, cy-glow 3s ease-in-out infinite alternate;
}

@keyframes cy-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes cy-glow {
  from { filter: drop-shadow(0 0 6px #31a6d6); }
  to { filter: drop-shadow(0 0 12px #7566de); }
}


/* ===== HEADER STYLING ===== */
.client-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 16px 40px;
  border-bottom: 1px solid #e6e9ee;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.client-logo {
  height: 48px;
  margin-right: 14px;
}

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

.brand-info h1 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #002d5c;
  letter-spacing: 0.5px;
}

.brand-info .subtext {
  font-size: 12px;
  color: #4e8bda;
  margin: 2px 0 0 0;
}

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

.header-right #current-time {
  display: block;
  font-size: 13px;
  color: #444;
  margin-bottom: 4px;
}

.contact-email {
  color: #31a6d6;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.contact-email:hover {
  text-decoration: underline;
}

/* ===== PAGE TITLE ===== */
.portal-title {
  text-align: center;
  padding: 16px 0 8px;
  background: linear-gradient(to bottom, #f8f9fc, #f4f5f6);
  border-bottom: 1px solid #e6e9ee;
}
.portal-title h2 {
  color: #002d5c;
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}
.portal-title p {
  color: #4e8bda;
  margin: 4px 0 0;
  font-size: 13px;
}

/* ===== PROGRESS BAR / NAV SECTION ===== */
.case-progress {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: #f4f5f6;
  padding: 12px 20px;
  border-bottom: 1px solid #e6e9ee;
}
.case-progress a {
  color: #002d5c;
  margin: 4px 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease-in-out;
}
.case-progress a:hover {
  color: #31a6d6;
  border-bottom-color: #31a6d6;
}
.case-progress a.active {
  color: #7566de;
  border-bottom-color: #7566de;
}

/* ===== MAIN CONTENT ===== */
.portal-section {
  background: #fff;
  border-radius: 8px;
  padding: 24px 32px;
  margin: 24px auto;
  max-width: 1000px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}
.portal-section h3 {
  color: #002d5c;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
/* ===== PORTAL PAGE REPAIR STYLES ===== */
.portal-page {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(to bottom right, #f4f5f6, #e9edf4);
  min-height: 100vh;
  color: #1c1c1c;
}

/* --- Header Section --- */
.portal-page header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 40px;
  background: #fff;
  border-bottom: 1px solid #e6e9ee;
  box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}

.portal-page header .logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.portal-page header .logo-wrap img {
  height: 42px;
  object-fit: contain;
}

.portal-page header h1 {
  font-size: 16px;
  font-weight: 700;
  color: #002d5c;
  margin: 0;
  letter-spacing: 0.3px;
}

.portal-page header .contact {
  text-align: right;
  font-size: 13px;
}

.portal-page header .contact a {
  color: #31a6d6;
  text-decoration: none;
}
.portal-page header .contact a:hover {
  text-decoration: underline;
}

/* --- Title Bar --- */
.portal-page .titlebar {
  text-align: center;
  background: #f8f9fc;
  padding: 16px 10px;
  border-bottom: 1px solid #e6e9ee;
}

.portal-page .titlebar h2 {
  font-size: 20px;
  color: #002d5c;
  margin: 0;
  font-weight: 700;
}

.portal-page .titlebar p {
  font-size: 13px;
  color: #4e8bda;
  margin: 4px 0 0;
}

/* --- Progress Links --- */
.portal-page .progress-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: #f4f5f6;
  padding: 10px 18px;
  border-bottom: 1px solid #e0e4ea;
}

.portal-page .progress-bar a {
  color: #002d5c;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  margin: 4px 8px;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}
.portal-page .progress-bar a:hover {
  color: #31a6d6;
  border-bottom-color: #31a6d6;
}
.portal-page .progress-bar a.active {
  color: #7566de;
  border-bottom-color: #7566de;
}

/* --- Content Section --- */
.portal-page main {
  max-width: 1000px;
  margin: 30px auto;
  background: #fff;
  border-radius: 8px;
  padding: 28px 34px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.portal-page main h3 {
  color: #002d5c;
  margin-bottom: 12px;
  font-size: 18px;
}
.portal-page main p {
  line-height: 1.6;
  font-size: 15px;
  color: #333;
}

/* --- Buttons --- */
.portal-page .btn {
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.portal-page .btn.primary {
  background-color: #002d5c;
  color: #fff;
}
.portal-page .btn.primary:hover {
  background-color: #004080;
}

/* ===== PORTAL REPAIR OVERRIDES ===== */
body.portal-page {
  background: linear-gradient(to bottom right, #f4f5f6, #e9edf4) !important;
}

.portal-page main {
  margin-top: 30px !important;
  background: #fff !important;
  border-radius: 8px;
  padding: 30px 36px !important;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.portal-page header {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  background: #fff !important;
  border-bottom: 1px solid #e6e9ee;
  padding: 16px 40px !important;
  box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}

.portal-page header img {
  height: 50px !important;
  object-fit: contain;
}

.case-progress a {
  color: #002d5c !important;
  font-weight: 500 !important;
  border-bottom: 2px solid transparent !important;
}
.case-progress a.active {
  color: #7566de !important;
  border-bottom-color: #7566de !important;
}
