/* swal update  */
.custom-swal-popup {
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  background: #f9f9f9;
  color: #333;
  animation: fadeIn 0.3s ease-in-out;
}

.custom-swal-title {
  font-size: 24px;
  font-weight: bold;
  color: #444;
}

.custom-confirm-button {
  background: #e63946 !important;
  border-radius: 8px;
  padding: 10px 20px;
  transition: 0.3s ease-in-out;
}

.custom-confirm-button:hover {
  background: #d62839 !important;
}

.custom-cancel-button {
  background: #457b9d !important;
  border-radius: 8px;
  padding: 10px 20px;
  transition: 0.3s ease-in-out;
}

.custom-cancel-button:hover {
  background: #34678e !important;
}

/* Sweet animation */
@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(-10px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* swal update  */

.select2-container--default .select2-selection--multiple .select2-selection__rendered li span {
    color: #fff;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: #002766;
    color: #fff !important;
    border-color: #002766;
}
.select2-container--default .select2-selection--multiple .select2-selection__rendered li span:hover {
    color: red;
}
.select2-container--default .select2-selection--multiple, .select2-container--default.select2-container--focus .select2-selection--multiple {
    border: 1px solid #efefef;
}
.text-underline {
    text-decoration: underline;
  }
.btn-primary, .bg-primary {   
    background-color: #002766!important;
    border-color: #002766!important; 
}
.btn-primary:hover, .bg-primary {
    color: #fff;
    background-color: #013DA3!important;
    border-color: #013DA3!important;
}
[class*=sidebar-dark-] {
    background-color: #002766ad;
}
.main-sidebar .sidebar {
    padding-left: 0;
    padding-right: 0;
}
.sidebar-dark-primary .nav-sidebar .nav-item .nav-link {
    background-color: transparent;
}
.sidebar-dark-primary .nav-sidebar .nav-item .nav-link.active {
    background: #00000042;
    border-color: transparent;
    box-shadow: none;
}
.nav-sidebar>.nav-item {
    justify-content: center;
}
.moveableObject {
    display: inline-block;
    position: relative;
    animation: moveLeftRight 1s infinite alternate ease-in-out;
  }
  @keyframes moveLeftRight {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(10px);
    }
  }

  /* Pause the animation on hover */
  .moveableObject:hover {
    animation-play-state: paused;
  }
  .card-header {
    border-bottom: none;
}
   /* table listing  */
   .listing-image {
    max-width: 40px;
    max-height: 40px;
    border-radius: 5px;
    transition: 0.3s all ease-in-out;
}
.listing-image:hover {
    transform: scale(1.5);
}
.edit-icon {
    padding: 10px;
    background: #efefef;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 7px;
}
.view-icon {
  padding: 10px;
  background: #efefef;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 7px;
}
.delete-icon {
    padding: 10px;
    background: #efefef;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 7px;
}
.card-footer {
    background-color: transparent;
    border-top: solid 1px #eee;
}
.table thead th {
    border-color: #eee;
    border-width: 1px;
    border-top: solid 1px #eee !important;
}
.table td {
    vertical-align: baseline;
}
a {
    color: #002766;
}
.page-item.active .page-link {
    background-color: #002766;
    border-color: #002766;
}
.form-control {
    border: 1px solid #efefef;
}

/* switch update style */
.custom-switch .custom-control-label::before {
    left: -3.25rem;
    width: 3.75rem;
}
.custom-control-label::before {   
    top: .25rem;
    left: -1.5rem;  
    width: 1rem;
    height: 1.5rem;  
}
.custom-switch .custom-control-label::after {
    top: calc(.25rem + 1px);
    left: calc(-3.2rem + 2px);
    width: calc(2rem - 4px);
    height: calc(2rem - 11px);   
}
.custom-switch .custom-control-input:checked + .custom-control-label::after {
    content: "";
    left: calc(-2.25rem + 2px);
}
/* switch update style */
/* summernote fix */
.ui-helper-hidden-accessible {
    position: absolute !important;
    clip: auto !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    z-index: 1050 !important;
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
}
/* Style the tooltip itself */
.note-tooltip {
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1050 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Ensure tooltip arrow is clean */
.note-tooltip:after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: 0px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* summernote fix */

/* toast design  */
/* Toast container styling */
.custom-toast {
    background: linear-gradient(145deg, #4caf50, #2e7d32);
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    padding: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  /* Toast body styling */
  .custom-toast-body {
    font-size: 16px;
    display: flex;
    align-items: center;
  }
  
  /* Toast icon styling */
  .custom-toast svg {
    fill: #fff !important;
    width: 24px;
    height: 24px;
    animation: pop 0.4s ease;
  }
  
  /* Toast close button styling */
  .custom-toast button {
    color: #fff;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.2s ease;
    padding: 5px;
    border-radius: 50%;
  }
  
  .custom-toast button:hover {
    opacity: 1;
    transform: scale(1.2);
  }
  
  /* Progress bar styling */
  .custom-toast-progress {
    background: #ffdd57 !important;
    height: 4px !important;
    border-radius: 0 0 12px 12px;
  }
  
  /* Hover and click interaction effects */
  .custom-toast:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  }
  
  /* Smooth pop-in animation for the icon */
  @keyframes pop {
    0% {
      transform: scale(0);
    }
    60% {
      transform: scale(1.2);
    }
    100% {
      transform: scale(1);
    }
  }
  
/* toast design  */

