body {
  background-color: #ffffff;
}

header {
  margin-bottom: 2rem;
  padding: 1rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  background-color: #ddf0ff;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  text-align: center;
}

#company-prompt,
#job-prompt {
  padding: 10px;
}

#talent-insights-list,
#employee-container {
  scroll-margin-bottom: 6rem;
}

.table-container {
  overflow-x: auto;
  border-radius: 0.75rem;
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px 0 rgba(0, 0, 0, 0.06);
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
}

.dark .table-container {
  background-color: #1f2937;
  border-color: #374151;
}

.table-section {
  width: 100%;
  margin-bottom: 2.5rem;
}

.table-menu {
  display: flex;
  flex-direction: column;
}

.table-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-right: 0.5rem;
}

.table-title-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.table-title-controls {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  margin: 0.5rem 0;
  gap: 0.5rem;
}

.input-label-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

/* View mode dropdown container */
.view-mode-container {
  flex-shrink: 0;
  margin-right: 0;
}

/* Alternating row colors */
table tr:nth-child(even) {
  background-color: #f9fafb; /* Tailwind's gray-50 */
}
.dark table tr:nth-child(even) {
  background-color: #1f2937; /* Tailwind's gray-800 */
}

table tr:nth-child(odd) {
  background-color: #ffffff; /* White */
}
.dark table tr:nth-child(odd) {
  background-color: #111827; /* Tailwind's gray-900 */
}

/* Hover highlight */
table tr:hover {
  background-color: #f3f4f6; /* Tailwind's gray-100 */
}
.dark table tr:hover {
  background-color: #4b5563; /* Tailwind's gray-600 */
}

/* Column dividing line */
td:not(:last-child) {
  border-right: 1px solid #e5e7eb;
}
.dark td:not(:last-child) {
  border-right: 1px solid #4b5563;
}

th:not(:last-child) {
  border-right: 1px solid #e5e7eb;
}
.dark th:not(:last-child) {
  border-right: 1px solid #4b5563;
}

th {
  background-color: #f3f4f6; /* Tailwind's gray-100 */
  border: none;
  padding: 0.75rem 1rem;
}
.dark th {
  background-color: #374151; /* Tailwind's gray-700 */
}

td {
  border: none;
  padding: 0.75rem 1rem;
  text-align: left;
}

/* Center non-text content in table cells */
td button,
td select,
/* td input[type="checkbox"], */
td img {
  display: block;
  margin: 0 auto;
}

td button,
td select {
  min-width: auto;
}

/* Definition list */
dl {
  margin: 0px;
  padding: 0px;
}
dt,
dd {
  display: inline;
}
dt {
  font-weight: bold;
  margin-top: 0.5em;
}
dt::after {
  content: ": ";
}
/* force a line break after each dd */
dd::after {
  content: "";
  display: block;
  height: 0;
}
dd p {
  line-height: 1.5;
  margin-block: 5px 0;
  display: inline;
}
dd {
  margin-left: 5px;
}

.dark select {
  border-color: #4b5563;
  background-color: #111827;
  color: #ffffff;
}

/* Section */
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0.5rem 0;
}

.section-title h2 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #6366f1;
  letter-spacing: -0.025em;
}

.dark .section-title h2 {
  color: #a5b4fc;
}

.section-content {
  overflow-x: auto;
  border-radius: 0.5rem;
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px 0 rgba(0, 0, 0, 0.06);
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
}

.dark .section-content {
  background-color: #1f2937;
  border-color: #374151;
}

/* SVG on image */
.svg-overlay-image-wrapper {
  /* To position SVG overlay relative to it */
  position: relative;
  display: inline-block;
  /* Constrains container to the image's rendered size */
  width: fit-content;
  height: fit-content;
}

/* look like styled link (not buttons) */
.link-btn {
  color: #6366f1; /* Tailwind's indigo-500 */
  text-decoration: underline;
  margin-left: 0.5rem;
}
.link-btn:hover {
  color: #4338ca; /* Tailwind's indigo-700 */
}
.link-btn-no-underline {
  color: #6366f1; /* Tailwind's indigo-500 */
  text-decoration: none;
  margin-left: 0.5rem;
}
.link-btn-no-underline:hover {
  color: #4338ca; /* Tailwind's indigo-700 */
  text-decoration: none;
}

/* Delete button styling */
.delete-btn {
  color: #ef4444; /* Tailwind's red-500 */
  cursor: pointer;
  display: block;
  margin: 0 auto;
  text-align: center;
  width: fit-content;
  transition: all 0.15s ease-in-out;
}
.delete-btn:hover {
  transform: scale(1.1);
}

.delete-btn svg {
  display: block;
  margin: 0 auto;
}

.delete-btn:hover svg circle {
  fill: #dc2626; /* on hover, filled circle is darker red */
}

/* Filter button styling */
.filter-btn {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: #e0e7ff;
  color: #0077b5;
  transition: all 0.15s ease-in-out;
}

.filter-btn:hover {
  background-color: #c7d2fe;
}

.dark .filter-btn {
  background-color: #3730a3;
  color: #ffffff;
}

.dark .filter-btn:hover {
  background-color: #312e81;
}

/* Navigation container for header */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-items {
  display: flex;
  align-items: center;
}

/* Logo container */
.logo-container {
  display: flex;
  align-items: center;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: bold;
  margin-left: 0.75rem;
  color: #0077b5;
}

.dark .logo-text {
  color: #ddf0ff;
}

/* Main content wrapper */
.main-wrapper {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  margin-bottom: 20px;
  padding: 0 1.5rem;
}

.map-positioner {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow:
    0 1px 3px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px 0 rgba(0, 0, 0, 0.06);
  min-height: 300px;
}

/* Natural language input styling */
.natural-language-input {
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  background-color: #ffffff;
  color: #111827;
  min-width: 32ch;
  width: 48ch;
  max-width: 100%;
  height: 2.5rem;
}

.natural-language-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.dark .natural-language-input {
  border-color: #4b5563;
  background-color: #111827;
  color: #ffffff;
}

/* label styling */
.textarea-label {
  font-size: 1.25rem; /* text-xl */
  font-weight: 600; /* font-semibold */
  margin-bottom: 0.25rem;
  color: #374151; /* Tailwind's gray-700 */
}

.ai-label {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  background-color: #e0e7ff;
  color: #0077b5;
  cursor: pointer;
  white-space: nowrap; /* Prevent label text from wrapping */
}

.dark .ai-label {
  background-color: #3730a3;
  color: #ffffff;
}

/* Pagination controls */
.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.pagination-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  transition: all 0.15s ease-in-out;
}

.pagination-btn:disabled {
  color: #9ca3af;
  cursor: not-allowed;
}

.pagination-btn:not(:disabled) {
  color: #6366f1;
}

.pagination-btn:not(:disabled):hover {
  background-color: #eef2ff;
}

.dark .pagination-btn {
  background-color: #1f2937;
  border-color: #374151;
}

.dark .pagination-btn:not(:disabled) {
  color: #a5b4fc;
}

.dark .pagination-btn:not(:disabled):hover {
  background-color: #374151;
}

/* SPA */
.spa-page {
  width: 100%;
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  min-height: 100vh;
}

.crawl-message {
  margin-top: 1rem;
  padding: 1rem;
  background-color: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s,
    visibility 0.5s;
  max-width: 100vw; /* Prevents overflow horizontally */
  box-sizing: border-box; /* Includes padding in width */
  word-break: break-word; /* Breaks long words */
  overflow-wrap: break-word; /* Ensures wrapping for long URLs or text */
}

.crawl-message.show {
  opacity: 1;
  visibility: visible;
}

.dark .crawl-message {
  background-color: #374151; /* dark:bg-gray-700 */
  border-color: #374151; /* dark:border-gray-600 */
}

#main-content {
  position: relative;
  overflow: hidden;
}

.form-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: #f9fafb; /* Tailwind's gray-50 */ /* #ffffff; */
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.dark .form-container {
  background-color: #1f2937;
  border-color: #374151;
}

/* Project header for step 2 */
.project-header {
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  margin-bottom: 1rem;
}

.project-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-radius: 0.375rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.dark .project-controls {
  background-color: #1f2937;
}

/* Project name editable styling */
.project-name-editable {
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.15s ease-in-out;
}

.dark .project-name-editable {
  background-color: #111827;
  color: #ffffff;
}

.project-name-editing {
  background-color: #ffffff;
  border: 2px solid #3b82f6;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  outline: none;
}

.dark .project-name-editing {
  background-color: #111827;
  color: #ffffff;
  border-color: #ddf0ff;
}

/* Tables wrapper for step 2 */
.tables-wrapper {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  margin-bottom: 20px;
  padding: 0 1.5rem;
}

/* Profile image container */
.profile-image-container {
  position: relative;
}

.profile-image {
  width: 8rem;
  height: 8rem;
  max-width: 8rem;
  max-height: 8rem;
  min-width: 60px;
  min-height: 60px;
  border-radius: 50%;
  border: 3px solid #c7d2fe;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  object-fit: cover;
}

.dark .profile-image {
  border-color: #3730a3;
}

.profile-status-indicator {
  position: absolute;
  bottom: 0.25rem;
  right: 0.25rem;
  display: block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background-color: #22c55e;
  border: 2px solid #ffffff;
}

.dark .profile-status-indicator {
  border-color: #111827;
}

/* Employee card */
.employee-card-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.profile-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  margin-left: auto;
  margin-right: auto;
  background-color: #f3f4f6;
}
.dark .profile-avatar {
  background-color: #374151;
}

/* Contact button styling */
.contact-btn {
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  background-color: #e0e7ff;
  color: #0077b5;
  font-weight: 500;
  transition: all 0.15s ease-in-out;
}

.contact-btn:hover {
  background-color: #c7d2fe;
}

.dark .contact-btn {
  background-color: #3730a3;
  color: #ffffff;
}

.dark .contact-btn:hover {
  background-color: #312e81;
}

/* Card table styling */
.card-info-table {
  table-layout: fixed;
}

.card-info-table td:first-child {
  width: 30%;
  min-width: 150px;
}

.card-info-table td:last-child {
  width: 70%;
}

/* Card content */
.card-article {
  position: relative;
  display: flex;
  justify-content: center;
  width: fit-content;
  max-width: 1200px;
  max-height: 90vh;
  margin: 0 0;
  z-index: 99999999;
  overflow: hidden;
  border-radius: 20px;
}

.card-container {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #eef2ff 50%, #e0e7ff 100%);
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 2rem;
  padding-top: 5rem;
  max-width: 1700px;
  overflow-y: auto;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.dark .card-container {
  background: linear-gradient(135deg, #111827 0%, #1f2937 50%, #111827 100%);
  border-color: #374151;
}

.card-top-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  z-index: 30;
}

.card-close-btn {
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 50%;
  padding: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.15s ease-in-out;
  flex-shrink: 0;
}

.card-close-btn:hover {
  background-color: #fef2f2;
}

.dark .card-close-btn {
  background-color: #1f2937;
  border-color: #374151;
}

.dark .card-close-btn:hover {
  background-color: #7f1d1d;
}

.card-tickbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  white-space: nowrap;
  margin-bottom: 0;
}

/* Card navigation buttons */
.card-nav-btn {
  position: static;
  z-index: 15;
  background-color: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 50%;
  padding: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.15s ease-in-out;
  flex-shrink: 0;
}

.card-nav-btn:hover {
  background-color: #eef2ff;
}

.card-nav-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
}

.dark .card-nav-btn {
  background-color: #1f2937;
  border-color: #4b5563;
}

.dark .card-nav-btn:hover {
  background-color: #3730a3;
}

/* Scrollbar styling for better UX */
.card-container::-webkit-scrollbar {
  width: 10px;
}

.card-container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.card-container::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.card-container::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.dark .card-container::-webkit-scrollbar-track {
  background: #1e293b;
}

.dark .card-container::-webkit-scrollbar-thumb {
  background: #475569;
}

.dark .card-container::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Chart rendering */
.charts-grid {
  margin-top: 1rem;
}

.chart-container {
  position: relative;
  height: 230px;
  background-color: #f9fafb; /* Tailwind's gray-50 for light mode */
  transition: background-color 0.15s ease-in-out;
}

.dark .chart-container {
  background-color: #374151; /* Tailwind's gray-700 for dark mode */
}

.dark .chart-container {
  background-color: #374151;
}

.prototype-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: transparent; /* #cccccc; */
  /* opacity: 0.3; */
  z-index: 10000000;
  pointer-events: none;
}

.prototype-text {
  font-size: 70px;
  position: fixed;
  top: 50%;
  left: 50%;
  margin-left: -142px;
  margin-right: -142px;
  text-align: center;
  transform: rotateZ(-45deg);
  color: #999999;
  opacity: 0.5;
}

.linkedin-logo {
  width: 1.25rem; /* 20px, equivalent to w-5 */
  height: 1.25rem; /* 20px, equivalent to h-5 */
  display: inline-block;
  vertical-align: middle;
  background-color: #fff;
}

.dark .linkedin-logo {
  background-color: #1f2937; /* Tailwind's gray-800 */
}

/* utility classes */
.center-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Responsiveness */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .nav-menu {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .header-dark-toggle {
    width: 100%;
    justify-content: flex-end;
    margin-top: 0.5rem;
  }
  .logo-name {
    margin-bottom: 0.5rem;
  }

  main {
    padding: 0.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  section.spa-page {
    padding: 0.75rem 0.5rem;
    margin-bottom: 1rem;
  }

  .project-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-container {
    padding: 1.5rem 1rem;
    margin: 0 auto;
  }

  .form-container form {
    gap: 1.5rem;
  }

  .tables-wrapper {
    padding: 0 1rem;
  }

  .card-container {
    box-sizing: border-box;
    overflow-y: auto;
  }

  .card-top-controls {
    top: 0.75rem;
    right: 1.875rem;
  }

  #company-card-content .card-top-controls {
    right: 1.25rem;
  }

  .card-nav-btn-left {
    margin-left: 0.5rem;
  }
  .card-nav-btn-right {
    margin-right: 0.5rem;
  }

  .natural-language-input {
    width: 100%;
    min-width: auto;
  }

  .profile-image {
    width: 20vw;
    height: 20vw;
    max-width: 120px;
    max-height: 120px;
  }

  .crawl-message {
    font-size: 0.95rem;
    padding: 0.75rem;
  }

  .input-label-group,
  .view-mode-container {
    width: 100%;
    justify-content: flex-start;
  }

  .view-mode-container {
    margin-left: 0;
    margin-right: 0;
  }

  .view-mode-container {
    width: 100%;
    display: flex;
    justify-content: flex-end; /* Push select to the right */
    margin-left: 0;
    margin-right: 0;
  }

  /* Hide less important table columns on mobile */
  /* Company table - hide Country, Company Page, and Visualize columns */
  #company-table th:nth-child(3),
  #company-table td:nth-child(3),
  #company-table th:nth-child(4),
  #company-table td:nth-child(4),
  #company-table th:nth-child(7),
  #company-table td:nth-child(7) {
    display: none;
  }

  /* Employee table - hide Profile picture, Location, and Contact details columns */
  #employee-table th:nth-child(1),
  #employee-table td:nth-child(1),
  #employee-table th:nth-child(5),
  #employee-table td:nth-child(5),
  #employee-table th:nth-child(8),
  #employee-table td:nth-child(8) {
    display: none;
  }

  /* Employee table - prevent name wrapping and add ellipsis */
  #employee-table td:nth-child(2) {
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Hide Register/Login link in top navigation on mobile */
  .nav-items a:nth-child(3) {
    display: none;
  }

  /* Hide some download links on mobile to save space */
  .flex.items-center.gap-2 a:nth-child(2),
  .flex.items-center.gap-2 a:nth-child(3) {
    display: none;
  }

  /* Make project controls stack vertically on mobile */
  .flex.items-center.justify-between {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .flex.items-center.gap-2 {
    flex-wrap: wrap;
  }

  /* Improve header navigation on tablet */
  header .flex.items-center.justify-between {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .nav-items {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  /* Hide tick-box in company card on mobile */
  #company-card-content .card-tickbox {
    display: none;
  }

  /* Fix text overflow in company card tables */
  #company-card-content .card-info-table td {
    max-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #company-card-content .card-info-table td:first-child {
    max-width: 120px;
  }

  #company-card-content .card-info-table td:last-child {
    max-width: 200px;
  }

  /* Fix text overflow in employee card tables */
  #employee-card-content .card-info-table td {
    max-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #employee-card-content .card-info-table td:first-child {
    max-width: 120px;
  }

  #employee-card-content .card-info-table td:last-child {
    max-width: 200px;
  }

  /* Hide employee card tick-box on mobile */
  #employee-card-content .card-tickbox {
    display: none;
  }
}

/* Extra small screens (iPhone-sized) */
@media (max-width: 480px) {
  main {
    padding: 0.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  section.spa-page {
    padding: 0.5rem 0.5rem;
    margin-bottom: 0.75rem;
  }

  .view-mode-container {
    margin: 0.25rem 0;
  }

  .table-title-controls {
    flex-direction: column;
  }

  .card-container {
    box-sizing: border-box;
    overflow-y: auto;
  }

  .card-top-controls {
    top: 0.5rem;
    right: 1.625rem;
  }

  #company-card-content .card-top-controls {
    right: 1rem;
  }

  .card-nav-btn {
    padding: 0.375rem;
  }
  .card-nav-btn svg {
    width: 20px;
    height: 20px;
  }

  .card-nav-btn-left {
    margin-left: 0.5rem;
  }
  .card-nav-btn-right {
    margin-right: 0.5rem;
  }

  .crawl-message {
    font-size: 0.9rem;
    padding: 0.5rem;
  }

  .form-container {
    padding: 1rem 0.5rem;
    margin: 0;
  }

  .form-container form {
    gap: 1rem;
  }

  /* Hide additional columns on very small screens (iPhone size) */
  /* Company table - keep only Name, Employee count, Status, Delete */
  #company-table th:nth-child(5),
  #company-table td:nth-child(5),
  #company-table th:nth-child(6),
  #company-table td:nth-child(6) {
    display: none;
  }

  /* Employee table - keep only Name, Company, Score, Status, Delete */
  #employee-table th:nth-child(4),
  #employee-table td:nth-child(4),
  #employee-table th:nth-child(6),
  #employee-table td:nth-child(6),
  #employee-table th:nth-child(7),
  #employee-table td:nth-child(7) {
    display: none;
  }

  /* Employee table - prevent name wrapping on small screens */
  #employee-table td:nth-child(2) {
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Stack header elements vertically on small screens */
  header .flex.items-center.justify-between {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .logo-container {
    justify-content: center;
  }

  .nav-items {
    justify-content: center;
  }

  /* Ensure tables are scrollable horizontally */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Reduce padding for better mobile experience */
  header {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0;
  }

  .main-wrapper {
    padding: 0 0.5rem;
  }

  /* Company table - minimal columns: Name, Employee count, Delete */
  #company-table th:nth-child(2),
  #company-table td:nth-child(2) {
    width: 80px;
    font-size: 0.875rem;
  }

  /* Employee table - minimal columns: Name, Company, Delete */
  #employee-table th:nth-child(6),
  #employee-table td:nth-child(6) {
    display: none;
  }

  /* Employee table - prevent name wrapping on very small screens */
  #employee-table td:nth-child(2) {
    max-width: 80px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #employee-table th:nth-child(9),
  #employee-table td:nth-child(9) {
    font-size: 0.75rem;
  }

  #employee-table select {
    font-size: 0.75rem;
    padding: 0.125rem 0.25rem;
    min-width: 60px;
    width: 60px;
  }

  /* Reduce table cell padding more */
  th,
  td {
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
  }

  /* Make table headers smaller */
  th {
    font-size: 0.75rem;
    font-weight: 600;
  }

  /* Compact table layout */
  .table-container {
    font-size: 0.875rem;
  }
}
