/* ============================================================
   MODERN DESIGN ENHANCEMENTS 2026
   Shared across all pages for consistency
   ============================================================ */

/* ── ENHANCED FORM INPUTS ── */
/* Scoped to .form-input class only — page-specific inputs handle their own styles */
.form-input {
  padding: 13px 16px !important;
  border: 1.5px solid #e5e6ec !important;
  border-radius: 14px !important;
  font-size: .88rem !important;
  transition: all .3s cubic-bezier(.4,0,.2,1) !important;
  background: rgba(0,0,0,.01) !important;
}
.form-input:focus {
  outline: none !important;
  border-color: #FF6A00 !important;
  box-shadow: 0 0 0 4px rgba(255,106,0,.06) !important;
  background: #fff !important;
}
.form-input:hover {
  border-color: #d0d3d8 !important;
  background: #fff !important;
}

/* ── ENHANCED TABLES ── */
table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
}
table thead {
  background: linear-gradient(135deg, #f8f9fa, #f3f4f6) !important;
}
table thead th {
  padding: 14px 18px !important;
  font-weight: 700 !important;
  font-size: .78rem !important;
  color: #1C1C1C !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
  border-bottom: 1px solid #e8eaed !important;
}
table tbody tr {
  transition: all .25s cubic-bezier(.4,0,.2,1) !important;
  background: #fff !important;
}
table tbody tr:hover {
  background: rgba(255,106,0,.015) !important;
}
table tbody td {
  padding: 14px 18px !important;
  border-bottom: 1px solid #f3f4f6 !important;
  font-size: .86rem !important;
}
table tbody tr:last-child td {
  border-bottom: none !important;
}

/* ── ENHANCED BADGES ── */
.badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 4px 12px !important;
  border-radius: 50px !important;
  font-size: .7rem !important;
  font-weight: 700 !important;
  letter-spacing: .02em !important;
}

/* ── ENHANCED MODALS ── */
.modal-overlay {
  backdrop-filter: blur(24px) saturate(1.3) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.3) !important;
  background: rgba(2,2,2,.55) !important;
}
.modal, .modal-content {
  border-radius: 28px !important;
  box-shadow: 0 32px 100px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.02) !important;
  animation: modalSlideIn .45s cubic-bezier(.22,1,.36,1) both !important;
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(28px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── ENHANCED DROPDOWNS ── */
.dropdown, select, .select-wrapper {
  border-radius: 10px !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.06) !important;
}

/* ── ENHANCED CARDS (GLOBAL) ── */
/* Only apply to admin .stat-card, not menu .card which has its own styles */
.stat-card, .panel {
  transition: all .45s cubic-bezier(.22,1,.36,1) !important;
}

/* ── SMOOTH SCROLLBAR ── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.12);
  border-radius: 50px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255,106,0,.4);
  background-clip: content-box;
}

/* ── LOADING STATES ── */
.loading-shimmer {
  background: linear-gradient(90deg, #f3f3f5 25%, #eaeaed 50%, #f3f3f5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── ENHANCED TOOLTIPS ── */
[data-tooltip] {
  position: relative;
  cursor: help;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 7px 14px;
  background: rgba(10,10,10,.92);
  color: rgba(255,255,255,.9);
  font-size: .73rem;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
  letter-spacing: .01em;
}
[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}

/* ── PERFORMANCE OPTIMIZATIONS ── */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.will-change-transform {
  will-change: transform;
}
.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* ── SELECTION STYLE ── */
::selection {
  background: rgba(255,106,0,.15);
  color: #1C1C1C;
}
::-moz-selection {
  background: rgba(255,106,0,.15);
  color: #1C1C1C;
}

/* ── SMOOTH FOCUS RING ── */
:focus-visible {
  outline: 2px solid rgba(255,106,0,.5);
  outline-offset: 2px;
  border-radius: 8px;
}
button:focus-visible, a:focus-visible {
  outline: 2px solid rgba(255,106,0,.4);
  outline-offset: 2px;
}
