.passport-comparison-container {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem;
  background-color: #fff;
  color: #1f4e5e;
  min-height: 80vh;
}

/* Comparison table */
.comparison-table {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #c08e54;
  overflow: hidden;
  position: relative;
}

.search-section {
  background: #fff;
  border-bottom: 1px solid #c08e54;
  position: relative;
}

.search-box {
  padding: 1rem;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid #c08e54;
  border-radius: 4px;
  font-size: 14px;
  color: #1f4e5e;
}

.search-box input:focus {
  outline: none;
  border-color: #c08e54;
  box-shadow: 0 0 0 2px rgba(192, 142, 84, 0.2);
}

/* Search Results Dropdown */
.search-results {
  position: absolute;
  top: 100%;
  left: 1rem;
  right: 1rem;
  background: #fff;
  border: 1px solid #c08e54;
  border-radius: 4px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  display: none;
}

.search-results.active {
  display: block;
}

.search-result-item {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-result-item:hover {
  background-color: #f8ecd4;
}

.search-result-item .country-info {
  flex: 1;
}

.filter-buttons {
  display: flex;
  padding: 0.5rem 1rem;
  gap: 0.5rem;
  border-bottom: 1px solid #f8ecd4;
}

.filter-btn {
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  border: 1px solid #c08e54;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 12px;
  color: #1f4e5e;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: #f8ecd4;
}

.filter-btn.active {
  background: #c08e54;
  border-color: #c08e54;
  color: #fff;
}

.table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  background: #fff;
  border-bottom: 1px solid #f8ecd4;
}

.header-cell {
  padding: 1rem;
  font-weight: 600;
  color: #1f4e5e;
}

.empty-cell {
  background: #fff;
}

.country-cell {
  background: #c08e54;
  color: #fff;
}

.header-country-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-flag {
  width: 24px;
  height: 16px;
  border-radius: 2px;
}

.header-details {
  flex: 1;
}

.header-country-name {
  display: block;
  font-weight: 600;
  font-size: 14px;
}

.header-rank {
  display: block;
  font-size: 12px;
  opacity: 0.8;
}

.remove-country {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  opacity: 0.8;
  transition: all 0.2s ease;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-country:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

.table-body {
  max-height: calc(100vh - 250px);
  overflow-y: auto;
}

.table-row {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr 1fr !important;
  border-bottom: 1px solid #f8ecd4;
  cursor: pointer;
  transition: all 0.2s ease;
}

.table-row:hover {
  background-color: #f8ecd4;
}

.table-row.selected {
  background-color: rgba(192, 142, 84, 0.1);
}

.row-cell {
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.country-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.country-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.country-name {
  font-weight: 500;
  color: #1f4e5e;
}

.country-stats {
  font-size: 12px;
  color: #6b7280;
}

.small-flag {
  width: 24px;
  height: 24px;
  border-radius: 2px;
  object-fit: cover;
}

/* Visa status styles */
.visa-status {
  font-size: 14px;
  font-weight: 500;
}

.status-free {
  color: #2e7d32;
}

.status-arrival {
  color: #1565c0;
}

.status-evisa {
  color: #ed6c02;
}

.status-required {
  color: #d32f2f;
}

/* Responsive design */
@media (max-width: 1200px) {
  .passport-comparison-container {
    flex-direction: column;
  }

  .table-header,
  .table-row {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .table-header,
  .table-row {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    font-size: 13px;
  }

  .header-country-info {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}
