/* IFS Food Evidence System - Custom CSS Styling */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #0f172a;
  --accent-color: #10b981;
  --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body {
  font-family: var(--font-family);
  background-color: #f8fafc;
  color: #1e293b;
  min-height: 100vh;
}

.text-monospace {
  font-family: var(--font-mono);
}

/* Pagination SVG Fix */
.pagination svg, svg.w-5, svg.h-5 {
  width: 1.25rem !important;
  height: 1.25rem !important;
}

/* Grouped Autocomplete Styling (Matches modern UI) */
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 320px;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
  z-index: 1060;
  padding: 0.35rem 0;
}

.autocomplete-group-header {
  padding: 0.5rem 0.85rem 0.25rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.05em;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.autocomplete-group-header:first-child {
  border-top: none;
}

.autocomplete-item {
  padding: 0.6rem 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
  user-select: none;
}

.autocomplete-item:hover, .autocomplete-item.active {
  background-color: #f1f5f9;
}

.autocomplete-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1e293b;
}

.autocomplete-item-sub {
  font-size: 0.825rem;
  color: #64748b;
  margin-left: 0.75rem;
}

/* Sidebar Admin Styling */
.admin-sidebar {
  width: 260px;
  background: var(--secondary-color);
  color: #f8fafc;
  min-height: 100vh;
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.1);
}

.admin-sidebar .nav-link {
  color: #94a3b8;
  font-weight: 500;
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  margin-bottom: 0.25rem;
  transition: all 0.2s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.admin-sidebar .nav-link i {
  margin-right: 0.75rem;
  font-size: 1.1rem;
}

/* Tablet UI Card Styling */
.room-card {
  border: none;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  overflow: hidden;
}

.room-card:hover, .room-card:active {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15);
  border: 2px solid var(--primary-color);
}

/* Numpad PIN Buttons */
.btn-numpad {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  user-select: none;
  touch-action: manipulation;
}

.btn-numpad:active {
  transform: scale(0.92);
  background-color: #cbd5e1;
}

/* Embedded PDF Container */
.pdf-viewer-frame {
  width: 100%;
  height: 650px;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

/* Pulse animation for network badge */
@keyframes pulse-status {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.pulse-badge {
  animation: pulse-status 2s infinite ease-in-out;
}
