:root {
  --primary-dark: #05152b;
  --primary-blue: #38b6ff;
  --secondary-blue: #0679a7;
  --tertiary-blue: #3893c3;
  --white: #ffffff;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--primary-dark);
  color: var(--white);
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  opacity: 0.1;
  background: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect x="30" y="10" width="40" height="40" rx="20" fill="none" stroke="%230679a7" stroke-width="2"/><rect x="60" y="60" width="30" height="30" rx="15" fill="none" stroke="%2338b6ff" stroke-width="2"/></svg>');
  background-repeat: repeat;
  pointer-events: none;
}

.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#header-image {
  display: block;
  margin: 0 auto 2rem;
  max-height: 250px;
  width: 1100px;
  user-select: none;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.3));
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--white);
}

header p {
  color: #cbd5e1;
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

.search-container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 8px 18px rgba(56, 182, 255, 0.18);
  transition: box-shadow 0.3s ease;
}

.search-container:hover {
  box-shadow: 0 12px 30px rgba(56, 182, 255, 0.3);
}

label[for="input-names"] {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
  display: block;
  margin-bottom: 0.75rem;
  user-select: none;
}

input#input-names {
  flex-grow: 1;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(156, 163, 175, 0.5);
  color: var(--white);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-weight: 500;
  caret-color: var(--primary-blue);
  user-select: text;
  min-width: 0;
}

input#input-names::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

input#input-names:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 8px var(--primary-blue);
  background-color: rgba(255, 255, 255, 0.15);
}

.search-btn {
  background: linear-gradient(to right, var(--secondary-blue), var(--primary-blue));
  color: var(--white);
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 0.75rem;
  margin-left: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: none;
  user-select: none;
  position: relative;
  box-shadow: 0 4px 8px rgba(56, 182, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 120px;
}

.search-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.search-btn:not(:disabled):hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(56, 182, 255, 0.6);
}

.spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid var(--white);
  border-radius: 50%;
  width: 1.25rem;
  height: 1.25rem;
  animation: spin 1s linear infinite;
  margin-left: 0.5rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.tab {
  cursor: default;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  color: var(--primary-blue);
  border-bottom: 2px solid var(--tertiary-blue);
  user-select: none;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
}

.results-wrapper {
  margin-top: 1.5rem;
  overflow-x: auto;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 18px rgba(56, 182, 255, 0.18);
  padding-bottom: 0.5rem;
  max-height: 70vh;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-blue) transparent;
  transition: box-shadow 0.3s ease;
  background-color: rgba(0, 0, 0, 0.15);
  font-size: 0.95rem;
  line-height: 1.4;
}

.results-wrapper:hover {
  box-shadow: 0 12px 30px rgba(56, 182, 255, 0.3);
}

.results-wrapper::-webkit-scrollbar {
  height: 8px;
}

.results-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.results-wrapper::-webkit-scrollbar-thumb {
  background-color: var(--primary-blue);
  border-radius: 4px;
}

table.jotform-table {
  width: 1500px !important;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--white);
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
  user-select: none;
  transition: background-color 0.3s ease;
}

table.jotform-table thead th {
  position: sticky;
  top: 0;
  background-color: var(--primary-dark);
  color: var(--primary-blue);
  padding: 1rem;
  font-weight: 700;
  border-bottom: 2px solid rgba(56, 182, 255, 0.5);
  white-space: nowrap;
  z-index: 10;
  user-select: none;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

table.jotform-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  white-space: pre-line;
  vertical-align: top;
  font-weight: 500;
}

table.jotform-table tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.04);
}

table.jotform-table tbody tr:hover {
  background-color: rgba(56, 182, 255, 0.25);
  transition: background-color 0.15s ease;
}

.error-message {
  margin-top: 1rem;
  color: #ef4444;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
}

#emptyState {
  display: none;
  margin: 2rem auto 0;
  max-width: 300px;
  text-align: center;
  color: #9ca3af;
  font-size: 1rem;
  user-select: none;
  opacity: 0.8;
  font-style: italic;
}

@media (max-width: 1024px) {
  table.jotform-table {
    width: 1200px !important;
  }
}

@media (max-width: 768px) {
  table.jotform-table {
    width: 1000px !important;
  }
}

@media (max-width: 480px) {
  table.jotform-table {
    width: 800px !important;
  }

  .search-container {
    padding: 1.5rem 1rem;
  }

  input#input-names {
    font-size: 0.9rem;
  }

  .search-btn {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

