body {
  display: flex;
  margin: 0;
  font-family: Arial, sans-serif;
}

::selection {
  background-color: #01b143;
  color: white;
}

/* Sidebar base */
#sidebar {
  width: 220px;
  min-height: 100vh;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* Collapsed sidebar */
.sidebar-collapsed {
  width: 80px !important;
}

/* Hide logo text when collapsed */
.sidebar-collapsed .border-bottom .d-flex.flex-column {
  display: none;
}

/* Hide nav text labels */
.sidebar-collapsed .nav-link span {
  display: none;
}

.sidebar-collapsed .logo-content span {
  display: none;
}

/* Center icons */
.sidebar-collapsed .nav-link {
  text-align: center;
  padding: 0.75rem 0;
}

/* Hide user text info */
.sidebar-collapsed #sidebarName,
.sidebar-collapsed #sidebarEmail {
  display: none;
}

/* Sidebar nav custom styling */
.sidebar-nav .nav-link {
  color: black;
  padding: 10px 15px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  transition: all 0.2s ease-in-out;
  margin-bottom: 6px;
}

.sidebar-nav .nav-link i {
  color: black;
  font-size: 20px;
}

/* Hover effect */
.sidebar-nav .nav-link:hover {
  background-color: #f0fdf4;
  color: #00a63e;
}

.sidebar-nav .nav-link:hover i {
  color: #00a63e;
}

/* Active state */
.sidebar-nav .nav-link.active {
  background-color: #f0fdf4;
  color: #00a63e;
  font-weight: 600;
}

.sidebar-nav .nav-link.active i {
  color: #00a63e;
}

.navbar {
  background-color: white;
}

.navbar button {
  font-size: 24px;
  transform: all 0.2s ease-in-out;
}

.navbar button:hover {
  color: #00a63e;
}

#main-content {
  background-color: #e8f5e95b;
}

.card {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.chart-box {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  height: 340px;
  display: flex;
  flex-direction: column;
}

.chart-box h5,
.chart-box h6 {
  color: #01b144;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
}

.chart-box canvas {
  flex-grow: 1;
  width: 100% !important;
  height: auto !important;
  overflow: hidden;
}

/* Input focus styles */
.form-control:focus,
.form-select:focus {
  border-color: #01b144 !important;
  box-shadow: 0 0 0 0.25rem rgba(1, 177, 68, 0.25) !important;
}

/* Success button styles */
.btn-success {
  background-color: #01b144 !important;
  border-color: #01b144 !important;
}

.btn-success:hover,
.btn-success:focus {
  background-color: #019c3d !important;
  border-color: #019c3d !important;
}

.select-container {
  position: relative;
  width: 100%;
}

.custom-select {
  border: 1px solid #01b144;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  background-color: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* Selected item */
.custom-select .selected {
  padding: 10px;
  color: #212529;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Options dropdown */
.custom-select .options {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  border: 1px solid #01b144;
  border-top: none;
  background-color: #fff;
  z-index: 1000;
  border-radius: 0 0 5px 5px;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* Option items */
.custom-select .option {
  padding: 10px;
  color: #212529;
  transition: background-color 0.2s, transform 0.2s;
}

/* Hover effect with smooth transform */
.custom-select .option:hover {
  background-color: #01b144;
  color: #fff;
}

/* Active dropdown  */
.custom-select.active .options {
  max-height: 300px;
  opacity: 1;
}

/* Focus effect */
.custom-select.active,
.custom-select:focus {
  border-color: #01b144;
  box-shadow: 0 0 0 0.25rem rgba(1, 177, 68, 0.25);
}

/* Custom close button outline */
.btn-close {
  outline: none;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* On focus (keyboard navigation) */
.btn-close:focus {
  border-color: #01b144 !important;
  box-shadow: 0 0 0 0.25rem rgba(1, 177, 68, 0.25) !important;
}

/* On hover */
.btn-close:hover {
  border-color: #019c3d;

}