/* MECADOC Bento UI System Custom Styles */

html,
body,
#root {
  max-width: 100%;
  overflow-x: clip;
}

:root {
  --primary-brand: #059669;
  --secondary-brand: #0f172a;
  --header-brand-bg: #ffffff;
  --brand-on-primary: #ffffff;
}

.brand-bg { background-color: var(--primary-brand) !important; }
.brand-text { color: var(--primary-brand) !important; }
.brand-border { border-color: var(--primary-brand) !important; }
.brand-ring:focus { --tw-ring-color: color-mix(in srgb, var(--primary-brand) 45%, transparent) !important; }

button,
input,
select,
textarea {
  touch-action: manipulation;
}

.touch-target {
  min-height: 48px;
}

@layer components {
  /* Bento Card Container Standard */
  .bento-card {
    background-color: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 1rem; /* 16px */
    box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.05), 0 1px 2px -1px rgba(15, 23, 42, 0.05);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .bento-card:hover {
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  }

  .bento-card-interactive:hover {
    border-color: #CBD5E1;
    transform: translateY(-2px);
  }

  /* Status Badges */
  .badge-fefo-green {
    background-color: #ECFDF5;
    color: #047857;
    border: 1px solid #A7F3D0;
  }

  .badge-fefo-yellow {
    background-color: #FFFBEB;
    color: #B45309;
    border: 1px solid #FDE68A;
  }

  .badge-fefo-red {
    background-color: #FEF2F2;
    color: #B91C1C;
    border: 1px solid #FCA5A5;
  }

  .badge-wompi {
    background-color: #E6F4EA;
    color: #10B981;
    font-weight: 700;
  }
}

/* Custom Scrollbar for Bento Tables */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Pulse animation for Auto-Refill Refills & Active Orders */
@keyframes softPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.02); }
}

.animate-vitau-pulse {
  animation: softPulse 2.5s infinite ease-in-out;
}
