/* TOAST NOTIFICATION STYLES */

.custom-toast {
  position: fixed;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 20px;
  border-radius: 19px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: white;
  font-size: 16px;
  box-shadow: 2px 2px 2px white, 1px 1px 3px 1px white, 1px 1px 8px 4px #1e495a;
  opacity: 0;
  transition: opacity 0.3s, top 0.3s;
  z-index: 10000000;
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
}
.custom-toast.show {
  opacity: 1;
  top: 50px;
}
.custom-toast.hide {
  opacity: 0;
  top: -50px;
}
.success-toast {
  background-color: green;
}
.error-toast {
  background-color: rgb(236, 30, 30);
}
.tip-toast {
  background-color: blue;
}
.general-toast {
  background-color: #453d3d;
}

/* SEARCH INPUT CUSTOMISED */

.search-input {
  width: 150px;
  padding-right: 25px;
  border: 1px solid #800080;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
  background: white
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23800080' d='M505 442.7L405.3 343c28.4-34.9 45.3-79.3 45.3-127C450.7 96.1 354.6 0 225.3 0S0 96.1 0 216s96.1 216 216 216c47.7 0 92.1-16.9 127-45.3l99.7 99.7c4.6 4.6 10.6 7 17 7s12.4-2.3 17-7c9.3-9.4 9.3-24.6-.1-33.9zM216 384c-92.6 0-168-75.4-168-168S123.4 48 216 48s168 75.4 168 168-75.4 168-168 168z'/%3E%3C/svg%3E")
    no-repeat right 5px center;
  background-size: 16px;

  margin: 5px;
  padding: 5px 10px;
}

.search-input2 {
  border: 1px solid #800080;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
  margin: 5px;
  padding: 5px 10px;
}

/* CUSTOM ALERT, PROMPT, CONFIRM */

.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.78);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000000;
}

.custom-box {
  background: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  min-width: 300px;
}

.custom-text {
  margin-bottom: 15px;
  font-size: 16px;
}

.custom-input {
  width: 90%;
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

.button-container {
  display: flex;
  justify-content: space-evenly;
  gap: 10px;
}

.custom-ok-btn,
.custom-cancel-btn {
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.custom-ok-btn {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #2e7d32;
}

.custom-ok-btn:hover {
  background: #2e7d32;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(46, 125, 50, 0.2);
}

.custom-cancel-btn {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #c62828;
}

.custom-cancel-btn:hover {
  background: #c62828;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(198, 40, 40, 0.2);
}

/* CUSTOM FILTER */

.custom-filter {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.custom-filter input {
  width: 150px;
  height: 25px;
  padding-right: 25px;
  border: 1px solid #000000;
  border-radius: 4px;
  font-size: 14px;
  outline: none;
  background: white
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='BLACK' d='M505 442.7L405.3 343c28.4-34.9 45.3-79.3 45.3-127C450.7 96.1 354.6 0 225.3 0S0 96.1 0 216s96.1 216 216 216c47.7 0 92.1-16.9 127-45.3l99.7 99.7c4.6 4.6 10.6 7 17 7s12.4-2.3 17-7c9.3-9.4 9.3-24.6-.1-33.9zM216 384c-92.6 0-168-75.4-168-168S123.4 48 216 48s168 75.4 168 168-75.4 168-168 168z'/%3E%3C/svg%3E")
    no-repeat right 5px center;
  background-size: 16px;
}

/* CUSTOM SORT */

.sort-label {
  display: inline;
  margin-right: 10px;
}

.sort-select,
.sort-label span {
  padding: 5px 7px;
  height: 30px;
  border: 1px solid;
  border-radius: 5px;
}

.sort-select {
  border-radius: 5px;
}

/* CUSTOM BUTTON STYLE */

/* .wave-button {
  position: relative;
  padding: 7px 10px;
  color: #fff;
  background-color: #001380;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  overflow: hidden;
}

.wave-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  transition: left 0.5s;
}

.wave-button:hover {
  transform: scale(1.03);
}

.wave-button:hover::before,
.wave-button:active::before {
  left: 100%;
} */

/* MORE CUSTOM BUTTONS */

/* CUSTOM BUTTON STYLES */
/* Base style included inside each button variant */

/* Wave Button */
.wave-button {
  position: relative;
  padding: 7px 10px;
  color: #fff;
  background-color: #001380;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

.wave-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  transition: left 0.5s;
}

.wave-button:hover {
  transform: scale(1.03);
}

.wave-button:hover::before {
  left: 100%;
}

/* Glow Button */
.wavy-glow {
  padding: 7px 10px;
  color: #fff;
  background-color: #001380;
  border: 2px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  position: relative;
  background-clip: padding-box;
  z-index: 1;
  transition: box-shadow 0.3s ease;
}

/* Glow effect only on hover */
.wavy-glow:hover {
  box-shadow: 0 0 15px rgba(0, 85, 255, 0.7);
}

.wavy-glow::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 7px;
  background: linear-gradient(90deg, #00f, #0ff, #00f);
  background-size: 300% 100%;
  z-index: -1;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  padding: 2px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Animate on hover */
.wavy-glow:hover::before {
  opacity: 1;
  animation: wave-border 3s linear infinite;
}

/* Always animate if infinite_wavy_glow class is added */
.wavy-glow.infinite_wavy_glow::before {
  opacity: 1;
  animation: wave-border 3s linear infinite;
}

.wavy-glow.infinite_wavy_glow {
  box-shadow: 0 0 15px rgba(0, 85, 255, 0.7);
}

@keyframes wave-border {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 300% 0%;
  }
}

/* Pulse Button */
.pulse-button {
  padding: 7px 10px;
  position: relative;
  color: #fff;
  background-color: #0055a5;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.pulse-button:hover {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 85, 165, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(0, 85, 165, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 85, 165, 0);
  }
}

/* Infinite Pulse Button */
.infinite-pulse {
  padding: 7px 10px;
  position: relative;
  color: #fff;
  background-color: #0055a5;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.infinite-pulse {
  animation: infinite-pulse 2s infinite;
}

@keyframes infinite-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 85, 165, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(0, 85, 165, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 85, 165, 0);
  }
}

/* Bounce Button */
.bounce-button {
  padding: 7px 10px;
  color: #fff;
  background-color: #0055a5;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
  will-change: transform;
}

.infinite-bounce-button {
  padding: 7px 10px;
  color: #fff;
  background-color: #0055a5;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
  will-change: transform;
  animation: infinite-bounce 1.5s infinite ease-out;
}

.bounce-button:hover {
  animation: bounce 0.5s ease-out;
}

@keyframes bounce {
  0% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-4px);
  }
  60% {
    transform: translateY(4px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes infinite-bounce {
  0% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-4px);
  }
  60% {
    transform: translateY(4px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Slide Buttons */
/* Common Styles for All Slide Buttons */
.slide-button-left,
.slide-button-right,
.slide-button-top,
.slide-button-bottom {
  padding: 7px 10px;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease-out;
  background-size: 200% 100%;
  font-weight: bold;
}

.slide-button-left {
  background: linear-gradient(to right, #001380 50%, #0055ff 50%);
  background-size: 200% 100%;
  background-position: left bottom;
  transition: all 0.3s ease-out;
}

.slide-button-left:hover {
  background-position: right bottom;
  color: #ffffff;
}

/* Slide Button - Right to Left */
.slide-button-right {
  background: linear-gradient(to left, #001380 50%, #0055ff 50%);
  background-size: 200% 100%;
  background-position: right bottom;
  transition: all 0.3s ease-out;
}

.slide-button-right:hover {
  background-position: left bottom;
  color: #ffffff;
}

/* Slide Button - Top to Bottom */
.slide-button-top {
  background: linear-gradient(to bottom, #001380 50%, #0055ff 50%);
  background-size: 100% 200%;
  background-position: top center;
  transition: all 0.3s ease-out;
}

.slide-button-top:hover {
  background-position: bottom center;
  color: #ffffff;
}

/* Slide Button - Bottom to Top */
.slide-button-bottom {
  background: linear-gradient(to top, #001380 50%, #0055ff 50%);
  background-size: 100% 200%;
  background-position: bottom center;
  transition: all 0.3s ease-out;
}

.slide-button-bottom:hover {
  background-position: top center;
  color: #ffffff;
}

/* 3D Button */
.button-3d {
  padding: 7px 10px;
  color: #fff;
  background-color: #2980b9;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3), 0 8px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.15s ease;
}

.button-3d:hover {
  transform: translateY(2px);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3), 0 6px 7px rgba(0, 0, 0, 0.3);
}

.button-3d:active {
  transform: translateY(5px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 2px 3px rgba(0, 0, 0, 0.3);
}

/* Jelly Button */
.jelly-button {
  padding: 7px 10px;
  color: #fff;
  background-color: #0055a5;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.jelly-button:hover {
  animation: jelly 0.8s ease;
}

@keyframes jelly {
  0%,
  100% {
    transform: scale(1, 1);
  }
  30% {
    transform: scale(1.15, 0.9);
  }
  40% {
    transform: scale(0.9, 1.1);
  }
  50% {
    transform: scale(1.05, 0.95);
  }
  60% {
    transform: scale(0.95, 1.05);
  }
  70% {
    transform: scale(1.02, 0.98);
  }
}

/* Skew Button */
.skew-button {
  padding: 7px 10px;
  color: #fff;
  background-color: #0055a5;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.skew-button:hover {
  transform: skew(-10deg);
}

/* Text Expand */
.text-expand {
  padding: 7px 10px;
  color: #fff;
  background-color: #0055a5;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.text-expand:hover {
  letter-spacing: 3px;
}

/* Rotate Button */
.rotate-button {
  padding: 7px 10px;
  color: #fff;
  background-color: #0055a5;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.rotate-button:hover {
  transform: rotate(5deg) scale(1.05);
}

/* Neon Button */
.neon-button {
  padding: 7px 10px;
  color: #00c3ff;
  background-color: transparent;
  border: 2px solid #00c3ff;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0, 195, 255, 0.3);
  text-shadow: 0 0 5px rgba(0, 195, 255, 0.5);
  transition: all 0.3s ease;
}

.neon-button:hover {
  background-color: rgba(0, 195, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 195, 255, 0.8);
  text-shadow: 0 0 8px rgba(0, 195, 255, 0.8);
  color: #0d0d0d;
}

/* DISABLED BUTTON */
.disabled-button {
  padding: 7px 10px;
  color: #6d6464;
  background-color: #b1b1b6 !important;
  border: none;
  border-radius: 5px;
  cursor: not-allowed;
  overflow: hidden;
  transition: all 0.3s ease;
}
