* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
  transition: background 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text);
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}
h2 {
  font-size: 2rem;
  margin: 2rem 0 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
p {
  margin-bottom: 1rem;
  color: var(--text-light);
}
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}
a:hover {
  color: var(--primary-hover);
}
.btn {
  --btn-padding-y: 0.5rem;
  --btn-padding-x: 1rem;
  --btn-font-size: 0.875rem;
  --btn-line-height: 1.5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--btn-padding-y) var(--btn-padding-x);
  font-size: var(--btn-font-size);
  font-weight: 500;
  line-height: var(--btn-line-height);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  border: 1px solid transparent;
  border-radius: var(--border-radius);
  background-color: var(--primary-color);
  color: #fff;
  transition: all 0.2s ease;
  min-height: 44px;
  min-width: 44px;
  position: relative;
  overflow: hidden;
}

/* Ripple effect for better touch feedback */
.btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.btn:active::after {
  opacity: 1;
  transition: opacity 0s;
}

.btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn:active {
  transform: scale(0.98);
  box-shadow: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

/* Disable hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
  .btn:hover {
    transform: none;
    box-shadow: none;
  }
}
.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  transition: all 0.2s ease, background-color 0.15s ease;
}

.btn-outline:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

/* Active state for touch devices */
.btn-outline:active {
  background-color: var(--primary-light);
  transform: scale(0.98);
  transition: transform 0.1s ease, background-color 0.1s ease;
}

/* Disable hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
  .btn-outline:hover {
    background-color: transparent;
  }
  
  .btn-outline:active {
    background-color: var(--primary-light);
  }
}
.btn-sm {
  --btn-padding-y: 0.25rem;
  --btn-padding-x: 0.75rem;
  --btn-font-size: 0.75rem;
}
.btn-lg {
  --btn-padding-y: 0.75rem;
  --btn-padding-x: 1.5rem;
  --btn-font-size: 1rem;
}
.btn-block {
  display: block;
  width: 100%;
}
.glass-card {
  background: var(--surface);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border);
}
.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
}
.form-control {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: var(--surface);
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus {
  outline: 0;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
nav {
  --nav-height: 1.7rem;
  --nav-padding: 0.2rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 50;
  transition: var(--transition);
  padding: var(--nav-padding);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
}
.nav-logo i {
  color: var(--primary-color);
  font-size: 1.25rem;
}
.nav-logo span {
  background: linear-gradient(90deg, var(--primary-color), #7c3aed);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.theme-toggle {
  background: var(--background);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-left: auto;
  box-shadow: var(--shadow);
}
.theme-toggle:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.theme-toggle:active {
  transform: translateY(0);
}
.theme-toggle:focus {
  outline: 0;
  box-shadow: 0 0 0 3px var(--primary-light);
}
.theme-toggle i {
  font-size: 1.1rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: absolute;
}
.theme-toggle .fa-moon {
  color: #4b5563;
  opacity: 1;
}
.theme-toggle .fa-sun {
  color: #f59e0b;
  opacity: 0;
}
[data-theme="dark"] .theme-toggle .fa-moon {
  opacity: 0;
}
[data-theme="dark"] .theme-toggle .fa-sun {
  opacity: 1;
}
.hero {
  background: linear-gradient(135deg, var(--primary-light) 0, #f5f3ff 100%);
  padding: 4rem 1rem;
  position: relative;
  overflow: hidden;
}
.hero-content {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}
.status-found {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}
.status-not-found {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}
.status-error {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}
.results-section {
  margin-top: 2rem;
  display: none;
}
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.results-actions {
  display: flex;
  gap: 0.75rem;
}
.table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}
td,
th {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  background: var(--surface-elevated);
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
tr:last-child td {
  border-bottom: none;
}
footer {
  background: var(--surface);
  color: var(--text);
  padding: 3rem 1rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.footer-links a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--primary-color);
  text-decoration: none;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  .hero {
    padding: 3rem 1rem;
  }
  .btn-group,
  .results-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  .btn-group .btn,
  .results-actions .btn {
    width: 100%;
  }
  html {
    font-size: 15px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }
}
[data-theme="dark"] {
  --primary-color: #60a5fa;
  --primary-hover: #3b82f6;
  --primary-light: #1e3a8a;
  --primary-dark: #93c5fd;
  --background: #0f172a;
  --surface: #1e293b;
  --surface-elevated: #334155;
  --text: #f8fafc;
  --text-secondary: #e2e8f0;
  --text-tertiary: #94a3b8;
  --border: #334155;
  --border-hover: #475569;
  --divider: #1e293b;
  --success: #34d399;
  --success-light: #064e3b;
  --error: #f87171;
  --error-light: #7f1d1d;
  --warning: #fbbf24;
  --warning-light: #78350f;
  --info: #60a5fa;
  --info-light: #1e3a8a;
  --glass-bg: rgba(30, 41, 59, 0.4);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.5), 0 1px 2px -1px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5),
    0 2px 4px -2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5),
    0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5),
    0 8px 10px -6px rgba(0, 0, 0, 0.4);
  scrollbar-width: thin;
  scrollbar-color: #334155 #1e293b;
}
[data-theme="dark"]::-webkit-scrollbar {
  width: 8px;
}
[data-theme="dark"]::-webkit-scrollbar-track {
  background: #1e293b;
}
[data-theme="dark"]::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
[data-theme="dark"]::-webkit-scrollbar-thumb:hover {
  background: #475569;
}
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #0f172a 0, #1e1b4b 100%);
}
[data-theme="dark"] .status-found {
  background: rgba(52, 211, 153, 0.15);
  color: #4ade80;
}
[data-theme="dark"] .status-not-found {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}
[data-theme="dark"] .status-error {
  background: rgba(251, 146, 60, 0.15);
  color: #fb923c;
}
[data-theme="dark"] ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
[data-theme="dark"] ::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 4px;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: #475569;
}
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-arrow:hover .arrow {
  animation: none;
  transform: translateY(5px) translateX(-50%);
  transition: transform 0.3s ease;
}

.scroll-indicator:hover .scroll-text {
  color: var(--primary-color);
  transition: color 0.3s ease;
}

:root {
  --primary-color: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: rgba(99, 102, 241, 0.1);
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --bg-primary: #f0f2f5;
  --bg-secondary: rgba(255, 255, 255, 0.7);
  --text: #1f2937;
  --text-light: #4b5563;
  --text-lighter: #6b7280;
  --border: rgba(0, 0, 0, 0.1);
  --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  --glass-blur: blur(16px);
  --glass-border: 1px solid rgba(255, 255, 255, 0.3);
  --glass-bg: rgba(255, 255, 255, 0.2);
}
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: rgba(30, 41, 59, 0.7);
  --text: #f8fafc;
  --text-light: #cbd5e1;
  --text-lighter: #94a3b8;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
  --glass-bg: rgba(30, 41, 59, 0.4);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--bg-primary);
  transition: background 0.3s ease;
}
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease, color 0.3s ease;
  padding: 0;
  margin: 0;
}
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 16px;
  border: var(--glass-border);
  box-shadow: var(--shadow);
  padding: 2rem;
  transition: all 0.3s ease;
}
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
}
nav {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  transition: all 0.3s ease;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
  background: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.btn:active {
  transform: translateY(0);
}
.btn-outline {
  background: 0 0;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}
.btn-outline:hover {
  background: var(--primary-light);
  color: var(--primary-color);
}
input[type="email"],
input[type="text"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-secondary);
  color: var(--text);
  transition: all 0.3s ease;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
input[type="email"]:focus,
input[type="text"]:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-secondary);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
td,
th {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  background: var(--glass-bg);
  font-weight: 600;
  color: var(--text);
}
tr:last-child td {
  border-bottom: none;
}
.text-center {
  text-align: center;
}
.mt-4 {
  margin-top: 1.5rem;
}
.mb-4 {
  margin-bottom: 1.5rem;
}
.p-4 {
  padding: 1.5rem;
}
.rounded-lg {
  border-radius: 12px;
}
/* Mobile Card Styles */
.reference-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.reference-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.card-index {
  font-weight: 700;
  margin-right: 0.75rem;
  color: var(--primary-color);
  min-width: 1.5rem;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  line-height: 1.5;
}

.card-label {
  font-weight: 600;
  color: var(--text-light);
  min-width: 4rem;
  flex-shrink: 0;
}

.card-value {
  flex: 1;
  word-break: break-word;
}

.card-input {
  color: var(--text-light);
  font-size: 0.9em;
  font-style: italic;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-found {
  background-color: #dcfce7;
  color: #166534;
}

.status-not-found {
  background-color: #fee2e2;
  color: #991b1b;
}

.status-error {
  background-color: #fef3c7;
  color: #92400e;
}

.text-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

.text-link:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .mobile-results {
    display: block !important;
  }
  
  .desktop-results {
    display: none !important;
  }
  
  .reference-card {
    padding: 1rem;
  }
  
  .card-row {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .card-label {
    min-width: 100%;
  }
}

/* Base responsive styles */
:root {
  --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-inset-top: env(safe-area-inset-top, 0px);
  --safe-area-inset-left: env(safe-area-inset-left, 0px);
  --safe-area-inset-right: env(safe-area-inset-right, 0px);
}

/* Responsive typography */
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* Touch target sizes */
button, 
input[type="button"], 
input[type="submit"],
.btn,
.export-btn {
  min-height: 44px;
  min-width: 44px;
}

/* Form elements */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
  font-size: 16px; /* Prevent iOS zoom on focus */
}

/* Container adjustments */
.container {
  padding-left: max(1rem, var(--safe-area-inset-left));
  padding-right: max(1rem, var(--safe-area-inset-right));
}

/* Responsive images */
img {
  max-width: 100%;
  height: auto;
}

/* Responsive tables */
table {
  width: 100%;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Modal/dialog adjustments */
dialog {
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
  margin: 0;
  border: none;
  padding: 1rem;
  box-sizing: border-box;
}

/* Mobile Navigation */
.mobile-menu-btn {
  display: none; /* Hidden by default, shown on mobile */
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  background-color: var(--text);
  position: absolute;
  height: 2px;
  width: 24px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  left: 0;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  padding: 1rem 0;
  margin-top: 1rem;
  border: 1px solid var(--border);
}

.mobile-menu-link {
  padding: 0.75rem 1.5rem;
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.mobile-menu-link:hover,
.mobile-menu-link:focus {
  background-color: var(--background);
  color: var(--primary-color);
}

/* Show/hide mobile menu */
.mobile-menu.active {
  display: flex;
}

/* Responsive breakpoints */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .container {
    padding: 0 1.25rem;
  }
  .glass-card {
    padding: 1.5rem;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--primary-color);
  color: #fff;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
  transform: translateY(0);
  font-style: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.btn-outline {
  background: 0 0;
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.btn-outline:hover {
  background: var(--primary-light);
}
.hero {
  background: linear-gradient(135deg, var(--primary-light) 0, #f5f3ff 100%);
  padding: 4rem 1rem;
}
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #0f172a 0, #1e1b4b 100%);
}
@media (min-width: 768px) {
  .hero {
    padding: 6rem 1rem;
  }
}
.reference-checker {
  max-width: 1200px;
  margin: 2rem auto;
  background: var(--surface);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.reference-checker-header {
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), #7c3aed);
}
.reference-checker-body {
  padding: 1.5rem;
}
.results-section {
  margin-top: 2rem;
  display: none;
}
.results-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: var(--surface);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.results-table td,
.results-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.results-table th {
  background: var(--background);
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}
.status-found {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
}
.status-not-found {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}
[data-theme="dark"] .status-found {
  background: rgba(52, 211, 153, 0.15);
  color: #4ade80;
}
[data-theme="dark"] .status-not-found {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}
[data-theme="dark"] .status-error {
  background: rgba(251, 146, 60, 0.15);
  color: #fb923c;
}
[data-theme="dark"] ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
[data-theme="dark"] ::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 4px;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: #475569;
}
footer {
  background: var(--surface);
  color: var(--text);
  padding: 3rem 1rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.footer-heart {
  color: var(--error);
  display: inline-block;
  animation: heartbeat 1.5s infinite;
}
.results-table {
  display: block;
  overflow-x: auto;
}
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast i {
  font-size: 1.25rem;
}
.toast.success i {
  color: var(--success);
}
.toast.error i {
  color: var(--error);
}
.toast.warning i {
  color: var(--warning);
}
.toast.info i {
  color: var(--info);
}
.export-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.export-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary-color);
  transform: translateY(-1px);
}
.export-btn:active {
  transform: translateY(0);
}
.export-btn i {
  font-size: 0.875rem;
}
.export-btn .btn-text {
  font-size: 0.6875rem;
  font-weight: 500;
}
/* Mobile-specific styles */
@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }
  
  /* Base button styles for mobile */
  .btn, .btn-outline, .export-btn, .action-btn {
    min-height: 48px;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    touch-action: manipulation;
  }
  
  /* Ensure all interactive elements have proper touch targets */
  button, [role="button"], .export-btn, .action-btn, .tab-button, .filter-btn {
    min-height: 44px;
    min-width: 44px;
    padding: 0.5rem 1rem;
  }
  
  /* Fix for iOS button styles */
  button,
  input[type="button"],
  input[type="submit"],
  input[type="reset"],
  .btn,
  .export-btn {
    -webkit-border-radius: 0;
    border-radius: var(--border-radius);
  }
  
  /* Improve touch feedback */
  .reference-card,
  .tab-button,
  .filter-btn {
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.1s ease, opacity 0.1s ease;
  }
  
  .reference-card:active,
  .tab-button:active,
  .filter-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
  }
  
  /* Fix for iOS input zoom */
  @supports (-webkit-touch-callout: none) {
    input,
    select,
    textarea {
      font-size: 16px !important;
    }
  }
  
  /* Fix for iOS hover states */
  a, button, [role="button"], .btn, .export-btn {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Ensure form elements are tappable */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  textarea,
  select {
    min-height: 48px;
    padding: 0.75rem 1rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }
  
  /* Fix for iOS select elements */
  select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1em;
    padding-right: 2.5rem;
  }
  nav {
    --nav-padding: 0.1rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
  .nav-inner {
    padding: 0 0.25rem;
  }
  .btn-group {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }
  .export-btn {
    min-height: 2.25rem !important;
    padding: 0.375rem 0.25rem !important;
  }
  .export-btn i {
    font-size: 0.75rem;
  }
  .export-btn .btn-text {
    font-size: 0.625rem;
  }
}

/* File Upload Animations */
@keyframes fileUploadPulse {
  0% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 0.7; }
}

@keyframes checkmark {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.file-upload-hover {
  animation: fileUploadPulse 1.5s infinite ease-in-out;
  border-color: var(--primary-color) !important;
  background-color: rgba(99, 102, 241, 0.1) !important;
}

.upload-success {
  position: relative;
  border-color: #10b981 !important;
  background-color: rgba(16, 185, 129, 0.1) !important;
  transition: all 0.3s ease;
}

.upload-success::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background-color: #10b981;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  animation: checkmark 0.5s ease-out;
  z-index: 2;
}

.upload-success .upload-icon,
.upload-success .upload-text {
  opacity: 0;
  transition: opacity 0.3s ease;
}
