/**
 * Vitrum ERP 2.0 - Tactile Buttons & Components
 * Professional, physical button UI with micro-bevels, active press states,
 * and high-contrast tactical feedback (NOT a generic AI template).
 */

:root {
  --btn-radius: 8px;
  --btn-font-weight: 600;
  --btn-transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Tactile Button */
.tactile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  font-size: 0.875rem;
  font-weight: var(--btn-font-weight);
  line-height: 1.25;
  border-radius: var(--btn-radius);
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  text-decoration: none;
  transition: var(--btn-transition);
  position: relative;
  outline: none;
}

.tactile-btn:disabled,
.tactile-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none !important;
  transform: none !important;
}

/* Tactile Active Pressed State (The physical button feel) */
.tactile-btn:active {
  transform: translateY(1.5px) !important;
}

/* Primary (Vitrum Cobalt Blue) */
.tactile-btn-primary {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border-color: #1e40af;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 2px 4px rgba(37, 99, 235, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.2);
}
.tactile-btn-primary:hover {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 4px 10px rgba(37, 99, 235, 0.45);
}
.tactile-btn-primary:active {
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Success / Deliver (Emerald Green) */
.tactile-btn-success {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border-color: #047857;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 2px 4px rgba(5, 150, 105, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.2);
}
.tactile-btn-success:hover {
  background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 4px 10px rgba(16, 185, 129, 0.45);
}
.tactile-btn-success:active {
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Warning / Ready (Amber Orange) */
.tactile-btn-warning {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border-color: #b45309;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 2px 4px rgba(217, 119, 6, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.2);
}
.tactile-btn-warning:hover {
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 4px 10px rgba(245, 158, 11, 0.45);
}
.tactile-btn-warning:active {
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Danger / Debt (Crimson Red) */
.tactile-btn-danger {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  border-color: #b91c1c;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 2px 4px rgba(220, 38, 38, 0.35),
    0 1px 2px rgba(0, 0, 0, 0.2);
}
.tactile-btn-danger:hover {
  background: linear-gradient(180deg, #f87171 0%, #ef4444 100%);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 4px 10px rgba(239, 68, 68, 0.45);
}
.tactile-btn-danger:active {
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Secondary (Brushed Titanium Slate) */
.tactile-btn-secondary {
  background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
  color: #e2e8f0;
  border-color: #475569;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 2px 4px rgba(0, 0, 0, 0.25);
}
.tactile-btn-secondary:hover {
  background: linear-gradient(180deg, #475569 0%, #334155 100%);
  color: #ffffff;
  border-color: #64748b;
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 4px 8px rgba(0, 0, 0, 0.3);
}
.tactile-btn-secondary:active {
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Ghost / Subtle */
.tactile-btn-ghost {
  background: transparent;
  color: #94a3b8;
  border-color: #334155;
}
.tactile-btn-ghost:hover {
  background: rgba(51, 65, 85, 0.4);
  color: #f1f5f9;
  border-color: #475569;
}

/* Mini & Sizes */
.tactile-btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 6px;
}

.tactile-btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  border-radius: 10px;
}

.tactile-btn-block {
  width: 100%;
}

/* Action Icons inside buttons */
.tactile-btn svg {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}
