@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;600;700;800&display=swap');
@import url('https://fonts.maateen.me/bangla/font.css');

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body, button, input, select, textarea, h1, h2, h3, h4, h5, h6, p, span, td {
  font-family: 'Bangla', sans-serif !important;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: #f4f7f5;
  color: #1a2521;
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  outline: none;
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 72px; /* Space for bottom nav on mobile */
}

/* Mobile Header */
.mobile-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #123b2a;
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-wrap::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(46, 204, 113, 0.4));
  z-index: 1;
  opacity: 0.85;
}

.brand-mark, .brand-logo {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  background: #ffffff;
  color: #123b2a;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  border: 2px solid #ffffff;
  box-shadow: 
    0 6px 14px rgba(0, 0, 0, 0.25),
    0 0 14px rgba(46, 204, 113, 0.35);
  animation: floatLogo 3s ease-in-out infinite alternate;
}

@keyframes floatLogo {
  0% {
    transform: translateY(0px) scale(1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22), 0 0 8px rgba(255, 255, 255, 0.2);
  }
  100% {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.32), 0 0 18px rgba(255, 255, 255, 0.45);
  }
}

.brand h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
}

.brand small {
  opacity: 0.75;
  font-size: 10px;
  display: block;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 16px;
  transition: background 0.2s;
  cursor: pointer;
}

.icon-btn:active {
  background: rgba(255, 255, 255, 0.3);
}

/* Role-based Visibility Rules */
body.role-mushrif .admin-only {
  display: none !important;
}

/* Triple Date Bar Card Widget (Matching Screenshot) */
.date-card-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 12px;
  margin-top: 4px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.date-card-row-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.date-card-row-bottom {
  display: flex;
  width: 100%;
}

.date-chip-item {
  background: #f8faf9;
  border: 1px solid #ebf1ed;
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
}

.date-chip-badge {
  font-size: 13px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 6px;
  white-space: nowrap;
  display: inline-block;
}

.date-chip-badge.bn-badge {
  background: #e6f4ea;
  color: #137333;
  border: 1px solid #ceead6;
}

.date-chip-badge.en-badge {
  background: #e8f0fe;
  color: #1a73e8;
  border: 1px solid #d2e3fc;
}

.date-chip-badge.ar-badge {
  background: #fef7e0;
  color: #b06000;
  border: 1px solid #feefc3;
}

.date-chip-val {
  font-size: 14px;
  font-weight: 500;
  color: #1a2521;
  white-space: nowrap;
}

/* Notice Ticker Bar */
.notice-ticker-bar {
  background: #143e2d;
  color: #f1f9f5;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.15);
  margin-top: 4px;
  margin-bottom: 14px;
  overflow: hidden;
}

.ticker-label {
  background: #e74c3c;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 2px 0 6px rgba(0,0,0,0.2);
}

.ticker-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.ticker-content {
  display: inline-block;
  padding-left: 100%;
  animation: marqueeRightToLeft 24s linear infinite;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.ticker-viewport:hover .ticker-content {
  animation-play-state: paused;
}

@keyframes marqueeRightToLeft {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

/* Date Bar Single Line Card */
.single-line-date-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 16px;
  margin-top: 4px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.ar-chip-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-chip-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.dot-sep {
  color: #cbd5e1;
}

/* Mushrif / Admin Profile Info Card (Matching Screenshot) */
.mushrif-profile-card {
  background: #123b2a;
  color: #ffffff;
  border-radius: 16px;
  padding: 14px 18px;
  margin-top: 4px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 4px 14px rgba(18, 59, 42, 0.2);
}

.profile-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-avatar {
  width: 44px;
  height: 44px;
  background: #235841;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
  color: #a7f3d0;
}

.profile-details h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.profile-details p {
  margin: 0;
  font-size: 12.5px;
  color: #a7f3d0;
  font-weight: 500;
}

.member-count-pill {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
}

/* Big Green Action Button (Full Width Pill) */
.target-entry-btn {
  width: 100%;
  background: #0e6a3f;
  color: #ffffff;
  border: none;
  padding: 14px 20px;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.35);
  margin-top: 4px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.2px;
}

.target-entry-btn:hover {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  box-shadow: 0 8px 22px rgba(22, 163, 74, 0.45);
  transform: translateY(-1px);
}

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

/* Target Display Card (Matching Screenshot) */
.target-display-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 5px solid #16a34a;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.target-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 8px;
  flex-wrap: wrap;
}

.target-card-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #1e293b;
}

.target-header-chips {
  display: flex;
  align-items: center;
  gap: 8px;
}

.month-pill-chip, .edit-pill-chip {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  padding: 3px 11px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

select.month-pill-chip {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #f0fdf4;
  color: #16a34a;
  border: 1.5px solid #86efac;
  padding: 5px 28px 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  text-align: center;
  transition: all 0.2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.12);
}

select.month-pill-chip:hover, select.month-pill-chip:focus {
  background-color: #dcfce7;
  border-color: #4ade80;
  box-shadow: 0 3px 8px rgba(22, 163, 74, 0.2);
}

select.month-pill-chip option {
  background-color: #ffffff;
  color: #1e293b;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 12px;
}

.edit-pill-chip {
  cursor: pointer;
  transition: background 0.2s ease;
}

.edit-pill-chip:hover {
  background: #dcfce7;
}

.target-metrics-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.target-metric-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 14px;
  gap: 12px;
}

.target-metric-item.durood-item {
  background: #f0fdf4;
  border: 1px solid #dcfce7;
}

.target-metric-item.quran-item {
  background: #eff6ff;
  border: 1px solid #dbeafe;
}

.target-metric-item.hadiya-item {
  background: #fffbeb;
  border: 1px solid #fef3c7;
}

.metric-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.metric-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 17px;
    flex-shrink: 0;
    color: #ffffff;

}

.durood-icon { background: #16a34a; }
.quran-icon { background: #2563eb; }
.hadiya-icon { background: #d97706; }

.durood-item .metric-title { color: #15803d; font-size: 15px; font-weight: 700; }
.quran-item .metric-title { color: #1d4ed8;  font-size: 15px; font-weight: 700; }
.hadiya-item .metric-title { color: #b45309; font-size: 15px; font-weight: 700; }

.metric-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  text-align: right;
}

.metric-target-val {
  font-size: 13.5px;
  font-weight: 700;
}

.metric-done-val {
  font-size: 12.5px;
  font-weight: 600;
}

.durood-item .metric-target-val { color: #166534; }
.durood-item .metric-done-val { color: #15803d; }

.quran-item .metric-target-val { color: #1e40af; }
.quran-item .metric-done-val { color: #2563eb; }

.hadiya-item .metric-target-val { color: #9a3412; }
.hadiya-item .metric-done-val { color: #d97706; }

/* Sub-Mushrif Profile Info Card */
.mushrif-info-card {
  background: linear-gradient(135deg, #123b2a, #1b533c);
  color: #ffffff;
  border-radius: 14px;
  padding: 12px 16px;
  margin-top: 4px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 4px 14px rgba(18, 59, 42, 0.15);
}

body.role-admin .mushrif-only {
  display: none !important;
}

body.role-mushrif .mushrif-only {
  display: block !important;
}

body.role-mushrif div.mushrif-info-card.mushrif-only {
  display: flex !important;
}

.mushrif-info-avatar {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.mushrif-info-details {
  flex: 1;
}

.mushrif-info-details h4 {
  margin: 0 0 2px 0;
  font-size: 14px;
  font-weight: 700;
}

.mushrif-info-details p {
  margin: 0;
  font-size: 11px;
  opacity: 0.85;
}

.mushrif-info-members {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  white-space: nowrap;
}

.mushrif-info-members strong {
  font-size: 14px;
  color: #2ecc71;
}

.target-entry-btn {
  background: linear-gradient(135deg, #1e824c, #27ae60) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 10px 18px !important;
  border-radius: 24px !important;
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.35) !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.target-entry-btn:hover, .target-entry-btn:active {
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 6px 16px rgba(39, 174, 96, 0.5) !important;
}

.home-target-bar {
  display: flex;
  margin-top: 12px;
  margin-bottom: 16px;
}

.home-target-bar .target-entry-btn {
  width: 100%;
  justify-content: center;
}

/* Monthly Set Target Card Styles - Vertical Stack Header & Metric Cards */
.monthly-target-card {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  background: #ffffff;
  border: 1px solid #d5e8dc;
  border-left: 5px solid #27ae60;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 20px;
  box-shadow: 0 4px 18px rgba(18, 59, 42, 0.08);
  box-sizing: border-box;
}

.target-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

.target-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.target-title-icon {
  font-size: 16px;
  background: rgba(39, 174, 96, 0.12);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.target-card-title h4 {
  margin: 0;
  font-size: 14px;
  color: #123b2a;
  font-weight: 700;
  white-space: nowrap;
}

.target-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.month-tag {
  font-size: 13px;
  font-weight: 600;
  color: #1e824c;
  background: #eafaf1;
  padding: 3px 10px;
  border-radius: 14px;
  border: 1px solid #a9dfbf;
  white-space: nowrap;
}

.target-edit-btn {
  background: rgba(39, 174, 96, 0.12);
  color: #1e824c;
  border: 1px solid rgba(39, 174, 96, 0.3);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.target-edit-btn:hover {
  background: #27ae60;
  color: #ffffff;
  border-color: #27ae60;
  box-shadow: 0 4px 10px rgba(39, 174, 96, 0.3);
}

/* Explicit Horizontal Line below Month & Edit Header */
.target-divider {
  width: 100%;
  border: none;
  height: 1px;
  background: linear-gradient(90deg, rgba(39, 174, 96, 0.3) 0%, rgba(39, 174, 96, 0.08) 100%);
  margin: 12px 0 14px 0;
}

/* 3 Cards Container below Dividing Line - 3 Clean Rows on Mobile */
.target-metrics-container {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
  box-sizing: border-box;
}

.metric-card {
  width: 100%;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  transition: transform 0.2s, box-shadow 0.2s;
}

.metric-card:hover {
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.metric-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.metric-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  flex-shrink: 0;
}

.metric-label {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.metric-value {
  font-size: 14.5px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Theme Colors for the 3 Cards */
.metric-durood {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}
.metric-durood .metric-icon-badge { background: #16a34a; color: #fff; }
.metric-durood .metric-label { color: #15803d; }
.metric-durood .metric-value { color: #166534; }

.metric-quran {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}
.metric-quran .metric-icon-badge { background: #2563eb; color: #fff; }
.metric-quran .metric-label { color: #1d4ed8; }
.metric-quran .metric-value { color: #1e40af; }

.metric-hadiya {
  background: #fffbeb;
  border: 1px solid #fef3c7;
}
.metric-hadiya .metric-icon-badge { background: #d97706; color: #fff; }
.metric-hadiya .metric-label { color: #b45309; }
.metric-hadiya .metric-value { color: #92400e; }

@media (max-width: 400px) {
  .monthly-target-card {
    padding: 12px 10px;
  }
  .target-card-title h4 {
    font-size: 16px;
  }
  .metric-card {
    padding: 8px 10px;
  }
  .metric-icon-badge {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  .metric-label {
    font-size: 16.5px;
  }
  .metric-value {
    font-size: 15px;
  }
}

.logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  border: 1.5px solid #ffffff;
  padding: 4px 6px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.2px;
}

.logout-btn:hover, .logout-btn:active {
  background: #ffffff;
  color: #0e3725;
  border-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.logout-icon {
  flex-shrink: 0;
  stroke: currentColor;
  transition: transform 0.2s ease;
}

.logout-btn:hover .logout-icon {
  transform: translateX(2px);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #238b60;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
}

/* Main Area */
.main {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 14px;
}

.role-select {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  max-width: 170px;
}

.role-select option {
  background: #123b2a;
  color: #ffffff;
}

.active-role-badge {
  background: #e7f5ef;
  color: #13744c;
  border: 1px solid #cce8dc;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.flex-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.flex-toolbar .table-search {
  flex: 1;
}

.page-heading {
  flex: 1;
}

.page-heading h2 {
  margin: 0;
  font-size: 20px;
  color: #06492d;
  font-weight: 800;
  letter-spacing: 0.2px;
  margin-bottom: 6px;
  margin-top: -11px;
}

.page-heading p {
  margin: 2px 0 10px;
  color: #66756f;
  font-size: 12px;
}

.search, .table-search, input, select, textarea {
  border: 1px solid #d4ded8;
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  font-size: 14px;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search:focus, input:focus, select:focus, textarea:focus {
  border-color: #19754e;
  box-shadow: 0 0 0 3px rgba(25, 117, 78, 0.15);
}

.page {
  display: none;
}

.active-page {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Welcome Banner */
.welcome {
  background: linear-gradient(135deg, #134e36 0%, #19754e 100%);
  color: #fff;
  border-radius: 16px;
  padding: 20px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(19, 78, 54, 0.18);
}

.welcome h2 {
  margin: 0 0 4px;
  font-size: 20px;
}

.welcome p {
  color: #d1ece0;
  margin: 0;
  font-size: 13px;
}

.primary {
  border: 0;
  background: #123b2a;
  color: #fff;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.welcome .primary {
  background: #ffffff;
  color: #134e36;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.ghost {
  border: 1px solid #d5ddd8;
  background: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  color: #44534c;
}

.danger {
  border: 1px solid #f2c7c7;
  color: #c0392b;
  background: #fff;
  padding: 10px 16px;
  border-radius: 10px;
}

/* App Icon Launcher Grid (Mobile Main Feature) */
.app-launcher-section {
  margin-bottom: 22px;
}

.app-launcher-section h3 {
  margin: 0 0 12px;
  font-size: 20px;
  color: #2a3b34;
  font-weight: 700;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.app-card {
  background: #fff;
  border: 1px solid #e3eae6;
  border-radius: 14px;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.app-card:active {
  transform: scale(0.95);
  background: #f8faf9;
}

.app-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.icon-members { background: linear-gradient(135deg, #0d9488, #0f766e); }
.icon-amal    { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.icon-musharif{ background: linear-gradient(135deg, #d97706, #b45309); }
.icon-quran   { background: linear-gradient(135deg, #059669, #047857); }
.icon-hadiya  { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.icon-reports { background: linear-gradient(135deg, #db2777, #be185d); }
.icon-settings{ background: linear-gradient(135deg, #475569, #334155); }

.app-card span {
  font-size: 11px;
  font-weight: 600;
  color: #2b3933;
  line-height: 1.2;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

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

.stat-card {
  background: #fff;
  border: 1px solid #e1e8e4;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-card span {
  display: block;
  color: #6b7a73;
  font-size: 12px;
}

.stat-card strong {
  display: block;
  font-size: 15px;
  margin-top: 2px;
  color: #123b2a;
}

.stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #e7f5ef;
  color: #13744c;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* Panels and Tables */
.panel {
  background: #fff;
  border: 1px solid #e0e8e3;
  border-radius: 14px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.panel-head {
  padding: 14px 16px;
  border-bottom: 1px solid #ebf1ed;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-head h3 {
  margin: 0;
  font-size: 15px;
  color: #1a2923;
}

.text-btn {
  border: 0;
  background: none;
  color: #13744c;
  font-weight: 600;
  font-size: 12px;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 460px;
}

th, td {
  padding: 10px 12px;
  border-bottom: 1px solid #eff3f1;
  text-align: center;
  vertical-align: middle;
  font-size: 13px;
  white-space: nowrap;
}

td, td strong, td b, td code, td .badge {
  font-weight: 400 !important;
}

th {
  background: #f7faf8;
  color: #0f172a !important;
  font-family: 'Noto Sans Bengali', 'Bangla', sans-serif !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  text-align: center !important;
  vertical-align: middle !important;
}

.action-btn-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.progress-box {
  padding: 16px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin: 10px 0 5px;
  font-size: 12px;
  color: #3b4b44;
}

.progress {
  height: 8px;
  background: #eef3f0;
  border-radius: 10px;
  overflow: hidden;
}

.progress i {
  display: block;
  height: 100%;
  width: 0;
  background: #19754e;
  border-radius: 10px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.section-head h2 {
  margin: 8px 0px 2px;
  font-size: 21px;
  color: #123b2a;
}

.section-head p {
  margin: 0;
  color: #66756f;
  font-size: 12px;
}

.toolbar {
  margin-bottom: 12px;
}

/* Members Page Top Header & Layout (Row 1: Left Button & Right Search, Row 2: Dropdown) */
.members-header-block {
  margin-bottom: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.members-top-controls-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
  flex-wrap: wrap !important;
}

.members-filter-dropdown-row {
  width: 100% !important;
}

.compact-search-box-pill {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 178px !important;
  max-width: 100% !important;
}

.search-icon-small {
  position: absolute !important;
  left: 12px !important;
  font-size: 14px !important;
  color: #7c3aed !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

.member-search-input {
  width: 100% !important;
  padding: 8px 14px 8px 36px !important;
  font-size: 13.5px !important;
  border-radius: 30px !important;
  height: 32px !important;
  background: #ffffff !important;
  border: 1.5px solid #a7f3d0 !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.08) !important;
  box-sizing: border-box !important;
  outline: none !important;
  color: #334155 !important;
}

.member-search-input:focus {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}

.member-filter-select {
    width: 100% !important;
    padding: 9px 14px !important;
    font-size: 15px !important;
    border-radius: 18px !important;
    height: 36px !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
    box-sizing: border-box !important;
}

.pill-btn {
  background: #143e2d !important;
  color: #ffffff !important;
  border-radius: 26px !important;
  padding: 10px 22px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(20, 62, 45, 0.25) !important;
  transition: all 0.2s ease !important;
  display: inline-block !important;
}

.pill-btn:hover {
  background: #0e3022 !important;
  box-shadow: 0 6px 16px rgba(20, 62, 45, 0.35) !important;
  transform: translateY(-1px) !important;
}

/* Members Card Panel & Header */
.members-card-panel {
  border-radius: 16px !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05) !important;
  border: 1px solid #e1ebe5 !important;
  overflow: hidden !important;
  background: #ffffff !important;
  margin-top: 10px !important;
}

.members-panel-head {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 12px 16px !important;
  background: #f6faf8 !important;
  border-bottom: 1px solid #e2ece7 !important;
}

.add-member-btn {
  background: linear-gradient(135deg, #123b2a, #1b533c) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  padding: 7px 16px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  white-space: nowrap !important;
  box-shadow: 0 3px 10px rgba(18, 59, 42, 0.25) !important;
  transition: all 0.2s ease !important;
}

.add-member-btn:hover, .add-member-btn:active {
  transform: translateY(-1px) !important;
  box-shadow: 0 5px 14px rgba(18, 59, 42, 0.35) !important;
}

/* Amal Header Row & Attractive Search Box Layout */
.amal-header-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-top: -6px !important;
  margin-bottom: 23px !important;
  gap: 12px;
  width: 100% !important;
}

.amal-title-group h2 {
  margin: 0 !important;
  font-size: 18px !important;
  color: #123b2a !important;
  font-weight: 800 !important;
  letter-spacing: 0.2px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* Attractive Search Box Container */
.amal-search-box-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  margin-left: auto;
}

.search-box-icon {
  position: absolute;
  left: 12px;
  font-size: 13px;
  color: #1e824c;
  pointer-events: none;
  z-index: 2;
}

.attractive-search-input {
  width: 140px !important;
  max-width: 250px !important;
  padding: 8px 14px 8px 34px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #1a2521 !important;
  border-radius: 24px !important;
  height: 30px !important;
  background: #ffffff !important;
  border: 1.5px solid #b8dfcb !important;
  box-shadow: 
    0 3px 10px rgba(18, 59, 42, 0.08),
    inset 0 1px 2px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.25s ease-in-out !important;
  outline: none !important;
  box-sizing: border-box !important;
}

.attractive-search-input::placeholder {
  color: #7f998c;
  font-size: 12px;
}

.attractive-search-input:hover {
  border-color: #1e824c !important;
  box-shadow: 0 4px 14px rgba(30, 130, 76, 0.15) !important;
}

.attractive-search-input:focus {
  border-color: #1e824c !important;
  background: #ffffff !important;
  box-shadow: 
    0 0 0 3px rgba(30, 130, 76, 0.2),
    0 4px 16px rgba(18, 59, 42, 0.12) !important;
  width: 230px !important;
}

@media (max-width: 480px) {
  .amal-title-group h2 {
    font-size: 22px !important;
  }
  .attractive-search-input {
    width: 165px !important;
    max-width: 185px !important;
    height: 36px !important;
    font-size: 12px !important;
    padding: 6px 10px 6px 30px !important;
  }
  .attractive-search-input:focus {
    width: 175px !important;
  }
  .search-box-icon {
    left: 10px;
    font-size: 12px;
  }
}

/* Stylish Member Address Panel */
.member-address-panel {
  background: #ffffff;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
  border: 1px solid #e2ece7 !important;
  overflow: hidden !important;
  margin-top: 12px;
}

.stylish-panel-head {
  background: linear-gradient(135deg, #0e3725 0%, #175239 100%) !important;
  color: #ffffff !important;
  padding: 7px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-head-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-head-icon {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.stylish-panel-head h3 {
  margin: 0 0 2px 0;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.panel-head-sub {
  font-size: 11px;
  color: #b3e6cd;
  opacity: 0.9;
  display: block;
}

.member-count-badge {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

/* Stylish Table */
.stylish-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.stylish-table thead th {
  background: #f0f7f3;
  color: #0e3725;
  font-size: 12px;
  font-weight: 700 !important;
  font-family: 'Noto Sans Bengali', 'Bangla', sans-serif !important;
  padding: 12px 16px;
  border-bottom: 2px solid #e1ebe5;
  text-align: left;
  letter-spacing: 0.2px;
}

.stylish-table tbody tr {
  transition: background 0.15s;
  border-bottom: 1px solid #f0f4f2;
}

.stylish-table tbody tr:last-child {
  border-bottom: none;
}

.stylish-table tbody tr:hover {
  background: #f4fbf7;
}

.stylish-table td {
  padding: 12px 16px;
  vertical-align: middle;
  font-size: 13px;
}

/* Member Name Action Button */
.member-detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eaf6f0;
  border: 1px solid #c3e6d5;
  color: #0e3725;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.member-detail-btn:hover, .member-detail-btn:active {
  background: #123b2a;
  color: #ffffff;
  border-color: #123b2a;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(18, 59, 42, 0.25);
}

.member-btn-arrow {
  font-size: 12px;
  transition: transform 0.2s;
}

.member-detail-btn:hover .member-btn-arrow {
  transform: translateX(3px);
}

.mobile-num {
  color: #34495e;
  font-weight: 600;
  font-size: 12.5px;
}

.form-panel {
  padding: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.form-grid label, .settings-panel label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #3c4c44;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.report-card {
  background: #fff;
  border: 1px solid #e0e8e3;
  border-radius: 14px;
  padding: 18px;
}

.report-card > h2 {
  margin: 0;
  font-size: 18px;
}

.report-card > p {
  color: #6a7972;
  font-size: 12px;
}

.report-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 16px 0 20px;
}

.report-stats div {
  background: #f6faf7;
  border: 1px solid #e1ebe5;
  padding: 12px;
  border-radius: 10px;
}

.report-stats span {
  display: block;
  color: #66756f;
  font-size: 11px;
}

.report-stats b {
  font-size: 16px;
  color: #123b2a;
}

.settings-panel {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.settings-panel hr {
  width: 100%;
  border: 0;
  border-top: 1px solid #e5ebe7;
  margin: 6px 0;
}

/* Modals (Mobile Bottom Sheet / Card) */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  z-index: 60;
  place-items: end center;
}

.modal-backdrop.show {
  display: grid;
}

.modal {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 20px 16px 24px;
  max-height: 85vh;
  overflow-y: auto;
  animation: slideUp 0.25s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 17px;
  color: #123b2a;
}

.modal-grid {
  display: grid;
  gap: 10px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.modal label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #3b4b44;
}

.empty {
  text-align: center !important;
  color: #89958f;
  padding: 24px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%) translateY(10px);
  background: #123b2a;
  color: #fff;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 13px;
  opacity: 0;
  transition: all 0.25s;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  white-space: nowrap;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Password Login Screen - Ultra Professional & Realistic */
.login-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0c2b1e 0%, #123b2a 50%, #17543c 100%);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
}

.login-container {
  width: 100%;
  max-width: 400px;
  margin: auto;
}

.login-card {
  width: 100%;
  background: #ffffff;
  border-radius: 20px;
  padding: 36px 28px 28px;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  text-align: center;
  animation: loginAppear 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #10b981, #059669, #047857);
}

@keyframes loginAppear {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.login-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.login-header .brand-logo-wrap {
  margin-bottom: 12px;
}

.login-header .brand-logo {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.login-header h2 {
  margin: 4px 0 6px;
  font-size: 24px;
  font-weight: 800;
  color: #0f2d21;
  letter-spacing: -0.3px;
}

.login-admin-badge {
  font-size: 11px;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 4px 14px;
  border-radius: 20px;
  margin: 4px 0 10px;
  display: inline-block;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.login-subtext {
  margin: 0;
  color: #64748b;
  font-size: 13.5px;
  font-weight: 500;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.login-form .input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-form .input-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-left: 2px;
}

.input-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-field-wrap .input-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.2s ease;
}

.input-field-wrap input {
  width: 100%;
  padding: 13px 42px 13px 42px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
  text-align: left;
}

.input-field-wrap input:focus {
  border-color: #059669;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
}

.toggle-password-icon-btn {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.toggle-password-icon-btn:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.show-password-wrap {
  display: flex;
  align-items: center;
  margin-top: -4px;
  margin-bottom: 2px;
}

.custom-checkbox-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  font-size: 13.5px;
  font-weight: 500;
  color: #475569;
}

.custom-checkbox-container input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #059669;
  cursor: pointer;
  border-radius: 4px;
}

.login-error {
  color: #dc2626;
  font-size: 12.5px;
  font-weight: 600;
  min-height: 18px;
  text-align: center;
}

.login-btn {
  width: 100%;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-btn:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.45);
  transform: translateY(-1px);
}

.login-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.login-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  color: #94a3b8;
  font-size: 11.5px;
  text-align: center;
}

.danger-icon {
  background: rgba(224, 86, 86, 0.25) !important;
  color: #ff9e9e !important;
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  background: #e6f4ed;
  color: #13744c;
  font-size: 11px;
  font-weight: 600;
}

.action-btn {
  border: 1px solid #dce4df;
  background: #fff;
  border-radius: 7px;
  padding: 5px 8px;
  margin-left: 2px;
  font-size: 11px;
}

.action-btn.delete {
  color: #b13c3c;
  border-color: #f3d4d4;
}

/* Mobile Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: #ffffff;
  border-top: 1px solid #e1e8e4;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 50;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.bottom-nav .nav-item {
  border: 0;
  background: transparent;
  color: #71817a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  height: 100%;
  padding: 4px 0;
}

.bottom-nav .nav-icon {
  font-size: 20px;
  line-height: 1;
}

.bottom-nav .nav-label {
  font-size: 10px;
  font-weight: 600;
}

.bottom-nav .nav-item.active {
  color: #13744c;
}

.bottom-nav .nav-item.active .nav-icon {
  transform: scale(1.15);
  transition: transform 0.15s;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .date-card-row-top {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .date-chip-item {
    padding: 7px 8px;
    gap: 6px;
  }
  .date-chip-badge {
    font-size: 11.5px;
    padding: 2px 6px;
  }
  .date-chip-val {
    font-size: 12.5px;
  }
  .app-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .app-card {
    padding: 10px 4px;
  }
  .app-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  .app-card span {
    font-size: 12px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .welcome {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (min-width: 600px) {
  .modal {
    border-radius: 16px;
    margin: auto;
  }
  .modal-backdrop {
    place-items: center;
  }
}

@media print {
  .mobile-header, .bottom-nav, .section-head button {
    display: none !important;
  }
  .main {
    margin: 0;
    width: 100%;
    padding: 0;
  }
  .page {
    display: none !important;
  }
  .page#reports {
    display: block !important;
  }
  .report-card {
    border: 0;
  }
}

/* Member Address Panel Styles */
.member-address-panel {
  border-top: 4px solid #27ae60;
  margin-bottom: 20px;
}

.address-tag {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 500;
  display: inline-block;
}

/* Member Detail & Target Page Styling */
.clickable-member-name {
  color: #13744c !important;
  font-weight: 700 !important;
  font-size: 14.5px !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  cursor: pointer !important;
  transition: color 0.15s ease !important;
  display: inline-block;
}

.clickable-member-name:hover, .clickable-member-name:active {
  color: #27ae60 !important;
}

.member-title-box {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.member-id-pill {
  display: inline-block;
  background: #0284c7;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 2px 8px;
  border-radius: 12px;
}

.month-heading-badge {
  display: inline-flex !important;
  align-items: center !important;
  background: linear-gradient(135deg, #123b2a 0%, #1c523c 100%) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 3px 14px !important;
  border-radius: 20px !important;
  margin-left: 8px !important;
  box-shadow: 0 3px 10px rgba(18, 59, 42, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  vertical-align: middle !important;
  letter-spacing: 0.2px;
}

.member-detail-link {
  color: #1e824c;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.15s;
}

.member-detail-link:hover {
  color: #27ae60;
  text-decoration: underline;
}

.back-btn {
  color: #1e824c !important;
  font-weight: 700 !important;
  padding: 0 !important;
  margin-bottom: 6px;
  font-size: 13px !important;
}

.member-profile-card {
  background: linear-gradient(135deg, #0e3725, #1d6044);
  color: #ffffff;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(14, 55, 37, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.profile-card-body {
  display: flex;
  align-items: center;
  gap: 16px;
}

.member-photo-frame {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid #a9dfbf;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.photo-placeholder {
  font-size: 28px;
}

.member-card-info {
  flex: 1;
}

.member-name-heading {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px 0;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.member-info-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.info-pill {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #e2f7ec;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pill-icon {
  font-style: normal;
}

.detail-control-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f4fbf7;
  border-left: 5px solid #27ae60;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.month-select-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.month-label-small {
  font-size: 15px !important;
  font-weight: 700;
  color: #27ae60;
  white-space: nowrap;
}

.month-dropdown-small {
  background: #ffffff;
  border: 1px solid #a9dfbf;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: #123b2a;
  outline: none;
}

.detail-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.target-entry-action-btn {
  background: linear-gradient(135deg, #1e824c, #27ae60) !important;
  font-weight: 700 !important;
  padding: 7px 14px !important;
  font-size: 15px !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 10px rgba(39, 174, 96, 0.3) !important;
}

.collection-action-btn {
  background: linear-gradient(135deg, #0284c7, #0369a1) !important;
  font-weight: 700 !important;
  padding: 7px 16px !important;
  font-size: 15px !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.3) !important;
}

.member-detail-metrics {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.metric-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.metric-breakdown {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 15.5px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: #444;
}

.breakdown-row span {
  text-align: left;
  flex: 1;
}

.breakdown-row b {
  text-align: right;
  white-space: nowrap;
}

.breakdown-row.highlight-net {
  background: rgba(255, 255, 255, 0.85);
  padding: 6px 10px;
  border-radius: 8px;
  margin-top: 6px;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

/* Smart Password Eye Toggle Button */
.password-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-field-wrap input {
  padding-right: 42px !important;
}

.toggle-password-icon-btn {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  z-index: 5;
}

.toggle-password-icon-btn:hover {
  color: #16a34a;
  background-color: #f0fdf4;
  transform: scale(1.1);
}

/* Header Subtitle Lines */
.header-subtitle-group {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 2px !important;
  margin-top: 3px !important;
  opacity: 1 !important;
}

.header-sub-line1 {
  display: block !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #e2e8f0 !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}

.header-sub-line2 {
  display: block !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #86efac !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}

/* User Exact Developer Credit Styling */
.user-exact-credit-link {
  font-size: 10px;
  font-family: inherit;
  color: #546e7a;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.1px;
}

.user-exact-credit-link .credit-author {
  font-weight: 800;
    color: #1050b2;
    text-decoration: underline;
    text-decoration-color: #0a08bf;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    transition: color 0.2s ease, text-decoration-color 0.2s 
}

.user-exact-credit-link:hover .credit-author {
  color: #16a34a;
  text-decoration-color: #15803d;
}

.developer-credit-wrap {
  margin-top: 8px;
  display: flex;
  justify-content: center;
}

.sys-copyright-text {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  color: #94a3b8;
}

.app-global-footer {
  text-align: center;
  padding: 12px 0 24px 0;
  margin-top: 20px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Q&A / জিজ্ঞাসা Page Styling */
.qna-cards-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qna-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qna-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
}

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

.qna-mushrif-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mushrif-avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.mushrif-name-tag {
  font-weight: 700;
  font-size: 14px;
  color: #1e293b;
}

.qna-date-sub {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
}

.qna-status-badge {
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.qna-status-badge.status-answered {
  background: #f0fdf4;
  color: #16a34a;
  border: 1.5px solid #86efac;
}

.qna-status-badge.status-pending {
  background: #fffbeb;
  color: #b45309;
  border: 1.5px solid #fde68a;
}

.qna-question-box {
  background: #f8fafc;
  border-left: 4px solid #0284c7;
  border-radius: 0 12px 12px 0;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.qna-box-label {
  font-size: 11px;
  font-weight: 700;
  color: #0284c7;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}

.qna-question-text {
  font-size: 14.5px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.5;
  margin: 0;
}

.qna-answer-box {
  background: #f0fdf4;
  border-left: 4px solid #16a34a;
  border-radius: 0 12px 12px 0;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.qna-answer-box .qna-box-label {
  color: #16a34a;
}

.qna-answer-text {
  font-size: 14px;
  font-weight: 500;
  color: #14532d;
  line-height: 1.55;
  margin: 0;
}

.qna-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}

/* Q&A Notification Banner & Badges */
.qna-alert-banner {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fed7aa;
  border-left: 5px solid #f97316;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.12);
}

.qna-alert-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.18);
}

.qna-alert-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qna-alert-pulse {
  width: 10px;
  height: 10px;
  background-color: #ea580c;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.7);
  animation: qnaPulse 1.6s infinite;
}

@keyframes qnaPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(234, 88, 12, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(234, 88, 12, 0);
  }
}

.qna-alert-info {
  display: flex;
  flex-direction: column;
}

.qna-alert-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #9a3412;
}

.qna-alert-sub {
  font-size: 12px;
  color: #c2410c;
  font-weight: 500;
}

.qna-alert-btn {
  background: #ea580c;
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.nav-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 10px;
  line-height: 1;
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.launcher-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  line-height: 1;
  border: 1.5px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Network Status Indicator Badge */
.network-badge {
  font-size: 11px;
  margin-left: 5px;
  font-weight: 700;
  padding: 2px 4px;
  border-radius: 20px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.3s ease;
}

.network-badge.online-badge {
  background: rgba(39, 174, 96, 0.25);
  color: #a3e635;
  border: 1px solid rgba(163, 230, 53, 0.4);
}

.network-badge.offline-badge {
  background: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
  border: 1px solid rgba(252, 165, 165, 0.4);
  animation: pulseOffline 2s infinite;
}

.network-badge.syncing-badge {
  background: rgba(245, 158, 11, 0.25);
  color: #fcd34d;
  border: 1px solid rgba(252, 211, 77, 0.4);
}

@keyframes pulseOffline {
  0% { opacity: 0.8; }
  50% { opacity: 1; }
  100% { opacity: 0.8; }
}

