body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
}

.sidebar {
  min-height: 100vh;
  background: #343a40;
  color: #fff;
  transition: all 0.3s;
  position: fixed;
  top: 0;
  left: 0;
  /* stick to LEFT */
  width: 250px;
  z-index: 1050;
}

.sidebar a {
  color: #adb5bd;
  text-decoration: none;
  display: block;
  padding: 10px 15px;
  border-radius: 8px;
  margin: 5px 0;
}

.sidebar a.active,
.sidebar a:hover {
  background: #495057;
  color: #fff;
}

.content {
  padding: 20px;
  margin-left: 250px;
  /* push content right because sidebar is on left */
}

/* Mobile */
@media (max-width: 991px) {
  .sidebar {
    left: -250px;
    /* hide offscreen */
  }

  .sidebar.show {
    left: 0;
    /* slide in */
  }

  .content {
    margin-left: 0;
    /* no margin on small screens */
  }

  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
  }

  .overlay.show {
    display: block;
  }
}

.login-container {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 320px;
}

#toast-container {
  top: 20% !important;
  left: 70% !important;
  transform: translate(-50%, -50%) !important;
  width: auto !important;
}

.error {
  color: #cf5435;
  font-size: 0.875rem;
  margin-top: 4px;
  display: block;
  font-weight: 500;
}

#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 9999;
  display: none;
}

#cover-spin {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 9999;
  display: none;
}

@-webkit-keyframes spin {
  from {
    -webkit-transform: rotate(0deg);
  }

  to {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

#cover-spin::after {
  content: '';
  display: block;
  position: absolute;
  left: 48%;
  top: 40%;
  width: 40px;
  height: 40px;
  border-style: solid;
  border-color: #0d6efd;
  border-top-color: transparent;
  border-width: 4px;
  border-radius: 50%;
  -webkit-animation: spin .8s linear infinite;
  animation: spin .8s linear infinite;
}

.input-group:focus-within .input-icon {
  border-color: #0d6efd;
  outline: none;
  box-shadow: 0 0 5px #0d6efd;
}

.form-control:focus {
  border-color: #0d6efd;
  outline: none;
  box-shadow: 0 0 5px #0d6efd;
}

.error {
  display: none;
}

.error-border {
  border-color: 2px solid red !important;
  outline: none;
}

.error-borders {
  border: 1px solid #0d6efd !important;
  outline: none;
}

.custom-modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.3);
  /* No blur, just a dark overlay */
  justify-content: center;
  align-items: center;
}

.custom-modal-dialog {
  background: #fff;
  width: 90%;
  max-width: 500px;
  margin: auto;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.custom-modal-content {
  padding: 20px;
}

.custom-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  margin-bottom: 10px;
}

.custom-modal-body {
  font-size: 16px;
  margin-bottom: 20px;
}

.custom-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}