/* Theme Color */

.bg-custom-blue {
  background-color: #002b49 !important;
}

.text-custom-blue {
  color: #002b49 !important;
}

.border-custom-blue {
  border-color: #002b49 !important;
}

/* Datatable Custom Table */
.datatable-selector {
  padding: 4%;
}

/* Loading CSS */

#loading-screen {
  z-index: 9999;
}

.loader {
  border: 10px solid #f3f3f3;
  border-top: 10px solid #002b49;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Dashboard CSS */
.services-card {
  width: 100%;
  height: 100vh;
  margin: auto;
  background-color: #ffffff;
  border-radius: 15px;
  padding: 20px;
  justify-content: flex-start;
  min-height: 80vh;
  padding-bottom: 50px;
  background-color: #f4f4f4;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.card-title {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: #002b49;
  margin-bottom: 30px;
}

.icon-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.icon {
  border-radius: 12px;
  width: 110px;
  height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  cursor: pointer;
  padding: 10px;
  text-align: center;
}

.icon:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.icon i {
  font-size: 40px;
  color: white;
}

.icon-label {
  font-size: 13px;
  font-weight: normal;
  color: #002b49;
  margin-top: 10px;
}

#logo-sidebar {
  width: 4rem;
  transition: all 0.3s ease-in-out;
}

#logo-sidebar.collapsed .sidebar-button span {
  display: none;
}

#logo-sidebar:not(.collapsed) {
  width: 16rem;
}

#collapse-btn {
  transition: transform 0.3s ease-in-out;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

#logo-sidebar.collapsed #collapse-btn i {
  transform: rotate(180deg);
}

#logo-sidebar:not(.collapsed) #collapse-btn i {
  transform: rotate(0deg);
}

#collapse-btn i {
  transition: transform 0.3s ease-in-out;
}

#logo-sidebar.collapsed .sidebar-text {
  transform: translateX(-9999px);
  transition: transform 0.3s ease;
}

#logo-sidebar:not(.collapsed) .sidebar-text {
  transform: translateX(0);
  transition: transform 0.3s ease;
}

#logo-sidebar {
  transition: transform 0.3s ease;
}

#right-panel {
  transition: margin-left 0.3s ease-in-out;
}

#logo-sidebar.collapsed + #right-panel {
  margin-left: 2.5rem;
}

#logo-sidebar:not(.collapsed) + #right-panel {
  margin-left: 16rem;
}



.client-option {
  transition: background-color 0.2s;
}

.client-option:hover {
  background-color: #f3f4f6;
}

#client-dropdown {
  background-color: white;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#dropdown-toggle {
  cursor: pointer;
  padding: 5px;
  transition: transform 0.2s;
}

#dropdown-toggle:hover {
  opacity: 0.7;
}


/* Popup Animation */
@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in-scale {
  animation: fadeInScale 0.3s ease-out;
}

/* Notification Animation */
@keyframes slideIn {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.animate-slide-in {
  animation: slideIn 0.3s ease-out;
}

.animate-fade-out {
  animation: fadeOut 0.5s ease-out;
}

/* Custom Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #4caf50;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: #f44336;
}

input:checked+.slider:before {
  transform: translateX(26px);
}

/* Customize jQuery UI Autocomplete */
.ui-autocomplete {
  position: absolute;
  z-index: 1000;
  cursor: default;
  padding: 0;
  margin-top: 2px;
  list-style: none;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.ui-autocomplete .ui-menu-item {
  padding: 8px 12px;
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
}

.ui-autocomplete .ui-menu-item:hover {
  background-color: #f3f4f6;
}

.ui-autocomplete .ui-state-active {
  background-color: #002b49;
  color: #ffffff;
}


.notification-item {
  transition: background-color 0.2s;
}

.notification-item:hover {
  background-color: #f9fafb;
  cursor: pointer;
}

#notification-list {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e0 #f7fafc;
}

#notification-list::-webkit-scrollbar {
  width: 6px;
}

#notification-list::-webkit-scrollbar-track {
  background: #f7fafc;
}

#notification-list::-webkit-scrollbar-thumb {
  background-color: #cbd5e0;
  border-radius: 3px;
}

.user-plus-icon {
  cursor: pointer;
  transition: transform 0.2s;
}

.user-plus-icon:hover {
  transform: scale(1.1);
}

.user-plus-icon svg {
  stroke: #0008ff;
  stroke-width: 2;
}

.user-plus-spacing {
  margin-right: 5px;
  margin-left: 30px;
  margin-top: 5px;
}