* {
  box-sizing: border-box;
}

body {
  display: flex;
  margin: 0;
  height: 100vh;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5f5fa;

}

/* Sidebar styles */
.sidebar {
  width: 240px;
  background-color: #1C498B;
  height: 100vh;
  flex-shrink: 0;
}


.sidebar .logo {
  text-align: center;
  margin-bottom: 20px;
  margin-top: 1rem;
}

.sidebar .logo img {
  max-width: 150px;
}

.tab,
.toggle-submenu {
  padding: 8px 20px;
  color: #fff;
  text-decoration: none;
  display: block;
  font-size: 14px;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
}

.tab:hover,
.tab.active,
.toggle-submenu:hover {
  background-color: #1565C0;
}

.toggle-submenu::after {
  content: "▼";
  float: right;
  font-size: 10px;
}

.submenu {
  display: none;
  flex-direction: column;
  padding-left: 10px;
}

.submenu .tab {
  font-size: 13px;
  padding-left: 30px;
}

.content-area {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100vh;
}

/* Header */
header {
  display: flex;
  align-items: center;
  /* vertically center */
  justify-content: flex-end;
  height: 70px;
  /* or whatever height you want */
  width: 100%;
  padding-right: 2rem;
  background-color: white;
  margin: 0;
}

header select {
  padding: 0px;
  font-size: 14px;
}

#hospital-dropdown option {
  color: rgb(0, 0, 0);
  /* Ensure visible text color for options */
  background-color: white;
  /* Optional: Add a background color */
  font-weight: 100;
}

#hospital-dropdown {
  background: white;
  border: blueviolet;
  color: rgb(12, 12, 12);
  font-weight: bold;
  font-size: 1rem;
  /* removes default browser styles */
  padding-right: 20px;
  /* space for custom arrow */
  cursor: pointer;
}

#hospital-dropdown:focus {
  outline: none;
  /* removes focus outline */
}

/* Main content */

.main {
  flex: 1;
  display: flex;
  padding-left: 0.2rem;
  margin-bottom: 1rem;
}

.main iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.panel {
  background: rgb(0, 114, 178);
  margin-bottom: 2rem;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Graphs  */

.chart-container {
  width: 100%;
  height: 10px;
  padding: 0rem;
  margin-top: 1rem;
  border-radius: 10px;
  margin-bottom: 0rem;
}

.chart-container1 {
  width: 100%;
  height: 500px;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 10px;
  background: white;
}

.container {
  background-color: white;
  height: 820px;
  width: 100%;
  border-radius: 10px;
  padding: 1rem;
}

.chart-title {
  padding-left: 2rem;
  font-size: 19px;
  font-weight: bold;
  margin-bottom: 5px;
  font-family: Helvetica, Arial, sans-serif;
}

.info-icon {
  color: #333;
  /* Dark grey text/icon color */
  background-color: #fff;
  /* White background */
  border-radius: 50%;
  /* Circular background */
  padding: 5px;
  /* Padding around the icon */
  font-size: 16px;
  /* Size of the icon */
  transition: all 0.3s ease;
  /* Smooth hover transition */
  border: 1px solid #ccc;
  /* Light grey border around the circle */
}

.info-icon:hover {
  color: #333;
  /* Icon stays dark grey when hovered */
  background-color: #f0f0f0;
  /* Light grey background on hover */
  border-color: #aaa;
  /* Darker border on hover */
}

.annotation-percent-label {
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
}

.apexcharts-text tspan {
  dominant-baseline: middle;
}

.multi-select-dropdown {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0;
  margin-right: 0;
  font-family: Arial, sans-serif;
}

.dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background-color: white;
  border: none;
  font-weight: bold;
  height: 40px;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  box-sizing: border-box;
}

.dropdown-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.dropdown-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.dropdown-header.open .dropdown-arrow {
  transform: rotate(180deg);
}



.dropdown-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  background: white;
  border: 1px solid #ccc;
  border-top: none;
  max-height: 200px;
  overflow-y: auto;
  border-radius: 0 0 4px 4px;
}

.dropdown-list.show {
  display: block;
}

.dropdown-list label {
  display: block;
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}

.dropdown-list label:hover {
  background-color: #f5f5f5;
}

.dropdown-list input[type="checkbox"] {
  margin-right: 8px;
}

.dropdown-footer-buttons {
  position: sticky;
  bottom: 0;
  background: white;
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border-top: 1px solid #ddd;
}

.dropdown-footer-buttons button {
  padding: 4px 12px;
  border: 1px solid #ccc;
  background: white;
  cursor: pointer;
  border-radius: 3px;
}

.dropdown-footer-buttons button:hover {
  background-color: #f0f0f0;
}

.dropdown-footer-buttons button:nth-child(2) {
  margin-left: auto;
}

.dropdown-footer-buttons button+button {
  margin-left: 8px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  background-color: #1C498B;
  padding: 20px 0;
}

.tab {
  display: flex;
  align-items: center;
  padding: 8px 20px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-family: 'Segoe UI', sans-serif;
  transition: background-color 0.3s ease;
}

.tab:hover {
  background-color: #16386a;
}

.download-tab {
  margin-top: auto;
  margin-bottom: 20px;
  margin-left: 20px;
  margin-right: 20px;
  padding: 12px 20px !important;
  background-color: transparent;
  border: 2px solid white;
  border-radius: 25px;
  color: white !important;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.download-tab:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.download-tab::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.download-tab svg.download-icon {
  margin-right: 10px;
  fill: white;
  width: 10%;
}

.download-tab img {
  width: 18px;
  height: 18px;
  background-color: white;
  padding: 2px;
  border-radius: 4px;
  margin-right: 8px;
}

/* Prevent headings or charts from being split across pages */
.chart-section {
  page-break-inside: avoid;
  break-inside: avoid;
  margin-bottom: 1rem;
}