/* AMJ Finance Tool - Main Stylesheet */
/* Theme inspired by Skillsoft - Professional Navy Blue */

/* ===== CSS Variables ===== */
:root {
  --primary-color: #003057; /* Navy Blue */
  --primary-light: #004680; /* Lighter Navy */
  --primary-dark: #001f3f; /* Darker Navy */
  --accent-color: #ff6b35; /* Orange Accent */
  --accent-light: #ff8c61; /* Light Orange */
  --success-color: #28a745;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --text-dark: #212529;
  --text-medium: #495057;
  --text-light: #6c757d;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #dee2e6;
}

/* ===== Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

/* ===== Layout ===== */
.container {
  max-width: 90%;
  margin: 0 auto;
  padding: 20px;
}

/* ===== Header ===== */
header {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-light) 100%
  );
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 20px;
}

header .logo {
  height: 60px;
  width: auto;
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
}

/* ===== Navigation ===== */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(100deg, #f7fafc 0%, #eef4fa 100%);
  border-bottom: 1px solid rgba(0, 48, 87, 0.12);
  box-shadow: 0 8px 28px rgba(0, 31, 63, 0.08);
  margin-bottom: 1.4rem;
}

.main-nav .container {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.nav-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  background: #ffffff;
  border: 1px solid rgba(0, 48, 87, 0.1);
  border-radius: 8px;
  padding: 0.25rem;
  box-shadow: 0 6px 16px rgba(0, 48, 87, 0.06);
  overflow: visible;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  color: #35516b;
  font-weight: 600;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.015em;
  padding: 0.58rem 0.9rem;
  border-radius: 8px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  position: relative;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.nav-text {
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
  background-color: #f2f7fc;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.28rem;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, #0a4d86 0%, #ff6b35 100%);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.nav-link.active {
  color: #ffffff;
  background: #0f3556;
  border-color: #0a2a45;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* ===== Nav Dropdown ===== */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1100;
  min-width: 190px;
  list-style: none;
  padding: 0.35rem 0;
  margin: 0.25rem 0 0;
  background: #ffffff;
  border: 1px solid rgba(0, 48, 87, 0.12);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 31, 63, 0.12);
}

.nav-dropdown.open > .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-item {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #35516b;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.nav-dropdown-item:hover {
  background-color: #f2f7fc;
  color: var(--primary-color);
}

.nav-dropdown-item.active {
  color: #ffffff;
  background: #0f3556;
}

/* ===== Cards ===== */
.card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.card h2 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 600;
}

.card h3 {
  color: var(--text-dark);
  font-weight: 600;
}

/* ===== Dashboard Cards ===== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.stat-card {
  color: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stat-card.total-members {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-light) 100%
  );
}

.stat-card.total-pledged {
  background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
}

.stat-card.total-paid {
  background: linear-gradient(135deg, var(--success-color) 0%, #34d399 100%);
}

.stat-card.total-balance {
  background: linear-gradient(
    135deg,
    var(--accent-color) 0%,
    var(--accent-light) 100%
  );
}

.stat-card h3 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.95;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.stat-value-medium {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.stat-breakdown {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.85rem;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  /* margin-bottom: 0.25rem; */
  opacity: 0.9;
  font-size: 1rem;
}

.breakdown-item span:last-child {
  font-weight: 600;
}

/* ===== Summary Boxes ===== */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.summary-box {
  padding: 1.5rem;
  border-radius: 10px;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.summary-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.summary-box-members {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-light) 100%
  );
}

.summary-box-pledged {
  background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
}

.summary-box-paid {
  background: linear-gradient(135deg, var(--success-color) 0%, #34d399 100%);
}

.summary-box-balance {
  background: linear-gradient(
    135deg,
    var(--accent-color) 0%,
    var(--accent-light) 100%
  );
}

.summary-box-rate {
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
}

.summary-label {
  font-size: 0.95rem;
  color: white;
  opacity: 0.95;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.summary-value {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

.summary-value-members {
  color: white;
}

.summary-value-pledged {
  color: white;
}

.summary-value-paid {
  color: white;
}

.summary-value-balance {
  color: white;
}

.summary-value-rate {
  color: white;
}

.summary-mini {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.95rem;
  color: white;
  opacity: 0.9;
}

.summary-mini div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.summary-mini div span:last-child {
  font-weight: 600;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.btn:hover {
  background-color: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
}

.btn-small {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
}

.btn-secondary {
  background-color: var(--text-light);
}

.btn-secondary:hover {
  background-color: var(--text-medium);
}

.btn-success {
  background-color: var(--success-color);
}

.btn-success:hover {
  background-color: #218838;
}

.btn-danger {
  background-color: var(--danger-color);
}

.btn-danger:hover {
  background-color: #c82333;
}

.btn-accent {
  background-color: var(--accent-color);
}

.btn-accent:hover {
  background-color: var(--accent-light);
}

.btn-primary {
  background-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-light);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== Tables ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.975rem;
}

th {
  background-color: var(--primary-color);
  color: white;
  padding: 0.875rem 0.75rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.975rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

th,
td {
  padding: 0.65rem;
  border-bottom: 1px solid var(--border-color);
}

thead th {
  border-bottom: none;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover {
  background-color: #f8f9fb;
}

.table-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.table-link:hover {
  text-decoration: underline;
}

/* ===== Status Badges ===== */
.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-paid {
  background-color: #d4edda;
  color: #155724;
}

.status-partial {
  background-color: #fff3cd;
  color: #856404;
}

.status-overpaid {
  background-color: #dbeafe;
  color: #1e40af;
}

.status-not-paid {
  background-color: #f8d7da;
  color: #721c24;
}

.status-no-pledge {
  background-color: #e0e0e0;
  color: #616161;
}

/* ===== Tanzeem Labels ===== */
.tanzeem-labels-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.tanzeem-label {
  padding: 0.35rem 0.4rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  color: white;
}

.tanzeem-L {
  background-color: rgba(99, 102, 241, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tanzeem-K {
  background-color: rgba(236, 72, 153, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tanzeem-A {
  background-color: rgba(34, 197, 94, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tanzeem-U {
  background-color: rgba(245, 158, 11, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== Flash Messages ===== */
.flash {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.flash.success {
  background-color: #d4edda;
  color: #155724;
}

.flash.error {
  background-color: #f8d7da;
  color: #721c24;
}

.flash.warning {
  background-color: #fff3cd;
  color: #856404;
}

/* ===== Progress Bar ===== */
.progress-bar-container {
  background-color: #e5e7eb;
  border-radius: 10px;
  height: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
  background: linear-gradient(
    90deg,
    var(--primary-color) 0%,
    var(--primary-light) 100%
  );
  height: 100%;
  transition: width 0.8s ease;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-dark);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* ===== Forms ===== */
input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  padding: 0.625rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  font-size: 1rem;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 48, 87, 0.1);
}

input[type="checkbox"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
}

label {
  font-weight: 500;
  color: var(--text-dark);
}

/* ===== Filters & Controls ===== */
.filter-bar {
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-label {
  margin-left: 1rem;
}

.member-count {
  margin-left: auto;
  font-weight: bold;
}

.member-count-spacious {
  margin-left: auto;
}

/* ===== Family Grouping ===== */
.family-spacer {
  height: 20px;
  background: #f5f5f5;
  border-top: 3px solid var(--primary-color);
  border-bottom: 2px solid #ddd;
}

.family-header {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-light) 100%
  );
  color: white;
  font-weight: bold;
  padding: 12px;
  font-size: 1.1em;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
  color: #6c757d;
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
}

footer small {
  display: block;
  margin-top: 0.5rem;
}

/* ===== Utility Classes ===== */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.color-primary {
  color: var(--primary-color);
}

.color-secondary {
  color: var(--text-light);
}

.color-success {
  color: var(--success-color);
}

.color-danger {
  color: var(--danger-color);
}

.font-bold {
  font-weight: bold;
}

.font-small {
  font-size: 0.875rem;
}

.font-large {
  font-size: 2.25rem;
}

/* ===== Alert Boxes ===== */
.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  border: 1px solid transparent;
}

.alert-warning {
  background-color: #fff3cd;
  border-color: #ffc107;
}

.alert-warning h3 {
  color: #856404;
  margin-top: 0;
}

.alert-warning p {
  color: #856404;
  margin: 0;
}

.alert code {
  background-color: rgba(0, 0, 0, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
}

/* ===== Responsive Grid ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.info-box {
  padding: 1rem;
  background-color: #f8f9fa;
  border-radius: 4px;
}

/* ===== Back Links ===== */
.back-link {
  color: var(--primary-color);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1rem;
}

.back-link:hover {
  text-decoration: underline;
}

/* =====  Collection & Performance ===== */
.collection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.collection-progress-section {
  margin-bottom: 2rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.progress-header h3 {
  margin: 0;
  font-size: 1rem;
}

.progress-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.progress-amount {
  font-weight: bold;
  color: #6366f1;
}

.progress-badge {
  background: #6366f1;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.95rem;
}

.progress-badge-success {
  background: #28a745;
}

.progress-text {
  color: #666;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.progress-text.success {
  color: #28a745;
}

.progress-text.warning {
  color: #dc3545;
}

.fiscal-year-info {
  color: #666;
  font-size: 0.9rem;
  /* margin-bottom: 1.5rem; */
}

/* ===== Payment Status Breakdown ===== */
.payment-status-description {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* ===== Helper Assignment Cards ===== */
.helper-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.helper-card {
  background: linear-gradient(135deg, #003057 0%, #004680 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  border-radius: 8px;
}

.helper-card-balance {
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c61 100%);
}

.helper-card-title {
  color: white !important;
  margin-bottom: 0.65rem;
  font-size: 1rem;
  font-weight: 600;
  /* opacity: 0.95; */
}

.helper-card-main {
  text-align: center;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.65rem;
  border-radius: 6px;
  margin-bottom: 0.65rem;
}

.helper-card-label {
  font-size: 0.8rem;
  opacity: 0.9;
  margin-bottom: 0.2rem;
}

.helper-card-value {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 0.95;
}

.helper-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.helper-stat-box {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem;
  border-radius: 5px;
  text-align: center;
}

.helper-stat-title {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 0.2rem;
}

.helper-stat-number {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 0.95;
}

.helper-stat-desc {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 0.25rem;
  line-height: 1.3;
}

.helper-balance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.helper-balance-box {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.65rem;
  border-radius: 5px;
  text-align: center;
}

.helper-balance-label {
  font-size: 0.85rem;
  opacity: 0.95;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.helper-balance-value {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 0.95;
}

/* ===== Tanzeem Filter ===== */
.tanzeem-filter-container {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fafafa;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.tanzeem-checkbox-label {
  cursor: pointer;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
}

.tanzeem-checkbox-label input[type="checkbox"] {
  margin-right: 0.5rem;
}

/* ===== Tanzeem Analysis ===== */
.tanzeem-analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

/* ===== Family Statistics ===== */
.family-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.family-stat-box {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 6px;
  border-left: 4px solid var(--primary-color);
}

.summary-label-dark {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.summary-value-dark {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

/* ===== Text Utilities ===== */
.text-secondary {
  color: #666;
}

.text-muted {
  color: #999;
}

.text-small {
  font-size: 0.8rem;
}

.text-medium {
  font-size: 0.9rem;
}

.text-italic {
  font-style: italic;
}

.font-large-2 {
  font-size: 2.5rem;
}

.mb-half {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mt-half {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  .main-nav .container {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .nav-menu {
    justify-content: flex-start;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
  }

  .nav-link {
    font-size: 0.86rem;
    padding: 0.5rem 0.8rem;
    scroll-snap-align: start;
  }

  .collection-grid,
  .tanzeem-analysis-grid {
    grid-template-columns: 1fr;
  }

  .helper-cards-grid {
    grid-template-columns: 1fr;
  }

  .helper-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .family-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* table {
    font-size: 0.875rem;
  } */

  /* th,
  td {
    padding: 0.4rem;
  } */

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .member-count {
    margin-left: 0;
    text-align: center;
  }

  header .logo {
    height: 50px;
  }

  header h1 {
    font-size: 1.4rem;
  }
}

/* ===== Print Styles ===== */
@media print {
  header {
    background: white !important;
    color: #333 !important;
    border-bottom: 3px solid var(--primary-color);
  }

  header .logo {
    height: 50px;
    filter: invert(1);
  }

  nav {
    display: none;
  }

  footer {
    page-break-after: avoid;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }

  body {
    background: white;
  }

  .btn {
    display: none;
  }

  .filter-bar {
    display: none;
  }
}
