/* Modern Minimal Button Styles */
.button-primary {
  background: var(--primary-color);
  color: #ffffff;
  padding: 12px 24px;
  border: 1px solid var(--primary-color);
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.2s ease;
  min-height: 40px;
  gap: 8px;

  &:active {
    background: var(--primary-darker-color);
    border-color: var(--primary-darker-color);
    transform: translateY(1px);
  }

  &:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }

  &:hover {
    background: var(--primary-darker-color);
    border-color: var(--primary-darker-color);
    transform: translateY(-1px);
  }

  &:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
  }
}

.button-primary-small {
  background: var(--primary-color);
  color: #ffffff;
  padding: 8px 16px;
  border: 1px solid var(--primary-color);
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.2s ease;
  min-height: 32px;
  gap: 6px;

  &:active {
    background: var(--primary-darker-color);
    border-color: var(--primary-darker-color);
    transform: translateY(1px);
  }

  &:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }

  &:hover {
    background: var(--primary-darker-color);
    border-color: var(--primary-darker-color);
    transform: translateY(-1px);
  }
}

.button-outline-small {
  background: transparent;
  color: var(--primary-color);
  padding: 8px 16px;
  border: 1px solid var(--primary-color);
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.2s ease;
  min-height: 32px;
  gap: 6px;

  &:active {
    background: var(--primary-color);
    color: white;
    transform: translateY(1px);
  }

  &:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }

  &:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
  }
}

.button-danger {
  background: var(--danger-color);
  color: #ffffff;
  padding: 12px 24px;
  border: 1px solid var(--danger-color);
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.2s ease;
  min-height: 40px;
  gap: 8px;

  &:active {
    background: var(--danger-darker-color);
    border-color: var(--danger-darker-color);
    transform: translateY(1px);
  }

  &:focus {
    outline: 2px solid var(--danger-color);
    outline-offset: 2px;
  }

  &:hover {
    background: var(--danger-darker-color);
    border-color: var(--danger-darker-color);
    transform: translateY(-1px);
  }
}

.button-danger-small {
  background: var(--danger-color);
  color: #ffffff;
  padding: 8px 16px;
  border: 1px solid var(--danger-color);
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.2s ease;
  min-height: 32px;
  gap: 6px;

  &:active {
    background: var(--danger-darker-color);
    border-color: var(--danger-darker-color);
    transform: translateY(1px);
  }

  &:focus {
    outline: 2px solid var(--danger-color);
    outline-offset: 2px;
  }

  &:hover {
    background: var(--danger-darker-color);
    border-color: var(--danger-darker-color);
    transform: translateY(-1px);
  }
}

.two-buttons {
  display: flex;
  gap: 12px;
  align-items: center;

  .outline-button {
    border: 1px solid var(--secondary-color);
    background: white;
    color: var(--secondary-color);
    padding: 12px 24px;
    border-radius: 0;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.2s ease;
    min-height: 40px;
    gap: 8px;

    &:active {
      background: var(--secondary-color);
      color: white;
      transform: translateY(1px);
    }

    &:focus {
      outline: 2px solid var(--secondary-color);
      outline-offset: 2px;
    }

    &:hover {
      background: var(--secondary-color);
      color: white;
      transform: translateY(-1px);
    }
  }
}

/* Button Loading State */
.button-loading {
  position: relative;
  color: transparent !important;
}

.button-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
  from {
    transform: rotate(0turn);
  }
  to {
    transform: rotate(1turn);
  }
}
