/* ============================================================
   QRFAD Dashboard v4 — Modern Premium Design System
   ============================================================ */

/* ─── Custom Scrollbar ─────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}

/* Sidebar scrollbar */
.dark-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
}
.dark-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ─── Base Typography ──────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  letter-spacing: -0.02em;
}

/* ─── Glassmorphism Utilities ──────────────────────────── */
.glass {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ─── Custom Focus Ring ────────────────────────────────── */
.focus-ring {
  transition: all 0.2s ease;
}
.focus-ring:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* ─── Smooth Transitions ───────────────────────────────── */
.transition-smooth {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-bounce {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Gradient Text ────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #10b981, #14b8a6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Card Hover Effects ───────────────────────────────── */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.06);
}

/* ─── Modern Input Styles ──────────────────────────────── */
input::placeholder,
textarea::placeholder {
  color: rgba(156, 163, 175, 0.7);
}

/* ─── Selection Colors ─────────────────────────────────── */
::selection {
  background: rgba(16, 185, 129, 0.2);
  color: #064e3b;
}

/* ─── Smooth Page Transitions ──────────────────────────── */
.page-enter {
  animation: fade-in 0.4s ease-out;
}

/* ─── Table Row Hover ──────────────────────────────────── */
.table-row-hover {
  transition: background-color 0.15s ease;
}
.table-row-hover:hover {
  background-color: rgba(16, 185, 129, 0.03);
}

/* ─── Sidebar Active Indicator ─────────────────────────── */
.sidebar-active-indicator {
  position: relative;
}
.sidebar-active-indicator::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #10b981, #14b8a6);
}

/* ─── Kanban Column Borders ────────────────────────────── */
.kanban-pending { border-top: 3px solid #f97316; }
.kanban-confirmed { border-top: 3px solid #3b82f6; }
.kanban-preparing { border-top: 3px solid #eab308; }
.kanban-ready { border-top: 3px solid #10b981; }
.kanban-served { border-top: 3px solid #14b8a6; }

/* ─── Login Background ─────────────────────────────────── */
.login-bg {
  background: linear-gradient(-45deg, #0f172a, #064e3b, #0f172a, #065f46);
  background-size: 400% 400%;
  animation: gradient-shift 12s ease infinite;
}

/* ─── Badge Dot Indicator ──────────────────────────────── */
.badge-dot::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 6px;
  flex-shrink: 0;
}

.badge-dot-emerald::before { background-color: #10b981; }
.badge-dot-red::before { background-color: #ef4444; }
.badge-dot-blue::before { background-color: #3b82f6; }
.badge-dot-orange::before { background-color: #f97316; }
.badge-dot-amber::before { background-color: #f59e0b; }
.badge-dot-violet::before { background-color: #8b5cf6; }
.badge-dot-teal::before { background-color: #14b8a6; }
.badge-dot-gray::before { background-color: #9ca3af; }
