/* ============================================================
   GARAGE BOSS - Mobile-First PWA Stylesheet
   Dark theme with neon accents + smooth animations
   ============================================================ */

/* === CSS VARIABLES === */
:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #12122a;
  --bg-card: #1a1a3e;
  --bg-card-hover: #222255;
  --bg-input: #15152f;
  --accent: #e94560;
  --accent-glow: rgba(233, 69, 96, 0.4);
  --accent-secondary: #00d4ff;
  --accent-secondary-glow: rgba(0, 212, 255, 0.4);
  --success: #00e676;
  --success-glow: rgba(0, 230, 118, 0.3);
  --warning: #ffab00;
  --warning-glow: rgba(255, 171, 0, 0.3);
  --danger: #ff1744;
  --info: #00b0ff;
  --text-primary: #ffffff;
  --text-secondary: #8888aa;
  --text-muted: #555577;
  --border: #2a2a55;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px var(--accent-glow);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --nav-height: 70px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom) + 20px);
  overflow-x: hidden;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px var(--accent-glow); }
  50% { box-shadow: 0 0 25px var(--accent-glow), 0 0 50px rgba(233, 69, 96, 0.2); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.3); }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Staggered animations */
.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.15s; }
.animate-in:nth-child(4) { animation-delay: 0.2s; }
.animate-in:nth-child(5) { animation-delay: 0.25s; }
.animate-in:nth-child(6) { animation-delay: 0.3s; }
.animate-in:nth-child(7) { animation-delay: 0.35s; }
.animate-in:nth-child(8) { animation-delay: 0.4s; }

/* === TOP HEADER (mobile) === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: fadeInDown 0.5s ease-out;
}

.header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.header .brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), #ff6b8a);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 15px var(--accent-glow);
  animation: glow 3s ease-in-out infinite;
}

.header .brand-text {
  font-size: 1.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header .page-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* === BOTTOM NAVIGATION === */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(10, 10, 26, 0.95), rgba(10, 10, 26, 1));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(233, 69, 96, 0.15);
  padding: 8px 8px calc(8px + var(--safe-bottom));
  display: flex;
  justify-content: space-around;
  align-items: center;
  animation: slideUp 0.4s ease-out;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  position: relative;
  min-width: 56px;
}

.nav-item .icon {
  font-size: 1.4rem;
  transition: var(--transition-bounce);
}

.nav-item:hover, .nav-item.active {
  color: var(--accent);
}

.nav-item.active .icon {
  transform: scale(1.2);
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.nav-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--accent);
  border-radius: 0 0 3px 3px;
  box-shadow: 0 0 10px var(--accent-glow);
}

.nav-item-add {
  position: relative;
  top: -15px;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--accent), #ff6b8a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  font-weight: 300;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: var(--transition-bounce);
}

.nav-item-add:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 4px 30px var(--accent-glow);
}

.nav-item-add::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--bg-primary);
  z-index: -1;
}

/* === CONTAINER === */
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px;
}

/* === PAGE HEADER === */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  animation: fadeInDown 0.4s ease-out;
}

.page-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === STAT CARDS (Dashboard) === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  text-decoration: none;
  color: var(--text-primary);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  opacity: 0;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card .icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.stat-card .number {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card .label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.stat-card.accent::before { background: var(--accent); }
.stat-card.success::before { background: var(--success); }
.stat-card.warning::before { background: var(--warning); }
.stat-card.info::before { background: var(--info); }

/* === CARDS === */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
  margin-bottom: 16px;
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(233, 69, 96, 0.3);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.card-header h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* === LIST ITEMS (swipeable cards) === */
.list-item {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.list-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(233, 69, 96, 0.05));
  opacity: 0;
  transition: var(--transition);
}

.list-item:hover {
  transform: translateX(4px);
  border-color: var(--accent);
}

.list-item:hover::after {
  opacity: 1;
}

.list-item:active {
  transform: scale(0.98);
}

.list-item .item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.list-item .item-icon.bg-accent { background: rgba(233, 69, 96, 0.15); }
.list-item .item-icon.bg-success { background: rgba(0, 230, 118, 0.15); }
.list-item .item-icon.bg-warning { background: rgba(255, 171, 0, 0.15); }
.list-item .item-icon.bg-info { background: rgba(0, 176, 255, 0.15); }

.list-item .item-content {
  flex: 1;
  min-width: 0;
}

.list-item .item-title {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-item .item-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-item .item-meta {
  text-align: right;
  flex-shrink: 0;
}

.list-item .item-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: var(--transition);
}

.list-item:hover .item-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* === BADGES === */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-nieuw { background: rgba(0, 176, 255, 0.15); color: var(--info); }
.badge-in_wacht { background: rgba(255, 171, 0, 0.15); color: var(--warning); }
.badge-actief { background: rgba(0, 230, 118, 0.15); color: var(--success); }
.badge-klaar { background: rgba(233, 69, 96, 0.15); color: var(--accent); }
.badge-opgehaald { background: rgba(136, 136, 170, 0.15); color: var(--text-secondary); }
.badge-concept { background: rgba(136, 136, 170, 0.15); color: var(--text-secondary); }
.badge-verstuurd { background: rgba(0, 176, 255, 0.15); color: var(--info); }
.badge-open { background: rgba(255, 171, 0, 0.15); color: var(--warning); }
.badge-betaald { background: rgba(0, 230, 118, 0.15); color: var(--success); }
.badge-gepland { background: rgba(0, 176, 255, 0.15); color: var(--info); }
.badge-bevestigd { background: rgba(0, 230, 118, 0.15); color: var(--success); }
.badge-afgerond { background: rgba(233, 69, 96, 0.15); color: var(--accent); }
.badge-geannuleerd { background: rgba(255, 23, 68, 0.15); color: var(--danger); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  min-height: 48px;
}

.btn::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, transparent 70%);
  transform: scale(0);
  opacity: 0;
  transition: var(--transition);
}

.btn:active::before {
  transform: scale(2);
  opacity: 1;
  transition: 0s;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff6b8a);
  color: white;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover { box-shadow: 0 6px 25px var(--accent-glow); }

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-success {
  background: linear-gradient(135deg, var(--success), #69f0ae);
  color: #0a0a1a;
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #ff5252);
  color: white;
}

.btn-info {
  background: linear-gradient(135deg, var(--info), #40c4ff);
  color: white;
}

.btn-sm { padding: 8px 14px; font-size: 0.8rem; min-height: 36px; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

.btn-block { width: 100%; }

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
}

/* FAB (Floating Action Button) */
.fab {
  position: fixed;
  bottom: calc(var(--nav-height) + var(--safe-bottom) + 20px);
  right: 20px;
  z-index: 500;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff6b8a);
  color: white;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--accent-glow);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-bounce);
  animation: bounceIn 0.6s ease-out 0.5s both;
}

.fab:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 6px 30px var(--accent-glow);
}

/* === FORMS === */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition);
  -webkit-appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238888aa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.form-actions .btn { flex: 1; }

/* === SEARCH BAR === */
.search-container {
  margin-bottom: 16px;
  animation: fadeInDown 0.4s ease-out 0.1s both;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 16px;
  transition: var(--transition);
}

.search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-bar .icon {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-right: 10px;
}

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  padding: 14px 0;
}

.search-bar input:focus { outline: none; }
.search-bar input::placeholder { color: var(--text-muted); }

/* === FILTER TABS (horizontal scroll) === */
.filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 0 12px;
  animation: fadeIn 0.4s ease-out 0.2s both;
}

.filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.filter-tab:hover, .filter-tab.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
}

/* === DETAIL VIEW === */
.detail-section {
  margin-bottom: 20px;
}

.detail-section h3 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.detail-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.detail-row:last-child { border-bottom: none; }

.detail-row .label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.detail-row .value {
  font-weight: 600;
  text-align: right;
}

/* === TABLE (scrollable on mobile) === */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 400px;
}

th {
  background: var(--bg-secondary);
  padding: 12px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  text-align: left;
  white-space: nowrap;
}

td {
  padding: 12px 14px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(233, 69, 96, 0.03); }

/* === EMPTY STATE === */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  animation: fadeInUp 0.6s ease-out;
}

.empty-state .icon {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: float 3s ease-in-out infinite;
}

.empty-state h3 {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* === TOAST / NOTIFICATION === */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  z-index: 2000;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  animation: slideUp 0.3s ease-out forwards;
  animation-delay: 0.1s;
}

.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }

/* === LOADING STATES === */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 20px auto;
}

/* === MODAL / SHEET (bottom sheet on mobile) === */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

.modal-content {
  width: 100%;
  max-width: 500px;
  max-height: 85vh;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 20px;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
}

.modal-handle {
  width: 40px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 2px;
  margin: 0 auto 16px;
}

/* === QUICK ACTIONS GRID === */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
}

.quick-action:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.quick-action:active {
  transform: scale(0.95);
}

.quick-action .icon {
  font-size: 1.5rem;
}

.quick-action .label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* === TOTALS SECTION === */
.totals-card {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 16px;
}

.total-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.9rem;
}

.total-row.grand {
  font-size: 1.1rem;
  font-weight: 800;
  border-top: 2px solid var(--accent);
  margin-top: 8px;
  padding-top: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === UTILITY CLASSES === */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 10px; }
.mb-1 { margin-bottom: 10px; }
.mt-2 { margin-top: 20px; }
.mb-2 { margin-bottom: 20px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }
.hidden { display: none !important; }

/* === RESPONSIVE — DESKTOP === */
@media (min-width: 768px) {
  .bottom-nav { display: none; }
  
  body { padding-bottom: 20px; }
  
  .header {
    padding: 12px 24px;
    border-radius: 0 0 var(--radius) var(--radius);
  }
  
  .desktop-nav {
    display: flex !important;
    gap: 4px;
    margin-left: auto;
  }
  
  .desktop-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
  }
  
  .desktop-nav a:hover, .desktop-nav a.active {
    color: var(--accent);
    background: rgba(233, 69, 96, 0.1);
  }
  
  .container { max-width: 900px; padding: 24px; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .quick-actions { grid-template-columns: repeat(4, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; }
}

/* Desktop nav hidden by default */
.desktop-nav { display: none; }

/* === SAFE AREA (notch support) === */
@supports (padding: max(0px)) {
  .bottom-nav {
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

/* === DARK MODE SCROLLBAR === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* === SELECTION === */
::selection {
  background: var(--accent);
  color: white;
}

/* === LINK RESET === */
a { color: inherit; text-decoration: none; }

/* === PRINT === */
@media print {
  .bottom-nav, .header, .fab { display: none !important; }
  body { background: white; color: black; padding: 0; }
  .card { border: 1px solid #ddd; box-shadow: none; }
}
