body {
  font-family: Arial, sans-serif;
  padding: 40px;
  background-color: #f8f9fa;
}

/* Header Bar */
.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.header-bar h2 {
  font-size: 28px;
  margin: 0;
  display: flex;
  align-items: center;
}

.header-bar h2::before {
  content: "📊 ";
  margin-right: 6px;
}

.user-info {
  font-weight: bold;
  color: #3e256e;
  font-size: 15px;
}

/* Summary Cards */
.summary-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 24px;
  margin-top: 16px;
  margin-bottom: 40px;
}

.card {
  background: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 20px 24px;
  width: 220px;
  text-align: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 12px rgba(0, 123, 255, 0.35);
}

.card h3 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.card p {
  font-size: 16px;
  color: #333;
  margin: 6px 0;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  margin-top: 12px;
}

th, td {
  padding: 12px 15px;
  border: 1px solid #ddd;
  text-align: center;
}

th {
  background-color: #007bff;
  color: white;
}

.catalog-link {
  color: #007bff;
  text-decoration: underline;
  cursor: pointer;
  font-weight: bold;
}

.catalog-link:hover {
  color: #0056b3;
  text-shadow: 0 2px 12px rgba(0,123,255,0.10);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  max-width: 700px;
  width: 90%;
  text-align: left;
  font-size: 18px;
  line-height: 1.6;
  position: relative;
}

.modal-content h4 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #1d1d1d;
}

/* Modal Close Button */
.close {
  position: absolute;
  top: 8px;
  right: 16px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

.close:hover {
  color: #333;
}

/* Modal Table */
.modal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.modal-table th,
.modal-table td {
  padding: 10px 12px;
  border: 1px solid #ddd;
  text-align: left;
}

.modal-table th {
  background-color: #f1f1f1;
  color: #333;
  font-weight: bold;
}

/* DS Stats Page Layout */
.ds-stats-container {
  display: flex;
  justify-content: flex-start;
  gap: 24px;
  margin-top: 24px;
  padding-left: 40px;
  flex-wrap: wrap;
}

.ds-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  padding: 24px;
  width: 450px;
}

.ds-catalog-name {
  color: #007bff;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 8px;
}

.ds-email-title {
  color: #38487a;
  font-size: 18px;
  margin-bottom: 12px;
}

/* Mismatch Highlight */
.mismatch-cell {
  background-color: #ffe6e6;
  font-weight: bold;
}

/* Sticky Header */
.comparison-table th {
  position: sticky;
  top: 0;
  background-color: #343a40;
  color: white;
  z-index: 10;
}

/* Scrollable Table Wrapper */
.table-wrapper {
  max-width: 95vw;
  overflow-x: auto;
  border-radius: 8px;
}
/* Hint text inside Total DS Work card */
.click-hint {
  color: red !important;
  font-size: 13px;
  font-weight: bold;
  margin-top: 6px;
  text-align: center;
}
