/* Button Styles */
.btn {
  border-radius: 4px !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.5rem;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 1;
}
.btn.btn-primary {
  background-color: var(--primary) !important;
  color: white !important;
  border-color: var(--primary);
}
.btn-outline-primary {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

.btn-outline-primary:hover {
  background-color: var(--primary) !important;
  color: white !important;
}

.btn-primary::before,
.btn-primary::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  transition: transform 0.7s ease;
  transform: scaleX(0) scaleY(0);
}

.btn-primary::before {
  top: 0;
  left: 0;
  border-top: 2px solid var(--primary);
  border-left: 2px solid var(--primary);
  transform-origin: top left;
}

.btn-primary::after {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
  transform-origin: bottom right;
}

.btn-primary:hover {
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
  background-color: transparent !important;
  color: var(--primary) !important;
  border-color: transparent !important;
}

.btn-primary:hover::before,
.btn-primary:hover::after {
  transform: scaleX(1) scaleY(1);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Focus states */
.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}


@keyframes glow {
  from {
    box-shadow: 0 0 5px rgba(99, 102, 241, 0.2),
      0 0 10px rgba(99, 102, 241, 0.2), 0 0 15px rgba(99, 102, 241, 0.2);
  }
  to {
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3),
      0 0 20px rgba(99, 102, 241, 0.3), 0 0 30px rgba(99, 102, 241, 0.3);
  }
}
