@keyframes slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);   opacity: 1; }
}
.animate-slide-in { animation: slide-in 0.25s ease-out; }

/* Sidebar scrollbar */
nav::-webkit-scrollbar { width: 4px; }
nav::-webkit-scrollbar-track { background: transparent; }
nav::-webkit-scrollbar-thumb { background: #374151; border-radius: 4px; }

/* Table row hover */
.tbl-row { transition: background 0.1s; }
.tbl-row:hover { background: #f9fafb; }

/* Status badge */
.badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 9999px; font-size: 0.75rem; font-weight: 500; }
.badge-green  { background: #dcfce7; color: #15803d; }
.badge-red    { background: #fee2e2; color: #dc2626; }
.badge-gray   { background: #f3f4f6; color: #6b7280; }
.badge-blue   { background: #dbeafe; color: #1d4ed8; }
.badge-orange { background: #ffedd5; color: #c2410c; }

/* Form inputs */
.field {
  display: block; width: 100%;
  border: 1px solid #e5e7eb; border-radius: 0.5rem;
  padding: 0.5rem 0.75rem; font-size: 0.875rem;
  color: #111827; background: #fff;
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.field:focus { border-color: #111827; box-shadow: 0 0 0 3px rgba(0,0,0,0.06); }
.field::placeholder { color: #9ca3af; }
label.lbl { display: block; font-size: 0.75rem; font-weight: 600; color: #374151; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.05em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 0.5rem 1rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500; cursor: pointer; transition: opacity 0.15s, background 0.15s; border: none; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary   { background: #111827; color: #fff; }
.btn-primary:hover:not(:disabled) { background: #1f2937; }
.btn-danger    { background: #fee2e2; color: #dc2626; }
.btn-danger:hover:not(:disabled) { background: #fecaca; }
.btn-edit      { background: #dbeafe; color: #1d4ed8; }
.btn-edit:hover:not(:disabled) { background: #bfdbfe; }
.btn-ghost     { background: transparent; color: #6b7280; border: 1px solid #e5e7eb; }
.btn-ghost:hover:not(:disabled) { background: #f9fafb; }
.btn-success   { background: #111827; color: #fff; width: 100%; justify-content: center; padding: 0.75rem; border-radius: 0.75rem; }
.btn-success:hover:not(:disabled) { background: #374151; }

/* Card */
.card { background: #fff; border-radius: 1rem; border: 1px solid #f3f4f6; padding: 1.25rem; }

/* Section divider label */
.section-label { font-size: 0.7rem; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; }

/* Empty state */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4rem 1rem; color: #9ca3af; text-align: center; }
.empty-state svg { width: 3rem; height: 3rem; margin-bottom: 1rem; opacity: 0.4; }
.empty-state p { font-size: 0.875rem; }

/* Stat tile */
.stat-tile { border-radius: 1rem; padding: 1.25rem; color: #fff; }
.stat-tile .count { font-size: 2rem; font-weight: 700; line-height: 1; }
.stat-tile .label { font-size: 0.8rem; margin-top: 4px; opacity: 0.85; }
.stat-tile .amount { font-size: 0.95rem; font-weight: 600; margin-top: 8px; }

/* Quotation item row */
.item-row { border: 1px solid #e5e7eb; border-radius: 0.75rem; padding: 1rem; background: #fff; }

/* Mobile hamburger (hidden on desktop) */
#mobile-menu-btn { display: none; }
@media (max-width: 768px) {
  #sidebar { position: fixed; left: -100%; top: 0; height: 100%; z-index: 40; transition: left 0.25s; }
  #sidebar.open { left: 0; }
  #mobile-menu-btn { display: flex; }
}
