/* Actions*/
.mandetory {
  color: var(--error-color);
  font-size: 0.8rem;
}
.btn {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  font-weight: 600;
  padding: 8px 22px;
  height: 40px;
}
.btn-lg {
  padding: 14px 28px;
  font-size: 1.25rem;
}
.btn-sm {
  padding: 5px 10px;
  font-size: 0.875rem;
  height: 30px;
}
.btn-floating {
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--box-shadow);
}
.btn-floating.btn-large i {
  line-height: 56px;
}
.btn-large i {
  font-size: 1.6rem;
}
.waves-ripple {
  position: absolute;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.5);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
  opacity: 0;
}
@keyframes ripple-animation {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}
.btn-wrapper {
  display: flex;
}
.btn-wrapper .btn {
  margin-right: 15px;
}
.btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: var(--white-color) !important;
}
.btn-primary:hover {
  background-color: #1a237e !important;
  border-color: #1a237e !important;
}
.btn-primary i {
  color: var(--white-color);
}
.btn-success {
  background-color: #c8f6d0 !important;
  border-color: #c8f6d0 !important;
  color: #2c7a4b !important;
}
.btn-success:hover {
  background-color: #a7e8b1 !important;
  border-color: #a7e8b1 !important;
}
.btn-danger {
  background-color: var(--error-color) !important;
  border-color: var(--error-color) !important;
  color: var(--white-color) !important;
}
.btn-danger:hover {
  background-color: #f5a8a8 !important;
  border-color: #f5a8a8 !important;
}
.btn-info {
  background-color: #b3e5fc !important;
  border-color: #b3e5fc !important;
  color: #0277bd !important;
}
.btn-info:hover {
  background-color: #81d4fa !important;
  border-color: #81d4fa !important;
}
.btn:hover,
.nav-link:hover,
.tasbtn:hover {
  -webkit-box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.14),
    0 1px 7px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -1px rgba(0, 0, 0, 0.2);
  box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.14), 0 1px 7px 0 rgba(0, 0, 0, 0.12),
    0 3px 1px -1px rgba(0, 0, 0, 0.2);
}
@media screen and (max-width: 767px) {
  .btn {
    padding: 8px 10px;
    min-width: 80px;
    font-size: 13px;
  }
  .btn-sm {
    min-width: auto;
    height: 33px;
  }
  .btn-wrapper {
    flex-wrap: wrap;
  }
}
.nav-link,
.tasbtn {
  position: relative;
  overflow: hidden;
}
.nav-link.active:hover {
  background-color: #1a237e !important;
  border-color: #1a237e !important;
}
.form-control:focus,
.form-select:focus {
  box-shadow: none;
  border-color: var(--primary-color);
}

/* Chevron Rotation */
.rotate {
  transform: rotate(180deg); /* Rotate the icon when class is added */
}
/* Smooth dropdown transition */
.collapse {
  transition: height 0.4s ease-in-out;
}

.dropdown-ripple {
  overflow: hidden;
}
.waves-effect {
  position: relative;
  cursor: pointer;
  display: inline-block;
  overflow: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  vertical-align: middle;
  z-index: 1;
  transition: 0.3s ease-out;
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  margin-top: -50px;
  margin-left: -50px;
  opacity: 0.6;
  background: rgba(0, 0, 0, 0.2); /* Light blue */
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  z-index: 1000;
}

/* Ripple Animation */
@keyframes ripple-animation {
  0% {
    transform: scale(0);
    opacity: 0.6;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}
@media screen and (max-width: 1199px) {
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9;
    display: none;
  }

  .overlay.active {
    display: block;
  }
}

/* Floating form  Start*/
.form-floating {
  position: relative;
  width: 100%;
}

/* Default input styles for text, email, tel, date, and dropdown */
.form-floating > .form-control,
.form-floating > .form-control-plaintext,
.form-floating > .form-select {
  width: 100%;
  height: 40px !important;
  min-height: 40px !important;
  line-height: 1.2 !important;
  padding: 8px 12px !important;
  border: 1px solid var(--gray4-color);
  border-radius: var(--border-radius);
  background: var(--gray7-color);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.form-floating > .form-control-plaintext ~ label::after,
.form-floating > .form-control:focus ~ label::after,
.form-floating > .form-control:not(:placeholder-shown) ~ label::after,
.form-floating > .form-select ~ label::after {
  display: none;
}
.form-floating > textarea.form-control {
  min-height: 100px !important;
}
/* Label styling */
.form-floating label {
  position: absolute;
  left: 12px;
  top: 7px;
  transition: all 0.3s ease;
  padding: 0 4px;
  background: transparent;
  font-size: 14px;
}

.form-floating input:focus,
.form-floating select:focus,
.form-floating textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  background: var(--white-color);
}

.form-floating input:focus + label,
.form-floating input:not(:placeholder-shown) + label,
.form-floating select:focus + label,
.form-floating select:not([value=""]):valid + label,
.form-floating textarea:focus + label,
.form-floating textarea:not(:placeholder-shown) + label,
.form-floating select + label {
  top: -6px;
  font-size: 12px;
  background-color: var(--white-color);
  padding: 0 4px;
  border-radius: 4px;
  left: 8px;
  height: 20px;
}

label {
  font-size: 12px;
}
label span {
  font-size: 0.8rem;
  color: var(--gray3-color);
}
/* .info{color: var(--badge-info-text);font-weight:bold;} */

select.form-select {
  background-image: url("../imges/down-chevron.png");
  background-repeat: no-repeat;
  background-position: 97% 13px;
  background-size: 1.429em;
}
/* Password toggle */
.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
  color: #6c757d;
  transition: color 0.3s ease;
}

.password-toggle:hover {
  color: #007bff;
}

/* Dropdown select */
.form-select {
  appearance: none;
  background: #f8f9fa
    url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='gray' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 5.646a.5.5 0 0 1 .708 0L8 11.293l5.646-5.647a.5.5 0 1 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E")
    no-repeat right 10px center;
  background-size: 16px;
}

/* File Upload Field */
.form-floating input[type="file"] {
  padding: 8px !important;
  height: auto !important;
}

/* Textarea */
.form-floating textarea {
  height: 100px !important;
  min-height: 100px !important;
  resize: none;
}

/* Date Picker */
.form-floating input[type="date"] {
  padding: 8px 12px !important;
  background: var(--gray7-color);
}

/* search-container */
.search-box {
  width: 320px; /* Default size */
  transition: all 0.3s ease-in-out;
  position: relative;
}

/* Expanded state */
.search-box.expanded {
  width: 360px; /* Default size */
  border-color: var(--white-color);
}

/* Custom Checkbox */
.custom-checkbox input[type="checkbox"] {
  display: none;
}

.custom-checkbox label {
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
}

.custom-checkbox label:before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  background: var(--white-color);
  border: 1px solid #666;
  border-radius: 3px;
  transition: 0.3s;
}

.custom-checkbox input:checked + label:before {
  background-color: var(--primary-color);
}

.custom-checkbox input:checked + label:after {
  content: "\2713";
  position: absolute;
  left: 5px;
  top: 1px;
  font-size: 14px;
  color: var(--white-color);
  font-weight: bold;
}

/* Custom Radio Buttons */
.custom-radio input[type="radio"] {
  display: none;
}

.custom-radio label {
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
  margin-right: 30px;
}

.custom-radio label:before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  background: var(--white-color);
  border: 1px solid #666;
  border-radius: 50%;
  transition: 0.3s;
}

.custom-radio input:checked + label:before {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.custom-radio input:checked + label:after {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--white-color);
  border-radius: 50%;
}
.custom-radio.withoutLeave {
  margin-top: -26px;
  margin-left: 12px;
}
.custom-checkbox.withoutLeave {
  margin-top: -26px;
  margin-left: 12px;
}
.custom-radio-holder {
  display: flex;
  flex-wrap: wrap;
}
@media screen and (max-width: 767px) {
  .custom-radio-holder .custom-radio {
    margin-bottom: 15px;
  }
}
/* Custom Switch */
.custom-switch {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.custom-switch input {
  display: none;
}

.custom-switch label {
  position: relative;
  width: 40px;
  height: 20px;
  background: #ccc;
  border-radius: 10px;
  transition: 0.3s;
}

.custom-switch label:after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

.custom-switch input:checked + label {
  background: var(--info-color);
}

.custom-switch input:checked + label:after {
  left: 22px;
}

/* Custom Yes/No Switch */
.custom-switch-yesno {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 70px;
  height: 30px;
  background: #ccc;
  border-radius: 15px;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
  font-family: Arial, sans-serif;
  padding: 2px;
}

.custom-switch-yesno input {
  display: none;
}

.custom-switch-yesno .switch-label {
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 10px;
  font-weight: bold;
  color: white;
  transition: opacity 0.3s ease-in-out;
}

.custom-switch-yesno .switch-label .yes {
  display: none;
}

/* Custom Multiselect */
/* Custom Multi-Select Button */
.custom-multiselect {
  width: 100%;
  border: 1px solid var(--gray4-color);
  border-radius: var(--border-radius);
  background: var(--gray7-color);
  padding: 8px 12px !important;
  text-align: left;
  cursor: pointer;
  min-height: 42px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  transition: 0.3s;
  font-weight: normal;
}

.custom-multiselect:hover {
  border-color: var(--primary-color);
}

/* Dropdown Animation */
.custom-dropdown-menu {
  width: 100%;
  max-height: 250px;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: none;
}

.dropdown.show .custom-dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Custom Dropdown Items */
.custom-dropdown-item {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: var(--border-radius);
  transition: 0.3s;
}

.custom-dropdown-item:hover {
  background-color: var(--row-hover);
  color: var(--gray1-color);
}

.custom-dropdown-item input {
  margin-right: 10px;
}

/* Chip Style */
.chip {
  background-color: var(--gray4-color);
  color: var(--gray1-color);
  padding: 5px 10px;
  border-radius: var(--border-radius);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0 5px 0 0;
}

.chip .close {
  cursor: pointer;
  font-weight: bold;
  padding: 0 5px;
  color: var(--gray1-color);
}

/* Toast */
.custom-toast {
  position: fixed;
  top: 20px;
  right: 50px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.3s, bottom 0.3s;
  z-index: 1000;
  padding: 10px 20px;
  color: var(--badge-success-text);
  font-weight: 600;
  background: var(--badge-success-bg);
  border-radius: var(--border-radius);
  font-size: 14px;
  min-width: 300px;
  min-height: 60px;
  line-height: 40px;
  text-align: center;
}

.custom-toast.show {
  opacity: 1;
  top: 30px;
}
@media screen and (max-width: 767px) {
  .custom-toast {
    top: 74px;
    right: 73px;
    padding: 9px 7px;
    font-size: 14px;
    min-width: 220px;
  }
}
/* Wrapper */
.tiny-checkbox {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
}

/* Hide native checkbox */
.tiny-checkbox input[type="checkbox"] {
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  cursor: pointer;
}

/* Custom checkbox UI */
.tiny-checkbox span {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: var(--white-color);
  border: 1px solid #666;
  border-radius: 3px;
  box-sizing: border-box;
  transition: background 0.3s;
  z-index: 1;
}

/* Checked state */
.tiny-checkbox input[type="checkbox"]:checked + span {
  background-color: var(--primary-color);
}

/* Tick mark */
.tiny-checkbox input[type="checkbox"]:checked + span::after {
  content: "\2713";
  position: absolute;
  top: -2px;
  left: 4px;
  font-size: 14px;
  font-weight: bold;
  color: var(--white-color);
}

/* Wrapper */
.tiny-radio {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
}

/* Hide native radio */
.tiny-radio input[type="radio"] {
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  cursor: pointer;
}

/* Custom radio UI */
.tiny-radio span {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: var(--white-color);
  border: 1px solid #666;
  border-radius: 50%;
  box-sizing: border-box;
  transition: background 0.3s, border-color 0.3s;
  z-index: 1;
}

/* Checked state */
.tiny-radio input[type="radio"]:checked + span {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Inner dot */
.tiny-radio input[type="radio"]:checked + span::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 8px;
  height: 8px;
  background: var(--white-color);
  border-radius: 50%;
}
