/* Button Base Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: 59px;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.4s ease;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  z-index: -1;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Button Sizes */
.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
  min-height: 36px;
}

.btn-md {
  padding: 12px 25px;
  font-size: 16px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
  min-height: 52px;
}

/* Button Colors */
.btn-primary-color {
  background-color: #007cba;
  color: #ffffff;
}

.btn-primary-color:hover {
  background-color: #005a87;
  color: #ffffff;
}

.btn-secondary-color {
  background-color: #6c757d;
  color: #ffffff;
}

.btn-secondary-color:hover {
  background-color: #545b62;
  color: #ffffff;
}

.btn-outline-white-color {
  background-color: transparent;
  color: #fff !important;
  border: 1.5px solid #fff;
}

.btn-outline-white-color:hover {
  color: #1e1b18 !important;
}

.btn-outline-white-color::before {
  background: #fff;
}

.btn-cta-color {
  background-color: #feed30;
  color: #1e1b18 !important;
}

.btn-cta-color::before {
  background: rgba(0, 0, 0, 0.2);
}

/* Full Width */
.btn-full-width {
  width: 100%;
}

/* Disabled State */
.btn:disabled,
.btn[disabled],
.btn.disabled {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

/* Icon Styles */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.btn-icon-left {
  margin-right: 4px;
}

.btn-icon-right {
  margin-left: 4px;
}

.btn:hover .btn-icon-right {
  transform: translateX(4px);
}

.btn:hover .btn-icon-left {
  transform: translateX(-4px);
}

/* Loading State (Optional) */
.btn-loading {
  position: relative;
  color: transparent !important;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
