/* Atrium Merchant — Custom CSS layer (beyond Tailwind) */

/* ── Material Symbols base config ── */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 1.25rem;
  vertical-align: middle;
  line-height: 1;
  user-select: none;
}

/* ── Editorial Shadow (The Digital Atrium design rule) ── */
.editorial-shadow {
  box-shadow: 0px 12px 32px rgba(20, 28, 37, 0.06);
}

/* ── Glassmorphism ── */
.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-nav {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ── Scrollbar (minimal, editorial) ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #bdc9c2;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6e7a73;
}

/* ── Sidebar nav active state (right border indicator) ── */
.nav-link-active {
  color: #00654b;
  font-weight: 700;
  border-right: 3px solid #00654b;
  background-color: rgba(0, 101, 75, 0.06);
}

/* ── Smooth page transition ── */
body {
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Table row hover — reveal actions ── */
.table-row-actions {
  opacity: 0;
  transition: opacity 0.15s ease;
}
tr:hover .table-row-actions {
  opacity: 1;
}

/* ── Chart bars ── */
.chart-bar {
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Status badge variants ── */
.badge-active    { background: #92f6cf; color: #002116; }
.badge-pending   { background: #e0e9f6; color: #3e4944; }
.badge-shipped   { background: #e6effc; color: #00654b; }
.badge-delivered { background: #00654b; color: #ffffff; }
.badge-cancelled { background: #ffdad6; color: #ba1a1a; }
.badge-paid      { background: #92f6cf; color: #002116; }
.badge-unpaid    { background: #ffdad6; color: #ba1a1a; }

/* ── Focus ring override (consistent green) ── */
input:focus, select:focus, textarea:focus, button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #00654b33;
}

/* ── Gradient CTA button ── */
.btn-primary {
  background: linear-gradient(to right, #00654b, #008060);
  color: #ffffff;
  font-weight: 700;
  border-radius: 9999px;
  box-shadow: 0 8px 24px rgba(0, 101, 75, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 101, 75, 0.3);
}
.btn-primary:active {
  transform: scale(0.97);
}

/* ── Skeleton loading shimmer ── */
.skeleton {
  background: linear-gradient(90deg, #e6effc 25%, #f0f6ff 50%, #e6effc 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0.5rem;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Modal backdrop ── */
.modal-backdrop {
  animation: backdropIn 0.2s ease;
}
@keyframes backdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── FAB ripple effect ── */
.fab-btn {
  position: relative;
  overflow: hidden;
}
.fab-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255,255,255,0.2);
  opacity: 0;
  transition: opacity 0.2s;
}
.fab-btn:active::after {
  opacity: 1;
}
