form {
  max-width: 100% !important;
}
.position-relative {
  position: relative;
}
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000; /* Ensure it's above other content */
}
ion-alert.custom-alert {
  --backdrop-opacity: 0.7;
}

.custom-alert .alert-button-group {
  padding: 8px;
}

button.alert-button.alert-button-confirm {
  background-color: var(--ion-color-success);
  color: var(--ion-color-success-contrast);
}

.md button.alert-button.alert-button-confirm {
  border-radius: 4px;
}
.flex-space-between {
  display: flex;
  justify-content: space-between;
}
.small-modal {
  --width: 90%;
  --height: auto;
  --max-width: 400px;
  --max-height: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  width: 100%;
}
.mr-2 {
  margin-right: 8px;
}
.full-width {
  width: 100%;
}
.table-row-active td {
  background-color: #0054e92e !important ;
}
.pointer {
  cursor: pointer;
}
.text-left {
  text-align: left;
}
.text-2 {
  font-size: 12px;
}
.text-3 {
  font-size: 14px;
}
.text-light {
  color: #fff !important;
}
.ml-3 {
  margin-left: 15px !important;
}
.bordered {
  border: 1px solid #ccc;
}
.text-left {
  text-align: left !important;
}
.font-weight-bold {
  font-weight: bold !important;
}
.editable-title {
  text-align: left !important;
  font-weight: bold !important;
  margin-bottom: 3px;
}
.modal-header,
.modal-footer {
  width: 100%;
  padding: 5px;
}
.modal-body {
  width: 100%;
}
.mt-0 {
  margin-top: 0px !important;
}
.big-modal {
  width: 900px !important;
  max-width: 95% !important;
}
.statement-text {
  text-align: left !important;
  border: 1px solid #eeeeeea8;
  padding: 15px;
}

.statement-text p {
  margin-bottom: 2rem !important;
}

.statement-text h1 {
  margin-bottom: 20px !important;
}

.dashboard-widgets-container {
  display: flex;
}
.dashboard-widgets-container .dashboard-widget {
  flex: 1;
  margin: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  color: #000;
}
.footer {
  width: 100%;
  text-align: center;
  padding: 10px 0;
  margin-top: 80px; /* Ensures spacing before footer */
  display: flex;
  justify-content: space-between;
}
.footer img {
  object-fit: contain;
}
.min-height-page {
  min-height: 700px !important;
}
.dashboard-widgets-container .dashboard-widget p {
  color: #575757;
}
.dashboard-widgets-container .dashboard-widget:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-color: #0054e92e;
  cursor: pointer;
  background-color: #eeeeeea8;
  transform: translateY(-10px);
}
.ck-content {
  max-height: 300px !important;
  overflow-y: auto !important;
}
.header {
  box-shadow: none;
  border-bottom: 1px solid #ccc;
}
.text-left {
  text-align: left !important;
}
.header-icon {
  color: #151dc3;
}
.header-button {
  transition: all 0.3s ease-in-out;
  color: #000;
  min-width: 140px;
}
.header-avatar {
  margin-right: 10px;
}
.header-button-user {
  padding: 15px;
  min-width: 200px;
  font-size: 14px;
  display: flex;
  align-items: center;
}
.header-button-user ion-icon {
  margin-right: 5px;
}
.header-button:hover {
  cursor: pointer;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
  border-color: #0054e92e;
  cursor: pointer;
  /* background-color: #eeeeeea8; */
  /* transform: scale(1.1); */
}
.color-logo {
  color: rgb(40, 42, 173);
}
.sidebar-menu {
  border-right: 1px solid #ccc;
}
.sidebar-menu-list {
  padding: 10px;
}
.sidebar-menu-item {
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease-in-out;
  color: #838383;
  font-size: 18px;
  padding: 15px;
}
.header-search-container {
  position: relative;
  padding-right: 10px;
  padding-left: 10px;
  width: 100%;
}
.sidebar-search-container {
  position: relative;
  padding-right: 10px;
  padding-left: 10px;
  width: 100%;
}
.header-search-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #888;
}
.sidebar-search-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #888;
}

.header-search-input {
  width: 100%;
  padding: 10px 12px 10px 35px; /* Left padding to make room for the icon */
  border-radius: 20px;
  border: 1px solid #ddd;
  outline: none;
  font-size: 14px;
  background-color: #fff;
}
.sidebar-search-input {
  width: 100%;
  padding: 10px 12px 10px 35px; /* Left padding to make room for the icon */
  border-radius: 20px;
  border: 1px solid #ddd;
  outline: none;
  font-size: 14px;
  background-color: #fff;
  color: #000;
}
.submenu-list {
  padding-top: 10px;
  padding-bottom: 10px;
}
.sidebar-menu-item {
  font-size: 16px;
  font-weight: normal;
  color: #000;
}
.submenu-item {
  font-size: 12px;
}
.custom-alert-z-index {
  --ion-overlay-z-index: 9999999 !important; /* Or any sufficiently high value */
}
.widget-title {
  border-bottom: 1px solid #e7e5e5;
  padding-bottom: 10px;
  text-align: left;
  font-size: 16px;
  margin-bottom: 20px;
  margin-top: 20px;
}
.dataset-icon {
  width: 50%;
  height: 100px;
}
.dataset-card-text {
  font-size: 14px;
}

.upload-img {
  cursor: pointer;
  max-width: 100%;
  object-fit: cover;
  height: 120px;
}

.gallery_delete_loading {
  opacity: 0.2;
}

.gallery {
  min-height: 300px;
}

.gallery-tab {
  max-height: 70vh;
  overflow-y: hidden;
  position: relative;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.gallery::after {
  display: block;
  width: 100%;
  clear: both;
}

.gallery-item {
  flex: 1 0 17%;
  height: 33%;
  float: left;
  margin-right: 10px;
  margin-bottom: 10px;
  position: relative;
  max-width: 20%;
}

.gallery-item:hover i {
  display: block;
}

.gallery-item img {
  width: 100%;
  height: 70%;
  object-fit: cover;
  cursor: pointer;
  border: 1px solid #222d32;
}

@media (max-width: 768px) {
  .sidebar-menu {
    min-width: 50px !important;
  }
  .sidebar-menu-item {
    min-width: 45px !important;
  }

  .hide-on-small {
    display: none !important;
  }
}

.table-responsive {
  max-width: 100%;
  overflow-x: auto;
}
