/* Button Base - Clean Professional Style */
.widget-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  min-width: 44px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  box-shadow: none;
}

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

.widget-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Standard Button - Clean Professional Design */
.widget-button-standard {
  background: #072185;
  color: #ffffff;
  border: 2px solid #0a2ba5;
  box-shadow: 0 4px 16px rgba(7, 33, 133, 0.3);
}

.widget-button-standard:hover:not(:disabled) {
  background: #0a2ba5;
  border-color: #1a4bc7;
  box-shadow: 0 6px 24px rgba(7, 33, 133, 0.4);
  transform: translateY(-1px);
}

.widget-button-standard:active:not(:disabled) {
  background: #061f7a;
  border-color: #072185;
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(7, 33, 133, 0.3);
}

/* Secondary Button */
.widget-button-secondary {
  background: #6c757d;
  color: #ffffff;
  border: 2px solid #5a6268;
  box-shadow: 0 4px 16px rgba(108, 117, 125, 0.3);
}

.widget-button-secondary:hover:not(:disabled) {
  background: #5a6268;
  border-color: #495057;
  box-shadow: 0 6px 24px rgba(108, 117, 125, 0.4);
  transform: translateY(-1px);
}

.widget-button-secondary:active:not(:disabled) {
  background: #495057;
  border-color: #6c757d;
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

/* Delete Button - Clean Professional Design */
.widget-button-delete {
  background: #dc3545;
  color: #ffffff;
  border: 2px solid #c82333;
  box-shadow: 0 4px 16px rgba(220, 53, 69, 0.3);
}

.widget-button-delete:hover:not(:disabled) {
  background: #c82333;
  border-color: #bd2130;
  box-shadow: 0 6px 24px rgba(220, 53, 69, 0.4);
  transform: translateY(-1px);
}

.widget-button-delete:active:not(:disabled) {
  background: #bd2130;
  border-color: #dc3545;
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* Success Button */
.widget-button-success {
  background: #28a745;
  color: #ffffff;
  border: 2px solid #218838;
  box-shadow: 0 4px 16px rgba(40, 167, 69, 0.3);
}

.widget-button-success:hover:not(:disabled) {
  background: #218838;
  border-color: #1e7e34;
  box-shadow: 0 6px 24px rgba(40, 167, 69, 0.4);
  transform: translateY(-1px);
}

.widget-button-success:active:not(:disabled) {
  background: #1e7e34;
  border-color: #28a745;
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

/* Warning Button */
.widget-button-warning {
  background: #ffc107;
  color: #000000;
  border: 2px solid #e0a800;
  box-shadow: 0 4px 16px rgba(255, 193, 7, 0.3);
}

.widget-button-warning:hover:not(:disabled) {
  background: #e0a800;
  border-color: #d39e00;
  box-shadow: 0 6px 24px rgba(255, 193, 7, 0.4);
  transform: translateY(-1px);
}

.widget-button-warning:active:not(:disabled) {
  background: #d39e00;
  border-color: #ffc107;
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

/* Info Button */
.widget-button-info {
  background: #17a2b8;
  color: #ffffff;
  border: 2px solid #138496;
  box-shadow: 0 4px 16px rgba(23, 162, 184, 0.3);
}

.widget-button-info:hover:not(:disabled) {
  background: #138496;
  border-color: #117a8b;
  box-shadow: 0 6px 24px rgba(23, 162, 184, 0.4);
  transform: translateY(-1px);
}

.widget-button-info:active:not(:disabled) {
  background: #117a8b;
  border-color: #17a2b8;
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
}

/* Order Submit Button - Clean Professional Design */
.order-submit-button {
  background: #072185;
  color: #ffffff;
  border: 2px solid #0a2ba5;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  min-width: 44px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  box-shadow: 0 4px 16px rgba(7, 33, 133, 0.3);
}

.order-submit-button:hover:not(:disabled) {
  background: #0a2ba5;
  border-color: #1a4bc7;
  box-shadow: 0 6px 24px rgba(7, 33, 133, 0.4);
  transform: translateY(-1px);
}

.order-submit-button:active:not(:disabled) {
  background: #061f7a;
  border-color: #072185;
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(7, 33, 133, 0.3);
}

.order-submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  border-color: #555;
  box-shadow: 0 2px 8px rgba(7, 33, 133, 0.2);
}

.order-submit-button:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Button Sizes */
.widget-button-small {
  padding: 0.625rem 1.25rem;
  font-size: var(--font-size-sm);
  min-height: 40px;
  min-width: 40px;
}

.widget-button-large {
  padding: 1.125rem 2.25rem;
  font-size: var(--font-size-lg);
  min-height: 56px;
  min-width: 56px;
}

/* Button with Icon */
.widget-button-icon {
  gap: 0.75rem;
}

.widget-button-icon-only {
  padding: 0.875rem;
  min-width: 48px;
  width: 48px;
}

/* Button Group */
.widget-button-group {
  display: flex;
  gap: 0.75rem;
}

.widget-button-group .widget-button {
  border-radius: 0;
}

.widget-button-group .widget-button:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.widget-button-group .widget-button:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

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

.widget-button-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid transparent;
  border-top: 2px solid currentcolor;
  border-radius: 50%;
  animation: button-spin 1s linear infinite;
}

@keyframes button-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Buttons */
@media (max-width: 768px) {
  .widget-button {
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-sm);
    min-height: 44px;
    min-width: 44px;
  }

  .widget-button-small {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-xs);
    min-height: 36px;
    min-width: 36px;
  }

  .widget-button-large {
    padding: 1rem 2rem;
    font-size: var(--font-size-base);
    min-height: 52px;
    min-width: 52px;
  }

  .widget-button-group {
    flex-direction: column;
    gap: 0.5rem;
  }

  .widget-button-group .widget-button {
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .widget-button {
    padding: 0.625rem 1.25rem;
    font-size: var(--font-size-xs);
    min-height: 40px;
    min-width: 40px;
  }

  .widget-button-icon-only {
    min-width: 40px;
    width: 40px;
    padding: 0.625rem;
  }
}
