html {
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
}
nav.navbar {
  flex-shrink: 0;
  background-color: #10a1b5;
}
/* .navbar-brand img {
  background-color: transparent;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
  height: 48px;
  width: 48px;
} */

.nav-link {
  color: white !important;
}
.nav-link:hover {
  color: #d6d6d6 !important;
}

main.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  align-items: center;
  justify-content: flex-start;
}

.footer {
  flex-shrink: 0;
  background-color: #10a1b5;
  color: white;
  text-align: center;
  /* padding: 8px 0; */
  width: 100%;
  font-size: 0.95rem;
  padding: 2px 0; /* Reduced height */
}

/* Logo-like text styling */
.logo-text .line1 {
  font-size: 3rem; /* Increased size */
  font-weight: 900; /* Extra bold */
  color: #00b5ad; /* Turquoise */
  margin: 0;
}
.logo-text .line2 {
  font-size: 2rem;
  font-weight: 700; /* Bold */
  color: #29b698; /* Greenish */
  margin: 0;
}
.logo-text .line3 {
  font-size: 1rem;
  font-weight: 700; /* Bold */
  letter-spacing: 0.5rem;
  color: #555555; /* Grey */
  margin-top: 0.5rem;
}

/* Define ICON color classes */
.icon-red::before {
  color: #ff0000 !important; /* Red */
}

.icon-green::before {
  color: #2ecc71 !important; /* Green */
}

.icon-blue::before {
  color: #3498db !important; /* Blue */
}

.icon-purple::before {
  color: #9b59b6 !important; /* Purple */
}

.icon-yellow::before {
  color: #f1c40f !important; /* Yellow */
}

.icon-orange::before {
  color: #e67e22 !important; /* Orange */
}

.icon-menu-color::before {
  color: #005a9e !important; /* logo blue color */
}

/* Center the pagination for Bootstrap DataTables */
/* 1) Make the paging container a flexbox and center its contents */
.dt-paging {
  display: flex !important;
  justify-content: center !important;
  margin-top: 1rem; /* optional spacing above the pager */
}

/* 2) (Optional) Reset any default margins on the UL */
.dt-paging .pagination {
  margin: 0;
}

/* PAGE SPLIT CSS FOR PATIENT AND CONSULTATION PAGES */

#toggle-container {
  position: absolute;
  top: 10px; /* Adjust this value to control vertical positioning */
  left: -30px; /* Offset to overlap slightly over the divider */
  background-color: white; /* Optional: Background for better visibility */
  border-radius: 25%; /* Optional: Circular background */
  padding: 5px; /* Space around the icon */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Optional: Subtle shadow */
}

#toggleBtn {
  width: 30px; /* Adjust size of the icon */
  height: 30px; /* Ensure consistent sizing */
  cursor: pointer; /* Indicate interactivity */
  display: block; /* Make sure it's block-level for centering */
}

/* Container and panels */
#container {
  display: flex;
  flex-direction: row;
  height: 100vh; /* Full viewport height */
  overflow: hidden;
}

#leftPanel {
  width: 17%; /* Initial width */
  min-width: 100px; /* Prevent excessive shrinking */
  transition: width 0.3s ease;
  overflow: auto;
}

#divider {
  width: 3px;
  background-color: #ccc;
  cursor: ew-resize;
  /* background: repeating-linear-gradient(
        90deg,
        darkred,
        darkred 1px,
        white 2px,
        white 4px
      ); Striped pattern */
}
#rightPanel {
  flex-grow: 1;
  position: relative;
  overflow: auto;
}
/* Toggle button container on right panel */
#toggle-container {
  position: absolute;
  top: 10px;
  left: -15px; /* position overlapping the divider */
}
#toggleBtn {
  width: 30px;
  cursor: pointer;
}
/* Disable transition during dragging */
.resizing {
  transition: none !important;
}
/* Responsive: stack panels vertically on small screens */
@media (max-width: 576px) {
  #container {
    flex-direction: column;
  }
  #leftPanel,
  #rightPanel {
    width: 100% !important;
  }
  /* Hide toggle button on small screens */
  #toggle-container {
    display: none;
  }
  #rightPanel h3 {
    margin: 20px 0 10px 10px; /* Top, right, bottom, and left margins */
    padding-left: 10px; /* Add a slight padding to the left */
    font-size: 1.5rem; /* Optional: Adjust heading size for better visual hierarchy */
    color: #333; /* Optional: Enhance text color for contrast */
  }
  #rightPanel {
    padding: 20px; /* Ensure proper padding for the container */
    position: relative; /* Maintain alignment and prevent overlaps */
  }
}
/* PAGE SPLIT CSS FOR PATIENT AND CONSULTATION PAGES ENDS */
.patient-card {
  padding: 15px;
  margin: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
}
.new-patient {
  background-color: rgba(13, 110, 253, 0.1);
}
.old-patient {
  background-color: rgba(108, 117, 125, 0.1);
}
.small,
small {
  font-size: 0.975em;
}
.patient-card .small {
  font-size: 0.9em;
}
.badge.small {
  font-size: 0.9em;
}
/* patient page input and labels */
.column-filters .form-label {
  font-size: 0.75rem; /* Smaller label */
  margin-bottom: 0.25rem; /* Reduce space below label */
}

.column-filters .form-control {
  font-size: 0.875rem; /* Slightly smaller input text if needed */
}

#patientsTable.dataTable tbody td {
  padding: 0.25rem; /* Very compact */
  font-size: 0.9rem;
}

#patientsTable.dataTable thead th {
  padding: 0.4rem;
  font-size: 0.95rem;
}

/* .btn-sm-custom {
    padding: 0.15rem 0.35rem;
    font-size: 0.75rem;
} */

.custom-tabs-consult .nav-link {
  color: #000 !important;
  font-weight: 300;
}
.custom-tabs-consult .nav-link:hover {
  color: #0056b3 !important;
}
.custom-tabs-consult .nav-link.active {
  color: #0056b3 !important;
  font-weight: 700;
  border-bottom: 2px solid #0056b3;
  box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.15), 0 6px 20px -2px rgba(0, 0, 0, 0.1);
  /* You can customize the shadow further:
       offset-x | offset-y | blur-radius | spread-radius | color
       e.g., box-shadow: 2px 2px 5px rgba(0,0,0,0.2); */
}
.select2-selection__rendered {
  line-height: 20px !important;
  vertical-align: middle;
  font-weight: 700;
  padding-left: 2px !important; /* Add a little padding to the left */
}
.select2-container .select2-selection--single {
  height: 32px !important;
}
.select2-selection__arrow {
  height: 32px !important;
}
#prescriptionTable {
  font-size: 14px; /* Adjust font size as needed */
}

#prescriptionTable th,
#prescriptionTable td {
  padding: 3px !important; /* Reduce padding for compact rows */
  vertical-align: middle; /* Center content vertically */
  text-align: left; /* Align text to the left horizontally */
}
/* Custom header for prescription table cell color */
th.prescription-table-header {
  background-color: #3366ff; /* Blue */
  color: white;
}
.select2-dropdown {
  font-size: 12px;
}
/* Remove padding for all Select2 instances */
.select2-selection__choice {
  padding-right: 0 !important;
}
.select2-selection--multiple .select2-selection__choice__remove {
  padding: 0; /* Remove padding from the "X" button */
  margin: 0; /* Remove margin from the "X" button */
  border: none; /* Remove border from the "X" button */
  background-color: transparent; /* Make the "X" button transparent */
}
.select2-selection__clear {
  padding: 0 !important; /* Remove padding from the clear button */
  margin: 0 !important; /* Remove margin from the clear button */
  border: none !important; /* Remove border from the clear button */
  background-color: transparent !important; /* Make the clear button transparent */
  right: 0 !important; /* Align the clear button to the right */
}
.select2-selection--single.select2-selection--clearable {
  padding-right: 0 !important; /* Remove padding from the right */
  padding-left: 0 !important; /* Remove padding from the left */
}
.select2-selection__placeholder {
  padding: 0 !important; /* Remove padding from the placeholder */
  margin: 0 !important; /* Remove margin from the placeholder */
}
.select2-selection__arrow {
  padding: 0 !important; /* Remove padding from the arrow */
  margin: 0 !important; /* Remove margin from the arrow */
  right: 0 !important; /* Align the arrow to the right */
  display: none !important; /* Hide the arrow */
}
.select2-selection__rendered {
  padding-left: 2px !important; /* Add a little padding to the left */
  font-size: 12px !important; /* Adjust font size */
  line-height: 1.5 !important; /* Adjust line height */
}
/* Add this to your CSS */
.select2-container {
  width: 100% !important;
}
.select2-selection--single {
  height: calc(1.5em + 0.5rem + 2px) !important;
}