* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
}
/* Navbar  */
.nav-links li{
  margin: 0 15px;
  display: inline-block;
}

.nav-links li::after{
  content: "";
  height: 2px;
  width: 0;
  background: #007d40;
  display: block;
  transition: 0.3s linear;
}

.nav-links li:hover::after{
  width: 100%;
}

.nav-links a{
  color: #222;
  font-weight: 500;
  text-decoration: none;
}

/* Table  */
#summaryTitle {
  font-size: 20px !important;
  color: #007d40 !important;
}
.summary-wrapper {
  margin-top: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
  padding: 16px;
}

.summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

#summaryTitle {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.table-scroll {
  overflow-x: auto;
}

#summaryTable {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

#summaryTable th,
#summaryTable td {
  border: 1px solid #e0e0e0;
  color: #111;
  padding: 8px;
  font-size: 13px;
  text-align: center;
}

#summaryTable thead th {
  background: #f0f6ff;
  font-weight: 600;
}

#summaryTable tbody td:first-child,
#summaryTable tfoot td:first-child {
  text-align: left;
  font-weight: 600;
}

#summaryTable tfoot td {
  background: #e8f5e9;
  font-weight: 700;
}

/* PASSWORD MODAL */
.password-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.068);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.password-modal.hidden {
  display: none;
}

.password-box {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
  min-width: 550px;
}

.password-box h1 {
  color: #007d40;
  margin-bottom: 15px;
  font-size: 28px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

.password-box p {
  color: #666;
  margin-bottom: 25px;
  font-size: 14px;
  line-height: 1.5;
}

.password-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 15px;
  transition: border-color 0.3s;
  font-family: "Inter", sans-serif;
}

.password-input:focus {
  outline: none;
  border-color: #007d40;
  box-shadow: 0 0 0 3px rgba(27, 94, 61, 0.1);
}

.error-msg {
  color: #d32f2f;
  font-size: 12px;
  margin-bottom: 15px;
  display: none;
}

.error-msg.show {
  display: block;
}

.btn-login {
  width: 100%;
  padding: 12px;
  background: #007d40;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.3s,
    box-shadow 0.3s;
  font-family: "Poppins", sans-serif;
}

.btn-login:hover {
  background: #005029;
  box-shadow: 0 4px 12px rgba(27, 94, 61, 0.3);
}

/* DASHBOARD */
.dashboard {
  display: none;
  width: 100%;
  min-height: 100vh;
  background: #f5f7fa;
  flex-direction: column;
}

.dashboard.show {
  display: flex;
}

.header {
  background: white;
  padding: 20px 30px;
  border-bottom: 2px solid #007d40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header h1 {
  color: #007d40;
  font-size: 28px;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

.logout-btn {
  padding: 10px 20px;
  background: #d32f2f;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
  font-family: "Inter", sans-serif;
}

.logout-btn:hover {
  background: #b71c1c;
}

.container {
  display: flex;
  gap: 20px;
  padding: 20px;
  flex: 1;
  max-width: 1800px;
  margin: 0 auto;
  width: 100%;
}

.pane {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 20px;
  display: flex;
  flex-direction: column;
  border-left: 4px solid #007d40;
}

.pane h2 {
  color: #007d40;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 15px;
  font-family: "Poppins", sans-serif;
}

.pane-filters {
  width: 240px;
  overflow-y: auto;
  max-height: 85vh;
  flex-shrink: 0;
}

.pane-names {
  width: 220px;
  flex-shrink: 0;
  overflow-y: auto;
  max-height: 85vh;
}

.pane-details {
  flex: 1;
  min-width: 400px;
}

.pane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e0e0e0;
}

.pane-header h2 {
  margin-bottom: 0;
}

.count-badge {
  background: #007d40;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.filter-group {
  margin-bottom: 18px;
}

.filter-group label {
  display: block;
  color: #007d40;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.checkbox-item:hover {
  background: #f0f0f0;
}

.checkbox-item input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
  accent-color: #007d40;
}

.checkbox-item label {
  cursor: pointer;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #333;
}

.names-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;

  /* hide scrollbar */
  -ms-overflow-style: none;  /* IE & Edge */
  scrollbar-width: none;     /* Firefox */
}

.names-list::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}


.name-item {
  padding: 10px;
  border: 1.5px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
  font-size: 13px;
  font-weight: 500;
  color: #333;
}

.name-item:hover {
  border-color: #007d40;
  background: #f5faf8;
}

.name-item.active {
  background: #007d40;
  color: white;
  border-color: #007d40;
}

.empty-msg {
  text-align: center;
  color: #999;
  padding: 20px 10px;
  font-size: 13px;
}

.table-wrapper {
  overflow: auto;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  flex: 1;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

thead {
  background: #007d40;
  color: white;
  position: sticky;
  top: 0;
}

th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  padding: 11px 12px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
}

tbody tr {
  transition: background-color 0.2s;
}

tbody tr:hover {
  background: #f5faf8;
}

tbody tr:nth-child(odd) {
  background: #fafafa;
}

.dept-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 600;
  background: #e8f3ed;
  color: #007d40;
}

.empty-state {
  text-align: center;
  padding: 30px 20px;
  color: #999;
}

.btn-group {
  display: flex;
  gap: 10px;
  margin-top: 5px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  font-family: "Poppins", sans-serif;
}

.btn-reset {
  background: #f0f0f0;
  color: #333;
  border: 1.5px solid #ddd;
}

.btn-reset:hover {
  background: #e0e0e0;
  border-color: #999;
}

.btn-download {
  background: #007d40;
  color: white;
  flex: 1.5;
}

.btn-download:hover {
  background: #005029;
  box-shadow: 0 4px 12px rgba(27, 94, 61, 0.3);
}

.loading {
  text-align: center;
  padding: 20px;
  color: #999;
  font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .container {
    gap: 15px;
  }

  .pane-filters,
  .pane-names {
    width: 180px;
  }

  .pane-details {
    min-width: 300px;
  }

  .header h1 {
    font-size: 22px;
  }
}

@media (max-width: 900px) {
  .container {
    flex-direction: column;
    gap: 15px;
  }

  .pane-filters,
  .pane-names,
  .pane-details {
    width: 100%;
    max-height: none;
  }

  .header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .logout-btn {
    align-self: flex-end;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 10px;
  }

  .pane {
    padding: 15px;
  }

  .header {
    padding: 15px;
  }

  .password-box {
    min-width: 90%;
    padding: 30px;
  }

  table {
    font-size: 12px;
  }

  td,
  th {
    padding: 8px 10px;
  }
}


.cards-container {
    display: grid;
    gap: 16px;
    margin-top: 10px;
}
.data-card {
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.card-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 600;
    color: #222;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
}

/* ROW like bootstrap */
.card-row {
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: center !important;
    margin-bottom: 8px;
}

/* LEFT column */
.card-label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

/* RIGHT column */
.card-value {
    font-size: 14px;
    color: #111;
}

#nameSearch {
  padding: 8px 10px !important;
  font-size: 13px;
  outline: none;
}
