/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
  scroll-behavior: smooth;
}

body {
  font-family: 'Google Sans Flex', 'Roboto', 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: #f6f9ff;
  color: #444444;
}

/* Global Button Style */
.btn {
  background: linear-gradient(135deg, #009185ff 0%, #004051ff 100%) !important;
  color: white !important;
  border: none !important;
  /* box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important; */
  transition: all 0.3s ease !important;
  ;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15) !important;
  opacity: 0.9;
}

a {
  color: #006f8eff;
  text-decoration: none;
}

a:hover {
  color: #717ff5;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Nunito", sans-serif;
}



/*--------------------------------------------------------------
# Main
--------------------------------------------------------------*/
#main {
  margin-top: 60px;
  padding: 20px;
  transition: all 0.3s;
}

@media (max-width: 1199px) {
  #main {
    padding: 20px;
  }
}

/*--------------------------------------------------------------
# Page Title
--------------------------------------------------------------*/
.pagetitle {
  margin-bottom: 10px;
}

.pagetitle h1 {
  font-size: 24px;
  margin-bottom: 0;
  font-weight: 600;
  color: #012970;
}

/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background: #4154f1;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: #6776f4;
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Override some default Bootstrap stylings
--------------------------------------------------------------*/
/* Dropdown menus */
.dropdown-menu {
  border-radius: 4px;
  padding: 10px 0;
  animation-name: dropdown-animate;
  animation-duration: 0.2s;
  animation-fill-mode: both;
  border: 0;
  box-shadow: 0 5px 30px 0 rgba(82, 63, 105, 0.2);
}

.dropdown-menu .dropdown-header,
.dropdown-menu .dropdown-footer {
  text-align: center;
  font-size: 15px;
  padding: 10px 25px;
}

.dropdown-menu .dropdown-footer a {
  color: #444444;
  text-decoration: underline;
}

.dropdown-menu .dropdown-footer a:hover {
  text-decoration: none;
}

.dropdown-menu .dropdown-divider {
  color: #a5c5fe;
  margin: 0;
}

.dropdown-menu .dropdown-item {
  font-size: 14px;
  padding: 10px 15px;
  transition: 0.3s;
}

.dropdown-menu .dropdown-item i {
  margin-right: 10px;
  font-size: 18px;
  line-height: 0;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #f6f9ff;
}

@media (min-width: 768px) {
  .dropdown-menu-arrow::before {
    content: "";
    width: 13px;
    height: 13px;
    background: #fff;
    position: absolute;
    top: -7px;
    right: 20px;
    transform: rotate(45deg);
    border-top: 1px solid #eaedf1;
    border-left: 1px solid #eaedf1;
  }
}

@keyframes dropdown-animate {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }

  0% {
    opacity: 0;
  }
}

/* Light Backgrounds */
.bg-primary-light {
  background-color: #cfe2ff;
  border-color: #cfe2ff;
}

.bg-secondary-light {
  background-color: #e2e3e5;
  border-color: #e2e3e5;
}

.bg-success-light {
  background-color: #d1e7dd;
  border-color: #d1e7dd;
}

.bg-danger-light {
  background-color: #f8d7da;
  border-color: #f8d7da;
}

.bg-warning-light {
  background-color: #fff3cd;
  border-color: #fff3cd;
}

.bg-info-light {
  background-color: #cff4fc;
  border-color: #cff4fc;
}

.bg-dark-light {
  background-color: #d3d3d4;
  border-color: #d3d3d4;
}

/* Card */
.card {
  margin-bottom: 30px;
  border: none;
  border-radius: 5px;
  box-shadow: 0px 0 30px rgba(1, 41, 112, 0.1);
}

.card-header,
.card-footer {
  border-color: #ebeef4;
  background-color: #fff;
  color: #798eb3;
  padding: 15px;
}

.card-title {
  padding: 20px 0 15px 0;
  font-size: 18px;
  font-weight: 500;
  color: #012970;
  font-family: "Poppins", sans-serif;
}

.card-title span {
  color: #899bbd;
  font-size: 14px;
  font-weight: 400;
}

.card-body {
  /* padding: 0 20px 38px 20px; */
}

.card-img-overlay {
  background-color: rgba(255, 255, 255, 0.6);
}

/* Alerts */
.alert-heading {
  font-weight: 500;
  font-family: "Poppins", sans-serif;
  font-size: 20px;
}

/* Close Button */
.btn-close {
  background-size: 25%;
}

.btn-close:focus {
  outline: 0;
  box-shadow: none;
}

/* Accordion */
.accordion-item {
  border: 1px solid #ebeef4;
}

.accordion-button:focus {
  outline: 0;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  color: #012970;
  background-color: #f6f9ff;
}

.accordion-flush .accordion-button {
  padding: 15px 0;
  background: none;
  border: 0;
}

.accordion-flush .accordion-button:not(.collapsed) {
  box-shadow: none;
  color: #4154f1;
}

.accordion-flush .accordion-body {
  padding: 0 0 15px 0;
  color: #3e4f6f;
  font-size: 15px;
}

/* Breadcrumbs */
.breadcrumb {
  font-size: 14px;
  font-family: "Nunito", sans-serif;
  color: #899bbd;
  font-weight: 600;
}

.breadcrumb a {
  color: #899bbd;
  transition: 0.3s;
}

.breadcrumb a:hover {
  color: #51678f;
}

.breadcrumb .breadcrumb-item::before {
  color: #899bbd;
}

.breadcrumb .active {
  color: #51678f;
  font-weight: 600;
}

/* Bordered Tabs */
.nav-tabs-bordered {
  border-bottom: 2px solid #ebeef4;
}

.nav-tabs-bordered .nav-link {
  margin-bottom: -2px;
  border: solid;
  color: #2c384e;
}

.nav-tabs-bordered .nav-link:hover,
.nav-tabs-bordered .nav-link:focus {
  color: #4154f1;
}

.nav-tabs-bordered .nav-link.active {
  background-color: #fff;
  color: #4154f1;
  border-bottom: 2px solid #4154f1;
}

/*--------------------------------------------------------------
# Header (Neon Theme)
--------------------------------------------------------------*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 74px;
  z-index: 996;
  transition: all 0.3s ease;
  padding: 0 10px;
  display: flex;
  align-items: center;

  /* NEON MATCHING LEFT & RIGHT SIDEBARS */
  background: #09203f;
  box-shadow: none;
}

/*--------------------------------------------------------------
# HEADER NAV STRUCTURE
--------------------------------------------------------------*/
.header-nav {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  align-items: center;
  flex: 1;
  /* make nav take full width */
  gap: 15px;
  /* slight gap between items */
}





.header-nav .nav-item {
  flex: 1;
  /* all items take equal width */
  display: flex;
}

.header-nav .nav-item-small,
.bottom-sidebar .nav-item-small {
  flex: 0.2 !important;
  min-width: 60px;
}

/*--------------------------------------------------------------
# NAV-LINK – NEON FRAME + BACKGROUND
--------------------------------------------------------------*/
.header-nav .nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  /* center icon + text horizontally */
  width: 100%;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  color: #0ff;

  border: 2px solid rgba(0, 255, 255, 0.45);
  border-radius: 10px;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  /* box-shadow: 0 0 18px rgba(0, 255, 255, 0.5); */
  box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.5);
  transition: all 0.3s ease;
}

/*--------------------------------------------------------------
# NAV-LINK HOVER – WHITE BG + BLUE ICON
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# NAV-LINK HOVER – WHITE BG + BLUE ICON
--------------------------------------------------------------*/
.header-nav .nav-link:hover {
  background: #fff !important;
  /* override gradient */
  box-shadow: 0 0 12px rgba(65, 84, 241, 0.4);
  /* soft blue glow */
  color: #012970;
  /* optional text color */
}

.header-nav .nav-link:hover i {
  color: #4154f1;
  /* original blue */
  text-shadow: 0 0 6px rgba(65, 84, 241, 0.6);
  /* small glow */
}

.form-check-input[type=checkbox] {
  border-color: rgb(0, 70, 97);
}

.form-check-input[type=checkbox]:checked {
  background-color: rgb(0, 183, 255);
}

/*--------------------------------------------------------------
# ICONS
--------------------------------------------------------------*/
.header-nav .nav-link i {
  font-size: 20px;
  margin-right: 10px;
  color: #0ff;
  text-shadow: 0 0 8px rgba(0, 255, 255, 1);
}

/*--------------------------------------------------------------
# Collapsed Header Mode
--------------------------------------------------------------*/
html.sidebar-collapsed .header-nav .nav-link span {
  display: none !important;
}

html.sidebar-collapsed .header-nav .nav-link i {
  margin-right: 0 !important;
  text-align: center;
  width: 100%;
  font-size: 20px;
}

/* Tooltip (like sidebar) */
html.sidebar-collapsed .header-nav .nav-link {
  position: relative;
}

html.sidebar-collapsed .header-nav .nav-link::after {
  content: attr(data-label);
  position: absolute;
  top: 100%;
  /* show below item */
  left: 50%;
  transform: translateX(-50%);
  background-color: #343a40;
  color: white;
  padding: 4px 10px;
  font-size: 13px;
  white-space: nowrap;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  margin-top: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 11000;
}

html.sidebar-collapsed .header-nav .nav-link:hover::after {
  opacity: 1;
}

/*--------------------------------------------------------------
# COLLAPSED MODE (LIKE LEFT/RIGHT)
--------------------------------------------------------------*/
html.sidebar-collapsed .header-nav {
  gap: 8px;
}

html.sidebar-collapsed .header-nav .nav-link {
  padding: 10px 12px;
  /* compact */
}

html.sidebar-collapsed .header-nav .nav-link span {
  display: none !important;
}

html.sidebar-collapsed .header-nav .nav-link i {
  margin-right: 0 !important;
  width: 100%;
  text-align: center;
  font-size: 22px;
}

/* Tooltip on collapsed header */
html.sidebar-collapsed .header-nav .nav-link {
  position: relative;
  /* font-size: 7px; */
}

html.sidebar-collapsed .header-nav .nav-link::after {
  content: attr(data-label);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #343a40;
  color: #fff;
  padding: 4px 10px;
  font-size: 13px;
  white-space: nowrap;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  margin-top: 8px;
  transition: opacity 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  z-index: 11000;
}

html.sidebar-collapsed .header-nav .nav-link:hover::after {
  opacity: 1;
}

/*--------------------------------------------------------------
# Sidebar 
--------------------------------------------------------------*/
.sidebar {
  position: fixed;
  top: var(--header-height, 60px);
  left: 0;
  bottom: 0;
  width: 300px;
  z-index: 996;
  transition: all 0.3s ease;
  padding: 20px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #aab7cf transparent;
  box-shadow: 0px 0px 20px rgba(1, 41, 112, 0.1);
  /* background: linear-gradient(90deg, #1d2a34 #09203f); */
}

.sidebar::-webkit-scrollbar {
  width: 5px;
  height: 8px;
  background-color: #fff;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: #aab7cf;
}

/* Sidebar nav structure */
.sidebar-nav {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav li {
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav .nav-item {
  margin-bottom: 5px;
}

.sidebar-nav .nav-heading {
  font-size: 11px;
  text-transform: uppercase;
  color: #899bbd;
  font-weight: 600;
  margin: 10px 0 5px 15px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: #4154f1;
  transition: 0.3s;
  background: #eaeffa;
  padding: 10px 15px;
  border-radius: 4px;
}

.sidebar-nav .nav-link i {
  font-size: 16px;
  margin-right: 10px;
  color: #4154f1;
}

.sidebar-nav .nav-link.collapsed {
  color: #012970;
  background: #fff;
}

.sidebar-nav .nav-link.collapsed i {
  color: #899bbd;
}

.sidebar-nav .nav-link:hover {
  color: #4154f1;
  background: #f6f9ff;
}

.sidebar-nav .nav-link:hover i {
  color: #4154f1;
}

.sidebar-nav .nav-link .bi-chevron-down {
  margin-right: 0;
  transition: transform 0.2s ease-in-out;
}

.sidebar-nav .nav-link:not(.collapsed) .bi-chevron-down {
  transform: rotate(180deg);
}

.sidebar-nav .nav-content {
  padding: 5px 0 0 0;
  margin: 0;
  list-style: none;
}

.sidebar-nav .nav-content a {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #012970;
  padding: 10px 0 10px 40px;
  transition: 0.3s;
}

.sidebar-nav .nav-content a i {
  font-size: 6px;
  margin-right: 8px;
  line-height: 0;
  border-radius: 50%;
}

.sidebar-nav .nav-content a:hover,
.sidebar-nav .nav-content a.active {
  color: #4154f1;
}

.sidebar-nav .nav-content a.active i {
  background-color: #4154f1;
}


/* --------------------------------------------------------------
   THEME 2: DARK BLUE NEON
--------------------------------------------------------------*/

.sidebar {
  background: #09203f;
  border-right: none;
  box-shadow: none;
}

.sidebar-nav .nav-link {
  min-height: 102.5px;
  display: flex;
  align-items: center;
  border: 2px solid rgba(0, 255, 255, 0.4);
  border-radius: 10px;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.5);
}

.sidebar-nav .nav-link:hover {
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.75);
}

.sidebar-nav .nav-link i {
  font-size: 22px;
  color: #0ff;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.9);
}

/*--------------------------------------------------------------
# Layout Shifts (Main & Footer)
--------------------------------------------------------------*/

/* Default expanded sidebar on desktop */
@media (min-width: 1200px) {
  .sidebar {
    width: 300px;
  }

  #main,
  #footer {
    margin-left: 300px;
    transition: all 0.3s ease;
  }
}

/* On mobile, sidebar hidden off-canvas */
/* Keep sidebar visible in all screen sizes */
@media (max-width: 1199px) {
  .sidebar {
    left: 0 !important;
    /* don't push it off screen */
  }
}

/*--------------------------------------------------------------
# Collapsed Sidebar Mode
--------------------------------------------------------------*/
/* Collapsed Sidebar Mode */
html.sidebar-collapsed .sidebar {
  width: 80px !important;
  padding-top: 0px !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
  overflow-x: visible !important;
  /* gap: 20px; */
  /* allow tooltips to appear outside */
}

.sidebar .sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: -19px;
}


.right-sidebar .sidebar-nav .nav-link {
  min-height: 102.5px;
}

.right-sidebar .sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: -19px;
}


html.sidebar-collapsed .sidebar .nav-link span,
html.sidebar-collapsed .sidebar .nav-content a span,
html.sidebar-collapsed .sidebar .nav-heading {
  display: none !important;
}

html.sidebar-collapsed .sidebar .nav-link i,
html.sidebar-collapsed .sidebar .nav-content a i {
  margin-right: 0 !important;
  text-align: center;
  width: 100%;
  font-size: 20px;
}

html.sidebar-collapsed #main,
html.sidebar-collapsed #footer {
  margin-left: 80px !important;
  transition: all 0.3s ease;
}

/* Tooltip when sidebar is collapsed */
html.sidebar-collapsed .sidebar .nav-link {
  position: relative;
}

html.sidebar-collapsed .sidebar .nav-link::after {
  content: attr(data-label);
  position: absolute;
  left: 100%;
  /* appear to the right */
  top: 50%;
  /* vertically centered */
  transform: translateY(-50%);
  background-color: #343a40;
  color: white;
  padding: 4px 10px;
  font-size: 13px;
  white-space: nowrap;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 9999;
  margin-left: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

html.sidebar-collapsed .sidebar .nav-link:hover::after {
  opacity: 1;
}

/* Ensure collapsed sidebar can display tooltips outside its box */
html.sidebar-collapsed .sidebar {
  overflow: visible !important;
  z-index: 10000;
  /* sidebar floats above main content */
}

/* Keep the tooltip styling exactly as you wrote it */
html.sidebar-collapsed .sidebar .nav-link::after {
  z-index: 11000;
  /* tooltip above sidebar itself */
}


/* Buttons */
.btn {
  width: 200px;

}

/* Apply smooth transition to everything */
.sidebar,
#main,
#footer {
  transition: all 0.3s ease;
}

/* Red placeholder text for form inputs */
.form-control::placeholder {
  color: #000000 !important;
  font-weight: 600;
  /* Bootstrap danger red */
  opacity: 0.7 !important;
}

/* 3. DROPDOWN/SELECT - First option as red placeholder */
select.form-control {
  color: #4a4a4a !important;
  font-weight: 600;

  /* Normal text color */
}

input[type="date"] {
  color: #494949 !important;
  font-weight: 600;

}

/*--------------------------------------------------------------
# Collapsed Right Sidebar Mode
--------------------------------------------------------------*/
html.sidebar-collapsed .right-sidebar {
  width: 80px !important;
  padding-top: 0px;
  padding-left: 10px !important;
  padding-right: 10px !important;
  overflow-x: visible !important;
  /* allow tooltips to appear outside */
}

html.sidebar-collapsed .right-sidebar .nav-link span,
html.sidebar-collapsed .right-sidebar .nav-content a span,
html.sidebar-collapsed .right-sidebar .nav-heading {
  display: none !important;
}

html.sidebar-collapsed .right-sidebar .nav-link i,
html.sidebar-collapsed .right-sidebar .nav-content a i {
  margin-left: 0 !important;
  text-align: center;
  width: 100%;
  font-size: 20px;
}

/* Push main content when right sidebar is collapsed */
html.sidebar-collapsed #main,
html.sidebar-collapsed #footer {
  margin-right: 80px !important;
  transition: all 0.3s ease;
}

/* Tooltip when right sidebar is collapsed */
html.sidebar-collapsed .right-sidebar .nav-link {
  position: relative;
}

html.sidebar-collapsed .right-sidebar .nav-link::after {
  content: attr(data-label);
  position: absolute;
  right: 100%;
  /* appear to the left */
  top: 50%;
  /* vertically centered */
  transform: translateY(-50%);
  background-color: #343a40;
  color: white;
  padding: 4px 10px;
  font-size: 13px;
  white-space: nowrap;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 9999;
  margin-right: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

html.sidebar-collapsed .right-sidebar .nav-link:hover::after {
  opacity: 1;
}

/* Ensure collapsed right sidebar can display tooltips */
html.sidebar-collapsed .right-sidebar {
  overflow: visible !important;
  z-index: 10000;
}

html.sidebar-collapsed .right-sidebar .nav-link::after {
  z-index: 11000;
}

/*--------------------------------------------------------------
# RIGHT SIDEBAR — MATCHED THEME (DARK BLUE NEON)
--------------------------------------------------------------*/

.right-sidebar {
  position: fixed;
  top: 60px;
  right: 0;
  bottom: 0;
  width: 300px;
  z-index: 996;
  transition: all 0.3s ease;
  padding: 20px;
  overflow-y: auto;


  box-shadow: 0 0 35px rgba(0, 255, 255, 0.4);

  scrollbar-width: thin;
  scrollbar-color: #00ffff transparent;
}

.right-sidebar::-webkit-scrollbar {
  width: 5px;
  height: 8px;
  background-color: transparent;
}

.right-sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(0, 255, 255, 0.5);
}


/* NAV STRUCTURE — SAME AS LEFT */
.right-sidebar .nav-item {
  margin-bottom: 5px;
}

.right-sidebar .nav-link {
  display: flex;
  align-items: center;

  /* MATCHED HEIGHT */
  min-height: 88px;

  /* SAME BORDER, BG & RADIUS */
  border: 2px solid rgba(0, 255, 255, 0.4);
  border-radius: 10px;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);

  /* SAME GLOW */
  box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.5);
  padding: 10px 19px;
  font-size: 15px;
  font-weight: 600;
  color: #0ff;

  transition: 0.3s;
}

.right-sidebar .nav-link:hover {
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.75);
}

.right-sidebar .nav-link i {
  font-size: 22px;
  margin-right: 15px;

  /* EXACT SAME ICON GLOW */
  color: #0ff;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.9);
}


/* NAV-CONTENT (submenus) */
.right-sidebar .nav-content a {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: #0ff;
  padding: 10px 0 10px 40px;
  transition: 0.3s;
}

.right-sidebar .nav-content a i {
  font-size: 6px;
  margin-right: 8px;
  line-height: 0;
  border-radius: 50%;
  background-color: #0ff;
  box-shadow: 0 0 6px #0ff;
}

.right-sidebar .nav-content a:hover,
.right-sidebar .nav-content a.active {
  color: #0ff;
  text-shadow: 0 0 6px #0ff;
}

/* FORCE right sidebar dark gradient */
html body aside.right-sidebar {
  background: #09203f !important;
  /* border-left: 4px solid rgba(0, 255, 255, 0.35) !important; */
  /* box-shadow: 0 0 35px rgba(0, 255, 255, 0.4) !important; */
}



/*--------------------------------------------------------------
# Dashboard
--------------------------------------------------------------*/
/* Filter dropdown */
.dashboard .filter {
  position: absolute;
  right: 0px;
  top: 15px;
}

.dashboard .filter .icon {
  color: #aab7cf;
  padding-right: 20px;
  padding-bottom: 5px;
  transition: 0.3s;
  font-size: 16px;
}

.dashboard .filter .icon:hover,
.dashboard .filter .icon:focus {
  color: #4154f1;
}

.dashboard .filter .dropdown-header {
  padding: 8px 15px;
}

.dashboard .filter .dropdown-header h6 {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #aab7cf;
  margin-bottom: 0;
  padding: 0;
}

.dashboard .filter .dropdown-item {
  padding: 8px 15px;
}

/* Info Cards */
.dashboard .info-card {
  padding-bottom: 10px;
}

.dashboard .info-card h6 {
  font-size: 28px;
  color: #012970;
  font-weight: 700;
  margin: 0;
  padding: 0;
}

.dashboard .card-icon {
  font-size: 32px;
  line-height: 0;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  flex-grow: 0;
}

.dashboard .sales-card .card-icon {
  color: #4154f1;
  background: #f6f6fe;
}

.dashboard .revenue-card .card-icon {
  color: #2eca6a;
  background: #e0f8e9;
}

.dashboard .customers-card .card-icon {
  color: #ff771d;
  background: #ffecdf;
}

/* Activity */
.dashboard .activity {
  font-size: 14px;
}

.dashboard .activity .activity-item .activite-label {
  color: #888;
  position: relative;
  flex-shrink: 0;
  flex-grow: 0;
  min-width: 64px;
}

.dashboard .activity .activity-item .activite-label::before {
  content: "";
  position: absolute;
  right: -11px;
  width: 4px;
  top: 0;
  bottom: 0;
  background-color: #eceefe;
}

.dashboard .activity .activity-item .activity-badge {
  margin-top: 3px;
  z-index: 1;
  font-size: 11px;
  line-height: 0;
  border-radius: 50%;
  flex-shrink: 0;
  border: 3px solid #fff;
  flex-grow: 0;
}

.dashboard .activity .activity-item .activity-content {
  padding-left: 10px;
  padding-bottom: 20px;
}

.dashboard .activity .activity-item:first-child .activite-label::before {
  top: 5px;
}

.dashboard .activity .activity-item:last-child .activity-content {
  padding-bottom: 0;
}

/* News & Updates */
.dashboard .news .post-item+.post-item {
  margin-top: 15px;
}

.dashboard .news img {
  width: 80px;
  float: left;
  border-radius: 5px;
}

.dashboard .news h4 {
  font-size: 15px;
  margin-left: 95px;
  font-weight: bold;
  margin-bottom: 5px;
}

.dashboard .news h4 a {
  color: #012970;
  transition: 0.3s;
}

.dashboard .news h4 a:hover {
  color: #4154f1;
}

.dashboard .news p {
  font-size: 14px;
  color: #777777;
  margin-left: 95px;
}

/* Recent Sales */
.dashboard .recent-sales {
  font-size: 14px;
}

.dashboard .recent-sales .table thead {
  background: #f6f6fe;
}

.dashboard .recent-sales .table thead th {
  border: 0;
}

.dashboard .recent-sales .dataTable-top {
  padding: 0 0 10px 0;
}

.dashboard .recent-sales .dataTable-bottom {
  padding: 10px 0 0 0;
}

/* Top Selling */
.dashboard .top-selling {
  font-size: 14px;
}

.dashboard .top-selling .table thead {
  background: #f6f6fe;
}

.dashboard .top-selling .table thead th {
  border: 0;
}

.dashboard .top-selling .table tbody td {
  vertical-align: middle;
}

.dashboard .top-selling img {
  border-radius: 5px;
  max-width: 60px;
}

/*--------------------------------------------------------------
# Icons list page
--------------------------------------------------------------*/
.iconslist {
  display: grid;
  max-width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  padding-top: 15px;
}

.iconslist .icon {
  background-color: #fff;
  border-radius: 0.25rem;
  text-align: center;
  color: #012970;
  padding: 15px 0;
}

.iconslist i {
  margin: 0.25rem;
  font-size: 2.5rem;
}

.iconslist .label {
  font-family: var(--bs-font-monospace);
  display: inline-block;
  width: 100%;
  overflow: hidden;
  padding: 0.25rem;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #666;
}

/*--------------------------------------------------------------
# Profie Page
--------------------------------------------------------------*/
.profile .profile-card img {
  max-width: 120px;
}

.profile .profile-card h2 {
  font-size: 24px;
  font-weight: 700;
  color: #2c384e;
  margin: 10px 0 0 0;
}

.profile .profile-card h3 {
  font-size: 18px;
}

.profile .profile-card .social-links a {
  font-size: 20px;
  display: inline-block;
  color: rgba(1, 41, 112, 0.5);
  line-height: 0;
  margin-right: 10px;
  transition: 0.3s;
}

.profile .profile-card .social-links a:hover {
  color: #012970;
}

.profile .profile-overview .row {
  margin-bottom: 20px;
  font-size: 15px;
}

.profile .profile-overview .card-title {
  color: #012970;
}

.profile .profile-overview .label {
  font-weight: 600;
  color: rgba(1, 41, 112, 0.6);
}

.profile .profile-edit label {
  font-weight: 600;
  color: rgba(1, 41, 112, 0.6);
}

.profile .profile-edit img {
  max-width: 120px;
}

/*--------------------------------------------------------------
# F.A.Q Page
--------------------------------------------------------------*/
.faq .basic h6 {
  font-size: 18px;
  font-weight: 600;
  color: #4154f1;
}

.faq .basic p {
  color: #6980aa;
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact .info-box {
  padding: 28px 30px;
}

.contact .info-box i {
  font-size: 38px;
  line-height: 0;
  color: #4154f1;
}

.contact .info-box h3 {
  font-size: 20px;
  color: #012970;
  font-weight: 700;
  margin: 20px 0 10px 0;
}

.contact .info-box p {
  padding: 0;
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: #ed3c0d;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #18d26e;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.contact .php-email-form .loading {
  display: none;
  background: #fff;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.contact .php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid #18d26e;
  border-top-color: #eee;
  animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  border-radius: 0;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: #4154f1;
}

.contact .php-email-form input {
  padding: 10px 15px;
}

.contact .php-email-form textarea {
  padding: 12px 15px;
}

.contact .php-email-form button[type=submit] {
  background: #4154f1;
  border: 0;
  padding: 10px 30px;
  color: #fff;
  transition: 0.4s;
  border-radius: 4px;
}

.contact .php-email-form button[type=submit]:hover {
  background: #5969f3;
}

@keyframes animate-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Error 404
--------------------------------------------------------------*/
.error-404 {
  padding: 30px;
}

.error-404 h1 {
  font-size: 180px;
  font-weight: 700;
  color: #4154f1;
  margin-bottom: 0;
  line-height: 150px;
}

.error-404 h2 {
  font-size: 24px;
  font-weight: 700;
  color: #012970;
  margin-bottom: 30px;
}

.error-404 .btn {
  background: #51678f;
  color: #fff;
  padding: 8px 30px;
}

.error-404 .btn:hover {
  background: #3e4f6f;
}

@media (min-width: 992px) {
  .error-404 img {
    max-width: 50%;
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  padding: 20px 0;
  font-size: 14px;
  transition: all 0.3s;
  border-top: 1px solid #cddfff;
}

.footer .copyright {
  text-align: center;
  color: #012970;
}

.footer .credits {
  padding-top: 5px;
  text-align: center;
  font-size: 13px;
  color: #012970;
}

.btn {
  width: 200px;
}

/*--------------New Css---------------*/
/* Right Sidebar */
.right-sidebar {
  position: fixed;
  top: var(--header-height, 60px);
  /* below header */
  right: 0;
  width: 220px;
  height: calc(100% - var(--header-height, 60px));
  /* full height except header */
  /* background: linear-gradient(180deg, #09203f, #537895); */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  padding: 20px 0;
  overflow-y: auto;
  z-index: 1000;
}

/* Push main content so right menu doesn't overlap */
.main {
  margin-left: 220px;
  /* left sidebar */
  margin-right: 220px;
  /* right sidebar */
  padding: 20px;
}

/*--------------------------------------------------------------
# Bottom Sidebar — Neon Theme (Matches Top & Sidebars)
--------------------------------------------------------------*/
.bottom-sidebar {
  position: fixed;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 74px;
  /* same as top navbar */
  background: #09203f;
  /* border-top: 4px solid rgba(0, 255, 255, 0.35); */
  /* box-shadow: 0 -2px 25px rgba(0, 255, 255, 0.4); */
  /* glow upwards */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 11000;
  /* higher than left/right sidebars */
  padding: 0 10px;
}

/* Bottom nav structure */
.bottom-sidebar .sidebar-nav {
  display: flex;
  gap: 8px;
  padding-top: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
  /* take full width */
}

/* Only bottom sidebar nav-links */
.bottom-sidebar .nav-link {
  min-height: 40px;
  /* smaller height */
  padding: 5px 0;
  /* adjust vertical padding as needed */
}


.bottom-sidebar .nav-item {
  flex: 1;
  /* evenly distribute */
  display: flex;
}

/* Bottom nav links — neon frame */
.bottom-sidebar .nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  /* fill nav-item */
  padding: 10px 0;
  /* vertical padding, same as top navbar */
  font-size: 15px;
  font-weight: 600;
  color: #0ff;

  /* Neon border + radius */
  border: 2px solid rgba(0, 255, 255, 0.45);
  border-radius: 10px;

  /* Gradient background */
  box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.5);
  /* Glow */
  /* box-shadow: 0 0 18px rgba(0, 255, 255, 0.5); */

  transition: all 0.3s ease;
}

/* Hover effect — background white + icon blue glow */
.bottom-sidebar .nav-link:hover {
  background: #fff;
  color: #0d6efd;
  /* icon + text blue */
  box-shadow: 0 0 26px rgba(0, 255, 255, 0.75);
}

.bottom-sidebar .nav-link i {
  font-size: 20px;
  margin-right: 1px;
  color: #0ff;
  text-shadow: 0 0 8px rgba(0, 255, 255, 1);
  transition: all 0.3s ease;
}

.bottom-sidebar .nav-link:hover i {
  color: #0d6efd;
  /* blue on hover */
  text-shadow: 0 0 6px rgba(0, 123, 255, 0.8);
  /* subtle glow */
}

/* When collapsed, only show icons with tooltip */
html.sidebar-collapsed .bottom-sidebar .nav-link span {
  display: none !important;
}

html.sidebar-collapsed .bottom-sidebar .nav-link {
  justify-content: center;
  position: relative;
}

html.sidebar-collapsed .bottom-sidebar .nav-link::after {
  content: attr(data-label);
  position: absolute;
  bottom: 100%;
  /* tooltip above */
  left: 50%;
  transform: translateX(-50%);
  background-color: #343a40;
  color: white;
  padding: 4px 10px;
  font-size: 13px;
  white-space: nowrap;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 12000;
  /* above all */
  margin-bottom: 8px;
  /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); */
}

html.sidebar-collapsed .bottom-sidebar .nav-link:hover::after {
  opacity: 1;
}

/* Safe (no allergy) */
.header-nav .nav-link.allergy-safe {
  background: green !important;
  color: white !important;
  border-color: rgba(0, 255, 0, 0.5) !important;
  animation: none !important;
  /* no animation for safe */
  min-height: 56px;
}

/* Danger (allergy) */
.header-nav .nav-link.allergy-danger {
  background: red !important;
  color: white !important;
  border-color: rgba(255, 0, 0, 0.5) !important;
  animation: neonPulse 2.5s infinite;
}

/* Keyframes for neon pulse */
@keyframes neonPulse {
  0% {
    opacity: 1;
    box-shadow: 0 0 5px #ff4d4d, 0 0 10px #ff1a1a;
  }

  50% {
    opacity: 0.8;
    box-shadow: 0 0 15px #ff4d4d, 0 0 25px #ff1a1a;
  }

  100% {
    opacity: 1;
    box-shadow: 0 0 5px #ff4d4d, 0 0 10px #ff1a1a;
  }
}

/* For small tablets and large phones */
/* For all screens larger than 226px (including desktops) */
@media (min-width: 226px) {

  /* Fix sidebar positioning */
  .sidebar,
  .right-sidebar {
    position: fixed;
    top: 74px;
    /* Match header height */
    bottom: 57px;
    /* Match bottom menu height */
    height: auto !important;
    /* Auto based on top/bottom */
    display: flex;
    flex-direction: column;
  }

  /* Fix sidebar nav structure */
  .sidebar .sidebar-nav,
  .right-sidebar .sidebar-nav {
    height: 100% !important;
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 0;
    padding: 0;
    flex: 1;
  }

  /* Fix nav items */
  .sidebar-nav .nav-item,
  .right-sidebar .sidebar-nav .nav-item {
    flex: 1 !important;
    /* Fill space equally */
    display: flex !important;
    margin: 0 !important;
    min-height: 0 !important;
    /* Allow shrinking */
  }

  /* Fix nav links */
  .sidebar-nav .nav-link,
  .right-sidebar .sidebar-nav .nav-link {
    flex: 1 !important;
    /* Fill parent */
    height: 100% !important;
    width: 100% !important;
    min-height: 0 !important;
    padding: 8px 0 !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  /* Adjust icon sizing */
  .sidebar-nav .nav-link i,
  .right-sidebar .sidebar-nav .nav-link i {
    font-size: 20px !important;
    margin: 0 auto 5px auto !important;
    /* Center and add spacing below */
    display: block !important;
  }

  /* Adjust text */
  .sidebar-nav .nav-link span,
  .right-sidebar .sidebar-nav .nav-link span {
    font-size: 13px !important;
    display: block !important;
    text-align: center !important;
    width: 100% !important;
    line-height: 1.2 !important;
  }
}


@media (max-width: 768px) and (min-width: 226px) {
  .header-nav .nav-link.allergy-safe {
    font-size: 12px;
  }

  /* Header adjustments */
  .header {
    padding-left: 12px;
    padding-right: 12px;
    height: 75px;
  }

  .header-nav {
    gap: 5px;
  }

  .header-nav .nav-item-small,
  .bottom-sidebar .nav-item-small {
    flex: 0 0 auto !important;
    min-width: 25px !important;
  }

  .header-nav .nav-link {
    padding: 8px 2px;
    font-size: 10px;
    justify-content: center;
  }

  .header-nav .nav-link i {
    font-size: 16px;
    margin-right: 2px;
  }

  /* Sidebar fixes - Fill Vertical Space */
  .sidebar,
  .right-sidebar {
    top: 74px !important;
    bottom: 0 !important;
    height: auto !important;
    display: flex;
    flex-direction: column;
    padding: 2px !important;
    overflow: hidden;
  }


  .bottom-sidebar .sidebar-nav .nav-link {
    min-height: 60px;
  }

  .sidebar .sidebar-nav,
  .right-sidebar .sidebar-nav {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    gap: 4px;
  }

  /* Explicitly ensure bottom sidebar is row */
  .bottom-sidebar .sidebar-nav {
    flex-direction: row !important;
    gap: 5px !important;
  }

  .sidebar-nav .nav-item,
  .right-sidebar .sidebar-nav .nav-item {
    flex: 1;
    display: flex;
    margin: 0 !important;
  }

  .sidebar-nav .nav-link,
  .right-sidebar .sidebar-nav .nav-link {
    min-height: 0 !important;
    height: 100% !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .sidebar-nav .nav-link i,
  .right-sidebar .sidebar-nav .nav-link i {
    font-size: 20px;
    margin: 0 !important;
  }

  .bottom-sidebar {
    min-height: 84px;
  }

  .header-nav .nav-link.allergy-safe {
    height: 30px;
    /* width: 55px; */
  }

  html.sidebar-collapsed .header-nav {
    gap: 5px;
  }
}

/* Specific fix for narrow screens (e.g. Samsung S8+ width ~360px) */
@media (max-width: 380px) {
  .header {
    padding-left: 2px;
    padding-right: 2px;
  }

  .header-nav {
    gap: 1px;
  }

  .header-nav .nav-link {
    padding-left: 1px;
    padding-right: 1px;
    font-size: 9px;
    /* Slightly reduce font if needed */
  }

  .header-nav .nav-item-small,
  .bottom-sidebar .nav-item-small {
    min-width: 20px !important;
  }
}

@media (max-width: 768px) and (min-width: 226px) {
  /* ... (keep other styles) ... */

  /* Sidebar fixes - Fill Vertical Space */
  .sidebar,
  .right-sidebar {
    top: 74px !important;
    bottom: 77px !important;
    /* This is the bottom sidebar height */
    height: calc(100vh - 74px - 77px) !important;
    /* FORCE exact height to prevent gaps */
    display: flex;
    flex-direction: column;
    padding: 2px !important;
    overflow: hidden;
  }

  .sidebar .sidebar-nav,
  .right-sidebar .sidebar-nav {
    display: flex;
    flex-direction: column;
    height: 100% !important;
    /* Ensure the nav takes full height of the sidebar */
    margin: 0 !important;
    padding: 0 !important;
    gap: 4px;
    justify-content: stretch;
    /* Stretch children to fill space */
  }

  .sidebar-nav .nav-item,
  .right-sidebar .sidebar-nav .nav-item {
    flex: 1 1 auto;
    /* Allow items to grow and fill the bottom gap */
    display: flex;
    margin: 0 !important;
  }

  .sidebar-nav .nav-link,
  .right-sidebar .sidebar-nav .nav-link {
    min-height: 59px !important;
    height: 100% !important;
    /* Fill the flex item completely */
    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  /* ... (keep the rest of your styles) ... */
}

/* --------------------------------------------------------------
# Dashboard Specific Styles
--------------------------------------------------------------*/

/* Entrance Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------
# Tab Cards - Short Height, Single Line
--------------------------------------------------------------*/
.tab-card {
  cursor: pointer;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  transition: all 0.3s ease;
  height: 60px;
  /* Much shorter height */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.tab-card:hover {
  transform: translateY(-2px);
  border-color: #4154f1;
  box-shadow: 0 4px 10px rgba(65, 84, 241, 0.1);
}

.tab-card.active {
  border-color: #4154f1;
  background: linear-gradient(135deg, #4154f1, #717ff5);
  color: white;
}

.tab-card.active .bi {
  color: white !important;
}

.tab-card .card-body {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  /* Single line layout */
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  white-space: nowrap;
  /* Prevent text wrapping */
}

.tab-card .bi {
  font-size: 18px;
  margin-right: 8px;
  color: #4154f1;
  transition: all 0.3s ease;
}

.tab-card h6 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .tab-card {
    height: 55px;
    /* Even shorter on mobile */
  }

  .tab-card .bi {
    font-size: 16px;
    margin-right: 6px;
  }

  .tab-card h6 {
    font-size: 14px;
  }

  .tab-card .card-body {
    padding: 0.5rem;
  }
}




/* For very small screens */
@media (max-width: 480px) {
  .tab-card {
    height: 50px;
  }

  .tab-card .bi {
    font-size: 14px;
    margin-right: 4px;
  }

  .tab-card h6 {
    font-size: 13px;
  }
}

.symptom-card {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 2px solid transparent;
  background: #fff;
  /* Ensure card stands out */
  text-align: center;
  width: 100%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  /* Subtle depth */
  font-weight: 700;
  animation: fadeInUp 0.6s ease-out forwards;
  margin-bottom: 0;
}

@keyframes blueGlowPulse {
  0% {
    box-shadow: 0 0 10px rgba(0, 95, 143, .6);
  }

  50% {
    box-shadow: 0 0 30px rgba(0, 95, 143, .9);
  }

  100% {
    box-shadow: 0 0 10px rgba(0, 95, 143, .6);
  }
}

input[type="checkbox"]:checked+label .symptom-card {
  animation: blueGlowPulse 2s infinite;
}


.symptom-card:hover {
  transform: translateY(-5px);
  /* Elegant lift */
  border-color: #09597b;
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.15);
  /* Soft, colored shadow */
}

.symptom-card:active {
  transform: scale(0.97);
  /* Tactile feedback */
  box-shadow: 0 2px 5px rgba(13, 110, 253, 0.1);
}

input[type="checkbox"]:checked+label .symptom-card {
  border-color: #005a92;

  /* Gradient background */
  background: linear-gradient(135deg, #0e857b 0%, #004051ff 100%);


  transition: all 0.35s ease;
  color: white;
}


.symptom-card .card-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  /* small padding for long words */
}

.symptom-card h2 {
  font-size: 18px;
  line-height: 1.2;
  margin: 0;
  word-wrap: break-word;
  font-weight: 600;
}

/* Make 5 cards per row on large screens */
@media (min-width: 992px) {
  .col-lg-5th {
    flex: 0 0 20%;
    /* 100% / 5 = 20% */
    max-width: 20%;
  }
}



/* Reduce gap between cards (rows and columns) - Scoped to dashboard section */
.section.dashboard .row {
  margin-left: -4px;
  margin-right: -4px;
  margin-top: -8px;
}

.section.dashboard .row>[class*='col-'] {
  padding-left: 4px;
  padding-right: 4px;
  margin-bottom: 6px;
  /* reduce vertical gap between rows */
}

/* Show dropdown on hover */
.dropdown.hover-enabled:hover .dropdown-menu {
  display: block;
  margin-top: 0;
}

/* --------------------------------------------------------------
# Bottom Sidebar - Corner Button Adjustments
--------------------------------------------------------------*/

/* Desktop: Hide text for small buttons to make them icon-only */
@media (min-width: 769px) {

  /* Hide text */
  .bottom-sidebar .nav-item-small span {
    display: none !important;
  }

  /* FORCE small size for only these two specific corner items */
  .bottom-sidebar .sidebar-nav .nav-item.nav-item-small {
    flex: 0 0 auto !important;
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
  }

  /* Center icon */
  .bottom-sidebar .sidebar-nav .nav-item.nav-item-small .nav-link {
    width: 100% !important;
    justify-content: center !important;
    padding: 0 !important;
  }
}

/* Mobile: Ensure text is visible and layout is normal */
/* Mobile: Ensure text is visible and layout is normal */
@media (max-width: 768px) {
  .bottom-sidebar .nav-item-small span {
    display: inline-block !important;
    /* Restore text */
  }

  .bottom-sidebar .nav-item-small {
    flex: 1 !important;
    /* Grow to fill space like other items */
    min-width: 0 !important;
    /* Allow shrinking if needed */
  }
}

/* --------------------------------------------------------------
# Premium Add Patient Buttons
--------------------------------------------------------------*/
.btn-premium-thumb {
  background: #008000;
  border: none;
  color: white;
  padding: 10px 20px;

  transition: all 0.3s ease;
  font-weight: 600;
  display: flex;
  font-size: 13px;

  align-items: center;
  gap: 8px;
}


.btn-premium-video {
  background-color:
    #008000;
  border: none;
  color: white;
  padding: 10px 20px;

  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 215px;
}

/* Disabled Submit Button Cursor */
#submitBtn:disabled {
  cursor: not-allowed !important;
  opacity: 0.6;
}

/*--------------------------------------------------------------
# Login Sidebar Bottom Teel Glow
--------------------------------------------------------------*/
.login-sidebar {
  /* Ensure relative positioning for the overlay */
  position: relative;
  overflow: hidden;
  /* Clip the overlay */
}

.login-sidebar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  /* Covers bottom 40% */
  /* Gradient from Transparent to Teal/Cyan */
  background: linear-gradient(to bottom, rgba(77, 208, 225, 0) 0%, rgba(77, 208, 225, 0.4) 50%, rgba(38, 198, 218, 0.8) 100%);
  pointer-events: none;
  /* Allow clicks through if needed */
  z-index: 1;
}

/* Decorative Plus Signs mimicking the reference */
.login-sidebar::before {
  content: "+ + +\A+ + +\A+ + + + +\A+ + + + +";
  /* Unicode plus signs */
  white-space: pre;
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: rgba(38, 166, 154, 0.6);
  /* Teal color text */
  font-family: monospace;
  font-size: 20px;
  line-height: 1.5;
  z-index: 2;
  font-weight: bold;
}

/*--------------------------------------------------------------
# Login Page Ocean Wave Animation
--------------------------------------------------------------*/
.login-page-waves {
  margin: auto;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: auto;
  /* Allow scroll if needed, but usually hidden for login */
  background: linear-gradient(315deg, rgba(101, 0, 94, 1) 3%, rgba(60, 132, 206, 1) 38%, rgba(48, 238, 226, 1) 68%, rgba(255, 25, 25, 1) 98%);
  animation: gradient 15s ease infinite;
}

@keyframes gradient {
  0% {
    background-position: 0% 0%;
  }

  50% {
    background-position: 100% 100%;
  }

  100% {
    background-position: 0% 0%;
  }
}

/*--------------------------------------------------------------
# Blob Background Animation
--------------------------------------------------------------*/
body.blob-bg {
  background-color: #fee440;
  /* Requested yellow background */
  overflow-x: hidden;
}

svg.blob-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  /* Behind content */
}

@keyframes rotateBlob {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.out-top {
  animation: rotateBlob 20s linear infinite;
  transform-origin: 13px 25px;
}

.in-top {
  animation: rotateBlob 10s linear infinite;
  transform-origin: 13px 25px;
}

.out-bottom {
  animation: rotateBlob 25s linear infinite;
  transform-origin: 84px 93px;
}

.in-bottom {
  animation: rotateBlob 15s linear infinite;
  transform-origin: 84px 93px;
}

/*--------------------------------------------------------------
# Feature List Animated Icons
--------------------------------------------------------------*/
.animated-icon {
  width: 48px;
  /* "Large" */
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  /* "HD" depth */
  animation: iconFloat 3s ease-in-out infinite;
  display: block;
  /* Ensure transform works correctly */
}

@keyframes iconFloat {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-5px) scale(1.05);
    /* Gentle float up and grow */
  }
}

/* Stagger animations for each icon */
.feature-item-animate:nth-child(1) .animated-icon {
  animation-delay: 0s;
}

.feature-item-animate:nth-child(2) .animated-icon {
  animation-delay: 0.5s;
}

.feature-item-animate:nth-child(3) .animated-icon {
  animation-delay: 1s;
}

.feature-item-animate:nth-child(4) .animated-icon {
  animation-delay: 1.5s;
}

/* --------------------------------------------------------------
# 3D Alert Popup (Global)
-------------------------------------------------------------- */
@keyframes alertPopIn {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes iconMoveRight {
    0% { transform: translateX(-50px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes timerProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.alert-3d-entry {
    animation: alertPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5253 100%);
    color: white;
    border: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2), 0 6px 6px rgba(0,0,0,0.23);
    border-radius: 8px;
    font-size: 1.1rem;
    display: flex; 
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative; 
    overflow: hidden; 
    padding-bottom: 15px;
}

/* Progress Bar at Bottom */
.alert-3d-entry::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 6px; 
    background: #09203f; /* Our Blue Color Code */
    width: 0%;
    animation: timerProgress 2s linear forwards;
}

.alert-icon-anim {
    animation: iconMoveRight 2s ease-out forwards;
    font-size: 1.5rem;
}
/* =========================================
   DARK MODE GLOBALS
   ========================================= */
body.dark-mode {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}

body.dark-mode .card,
body.dark-mode .modal-content,
body.dark-mode .header,
body.dark-mode .sidebar,
body.dark-mode .footer {
    background: linear-gradient(135deg, #1e1e1e 0%, #000000 100%) !important;
    border-color: #333 !important;
    color: #e0e0e0 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), inset 0 0 20px rgba(255,255,255,0.02) !important;
}

/* Specific component overrides for Dark Mode */
body.dark-mode .form-control,
body.dark-mode .form-select {
    background-color: #2c2c2c;
    border-color: #444;
    color: #e0e0e0;
}

body.dark-mode .form-control:focus,
body.dark-mode .form-select:focus {
    background-color: #333;
    color: #fff;
    border-color: #0e857b;
}

body.dark-mode .table {
    color: #e0e0e0;
    border-color: #333;
}

body.dark-mode .table-hover tbody tr:hover {
    color: #e0e0e0;
    background-color: #2c2c2c;
}

body.dark-mode .input-group-text {
    background-color: #333;
    border-color: #444;
    color: #fff;
}

body.dark-mode h1, body.dark-mode h2, body.dark-mode h3,
body.dark-mode h4, body.dark-mode h5, body.dark-mode h6,
body.dark-mode strong, body.dark-mode b {
    color: #fff !important;
}

body.dark-mode a {
    color: #4da3ff;
}

/* Ensure Text Readability */
body.dark-mode .text-muted {
    color: #a0a0a0 !important;
}

body.dark-mode .dropdown-menu {
    background-color: #1e1e1e;
    border-color: #444;
}

body.dark-mode .dropdown-item {
    color: #e0e0e0;
}

body.dark-mode .dropdown-item:hover {
    background-color: #333;
}

/* AGGRESSIVE DARK MODE OVERRIDES - NO WHITE */
body.dark-mode .bg-white,
body.dark-mode .bg-light {
    background-color: #1e1e1e !important;
    background: linear-gradient(135deg, #1e1e1e 0%, #121212 100%) !important;
    color: #e0e0e0 !important;
    border-color: #333 !important;
}

/* Pagination & Lists */
body.dark-mode .list-group-item,
body.dark-mode .page-link {
    background-color: #1e1e1e !important;
    color: #b0b0b0 !important;
    border-color: #444 !important;
}

body.dark-mode .page-item.disabled .page-link {
    background-color: #2a2a2a !important;
    color: #666 !important;
}

body.dark-mode .page-item.active .page-link {
    background-color: #0e857b !important;
    border-color: #0e857b !important;
    color: #fff !important;
}

/* Modals & Tables */
body.dark-mode .modal-header,
body.dark-mode .modal-footer {
    border-color: #333 !important;
}

body.dark-mode .table > :not(caption) > * > * {
    background-color: transparent !important;
    color: #e0e0e0 !important;
    box-shadow: none !important; 
}
body.dark-mode .table-bordered > :not(caption) > * {
    border-width: 1px 0;
}
body.dark-mode .table-bordered > :not(caption) > * > * {
    border-width: 0 1px;
}


