:root {
  --primary-green: #2d8a39;
  --primary-green-dark: #1f6b2b;
  --primary-green-bright: #3fae4f;
  --primary-green-tint: #e8f5ea;
  --accent-red: #e01823;
  --accent-red-tint: #fdeaea;
  --sidebar-bg: #0f2e1a;
  --sidebar-text: #cfe3d4;
  --sidebar-muted: #7ba685;
  --bg-page: #f4f7f5;
  --card-bg: #ffffff;
  --text-main: #192a20;
  --text-secondary: #526359;
  --text-muted: #7d9085;
  --border-color: #dce4de;
  --radius-sm: 8px;
  --radius-card: 14px;
  --sidebar-width: 250px;
  --topbar-height: 64px;
  --shadow-card: 0 4px 18px rgba(15, 46, 26, 0.04);
  --shadow-hover: 0 10px 24px rgba(15, 46, 26, 0.09);
  --shadow-soft: 0 10px 30px rgba(15, 46, 26, 0.07);
}

/* Base font override */
body.fp-body,
body.fp-login-body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  background-color: var(--bg-page) !important;
  color: var(--text-main) !important;
}

/* ==========================================================================
   APP SHELL LAYOUT (Sidebar + Main Column + Sticky Topbar)
   ========================================================================== */
#layout-wrapper.fp-layout-wrapper {
  display: flex !important;
  width: 100% !important;
  min-height: 100vh !important;
  background-color: var(--bg-page) !important;
  position: relative !important;
}

.fp-main-wrapper,
.main-content.fp-main-wrapper {
  margin-left: var(--sidebar-width) !important;
  width: calc(100% - var(--sidebar-width)) !important;
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  background-color: var(--bg-page) !important;
  position: relative !important;
}

.fp-layout-wrapper .page-content {
  flex: 1 0 auto !important;
  padding: 28px 32px 48px !important;
  background-color: var(--bg-page) !important;
}

.fp-layout-wrapper .page-content .container-fluid {
  max-width: 1720px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.footer.fp-footer,
.footer {
  position: static !important;
  margin-top: auto !important;
  background: #ffffff !important;
  border-top: 1px solid var(--border-color) !important;
  padding: 18px 32px !important;
  color: var(--text-secondary) !important;
}

/* ==========================================================================
   SIDEBAR (250px, Deep Green #0f2e1a, Light text #cfe3d4)
   ========================================================================== */
.fp-sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  max-width: var(--sidebar-width);
  background-color: var(--sidebar-bg);
  color: var(--sidebar-text);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
}

.fp-sidebar-header {
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background-color: #0b2414;
  flex-shrink: 0;
}

.fp-sidebar-logo-box {
  background: #ffffff;
  padding: 6px 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.fp-sidebar-logo-box img {
  height: 30px;
  width: auto;
  max-width: 40px;
  display: block;
  object-fit: contain;
}

.fp-sidebar-brand-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.fp-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 14px 10px 24px;
}

.fp-sidebar-nav::-webkit-scrollbar {
  width: 4px;
}
.fp-sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}
.fp-sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.fp-nav-section-label {
  font-size: 10.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sidebar-muted);
  letter-spacing: 0.06em;
  padding: 10px 10px 5px;
}

.fp-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fp-nav-item {
  position: relative;
  list-style: none;
}

.fp-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--sidebar-text) !important;
  text-decoration: none !important;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: all 0.18s ease;
}

.fp-nav-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.07);
}

.fp-nav-link-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fp-nav-link i.fp-nav-icon {
  font-size: 18px;
  color: var(--sidebar-muted);
  transition: color 0.18s ease;
}

.fp-nav-link:hover i.fp-nav-icon {
  color: #ffffff;
}

.fp-nav-arrow {
  font-size: 16px;
  color: var(--sidebar-muted);
  transition: transform 0.2s ease, color 0.18s ease;
}

/* Active Item: Green gradient pill #2d8a39 -> #3fae4f */
.fp-nav-item.active > .fp-nav-link {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-bright) 100%) !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(45, 138, 57, 0.35);
}

.fp-nav-item.active > .fp-nav-link i.fp-nav-icon {
  color: #ffffff !important;
}

.fp-nav-group.open > .fp-nav-link {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff !important;
}

.fp-nav-group.open > .fp-nav-link i.fp-nav-icon {
  color: #ffffff;
}

.fp-nav-group.open > .fp-nav-link .fp-nav-arrow {
  transform: rotate(90deg);
  color: #ffffff;
}

/* Collapsible Submenu with guide line */
.fp-nav-submenu {
  list-style: none;
  display: none;
  padding: 4px 0 6px 36px;
  margin: 0;
  position: relative;
}

.fp-nav-group.open > .fp-nav-submenu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fp-nav-submenu::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 6px;
  bottom: 8px;
  width: 1.5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 1px;
}

.fp-submenu-link {
  display: block;
  padding: 6px 10px;
  font-size: 12.5px;
  color: var(--sidebar-text) !important;
  text-decoration: none !important;
  border-radius: 6px;
  transition: all 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-submenu-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06);
  padding-left: 14px;
}

.fp-submenu-link.active,
.fp-submenu-link.active:hover {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-bright) 100%) !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(45, 138, 57, 0.3);
}

/* ==========================================================================
   TOP BAR (White, 64px, Sticky)
   ========================================================================== */
#page-topbar.fp-topbar,
.fp-topbar {
  height: var(--topbar-height) !important;
  min-height: var(--topbar-height) !important;
  background: #ffffff !important;
  border-bottom: 1px solid var(--border-color) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 32px !important;
  position: sticky !important;
  top: 0 !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  z-index: 99 !important;
  box-shadow: none !important;
}

.fp-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fp-mobile-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 20px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fp-mobile-toggle-btn:hover {
  background: var(--bg-page);
  color: var(--primary-green);
}

.fp-search-box {
  display: flex;
  align-items: center;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0 14px;
  height: 40px;
  width: 360px;
  max-width: 100%;
  gap: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.fp-search-box:focus-within {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(45, 138, 57, 0.12);
  background: #ffffff;
}

.fp-search-box i {
  font-size: 18px;
  color: var(--text-muted);
}

.fp-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13.5px;
  color: var(--text-main);
  width: 100%;
  font-family: inherit;
}

.fp-search-box input::placeholder {
  color: var(--text-muted);
}

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

.fp-session-timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 600;
}

.fp-session-timer-pill i {
  font-size: 16px;
  color: var(--primary-green);
}

.fp-session-timer-pill #wfc-session-timer {
  margin: 0 !important;
  font-size: inherit;
  font-family: inherit;
  font-weight: 600;
}

.fp-user-profile-menu {
  position: relative;
}

.fp-user-pill-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 30px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.fp-user-pill-btn:hover {
  background: var(--bg-page);
  border-color: #ccd8cf;
}

.fp-user-pill-btn::after {
  display: none !important;
}

.fp-user-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-bright) 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(45, 138, 57, 0.25);
  flex-shrink: 0;
}

.fp-user-name-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
}

.fp-user-chevron {
  font-size: 16px;
  color: var(--text-muted);
}

.fp-user-dropdown {
  border: 1px solid var(--border-color) !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
  padding: 6px !important;
  min-width: 170px;
  margin-top: 8px !important;
}

.fp-user-dropdown-item {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  padding: 9px 12px !important;
  border-radius: 8px !important;
  color: var(--accent-red) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: background 0.15s ease !important;
}

.fp-user-dropdown-item:hover {
  background: #fdf2f2 !important;
  color: var(--accent-red) !important;
}

.fp-user-dropdown-item i {
  font-size: 17px;
}

/* ==========================================================================
   DASHBOARD HOME PAGE
   ========================================================================== */
.fp-breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.fp-breadcrumb-item {
  color: var(--text-secondary);
  font-weight: 500;
}

.fp-breadcrumb-separator {
  font-size: 14px;
  color: var(--text-muted);
}

.fp-breadcrumb-current {
  color: var(--text-main);
  font-weight: 600;
}

/* 1. Greeting Card */
.fp-greeting-card {
  background: linear-gradient(135deg, var(--primary-green-dark) 0%, var(--primary-green) 50%, var(--primary-green-bright) 100%);
  border-radius: var(--radius-card);
  padding: 32px 36px;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(31, 107, 43, 0.18);
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.fp-greeting-card::before {
  content: '';
  position: absolute;
  right: -30px;
  top: -50px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.fp-greeting-card::after {
  content: '';
  position: absolute;
  right: 150px;
  bottom: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.fp-greeting-text-area {
  position: relative;
  z-index: 2;
}

.fp-greeting-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
  color: #ffffff;
}

.fp-greeting-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  margin: 0;
}

/* Section Header */
.fp-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.fp-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.2px;
  margin: 0;
}

.fp-section-pill-count {
  font-size: 12px;
  font-weight: 600;
  background: #e6eee8;
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 12px;
}

/* 2. Quick Access (12 white chips in 2 rows of 6) */
.fp-quick-access-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 34px;
}

.fp-quick-chip {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none !important;
  color: var(--text-main) !important;
  box-shadow: 0 1px 3px rgba(15, 46, 26, 0.03);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fp-quick-chip:hover {
  transform: translateY(-2px);
  border-color: var(--primary-green);
  box-shadow: var(--shadow-hover);
  color: var(--primary-green) !important;
}

.fp-quick-chip-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary-green-tint);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 19px;
  transition: all 0.2s ease;
}

.fp-quick-chip:hover .fp-quick-chip-icon {
  background: var(--primary-green);
  color: #ffffff;
}

.fp-quick-chip-label {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 3. Modules (Grid of white tiles, alternating green/red circle tints) */
.fp-modules-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

.fp-module-tile {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none !important;
  box-shadow: var(--shadow-card);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.fp-module-tile:hover {
  transform: translateY(-4px);
  border-color: var(--primary-green);
  box-shadow: var(--shadow-hover);
}

.fp-module-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 14px;
  transition: transform 0.2s ease;
}

.fp-module-tile:hover .fp-module-icon-circle {
  transform: scale(1.08);
}

.fp-tint-green {
  background-color: var(--primary-green-tint);
  color: var(--primary-green);
  border: 1px solid #d4ebda;
}

.fp-tint-red {
  background-color: var(--accent-red-tint);
  color: var(--accent-red);
  border: 1px solid #fbd5d5;
}

.fp-module-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.35;
}

/* ==========================================================================
   LOGIN SPLIT SCREEN (Design D)
   ========================================================================== */
.fp-split-container {
  display: flex;
  width: 100vw;
  min-height: 100vh;
}

.fp-brand-side {
  flex: 1;
  background: linear-gradient(135deg, var(--primary-green-dark) 0%, var(--primary-green) 50%, var(--primary-green-bright) 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}

.fp-brand-side::before {
  content: "";
  position: absolute;
  top: -90px;
  right: -90px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.fp-brand-side::after {
  content: "";
  position: absolute;
  bottom: -110px;
  left: -70px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.fp-brand-content {
  position: relative;
  z-index: 2;
  max-width: 460px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fp-logo-badge {
  background: #ffffff;
  padding: 14px 26px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.14);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fp-brand-logo {
  height: 60px;
  max-width: 190px;
  object-fit: contain;
  display: block;
}

.fp-brand-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 12px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.fp-brand-tagline {
  font-size: 17px;
  font-weight: 500;
  color: #e5f7ea;
  line-height: 1.45;
}

.fp-form-side {
  flex: 1;
  background-color: var(--bg-page);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 48px 32px;
}

.fp-form-card {
  background: var(--card-bg);
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-color);
  padding: 40px 36px;
}

.fp-form-header {
  margin-bottom: 22px;
}

.fp-form-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.fp-form-header p {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0;
}

.fp-login-error {
  background-color: #fdf2f2;
  border: 1px solid #f8b4b4;
  color: #9b1c1c;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.fp-login-error::before {
  content: '\ea07'; /* Boxicons bx-error-circle */
  font-family: 'boxicons' !important;
  font-size: 19px;
  color: var(--accent-red);
  flex-shrink: 0;
}

.fp-form-group {
  margin-bottom: 18px;
}

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

.fp-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.fp-input-wrapper i.fp-input-icon {
  position: absolute;
  left: 14px;
  font-size: 19px;
  color: #7b9183;
  pointer-events: none;
  transition: color 0.2s ease;
}

.fp-input-wrapper input {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 44px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-main);
  background-color: #fbfdfc;
  border: 1.5px solid var(--border-color);
  border-radius: 10px;
  outline: none;
  transition: all 0.2s ease;
}

.fp-input-wrapper input:focus {
  background-color: #ffffff;
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(45, 138, 57, 0.15);
}

.fp-input-wrapper:focus-within i.fp-input-icon {
  color: var(--primary-green);
}

.fp-toggle-pass-btn {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: #7b9183;
  font-size: 19px;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
  transition: color 0.15s ease;
}

.fp-toggle-pass-btn:hover {
  color: var(--primary-green-dark);
}

.fp-btn-signin {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-bright) 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(45, 138, 57, 0.28);
  transition: all 0.2s ease;
  margin-top: 24px;
  text-decoration: none;
}

.fp-btn-signin:hover {
  box-shadow: 0 6px 18px rgba(31, 107, 43, 0.35);
  transform: translateY(-1px);
  filter: brightness(1.03);
  color: #ffffff;
}

.fp-btn-signin:active {
  transform: translateY(0);
}

.fp-btn-signin i {
  font-size: 20px;
}

.fp-admin-notice {
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.fp-admin-notice i {
  font-size: 15px;
  color: var(--primary-green);
}

/* ==========================================================================
   MOBILE BACKDROP & RESPONSIVENESS
   ========================================================================== */
.fp-sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999;
}

body.fp-sidebar-mobile-open .fp-sidebar-backdrop {
  display: block;
}

@media (max-width: 1400px) {
  .fp-quick-access-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .fp-modules-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1200px) {
  .fp-quick-access-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .fp-modules-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991.98px) {
  .fp-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: none;
  }
  .fp-sidebar.open,
  body.fp-sidebar-mobile-open .fp-sidebar {
    transform: translateX(0);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
  }
  .fp-main-wrapper,
  .main-content.fp-main-wrapper {
    margin-left: 0 !important;
    width: 100% !important;
  }
  #page-topbar.fp-topbar,
  .fp-topbar {
    padding: 0 16px !important;
  }
  .fp-mobile-toggle-btn {
    display: flex;
  }
  .fp-search-box {
    width: 220px;
  }
  .fp-layout-wrapper .page-content {
    padding: 20px 16px !important;
  }
  .fp-quick-access-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .fp-modules-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Login Responsive */
  .fp-split-container {
    flex-direction: column;
  }
  .fp-brand-side {
    padding: 40px 24px;
    min-height: 260px;
  }
  .fp-brand-title {
    font-size: 26px;
  }
  .fp-brand-tagline {
    font-size: 15px;
  }
  .fp-form-side {
    padding: 36px 20px;
  }
  .fp-form-card {
    padding: 30px 24px;
  }
}

@media (max-width: 640px) {
  .fp-search-box {
    width: 150px;
  }
  .fp-session-timer-pill {
    padding: 4px 8px;
    font-size: 11px;
  }
  .fp-user-name-text {
    display: none;
  }
  .fp-quick-access-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fp-modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fp-greeting-card {
    padding: 24px 20px;
  }
  .fp-greeting-title {
    font-size: 22px;
  }
}

@media (max-width: 420px) {
  .fp-quick-access-grid {
    grid-template-columns: 1fr;
  }
  .fp-modules-grid {
    grid-template-columns: 1fr;
  }
  .fp-search-box {
    display: none;
  }
}
