/* =========================
   ValetPro Dashboard Styles
   ========================= */

/* ─── Reset & Base Styles ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f8fafc;
  --nav-bg: #0e2a3b;
  --sidebar-bg: #f1f5f9;
  --primary: #ee6c4d;
  --primary-hover: #d75b3d;
  --text: #1e293b;
  --subtle: #64748b;
  --muted: #94a3b8;
  --border: #e2e8f0;
  --shadow-light: rgba(0, 0, 0, 0.04);
  --font-sans: system-ui, sans-serif;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

body {
  background: var(--bg);
  color: var(--text);
}

button {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
}

button:hover {
  background: var(--primary-hover);
}

/* ─── Navbar ─── */
.topbar {
  position: sticky;
  top: 0;
  background: var(--nav-bg);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  padding: 0 20px;
  z-index: 1000;
}

.brand {
  font-size: 1.2rem;
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 18px;
  list-style: none;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 0.375rem;
}

.nav-links a.active {
  font-weight: bold;
  border-bottom: 2px solid white;
}

.userbox {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.role-pill {
  background: var(--muted);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
}

.muted {
  color: var(--subtle);
  font-size: 0.875rem;
}

/* ─── Layout ─── */
.layout {
  display: flex;
  min-height: calc(100vh - 60px);
}

/* ─── Sidebar / Panels ─── */
.sidebar {
  width: 280px;
  background: var(--sidebar-bg);
  padding: 20px;
  border-right: 1px solid var(--border);
  overflow-y: auto;
}

.panel {
  margin-bottom: 2rem;
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow-light);
}

.panel h3 {
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

label {
  display: block;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

input[type="text"],
input[type="date"],
select {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.375rem;
  font-size: 0.875rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
}

/* ─── Main Content ─── */
.content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.content-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.result-count {
  color: var(--subtle);
}

/* ─── Cards ─── */
.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card {
  background: white;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 2px 12px var(--shadow-light);
  border: 1px solid var(--border);
}

/* ─── Hidden Elements ─── */
.avatar-row {
  display: none !important;
}
/* --- Pickup Form Tweaks --- */
.create-form label {
  font-size: 13px;
  color: #475569;
  margin-bottom: 6px;
  display: block;
  font-weight: 500;
}

.create-form input,
.create-form select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  margin-bottom: 14px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
  transition: border 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.create-form input:focus,
.create-form select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.create-form button {
  width: 100%;
  background: #0f172a;
  padding: 12px;
  font-size: 15px;
  font-weight: bold;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.create-form button:hover {
  background: #1e293b;
}



.table-wrapper {
  margin-bottom: 40px;
}


table th,
table td {
  padding: 12px 16px;
}

@keyframes blink-yellow {
  0%, 100% { background-color: #fff9c4; }
  50% { background-color: #fef08a; }
}
@keyframes blink-red {
  0%, 100% { background-color: #fecaca; }
  50% { background-color: #f87171; }
}
.flash-yellow {
  animation: blink-yellow 1s infinite;
}
.flash-red {
  animation: blink-red 1s infinite;
}