body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: white;
  color: #333;
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  background-color: #2c3e50; /* Dark blue header */
  color: white;
  padding: 10px 20px;
  text-align: center;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

h1 {
  font-size: 1.5rem;
  margin: 0;
}

.header-buttons {
  position: absolute;
  left: 20px;
  display: flex;
  gap: 10px;
}

.export-button, .obfuscate-button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.3s;
}

.export-button:hover, .obfuscate-button:hover {
  background-color: #2980b9;
}

.obfuscate-button.active {
  background-color: #e67e22;
}

.obfuscate-button.active:hover {
  background-color: #d35400;
}

.export-button svg, .obfuscate-button svg {
  width: 16px;
  height: 16px;
}

/* Blur effect for obfuscated vendor names */
.obfuscated {
  filter: blur(6px);
  user-select: none;
}

.main-content {
  display: flex;
  width: 100%;
}

.sidebar {
  width: 260px;
  padding: 20px;
  background-color: #f5f5f5;
  border-right: 1px solid #ddd;
  flex-shrink: 0;
}

.logo {
  height: 70px;
  margin-bottom: 20px;
  display: block;
}

.controls {
  margin-bottom: 20px;
}

select {
  margin-top: 5px;
  width: 100%;
  height: 180px;
  border: 1px solid #999;
}

.vendor-buttons {
  margin-bottom: 20px;
}

.vendor-buttons h3 {
  font-size: 14px;
  margin-bottom: 10px;
  margin-top: 0;
}

#vendorButtonsContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vendor-button {
  padding: 6px 10px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
  flex-grow: 1;
  text-align: center;
}

.vendor-button:hover {
  background-color: #e0e0e0;
  border-color: #999;
}

.vendor-button.active {
  background-color: #ADD8E6;
  border-color: #4a90e2;
  color: #333;
  font-weight: bold;
}

.legend {
  border: 1px solid #888;
  padding: 10px 15px;
  background-color: white;
  margin-top: 15px;
}

.legend-title {
  font-weight: bold;
  margin-bottom: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  height: 24px; /* Consistent height for all legend items */
}

/* Ensure consistent spacing for legend items */
.legend-item span:first-child {
  min-width: 22px;
  width: 22px;
  margin-right: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.legend-text {
  line-height: 1.2;
}

/* Special class for partner icon in legend to ensure proper alignment */
.partner-legend {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 22px;
  height: 22px;
}

.partner-legend::after {
  content: "🔄";
  font-size: 17px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.circle {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
}

.meets {
  background-color: #4CAF50; /* Green circle */
  /* Add a subtle inner shadow for depth */
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.partial {
  background-color: #FFD600; /* Brighter yellow circle */
  /* Add a subtle inner shadow for depth */
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Partner integration indicator - using emoji */
.partner {
  font-size: 17px;
  line-height: 18px;
  margin: 0 auto;
  position: relative;
  width: 18px;
  height: 18px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Use the refresh/sync emoji */
.partner::after {
  content: "🔄";
  position: relative;
  font-size: 17px; /* Slightly larger */
  /* Add a slight shadow to make it pop like the other icons */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.x-mark {
  color: #e41e1e; /* Red X */
  font-size: 16px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2); /* Add shadow for better visibility */
}

/* Government Activity indicator */
.government {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background-color: #4169E1; /* Royal Blue */
  font-size: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  cursor: help; /* Show help cursor on hover */
  position: relative;
}

/* Add hover effect for government indicator */
.government:hover {
  background-color: #1E90FF; /* Lighter blue on hover */
  transform: scale(1.1);
  transition: all 0.2s ease;
}

#tableContainer {
  overflow-x: auto;
  flex-grow: 1;
  padding: 10px;
  margin-top: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-left: 1px;
}

/* Style for the empty cell in the top-left corner */
table tr:first-child td:first-child,
.category-header:first-of-type {
  background-color: #ADD8E6 !important; /* Light blue with !important to override other styles */
}

th, td {
  border: 1px solid #ccc;
  text-align: center;
  padding: 4px 2px;
  min-width: 25px; /* Narrower columns to match example */
  width: 25px;
  box-sizing: border-box;
}

th {
  position: sticky;
  z-index: 2;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Category headers - first row */
.category-header {
  color: #000;
  font-weight: bold;
  text-align: center;
  height: 35px;
  font-size: 14px;
  padding: 8px 4px;
}

/* ID headers - second row */
.id-header {
  font-size: 11px;
  height: 24px;
  padding: 4px 2px;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
  border-right: 1px solid #ddd;
  width: 30px !important;
  max-width: 30px !important;
  min-width: 30px !important;
}

/* Title headers - third row with vertical text */
.title-header {
  height: 180px;
  padding: 0;
  vertical-align: bottom; /* Align to bottom */
  background-color: rgba(255, 255, 255, 0.7); /* Less transparent white */
  border-right: 1px solid #ddd;
  width: 30px !important; /* Slightly wider column */
  max-width: 30px !important;
  min-width: 30px !important;
  text-align: center; /* Center text horizontally */
}

.vertical-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  display: inline-block;
  font-size: 12px; /* Increased to match technology name size */
  text-align: center; /* Center text horizontally */
  max-height: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: bold; /* Make text black and bold */
  line-height: 1.2;
  color: #000;
  margin: 0 auto; /* Center horizontally */
  padding: 0 0 4px 0; /* Add bottom padding to align with bottom */
  letter-spacing: 0.2px; /* Slightly increased for readability */
  width: 24px; /* Width to match column */
  /* Add tooltip on hover capability */
  position: relative;
  /* No special cursor needed - browser will handle tooltip display */
}

/* Only show ellipsis for truncated text */
.vertical-text {
  /* Default tooltip style */
  cursor: default; /* Standard cursor instead of help cursor */
}

/* Show ellipsis only if text is truncated */
.vertical-text.truncated::after {
  content: "...";
  display: block;
  color: #555;
  font-size: 8px;
  line-height: 1;
  padding-top: 2px;
  text-align: center;
}

/* Highlight on hover to indicate interactivity */
.vertical-text:hover {
  background-color: rgba(220, 240, 255, 0.3);
}

/* Category-specific styles */
th[data-category="User"] {
  background-color: #8fc78f; /* More vibrant green */
  color: #333;
  font-weight: bold;
}

th[data-category="Device"] {
  background-color: #7aa7d2; /* More vibrant blue */
  color: #333;
  font-weight: bold;
}

th[data-category="Application"] {
  background-color: #bea538; /* More vibrant gold */
  color: #333;
  font-weight: bold;
}

th[data-category="Data"] {
  background-color: #999999; /* Darker gray */
  color: #333; 
  font-weight: bold;
}

th[data-category="Network"] {
  background-color: #e7914c; /* More vibrant orange */
  color: #333;
  font-weight: bold;
}

th[data-category="Automation"] {
  background-color: #415566; /* Darker blue-gray */
  color: white;
  font-weight: bold;
}

th[data-category="Visibility"] {
  background-color: #a76ec0; /* More vibrant purple */
  color: white;
  font-weight: bold;
}

/* Technology column style */
tr td:first-child {
  text-align: left;
  font-weight: bold;
  background-color: #f2f2f2;
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 150px;
  max-width: 200px;
  padding: 8px 12px;
  border-right: 2px solid #ddd;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
  width: auto !important; /* Don't restrict technology column width */
}

/* Style for the GAP Analysis row */
tr:first-of-type td {
  background-color: #e6e6e6 !important;
  border-bottom: 2px solid #ccc;
  border-top: 2px solid #ccc;
  font-weight: bold;
}

/* Data cell styling */
td .circle {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

td {
  height: 30px;
}

/* Alternate row background */
table tr:nth-child(even) {
  background-color: #f7f7f7;
}

/* Color the cells based on column category */
td:not(:first-child) {
  background-color: rgba(255, 255, 255, 0.5);
}

/* Add more distinctive column colors matching the headers */
tr td[data-category="User"] {
  background-color: rgba(143, 199, 143, 0.2); /* Green background */
}

tr td[data-category="Device"] {
  background-color: rgba(122, 167, 210, 0.2); /* Blue background */
}

tr td[data-category="Application"] {
  background-color: rgba(190, 165, 56, 0.2); /* Gold background */
}

tr td[data-category="Data"] {
  background-color: rgba(153, 153, 153, 0.2); /* Gray background */
}

tr td[data-category="Network"] {
  background-color: rgba(231, 145, 76, 0.2); /* Orange background */
}

tr td[data-category="Automation"] {
  background-color: rgba(65, 85, 102, 0.2); /* Blue-gray background */
}

tr td[data-category="Visibility"] {
  background-color: rgba(167, 110, 192, 0.2); /* Purple background */
}

footer {
  background-color: #f8f9fa;
  padding: 8px 20px;
  font-size: 10px;
  color: #666;
  font-style: italic;
  border-top: 1px solid #ddd;
  text-align: center;
  margin-top: 20px;
}

