/* ==========================================================================
   CIVET PROJECTS — ENTERPRISE ERP DESIGN SYSTEM
   Palette:
     Primary:    #44A1A4 (Teal Blue)
     Secondary:  #2E6F73 (Deep Teal)
     Accent:     #5CC3C7 (Soft Cyan)
     Background: #F8FAFC (Light Slate)
     Card:       #FFFFFF (Pure White)
     Text:       #1F2937 (Dark Charcoal)
     Border:     #E5E7EB (Light Slate Border)
     Success:    #27AE60 (Emerald Green)
     Warning:    #F39C12 (Warm Amber)
     Danger:     #E74C3C (Crimson Red)
   Typography:
     Google Fonts: Inter & Poppins
     Hero: 60px | Heading: 36px | Sub Heading: 28px | Body: 16px | Small: 14px
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Design System Color Tokens */
  --color-primary: #44A1A4;
  --color-primary-hover: #388a8d;
  --color-primary-light: rgba(68, 161, 164, 0.12);
  --color-secondary: #2E6F73;
  --color-secondary-hover: #24585b;
  --color-accent: #5CC3C7;
  --color-logo-amber: #F5A623; /* Warm Golden Amber from Official CIVET Logo */
  --color-logo-amber-hover: #E09212;
  --color-bg: #F8FAFC;
  --color-card: #FFFFFF;
  --color-text: #1F2937;
  --color-text-muted: #6B7280;
  --color-border: #E5E7EB;
  --color-success: #27AE60;
  --color-warning: #F39C12;
  --color-danger: #E74C3C;
  --color-dark-surface: #111827;


  /* Fonts */
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Poppins', system-ui, -apple-system, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(68, 161, 164, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

/* Base Resets & Global Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-top: 68px; /* Offset for fixed frozen site-header */

}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6, .hero-title, .section-heading, .sub-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.25;
}

.hero-title {
  font-size: 3.75rem; /* 60px */
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-heading {
  font-size: 2.25rem; /* 36px */
  font-weight: 700;
}

.sub-heading {
  font-size: 1.75rem; /* 28px */
  font-weight: 600;
}

body, p, .body-text {
  font-size: 1rem; /* 16px */
}

small, .text-small, .caption {
  font-size: 0.875rem; /* 14px */
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--color-secondary);
}

/* Layout Container & 12-Column Grid System */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-fluid {
  width: 100%;
  padding-left: 24px;
  padding-right: 24px;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* Frozen Fixed Header & Navbar — Always Visible while Scrolling */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 99999;
  background-color: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 3px solid #5CC3C7 !important;
  box-shadow: 0 6px 24px rgba(68, 161, 164, 0.15) !important;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}


.header-container {
  width: 100%;
  max-width: 100%;
  padding: 0 40px;
  margin: 0 auto;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .header-container {
    padding: 0 18px;
  }
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  width: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-brand img {
  height: 42px;
  width: auto;
  object-fit: contain;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), filter 0.28s ease;
}

.navbar-brand:hover img {
  transform: scale(1.06);
  filter: drop-shadow(0 4px 16px rgba(245, 166, 35, 0.65));
}

/* Decorative Teal Dot Matrix Divider for Header Gap */
.header-dots-divider {
  display: block;
  flex: 1;
  max-width: 220px;
  height: 32px;
  margin: 0 24px;
  background-image: radial-gradient(rgba(68, 161, 164, 0.45) 2px, transparent 2px);
  background-size: 14px 14px;
  background-position: center;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0.85;
}

@media (max-width: 1200px) {
  .header-dots-divider {
    max-width: 160px;
    margin: 0 16px;
  }
}

@media (max-width: 991px) {
  .header-dots-divider {
    max-width: 140px;
    margin: 0 14px;
    height: 28px;
    background-size: 12px 12px;
  }
}

@media (max-width: 576px) {
  .header-dots-divider {
    max-width: 90px;
    margin: 0 8px;
    height: 24px;
    background-size: 10px 10px;
  }
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin-left: auto;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: #0F172A;
  padding: 8px 16px;
  background: transparent !important;
  border-radius: 6px;
  border: none;
  box-shadow: none !important;
  transition: color 0.2s ease, border-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.01em;
}

.nav-link i {
  color: #F5A623; /* Golden Amber from CIVET logo */
  font-size: 1rem;
  transition: color 0.2s ease;
}

/* Navbar Link Active State: Golden Amber Logo Color Text & Icon Highlight (No Underline) */
.nav-link.active {
  color: #F5A623 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  font-weight: 800;
}

.nav-link.active i {
  color: #F5A623 !important;
}

/* Navbar Link Hover State: Golden Amber Logo Color (#F5A623) Text & Icon Highlight on Cursor Hover */
.nav-link:hover {
  color: #F5A623 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  transform: none !important;
}

.nav-link:hover i {
  color: #F5A623 !important;
}





/* Navbar Right Curved Wave Ribbon & Floating Search Button (Matching User Reference) */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 16px;
}

.header-ribbon-wrapper {
  position: relative;
  width: 155px;
  height: 68px;
  margin-right: -40px; /* Extends flush to right screen border */
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 22px;
  flex-shrink: 0;
}

.header-ribbon-svg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.ribbon-search-btn {
  position: relative;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #44A1A4;
  border: none;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: transform 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.ribbon-search-btn:hover {
  transform: scale(1.12);
  background: #F0FAFA;
  color: #2E6F73;
}




.nav-search-btn {
  display: none;
}

@media (max-width: 991px) {
  .nav-search-box {
    display: none;
  }
  .nav-search-btn {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #F1F5F9;
    color: var(--color-primary);
    border: 1px solid #CBD5E1;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    cursor: pointer;
  }
}

/* Button & Action System — High-Visibility Hover States */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #44A1A4, #2E6F73);
  color: #FFFFFF !important;
  border-color: #44A1A4;
  box-shadow: 0 4px 14px rgba(68, 161, 164, 0.3);
}

.btn-primary:hover {
  background: #F5A623 !important;
  color: #FFFFFF !important;
  border-color: #F89B1C !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.55) !important;
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: #FFFFFF !important;
  border-color: var(--color-secondary);
}

.btn-secondary:hover {
  background-color: #F5A623 !important;
  border-color: #F89B1C !important;
  color: #FFFFFF !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(245, 166, 35, 0.5) !important;
}

.btn-outline {
  background-color: #FFFFFF;
  color: #44A1A4 !important;
  border-color: #44A1A4;
  box-shadow: 0 2px 8px rgba(68, 161, 164, 0.15);
}

.btn-outline:hover {
  background: #F5A623 !important;
  color: #FFFFFF !important;
  border-color: #F89B1C !important;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.55) !important;
}


.btn-danger {
  background-color: var(--color-danger);
  color: #FFFFFF !important;
  border-color: var(--color-danger);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
  background-color: #dc2626;
  border-color: #b91c1c;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.btn-success {
  background-color: var(--color-success);
  color: #FFFFFF !important;
  border-color: var(--color-success);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-success:hover {
  background-color: #059669;
  border-color: #047857;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1.05rem;
}

/* Card System & Visible Hover Elevation */
.erp-card {
  background-color: var(--color-card);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  position: relative;
  overflow: hidden;
}

.erp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 38px rgba(68, 161, 164, 0.22);
  border-color: #44A1A4;
}

.erp-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}

.erp-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.erp-card-title i {
  color: var(--color-primary);
}

/* Statistics KPI Cards */
.kpi-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.kpi-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.kpi-content {
  display: flex;
  flex-direction: column;
}

.kpi-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.1;
}

.kpi-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* Form Styling & Floating Inputs */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.form-label .required {
  color: var(--color-danger);
  margin-left: 4px;
}

.form-control {
  width: 100%;
  height: 48px;
  padding: 12px 16px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  color: var(--color-text);
  background-color: var(--color-card);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  outline: none;
}

textarea.form-control {
  height: auto;
  min-height: 120px;
  padding: 14px 16px;
}

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

.form-control::placeholder {
  color: #9CA3AF;
}

.input-icon-wrapper {
  position: relative;
}

.input-icon-wrapper i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-primary);
  font-size: 1rem;
  pointer-events: none;
}

.input-icon-wrapper .form-control {
  padding-left: 44px;
}

/* Table Design System */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background-color: var(--color-card);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.erp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.erp-table th {
  background-color: #F1F5F9;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 16px 20px;
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
}

.erp-table td {
  padding: 16px 20px;
  font-size: 0.925rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.erp-table tbody tr {
  transition: background-color 0.15s ease;
}

.erp-table tbody tr:hover {
  background-color: rgba(68, 161, 164, 0.04);
}

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

/* Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}

.badge-success {
  background-color: rgba(39, 174, 96, 0.12);
  color: var(--color-success);
}

.badge-warning {
  background-color: rgba(243, 156, 18, 0.12);
  color: var(--color-warning);
}

.badge-danger {
  background-color: rgba(231, 76, 60, 0.12);
  color: var(--color-danger);
}

.badge-primary {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

/* Enterprise Sidebar Navigation */
.app-layout {
  display: flex;
  height: 100vh;         /* Full viewport — no scroll on the outer container */
  overflow: hidden;      /* Prevent whole-page scroll; each pane scrolls independently */
  background-color: var(--color-bg);
}

.app-sidebar {
  width: 280px;
  background-color: var(--color-card);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;      /* Sticks to top of its scroll container (.app-layout) */
  top: 0;
  height: 100vh;         /* Always full screen height */
  overflow-y: auto;      /* Sidebar itself scrolls if nav links overflow */
  z-index: 900;
  transition: width 0.3s ease;
}

.app-sidebar.collapsed {
  width: 80px;
}

.sidebar-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--color-border);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.sidebar-brand img {
  height: 38px;
  width: auto;
}

.sidebar-toggle {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.sidebar-toggle:hover {
  color: var(--color-primary);
  background-color: var(--color-primary-light);
}

.sidebar-nav {
  padding: 20px 12px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-section-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 12px 14px 6px;
}

.app-sidebar.collapsed .sidebar-section-label {
  display: none;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  font-family: var(--font-heading);
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.sidebar-link i {
  font-size: 1.15rem;
  color: var(--color-primary);
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-link:hover, .sidebar-link.active {
  color: var(--color-primary);
  background-color: var(--color-primary-light);
}

.sidebar-link.active {
  font-weight: 700;
  background-color: var(--color-primary);
  color: #FFFFFF !important;
}

.sidebar-link.active i {
  color: #FFFFFF !important;
}

.app-sidebar.collapsed .sidebar-link span {
  display: none;
}

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-y: auto;      /* ONLY the main content area scrolls */
  height: 100vh;
}

.app-topbar {
  height: 76px;
  background-color: var(--color-card);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;      /* Topbar sticks inside the scrolling .app-main */
  top: 0;
  z-index: 800;
  flex-shrink: 0;
}

.topbar-title h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background-color: var(--color-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.show .modal-dialog {
  transform: translateY(0) scale(1);
}

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

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--color-danger);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background-color: #F9FAFB;
}

/* Footer Design System */
.site-footer {
  background-color: var(--color-dark-surface);
  color: #9CA3AF;
  padding: 60px 0 30px;
  margin-top: auto;
  border-top: 4px solid var(--color-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 42px;
  margin-bottom: 16px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: #9CA3AF;
  font-size: 0.925rem;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .grid-12, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .app-sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    bottom: 0;
    z-index: 1500;
  }
  .app-sidebar.show {
    left: 0;
  }
}

/* Responsive Breakpoints & Mobile Hamburger Styling */
.navbar-toggle {
  display: none;
  background: #E2F5F5;
  border: 1.5px solid #5CC3C7;
  color: #2E6F73;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.25rem;
  align-items: center;
  justify-content: center;
  transition: all 0.22s ease;
  flex-shrink: 0;
}

.navbar-toggle:hover {
  background: linear-gradient(135deg, #5CC3C7, #2E6F73);
  border-color: #5CC3C7;
  color: #FFFFFF;
  transform: scale(1.05);
}

@media (max-width: 991px) {
  .header-container {
    padding: 0 16px !important;
  }

  .navbar-nav {
    display: none !important;
  }

  .header-ribbon-wrapper {
    width: auto !important;
    height: auto !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
  }

  .header-ribbon-svg {
    display: none !important;
  }


  .ribbon-search-btn {
    width: 34px !important;
    height: 34px !important;
    font-size: 0.95rem !important;
  }

  .navbar-actions {
    gap: 10px !important;
    margin-left: auto !important;
  }

  .navbar-toggle {
    display: inline-flex !important;
  }

  .grid-12, .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr !important;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .section-heading {
    font-size: 1.6rem;
  }
}

  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* Off-Canvas Mobile Navigation Drawer & Backdrop (Global Scope) */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 99998;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.show, .mobile-nav-overlay.active {
  display: block !important;
  opacity: 1;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: #FFFFFF;
  z-index: 99999;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
}

.mobile-nav-drawer.show, .mobile-nav-drawer.active {
  transform: translateX(0) !important;
  visibility: visible !important;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-border);
  background: #FFFFFF;
}

.mobile-nav-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F1F5F9;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  transition: all 0.2s ease;
}

.mobile-nav-close:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.mobile-nav-list {
  list-style: none;
  padding: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-nav-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  color: #1F2937;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav-item a:hover, .mobile-nav-item a.active {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

/* Ken Burns Zoom In/Out Animation for Hero Background */
@keyframes kenburnsZoom {
  0% { transform: scale(1); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.hero-bg-zoom {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  animation: kenburnsZoom 18s ease-in-out infinite alternate;
  z-index: 1;
  opacity: 1;
  filter: brightness(1.1) contrast(1.04);
  /* GPU-accelerated smooth cross-fade — NO lag */
  transition: opacity 1.8s ease-in-out;
  will-change: opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.hero-bg-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.32) 0%, rgba(15, 23, 42, 0.58) 100%) !important;
  z-index: 2;
}



/* All hero banner sections get a healthy minimum height */
section:has(.hero-bg-zoom) {
  min-height: 62vh;
  display: flex;
  align-items: center;
}

/* Hero Banner Subtitle / Paragraph Text: Bold, Crisp, High-Visibility */
section:has(.hero-bg-zoom) p, .hero-title + p {
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 1.15rem !important;
  line-height: 1.65 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85) !important;
}


/* Floating Chat Support Button */
.floating-chat-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #FFFFFF !important;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(68, 161, 164, 0.45);
  border: 2px solid #FFFFFF;
  cursor: pointer;
  z-index: 1400;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
}

.floating-chat-btn:hover {
  transform: scale(1.12) rotate(6deg);
  background-color: var(--color-primary-hover);
  box-shadow: 0 12px 32px rgba(68, 161, 164, 0.6);
}

/* Google OAuth Login Button */
.btn-google {
  width: 100%;
  height: 48px;
  background-color: #FFFFFF;
  color: #374151 !important;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 14px;
  text-decoration: none;
}

.btn-google:hover {
  background-color: #F9FAFB;
  border-color: #D1D5DB;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-google img {
  width: 20px;
  height: 20px;
}

/* Civet Live Chat Support Popup Widget */
.civet-chat-widget {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 360px;
  max-width: calc(100vw - 40px);
  height: 480px;
  max-height: calc(100vh - 140px);
  background-color: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  z-index: 1500;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.civet-chat-widget.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-widget-header {
  background-color: var(--color-dark-surface);
  color: #FFFFFF;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-close-btn {
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.8;
  line-height: 1;
}
.chat-close-btn:hover { opacity: 1; }

.chat-widget-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background-color: #F8FAFC;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.45;
}

.chat-msg.bot {
  background-color: #FFFFFF;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  box-shadow: var(--shadow-sm);
}

.chat-msg.user {
  background-color: var(--color-primary);
  color: #FFFFFF;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-widget-footer {
  padding: 12px;
  background-color: #FFFFFF;
  border-top: 1px solid var(--color-border);
}

.chat-widget-footer form {
  display: flex;
  gap: 8px;
}

.chat-widget-footer input {
  flex: 1;
  height: 40px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  padding: 0 16px;
  font-size: 0.875rem;
  outline: none;
}

/* ==========================================
   DECORATIVE DOT MATRIX PATTERNS (Transparent & Smooth Parallax Scroll)
   ========================================== */
.bg-dots-pattern {
  background-image: radial-gradient(rgba(68, 161, 164, 0.3) 2px, transparent 2px);
  background-size: 20px 20px;
  background-attachment: fixed;
}

.decorative-dots-left {
  position: absolute;
  top: 40px;
  left: 24px;
  width: 140px;
  height: 380px;
  background-image: radial-gradient(rgba(68, 161, 164, 0.35) 2.2px, transparent 2.2px);
  background-size: 20px 20px;
  background-attachment: fixed;
  pointer-events: none;
  z-index: 1;
}

.decorative-dots-right {
  position: absolute;
  bottom: 40px;
  right: 24px;
  width: 140px;
  height: 380px;
  background-image: radial-gradient(rgba(68, 161, 164, 0.35) 2.2px, transparent 2.2px);
  background-size: 20px 20px;
  background-attachment: fixed;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 991px) {
  .decorative-dots-left,
  .decorative-dots-right {
    display: none;
  }
}

/* ==========================================
   GLOBAL LIVE SEARCH MODAL STYLES
   ========================================== */
.global-search-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 40px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.global-search-modal.active {
  opacity: 1;
  visibility: visible;
}

.search-modal-card {
  background-color: #FFFFFF;
  width: 100%;
  max-width: 680px;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transform: translateY(-20px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.global-search-modal.active .search-modal-card {
  transform: translateY(0) scale(1);
}

.search-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  background-color: #FFFFFF;
}

.search-modal-header input {
  width: 100%;
  border: none;
  outline: none;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-text);
  background: transparent;
}

.search-modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #94A3B8;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

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

.search-modal-body {
  max-height: 380px;
  overflow-y: auto;
  padding: 12px;
  background-color: #F8FAFC;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  margin-bottom: 8px;
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.2s ease;
}

.search-result-item:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(68, 161, 164, 0.15);
  transform: translateY(-1px);
}

.search-result-item .item-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
}

.search-result-item .item-subtitle {
  font-size: 0.8rem;
  color: #64748B;
  margin-top: 2px;
}

.search-result-item .item-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  white-space: nowrap;
}

.search-modal-footer {
  padding: 10px 20px;
  background-color: #FFFFFF;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #94A3B8;
}

.search-modal-footer kbd {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  padding: 2px 6px;
  font-family: inherit;
  font-size: 0.72rem;
  color: #475569;
}

/* ==========================================
   COMPACT 6-CARD GALLERY GRID SYSTEM
   ========================================== */
.gallery-6-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

@media (max-width: 1399px) {
  .gallery-6-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
  }
}

@media (max-width: 1199px) {
  .gallery-6-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}

@media (max-width: 991px) {
  .gallery-6-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (max-width: 576px) {
  .gallery-6-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* ==========================================
   STRICT MOBILE RESPONSIVENESS & OVERFLOW FIXES
   (Fit 100% to screen on Android and iOS)
   ========================================== */
html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  margin: 0;
  padding: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 36px;
  margin-bottom: 50px;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .navbar-nav {
    display: none;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .site-footer {
    padding: 40px 0 24px !important;
  }
}

/* ==========================================================================
   GLOBAL TEAL DOTS DECORATIVE PATTERN
   Appears as corner/edge accents15:      Google Fonts: Inter & Poppins
   ========================================================================== */

@keyframes heroSmoothZoom {
  0% {
    transform: scale(1.0);
  }
  50% {
    transform: scale(1.10);
  }
  100% {
    transform: scale(1.0);
  }
}

.hero-bg-zoom {
  animation: heroSmoothZoom 14s ease-in-out infinite alternate !important;
  transition: opacity 1.2s ease-in-out !important;
  will-change: opacity, transform;
}

.hero-title,
.hero-title span {
  text-transform: uppercase !important;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .hero-bg-overlay {
    background: rgba(15, 23, 42, 0.88) !important;
    backdrop-filter: blur(3px) !important;
  }
}

.dots-pattern {
  position: relative;
  overflow: hidden;
}

.dots-pattern::before,
.dots-pattern::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  background-image: radial-gradient(circle, #44A1A4 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.dots-pattern::before {
  top: -20px;
  left: -20px;
}

.dots-pattern::after {
  bottom: -20px;
  right: -20px;
}

/* Ensure section content is above dots */
.dots-pattern > .container,
.dots-pattern > div > .container {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   APPLICATION-WIDE CALENDAR & DATE PICKER STYLING
   ========================================================================== */
input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="time"] {
  position: relative;
  cursor: pointer;
  background-color: #ffffff;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  color: #0F172A;
  font-weight: 600;
}

input[type="date"]:hover,
input[type="datetime-local"]:hover {
  border-color: #44A1A4;
  box-shadow: 0 0 0 3px rgba(68, 161, 164, 0.15);
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  padding: 6px;
  margin-right: 2px;
  filter: invert(45%) sepia(80%) saturate(350%) hue-rotate(135deg) brightness(90%) contrast(90%);
  border-radius: 6px;
  transition: transform 0.22s ease, filter 0.22s ease, background-color 0.22s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
  transform: scale(1.15);
  background-color: #E2F5F5;
  filter: invert(30%) sepia(90%) saturate(450%) hue-rotate(135deg) brightness(85%) contrast(100%);
}

/* Custom & Flatpickr Calendar Styling */
.flatpickr-calendar {
  background: #ffffff !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 40px rgba(68, 161, 164, 0.25) !important;
  border: 1.5px solid #B2DEE0 !important;
  font-family: var(--font-primary) !important;
  padding: 10px !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:focus,
.flatpickr-day.selected:hover {
  background: linear-gradient(135deg, #44A1A4, #2E6F73) !important;
  border-color: #44A1A4 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 12px rgba(68, 161, 164, 0.4) !important;
}

.flatpickr-day:hover {
  background: #E2F5F5 !important;
  border-color: #44A1A4 !important;
  border-radius: 8px !important;
  color: #2E6F73 !important;
}

.flatpickr-months .flatpickr-month {
  background: transparent !important;
  color: #0F172A !important;
  fill: #0F172A !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  font-weight: 800 !important;
  color: #2E6F73 !important;
}

.flatpickr-weekday {
  color: #44A1A4 !important;
  font-weight: 800 !important;
  font-size: 0.82rem !important;
  text-transform: uppercase !important;
}

/* ==========================================================================
   RESPONSIVE FORMS & INLINE BUTTON WRAPPING FOR ALL DEVICES
   ========================================================================== */
@media (max-width: 768px) {
  .form-group div[style*="display: flex"],
  .form-group div[style*="display:flex"] {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .form-group .btn-sm,
  .form-group button[type="button"] {
    width: 100% !important;
    height: 44px !important;
    justify-content: center !important;
  }

  /* Inline CAPTCHA box & input wrapping on mobile */
  .form-group div[style*="align-items: center"] {
    flex-wrap: wrap !important;
  }

  #captchaBox {
    flex: 1;
    text-align: center;
  }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr !important;
  }

  .erp-card {
    padding: 22px 18px !important;
  }
}


/* Alternate: larger dots grid for hero-type sections */
.dots-pattern-lg::before,
.dots-pattern-lg::after {
  width: 300px;
  height: 300px;
  background-image: radial-gradient(circle, #5CC3C7 2px, transparent 2px);
  background-size: 24px 24px;
  opacity: 0.25;
}

/* Navbar Dropdown Menus */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--color-border);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dropdown-item:hover, .dropdown-item.active {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

.dropdown-item i {
  color: var(--color-primary);
  width: 18px;
}

