/* =========================================================
   1. COLOR PALETTE & FONT VARIABLES
========================================================= */
:root {
  /* Brand Colors */
  --tnb-blue: #0563c1;
  --tnb-red-orange: #f66530;
  --tnb-orange-light: #e37e4a;
  --tnb-orange-bright: #f67d30;
  --tnb-orange-deep: #e1803c;
  --kca-grey: #c0c0c0;
  --kca-charcoal: #201e1e;
  --kca-navy: #03045a;
  --kca-black: #000000;

  /* Typography */
  --font-headings: "Inter", sans-serif;
  --font-body: "Open Sans", sans-serif;
}

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: clip;
  font-family: var(--font-body);
  color: var(--kca-charcoal);
  min-height: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.nav-link,
.btn,
.dispatch-pill-btn,
.page-header-title {
  font-family: var(--font-headings);
}

/* Text Color Utilities */
.text-tnb-blue { color: var(--tnb-blue) !important; }
.text-tnb-red { color: var(--tnb-red-orange) !important; }
.text-kca-grey { color: var(--kca-grey) !important; }
.text-tnb-orange-light { color: var(--tnb-orange-light) !important; }
.text-tnb-red-orange { color: var(--tnb-red-orange) !important; }

/* Background Color Utilities */
.bg-navy { background-color: var(--kca-navy) !important; color: #ffffff; }
.bg-charcoal { background-color: var(--kca-charcoal) !important; color: #ffffff; }
.bg-kca-grey { background-color: var(--kca-grey) !important; }
.bg-tnb-red-orange { background-color: var(--tnb-red-orange) !important; }

/* Brand Badges */
.badge-kca-orange {
  color: var(--tnb-red-orange) !important;
  background-color: #fff5f0 !important;
  border: 1px solid rgba(227, 82, 5, 0.35) !important;
}

.badge-kca-blue {
  color: var(--tnb-blue) !important;
  background-color: #f0f7fc !important;
  border: 1px solid rgba(0, 91, 148, 0.35) !important;
}

/* =========================================================
   3. WEBSITE NAVIGATION & HERO COMPONENTS
========================================================= */
.brand-accent-bar {
  height: 10px; 
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--tnb-blue) 0%,
    var(--tnb-blue) 50%,
    var(--tnb-red-orange) 50%,
    var(--tnb-red-orange) 100%
  );
}

.custom-nav-shadow {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.active-nav-link {
  border-bottom: 2px solid var(--tnb-red-orange);
}

.hover-blue:hover {
  color: var(--tnb-blue) !important;
}

.btn-kca-red {
  background-color: var(--tnb-red-orange);
  color: white;
  border: none;
  transition: background-color 0.3s ease-in-out;
}

.btn-kca-red:hover {
  background-color: var(--tnb-orange-deep);
  color: white;
}

.accent-line {
  width: 80px;
  height: 4px;
  background-color: var(--tnb-red-orange);
  margin: 0 auto;
  border-radius: 2px;
}

.accent-line-left {
  width: 60px;
  height: 4px;
  background-color: var(--tnb-red-orange);
  border-radius: 2px;
}

.hero-carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item {
  height: 80vh;
  height: 80dvh;
  min-height: 500px;
  touch-action: pan-y; /* Forces browser to prioritize vertical scrolling */
}

.carousel-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(3, 4, 90, 0.3) 0%,
    rgba(32, 30, 30, 0.85) 100%
  );
}

.carousel-caption {
  top: 0;
  bottom: 0;
  z-index: 10;
}

/* Service Cards */
.service-card {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-bottom: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(5, 99, 193, 0.1) !important;
  border-bottom: 4px solid var(--tnb-blue);
}

.service-card i {
  transition: transform 0.3s ease;
  display: inline-block;
}

.service-card:hover i {
  transform: scale(1.15) translateY(-5px);
  color: var(--tnb-blue) !important;
}

.highlight-number {
  text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.08);
}

/* =========================================================
   4. CONTACT PAGE
========================================================= */
.contact-hero {
  background-color: var(--kca-navy);
  color: #ffffff;
  padding: 45px 16px;
  text-align: center;
}

.contact-hero h1 {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 2.1rem;
  margin-bottom: 6px;
}

.contact-card-clean {
  background: #ffffff;
  border: 1px solid rgba(5, 99, 193, 0.12);
  border-radius: 16px;
  padding: 36px 32px;
  height: 100%;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-card-clean:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(5, 99, 193, 0.08);
}

.contact-label {
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--kca-charcoal);
  margin-bottom: 5px;
  display: block;
}

.contact-form-control {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 9px 13px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--kca-charcoal);
  width: 100%;
  transition: all 0.2s ease;
}

.contact-form-control:focus {
  background-color: #ffffff;
  border-color: var(--tnb-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(5, 99, 193, 0.14);
}

.contact-map-preview {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  max-width: 190px;
}

/* =========================================================
   5. KCACONNECT AUTHENTICATION (LOGIN.HTML)
========================================================= */
.login-wrapper {
  min-height: calc(100vh - 71px);
  background: url("../img/login_bg.png") center center / cover no-repeat;
  position: relative;
  overflow: hidden;
}

.login-welcome-text h1 {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 2.8rem;
  color: var(--kca-navy);
  line-height: 1.1;
}

.login-welcome-bar {
  width: 65px;
  height: 4px;
  background-color: var(--tnb-red-orange);
  border-radius: 4px;
}

.login-welcome-desc {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.45;
  max-width: 440px;
}

.login-partition {
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-left: 1px solid rgba(255, 255, 255, 0.6);
  min-height: calc(100vh - 71px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.login-card {
  background: #ffffff;
  border-radius: 32px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  border: none;
  border-top: 8px solid #0563c1;
  max-width: 430px;
  width: 100%;
  padding: 40px 36px;
}

.login-card-title {
  font-family: var(--font-headings);
  font-weight: 800;
  color: #d92525;
  font-size: 1.55rem;
  text-align: center;
  margin-bottom: 24px;
}

/* Fixed syntax block for Login Field Labels */
.login-field-label {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.95rem;
  color: #0563c1;
  margin-bottom: 6px;
  display: block;
}

.login-field-label .req {
  color: #d92525;
}

.login-input {
  background-color: #f1f3f5;
  border: 1.5px solid #dcdfe4;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.95rem;
  width: 100%;
  color: #201e1e;
  transition: all 0.2s ease;
}

.login-input:focus {
  background-color: #ffffff;
  border-color: #0563c1;
  outline: none;
  box-shadow: 0 0 0 3px rgba(5, 99, 193, 0.18);
}

.btn-signin-navy {
  background-color: #000f6b;
  color: #ffffff;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border-radius: 10px;
  padding: 11px;
  border: none;
  transition: background-color 0.2s ease;
}

.btn-signin-navy:hover {
  background-color: #00083a;
  color: #ffffff;
}

/* =========================================================
   6. STAFF ATTENDANCE PORTAL (STAFF-ATTENDANCE.HTML)
========================================================= */
.btn-outline-kca-orange {
  color: var(--tnb-red-orange);
  border: 1.5px solid var(--tnb-red-orange);
  background-color: transparent;
  transition: all 0.2s ease;
}

.btn-outline-kca-orange:hover {
  background-color: var(--tnb-red-orange);
  color: #ffffff;
  border-color: var(--tnb-red-orange);
}

/* Staff Attendance Card (Now identical to .dispatch-card) */
.attendance-card {
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(5, 99, 193, 0.12);
  padding: 28px 24px;
  height: 100%;
  position: relative;
  z-index: 1;
}

/* Floating Frame Wrapper for Individual Attendance Cards */
.card-frame-container {
  position: relative;
  margin-bottom: 2rem;
  height: 100%;
}

/* Base floating frame */
.card-offset-border {
  position: absolute;
  top: 14px;
  right: -10px;
  bottom: -10px;
  left: 10px;
  border: 3.5px solid var(--tnb-red-orange, #f66530);
  border-radius: 32px;
  z-index: 0;
  pointer-events: none;
}

/* Card-Specific Floating Frame Colors */
.card-offset-border.frame-blue {
  border-color: var(--tnb-blue, #0563c1) !important;
}

.card-offset-border.frame-orange {
  border-color: var(--tnb-red-orange, #f66530) !important;
}

.card-offset-border.frame-red {
  border-color: #e61e2b !important;
}

.btn-clock-in {
  background-color: #0563c1;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  border-radius: 10px;
  padding: 12px;
  border: none;
  transition: all 0.2s ease;
}

.btn-clock-in:hover:not(:disabled) {
  background-color: #034689;
  color: #ffffff;
}

.btn-clock-in:disabled {
  background-color: #cbd5e1;
  color: #64748b;
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-clock-out {
  background-color: #fca5a5;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  border-radius: 10px;
  padding: 12px;
  border: none;
  transition: all 0.25s ease;
}

.btn-clock-out.active-punch {
  background-color: #e61e2b !important;
  opacity: 1 !important;
  cursor: pointer !important;
  box-shadow: 0 4px 15px rgba(230, 30, 43, 0.35);
}

.btn-clock-out.active-punch:hover {
  background-color: #b8141f !important;
}

.btn-clock-out:disabled:not(.active-punch) {
  background-color: #fecdd3;
  color: #fda4af;
  cursor: not-allowed;
}

.btn-request-ot {
  background-color: #f66530;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 10px;
  padding: 11px;
  border: none;
  transition: background-color 0.2s ease;
}

.btn-request-ot:hover {
  background-color: #d84b16;
  color: #ffffff;
}

.table-attendance-header th {
  background-color: #ece7e1 !important;
  color: #2b2b2b;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 14px 12px;
  border: 1px solid #dcd7d0;
}

.table-attendance-body td {
  padding: 14px 12px;
  font-size: 0.92rem;
  vertical-align: middle;
  color: #212529;
  border: 1px solid #e9ecef;
}

.mobile-log-box {
  background-color: #f1f3f5;
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
}

.modal-ot-input {
  background-color: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.92rem;
  width: 100%;
}

.modal-ot-input:focus {
  background-color: #ffffff;
  border-color: #0563c1;
  outline: none;
  box-shadow: 0 0 0 3px rgba(5, 99, 193, 0.15);
}

/* =========================================================
   7. ADMIN PORTAL (DISPATCH & DIRECTORY)
========================================================= */
.page-header-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--tnb-blue, #0563c1);
  letter-spacing: 0;
  margin-bottom: 1.25rem;
}

.dispatch-frame-container {
  position: relative;
  padding: 10px 0 20px;
}

.dispatch-offset-border {
  position: absolute;
  top: 20px;
  right: -15px;
  bottom: -5px;
  left: 15px;
  border: 3.5px solid var(--tnb-red-orange, #f66530);
  border-radius: 32px;
  z-index: 0;
  pointer-events: none;
}

.dispatch-card {
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(5, 99, 193, 0.12);
  padding: 30px 24px;
  position: relative;
  z-index: 1;
}

/* Filter Pills */
.dispatch-pill-btn {
  border-radius: 12px;
  padding: 7px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid #e2e8f0;
  background-color: #f8fafc;
  color: var(--kca-charcoal, #201e1e);
  transition: all 0.2s ease;
}

.dispatch-pill-btn.active-all {
  background-color: var(--kca-navy, #002b5c);
  color: #ffffff;
  border-color: var(--kca-navy, #002b5c);
}

.dispatch-pill-btn.active-offsite {
  background-color: #5eead4;
  color: #0f172a;
  border-color: #14b8a6;
}

.dispatch-pill-btn.active-office {
  background-color: #86efac;
  color: #064e3b;
  border-color: #22c55e;
}

/* Status Badges */
.badge-offsite {
  background-color: #5eead4;
  color: #0f172a;
  font-weight: 700;
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.85rem;
  display: inline-block;
}

.badge-office {
  background-color: #86efac;
  color: #064e3b;
  font-weight: 700;
  border-radius: 50px;
  padding: 6px 20px;
  font-size: 0.85rem;
  display: inline-block;
}

/* Action Buttons */
.btn-allow-site {
  background-color: var(--tnb-blue, #0563c1);
  color: #ffffff;
  font-weight: 700;
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 0.88rem;
  border: none;
  transition: background-color 0.2s ease;
}

.btn-allow-site:hover {
  background-color: #034891;
  color: #ffffff;
}

.btn-change-site {
  background-color: transparent;
  color: var(--tnb-blue, #0563c1);
  border: 2px solid var(--tnb-blue, #0563c1);
  font-weight: 700;
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.btn-change-site:hover {
  background-color: var(--tnb-blue, #0563c1);
  color: #ffffff;
}

/* Dispatch Tables */
.dispatch-table-head th {
  background-color: #ece7e1 !important;
  color: #262626;
  font-weight: 700;
  padding: 14px 12px;
  border: none;
  font-size: 0.92rem;
}

.dispatch-table-body td {
  padding: 16px 12px;
  vertical-align: middle;
  font-size: 0.92rem;
  color: var(--kca-charcoal, #201e1e);
  border-top: 1px solid #f1f5f9;
}

.dispatch-mobile-card {
  background-color: #f8fafc;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  margin-bottom: 12px;
}

/* Consolidated Red Circular View All Button */
.btn-red-circle {
  width: 32px;
  height: 32px;
  background-color: #e61e2b;
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(230, 30, 43, 0.35);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-red-circle:hover {
  background-color: #b8141f;
  transform: scale(1.1);
}

/* =========================================================
   8. ADMIN HEADER & DROPDOWN NAVIGATION
========================================================= */
.nav-link.dropdown-toggle:focus,
.nav-link.dropdown-toggle:active {
  box-shadow: none !important;
  outline: none !important;
}

.dropdown-menu.admin-dropdown-menu {
  border-radius: 12px;
  border: 1px solid rgba(5, 99, 193, 0.12);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 8px;
  min-width: 230px;
}

.dropdown-menu.admin-dropdown-menu .dropdown-item {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--kca-charcoal);
  padding: 9px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.dropdown-menu.admin-dropdown-menu .dropdown-item:hover {
  color: var(--tnb-blue) !important;
  background-color: #f0f7fc;
}

.dropdown-menu.admin-dropdown-menu .dropdown-item:hover i {
  color: var(--tnb-blue) !important;
}

.dropdown-menu.admin-dropdown-menu .dropdown-item.active {
  color: var(--tnb-blue) !important;
  font-weight: 700;
  background-color: #f0f7fc !important;
  border-left: 3px solid var(--tnb-red-orange);
  border-radius: 4px 8px 8px 4px;
}

/* =========================================================
   9. ADMIN MOBILE OFFCANVAS DRAWER
========================================================= */
.admin-drawer {
  width: 300px !important;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.admin-drawer-header {
  background: #ffffff;
  border-bottom: 1px solid #edf2f7;
  padding: 1.2rem 1.25rem;
}

.admin-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.admin-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  transition: all 0.2s ease;
}

.admin-drawer-link i {
  font-size: 1.15rem;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.admin-drawer-link:hover {
  background-color: #f1f5f9;
  color: var(--tnb-blue, #0563c1);
}

.admin-drawer-link:hover i {
  color: var(--tnb-blue, #0563c1);
}

.admin-drawer-link.active {
  background-color: #e8f2fc;
  color: var(--tnb-blue, #0563c1);
  font-weight: 700;
  border-left: 3.5px solid var(--tnb-red-orange, #f66530);
  border-radius: 4px 10px 10px 4px;
}

.admin-drawer-link.active i {
  color: var(--tnb-blue, #0563c1);
}

.btn:active,
.btn-press:active,
.dispatch-pill-btn:active,
.btn-red-circle:active,
.btn-allow-site:active,
.btn-change-site:active,
#btnClockIn:active,
#btnClockOut:active,
#btnSubmitOT:active {
  transform: scale(0.96) !important;
  transition: transform 0.12s ease !important;
}

/* Smooth Table Row Fade-In */
.table-animated tbody tr,
#staffTableBody tr,
#historyTableBody tr:first-child {
  animation: kcaFadeIn 0.2s ease-in-out;
}

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

/* Live Radar Pulse (Site Badges & GPS Dot) */
.badge-offsite {
  position: relative;
  padding-left: 1.4rem !important;
}

.badge-offsite::before,
.pulse-green,
.dot-online {
  content: "";
  display: inline-block;
  border-radius: 50%;
  animation: kcaPulse 1.8s infinite;
}

.badge-offsite::before {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background-color: #dc3545;
}

@keyframes kcaPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(220, 53, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
  }
}

@media (max-width: 991.98px) {
  .login-partition {
    min-height: auto;
    border-left: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 10px 16px 40px;
  }

  .login-card {
    padding: 30px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  }

  .dispatch-offset-border,
  .card-offset-border {
    display: none !important;
  }
}

.btn-ot-approve {
  background-color: #5cb85c;
  color: #ffffff;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.btn-ot-approve:hover {
  background-color: #4cae4c;
  color: #ffffff;
}

.btn-ot-adjust {
  background-color: var(--tnb-blue, #0563c1);
  color: #ffffff;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.btn-ot-adjust:hover {
  background-color: #034891;
  color: #ffffff;
}

.btn-ot-reject {
  background-color: #ffffff;
  color: #e61e2b;
  border: 2px solid #e61e2b;
  font-weight: 700;
  border-radius: 8px;
  padding: 5px 14px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.btn-ot-reject:hover {
  background-color: #e61e2b;
  color: #ffffff;
}

/* 3. Claim Type Filter Dropdown Menu */
.claim-type-menu {
  border-radius: 20px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  padding: 12px 14px !important;
  min-width: 220px;
}

.claim-type-menu .dropdown-item {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  padding: 8px 12px;
  border-radius: 10px;
  transition: background-color 0.15s ease;
}

.claim-type-menu .dropdown-item:hover {
  background-color: #f1f5f9;
}

.ot-clean-card {
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(5, 99, 193, 0.15);
  border-top: 8px solid var(--tnb-blue);
  padding: 32px 28px;
  position: relative;
}

/* =========================================================
   12. ATTENDANCE LOGS MODULE (ADMIN-ATTENDANCE.HTML)
========================================================= */

/* Clean Card with Red/Orange Accent Top Crest */
.log-clean-card {
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(230, 30, 43, 0.18);
  border-top: 8px solid var(--tnb-red-orange, #f66530);
  padding: 32px 28px;
  position: relative;
}

/* Green CSV Export Button */
.btn-export-csv {
  background-color: #4cae4c;
  color: #ffffff;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-export-csv:hover {
  background-color: #3d8b3d;
  color: #ffffff;
}

/* Action 'More' Button */
.btn-more-action {
  color: var(--tnb-blue, #0563c1);
  border: 1.5px solid var(--tnb-blue, #0563c1);
  background-color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 4px 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-more-action:hover {
  background-color: var(--tnb-blue, #0563c1);
  color: #ffffff;
}

/* GPS Inspection Card in Modal */
.gps-punch-box {
  background-color: #e8f2fc;
  border: 1px solid #d0e4f7;
  border-radius: 14px;
  padding: 16px;
  height: 100%;
}

.gps-punch-title {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--tnb-red-orange, #f66530);
  margin-bottom: 10px;
}

.btn-view-maps {
  background-color: var(--tnb-blue, #0563c1);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  border-radius: 6px;
  padding: 8px 12px;
  width: 100%;
  border: none;
  transition: background-color 0.2s ease;
}

.btn-view-maps-disabled {
  background-color: #e2e8f0 !important;
  color: #94a3b8 !important;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  border-radius: 6px;
  padding: 8px 12px;
  width: 100%;
  border: none !important;
  display: block;
  text-align: center;
  text-decoration: none !important;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-view-maps:hover {
  background-color: #034891;
  color: #ffffff;
}

/* =========================================================
   13. WEBSITE INQUIRIES MODULE (ADMIN-INQUIRIES.HTML)
========================================================= */

/* Top KPI Stat Cards */
.inquiry-kpi-card {
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 72px;
  text-decoration: none !important;
}

.inquiry-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.inquiry-kpi-card.active-kpi {
  box-shadow: 0 0 0 3px rgba(5, 99, 193, 0.25);
}

.kpi-title {
  font-family: var(--font-headings);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.kpi-count {
  font-family: var(--font-headings);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
}

.kpi-icon {
  font-size: 1.75rem;
  opacity: 0.9;
}

/* Card 1: Total Inquiries (Solid Navy) */
.kpi-card-total {
  background-color: var(--kca-navy, #002b5c) !important;
  color: #ffffff !important;
  border-color: var(--kca-navy, #002b5c);
}

/* Card 2: New / Unread (Amber) */
.kpi-card-new {
  border-color: #f59e0b;
  color: #b45309;
}
.kpi-card-new .kpi-count { color: #1e293b; }

/* Card 3: Under Review (Orange) */
.kpi-card-review {
  border-color: var(--tnb-red-orange, #f66530);
  color: var(--tnb-red-orange, #f66530);
}
.kpi-card-review .kpi-count { color: #1e293b; }

/* Card 4: Replied (Green) */
.kpi-card-replied {
  border-color: #22c55e;
  color: #15803d;
}
.kpi-card-replied .kpi-count { color: #1e293b; }

/* Card 5: Resolved (Maroon / Red) */
.kpi-card-resolved {
  border-color: #dc2626;
  color: #b91c1c;
}
.kpi-card-resolved .kpi-count { color: #1e293b; }

/* Inquiries Main Clean Card (Solid single card with top blue crest) */
.inquiry-clean-card {
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(5, 99, 193, 0.12);
  border-top: 8px solid var(--tnb-blue, #0563c1);
  padding: 30px 24px;
  position: relative;
}

/* Status Badges with Colored Dots */
.badge-inquiry-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.82rem;
}

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

.badge-status-new {
  background-color: #fef3c7;
  color: #92400e;
}
.badge-status-new .status-dot { background-color: #f59e0b; }

.badge-status-review {
  background-color: #ffedd5;
  color: #9a3412;
}
.badge-status-review .status-dot { background-color: #ea580c; }

.badge-status-replied {
  background-color: #dcfce7;
  color: #166534;
}
.badge-status-replied .status-dot { background-color: #16a34a; }

.badge-status-resolved {
  background-color: #e2e8f0;
  color: #334155;
}
.badge-status-resolved .status-dot { background-color: #64748b; }

/* Category Colored Dots */
.cat-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.cat-dot-internship { background-color: #8b5cf6; } /* Purple */
.cat-dot-project { background-color: #06b6d4; }    /* Cyan */
.cat-dot-proposal { background-color: #f97316; }   /* Orange */
.cat-dot-general { background-color: #eab308; }    /* Gold */

/* Attachment Link Pill */
.attachment-link {
  color: #0f172a;
  text-decoration: underline;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}
.attachment-link:hover {
  color: var(--tnb-blue);
}

/* =========================================================
   14. MODERN EXECUTIVE DASHBOARD (OPTION B)
========================================================= */

/* Top 4 Hero Metric Cards */
.metric-hero-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(5, 99, 193, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none !important;
  color: inherit !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
}

.metric-hero-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(5, 99, 193, 0.09);
  border-color: var(--tnb-blue);
}

.metric-icon-tile {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.metric-tile-blue { background-color: #e0f2fe; color: #0284c7; }
.metric-tile-orange { background-color: #ffedd5; color: #ea580c; }
.metric-tile-red { background-color: #fee2e2; color: #dc2626; }
.metric-tile-amber { background-color: #fef3c7; color: #d97706; }

.metric-label-text {
  font-family: var(--font-headings);
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.metric-number-display {
  font-family: var(--font-headings);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1;
  color: #0f172a;
}

/* Bottom Feeds: Live Widget Containers */
.feed-widget-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(5, 99, 193, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  padding: 24px 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feed-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.feed-widget-title {
  font-family: var(--font-headings);
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.feed-view-all-link {
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--tnb-blue);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.feed-view-all-link:hover {
  text-decoration: underline;
}

/* Feed List Items */
.feed-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 10px;
  border-radius: 12px;
  transition: background-color 0.15s ease;
  text-decoration: none !important;
  color: inherit !important;
}

.feed-item-row:hover {
  background-color: #f8fafc;
}

.feed-item-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-color: #f1f5f9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--tnb-blue);
  flex-shrink: 0;
}

.feed-widget-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(5, 99, 193, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  padding: 24px 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

/* Signature Top Crest (Matches login.html, zero floating borders) */
.feed-widget-card.crest-blue {
  border-top: 7px solid var(--tnb-blue, #0563c1);
}

.feed-widget-card.crest-orange {
  border-top: 7px solid var(--tnb-red-orange, #f66530);
}

/* Top Crest Color Variants (from login.html) */
.dash-hybrid-card.crest-blue {
  border-top: 7px solid var(--tnb-blue, #0563c1);
}

.dash-hybrid-card.crest-orange {
  border-top: 7px solid var(--tnb-red-orange, #f66530);
}

@media (max-width: 991.98px) {
  .dash-offset-border {
    display: none !important;
  }
}

[data-aos] {
  transition-duration: 350ms !important;
}

/* 2. Reduce the physical displacement from 100px to a subtle 15px
      so elements fade in cleanly WITHOUT fighting the scroll */
[data-aos="fade-up"] {
  transform: translate3d(0, 15px, 0) !important;
}
[data-aos="fade-down"] {
  transform: translate3d(0, -15px, 0) !important;
}
[data-aos="fade-left"] {
  transform: translate3d(15px, 0, 0) !important;
}
[data-aos="fade-right"] {
  transform: translate3d(-15px, 0, 0) !important;
}

/* OT  Admin */
.btn-kca-primary {
  background: linear-gradient(135deg, var(--tnb-red-orange) 0%, #e61e2b 100%);
  color: #ffffff !important;
  border: none;
  font-weight: 700;
  font-size: 0.84rem;
  font-family: var(--font-headings);
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(230, 30, 43, 0.25);
  transition: all 0.2s ease;
}

.btn-kca-primary:hover {
  background: linear-gradient(135deg, #ff7644 0%, #f12534 100%);
  color: #ffffff !important;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(230, 30, 43, 0.35);
}

.btn-kca-secondary {
  background-color: #ffffff;
  color: var(--tnb-blue) !important;
  border: 1.5px solid #dce5ef;
  font-weight: 700;
  font-size: 0.84rem;
  font-family: var(--font-headings);
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.btn-kca-secondary:hover {
  background-color: #f0f7fc;
  border-color: var(--tnb-blue) !important;
  color: var(--tnb-blue) !important;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 12px rgba(5, 99, 193, 0.12);
}

.icon-spin-once {
  animation: kcaSpin 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/*Leave*/ 
.leave-clean-card {
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(5, 99, 193, 0.12);
  border-top: 8px solid var(--tnb-blue, #0563c1);
  padding: 30px 24px;
  position: relative;
}

.leave-clean-card.crest-orange {
  border-top-color: var(--tnb-red-orange, #f66530);
}

/*  Balance Cards */
.stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(5, 99, 193, 0.08);
}

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

/* Leave Table  */
.table-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.table th {
  background-color: #f8fafc;
  color: #475569;
  font-family: var(--font-headings);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.table td {
  padding: 1rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.9rem;
  color: var(--kca-charcoal);
}

/* Leave Status */
.badge-pending {
  background-color: #fef3c7 !important;
  color: #92400e !important;
  font-weight: 700;
  border: 1px solid #fde68a;
}

.badge-approved {
  background-color: #dcfce7 !important;
  color: #166534 !important;
  font-weight: 700;
  border: 1px solid #bbf7d0;
}

.badge-rejected {
  background-color: #fee2e2 !important;
  color: #991b1b !important;
  font-weight: 700;
  border: 1px solid #fecaca;
}

/* Deduction */
.badge-deduct-mc {
  background-color: #fee2e2;
  color: #b91c1c;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
}

.badge-deduct-el {
  background-color: #fef3c7;
  color: #b45309;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
}

.badge-deduct-al {
  background-color: #e0f2fe;
  color: #0369a1;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
}

.badge-deduct-unpaid {
  background-color: #334155;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
}

/* Admin Action Buttons */
.btn-leave-approve {
  background-color: #16a34a;
  color: #ffffff;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 14px;
  border-radius: 8px;
  border: none;
  transition: all 0.2s ease;
}

.btn-leave-approve:hover {
  background-color: #15803d;
  color: #ffffff;
}

.btn-leave-reject {
  background-color: #ffffff;
  color: #dc2626;
  border: 1.5px solid #dc2626;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 5px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-leave-reject:hover {
  background-color: #dc2626;
  color: #ffffff;
}

.btn-edit-quota {
  color: var(--tnb-blue);
  border: 1.5px solid var(--tnb-blue);
  background: transparent;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-edit-quota:hover {
  background-color: var(--tnb-blue);
  color: #ffffff;
}

.badge-approved {
  background-color: #d1fae5 !important; /* Soft green background */
  color: #065f46 !important;            /* Dark green text */
  font-weight: 600;
}

.badge-rejected {
  background-color: #fee2e2 !important; /* Soft red background */
  color: #991b1b !important;            /* Dark red text */
  font-weight: 600;
}

.badge-pending {
  background-color: #fef3c7 !important; /* Soft yellow background */
  color: #92400e !important;            /* Dark amber text */
  font-weight: 600;
}