/* Button Components */
/* Reusable button styles and variants */

/* --- Button Hover Effects --- */
.btn {
  transition: all 0.2s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

/* --- Action Buttons (appear on hover) --- */
.btn-action {
  opacity: 0;
  transform: translateY(2px);
  transition: all 0.2s ease;
  padding: 0.25rem 0.5rem;
  line-height: 1;
}

.table-hover > tbody > tr:hover .btn-action,
.list-group-item:hover .btn-action,
.card:hover .btn-action {
  opacity: 1;
  transform: translateY(0);
}

.btn-action:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* --- Icon Buttons --- */
.btn-icon {
  padding: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon-sm {
  padding: 0.25rem;
  width: 2rem;
  height: 2rem;
  font-size: 0.875rem;
}

/* --- Button Groups --- */
.btn-group .btn {
  margin: 0;
}

.btn-group .btn:hover {
  z-index: 1;
}

/* --- Floating Action Button --- */
.btn-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* --- Button Loading State --- */
.btn .spinner-border {
  margin-right: 0.5rem;
}

.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.65;
}

/* --- Soft Button Variants --- */
.btn-soft-primary {
  background-color: rgba(13, 110, 253, 0.1);
  color: var(--bs-primary);
  border: 1px solid transparent;
}

.btn-soft-primary:hover {
  background-color: rgba(13, 110, 253, 0.2);
  color: var(--bs-primary);
}

.btn-soft-success {
  background-color: rgba(25, 135, 84, 0.1);
  color: var(--bs-success);
  border: 1px solid transparent;
}

.btn-soft-success:hover {
  background-color: rgba(25, 135, 84, 0.2);
  color: var(--bs-success);
}

.btn-soft-danger {
  background-color: rgba(220, 53, 69, 0.1);
  color: var(--bs-danger);
  border: 1px solid transparent;
}

.btn-soft-danger:hover {
  background-color: rgba(220, 53, 69, 0.2);
  color: var(--bs-danger);
}

.btn-soft-warning {
  background-color: rgba(255, 193, 7, 0.1);
  color: var(--bs-warning);
  border: 1px solid transparent;
}

.btn-soft-warning:hover {
  background-color: rgba(255, 193, 7, 0.2);
  color: var(--bs-warning);
}

/* --- Close Button --- */
.btn-close:focus {
  box-shadow: none;
  opacity: 0.75;
}

/* --- Toggle Buttons --- */
.btn-toggle {
  position: relative;
}

.btn-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.btn-toggle::after {
  content: "▼";
  display: inline-block;
  margin-left: 0.5rem;
  transition: transform 0.2s ease;
  font-size: 0.75em;
}
