@import url('https://fonts.maateen.me/bangla/font.css');

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

html, body {
  margin: 0;
  min-height: 100%;
  font-family: 'Bangla', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f4f7f5;
  color: #05540f;
}

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: #0f3827;
  color: #fff;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

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

/* Realistic 3D Floating Logo Design System (No White Border) */
.brand-logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  perspective: 600px;
}

/* Ambient Breathing Aura Ring */
.brand-logo-wrap::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.6) 0%, rgba(16, 185, 129, 0.25) 60%, transparent 100%);
  z-index: 0;
  filter: blur(6px);
  animation: auraPulse 3.5s ease-in-out infinite alternate;
}

/* Shiny Glass Reflection Lens */
.brand-logo-wrap::after {
  content: "";
  position: absolute;
  inset: 0px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(0, 0, 0, 0.15) 100%);
  z-index: 3;
  pointer-events: none;
  border: none;
}

.brand-mark, .brand-logo {
  position: relative;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  object-fit: cover;
  background: #ffffff;
  color: #123b2a;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  border: none !important;
  box-shadow: 
    0 10px 22px -4px rgba(0, 0, 0, 0.45),
    0 4px 8px -2px rgba(0, 0, 0, 0.25),
    0 0 15px rgba(52, 211, 153, 0.4);
  animation: floatRealistic 3.5s ease-in-out infinite alternate;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.brand-logo-wrap:hover .brand-logo {
  transform: translateY(-6px) scale(1.07) rotate(1.5deg);
  box-shadow: 
    0 16px 28px -4px rgba(0, 0, 0, 0.55),
    0 6px 12px -2px rgba(0, 0, 0, 0.3),
    0 0 24px rgba(52, 211, 153, 0.7);
}

@keyframes floatRealistic {
  0% {
    transform: translateY(0px) rotate(0deg);
    box-shadow: 
      0 6px 14px -3px rgba(0, 0, 0, 0.35),
      0 0 10px rgba(52, 211, 153, 0.3);
  }
  50% {
    transform: translateY(-4px) rotate(-0.5deg);
  }
  100% {
    transform: translateY(-6px) rotate(0.8deg);
    box-shadow: 
      0 12px 24px -4px rgba(0, 0, 0, 0.48),
      0 0 18px rgba(52, 211, 153, 0.5);
  }
}

@keyframes auraPulse {
  0% {
    opacity: 0.5;
    transform: scale(0.96);
  }
  100% {
    opacity: 0.95;
    transform: scale(1.08);
  }
}

.brand-text-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-title {
  margin: 0 0 1px 0;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: 0.2px;
}

.brand-subtext-white {
  font-size: 10px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  line-height: 1.35;
  letter-spacing: 0.1px;
}

.brand-subtext-green {
  font-size: 10px;
  font-weight: 700;
  color: #34d399;
  margin: 2px 0 0 0;
  line-height: 1.35;
  letter-spacing: 0.1px;
}

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

.logout-btn {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid #ffffff;
  border-radius: 9999px;
  padding: 6px 18px;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.logout-btn:hover, .logout-btn:active {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.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 */
.triple-date-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e1e8e5;
  border-radius: 12px;
  padding: 8px 12px;
  margin-top: 4px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.date-chip {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f8faf9;
  border: 1px solid #e9ecef;
  padding: 5px 10px;
  border-radius: 8px;
  min-width: 100px;
}

.date-badge {
  font-size: 13px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.date-badge.bn-badge { background: #e6f4ea; color: #137333; border: 1px solid #ceead6; }
.date-badge.en-badge { background: #e8f0fe; color: #1a73e8; border: 1px solid #d2e3fc; }
.date-badge.ar-badge { background: #fef7e0; color: #b06000; border: 1px solid #feefc3; }

.date-val {
  font-size: 14px;
  font-weight: 600;
  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: 13px;
  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);
  }
}

/* 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;
}

.month-select-dropdown {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #eafaf1;
  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='%231e824c' 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 8px center;
  color: #1e824c;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  padding: 4px 26px 4px 10px;
  border-radius: 16px;
  border: 1.5px solid #a9dfbf;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(39, 174, 96, 0.1);
  text-align: center;
}

.month-select-dropdown:hover, .month-select-dropdown:focus {
  background-color: #d4efdf;
  border-color: #27ae60;
  box-shadow: 0 2px 8px rgba(39, 174, 96, 0.22);
}

.month-select-dropdown option {
  background-color: #ffffff;
  color: #1e293b;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 10px;
}

.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: 5px 12px;
  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: 22px;
  color: #008f32;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.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: 15px;
  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: 22px;
  color: #008f32;
  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: 15px;
}

.stat-card strong {
  display: block;
  font-size: 18px;
  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: 500px;
}

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

th {
  background: #f7faf8;
  color: #4b5a53;
  font-weight: 600;
  text-align: center !important;
}

/* Bold ONLY the column header titles inside "আমার সদস্যবৃন্দ" table */
#members table th {
  font-family: 'Noto Sans Bengali', 'Bangla', sans-serif !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  color: #123b2a !important;
}

.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: 0 0 2px;
  font-size: 20px;
  color: #123b2a;
}

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

.toolbar {
  margin-bottom: 12px;
}

/* Members Page Top Header Row & Stylish Top Right Search Bar */
.members-header-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 4px !important;
  margin-bottom: 16px !important;
  gap: 12px !important;
  width: 100% !important;
}

.members-left-actions {
  display: flex;
  align-items: center;
}

.members-search-box-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  margin-left: auto;
}

.member-search-input {
  width: 210px !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: 38px !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;
}

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

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

.member-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) {
  .member-search-input {
    width: 155px !important;
    max-width: 175px !important;
    height: 36px !important;
    font-size: 12px !important;
    padding: 6px 10px 6px 30px !important;
  }
  .member-search-input:focus {
    width: 165px !important;
  }
}

.member-filter-select {
  flex: 1 1 180px !important;
  min-width: 150px !important;
  max-width: 100% !important;
  padding: 8px 12px !important;
  font-size: 13.5px !important;
  border-radius: 10px !important;
  height: 40px !important;
  background: #ffffff !important;
  border: 1.5px solid #b8dfcb !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
  box-sizing: border-box !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 10px !important;
  font-weight: 700 !important;
  font-size: 15px !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: -20px !important;
  margin-bottom: -14px !important;
  gap: 12px;
  width: 100% !important;
}

.amal-title-group h2 {
  margin: 0 !important;
  font-size: 22px !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: 210px !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: 40px !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: 5px 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: 13px;
  color: #f0fff8;
  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 !important;
  font-family: 'Noto Sans Bengali', 'Bangla', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  padding: 12px 16px;
  border-bottom: 2px solid #e1ebe5;
  text-align: center !important;
  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;
  text-align: center !important;
  font-size: 13px;
}

/* Clickable Member Name & ID Link Styling in Amal Entry Table */
.clickable-member-row {
  cursor: pointer;
  transition: background 0.15s ease;
}

.clickable-member-row:hover {
  background: #eaf6f0 !important;
}

.member-title {
  color: #0284c7;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.clickable-member-row:hover .member-title {
  color: #0369a1;
  text-decoration: underline;
}

.member-id-tag {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  display: inline-block;
  margin-top: 3px;
  transition: all 0.15s ease;
}

.clickable-member-row:hover .member-id-tag {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* 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 */
.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: 20px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border-radius: 24px;
  padding: 32px 24px 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  text-align: center;
  animation: loginAppear 0.35s ease-out;
}

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

.login-header h2 {
  margin: 14px 0 4px;
  font-size: 22px;
  color: #123b2a;
}

.login-header p {
  margin: 0 0 22px;
  color: #66756f;
  font-size: 13px;
}

.login-form {
  display: grid;
  gap: 14px;
}

.password-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.login-password-field {
  width: 100%;
  padding: 14px 48px 14px 16px !important;
  border-radius: 14px !important;
  border: 1.5px solid #d1d5db !important;
  font-size: 15px !important;
  outline: none;
  background: #f9fafb;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-sizing: border-box;
}

.login-password-field:focus {
  background: #ffffff;
  border-color: #27ae60 !important;
  box-shadow: 0 0 0 3.5px rgba(39, 174, 96, 0.18) !important;
}

.toggle-password-eye-btn {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  padding: 8px;
  display: grid;
  place-items: center;
  color: #6b7c74;
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.2s, background 0.2s, transform 0.15s;
}

.toggle-password-eye-btn:hover, .toggle-password-eye-btn:active {
  color: #1e824c;
  background: rgba(39, 174, 96, 0.1);
  transform: scale(1.08);
}

.login-btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 14px;
  background: #19754e;
  box-shadow: 0 4px 14px rgba(25, 117, 78, 0.3);
}

.login-error {
  color: #c0392b;
  font-size: 12px;
  font-weight: 600;
  min-height: 18px;
}

.login-footer {
  margin-top: 18px;
  color: #89958f;
  font-size: 11px;
}

.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-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.action-btn {
  border: 1px solid #dce4df;
  background: #ffffff;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.action-btn.edit {
  color: #0284c7;
  border-color: #bae6fd;
  background: #f0f9ff;
}

.action-btn.edit:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
}

.action-btn.delete {
  color: #dc2626;
  border-color: #fecaca;
  background: #fef2f2;
}

.action-btn.delete:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

/* 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) {
  .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 */
.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: 24px;
  margin-top: 11px;
  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;
  font-weight: 800 !important;
  font-size: 15.5px !important;
}

.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);
}

/* Colorful Stylish Month Badge Box */
.month-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #e6f4ed, #d1f2e1);
  color: #123b2a;
  border: 1.5px solid #a8dfc2;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(18, 59, 42, 0.1);
  white-space: nowrap;
}

/* Ultra-Professional Minimalist Developer Signature Footer */
.pro-dev-footer {
  text-align: center;
  margin-top: 26px;
  margin-bottom: 6px;
  padding: 14px 10px;
  border-top: 1px dashed #dce7e1;
}

.pro-dev-footer p, .login-footer-credit-wrap p {
  margin: 0;
  font-size: 10px !important;
  font-weight: 500 !important;
  color: #6b7c74;
  letter-spacing: 0.4px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.login-footer-credit-wrap {
  margin-top: 22px;
  text-align: center;
}

.pro-dev-link {
  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;
}

.pro-dev-link:hover {
  color: #1e824c !important;
  text-decoration-color: #27ae60 !important;
}

/* Dedicated Inquiry Standalone Page Styles */
.inquiry-header-card {
  background: linear-gradient(135deg, #0e3725, #175237);
  color: #ffffff;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 18px;
  margin-top: 6px;
  box-shadow: 0 6px 18px rgba(14, 55, 37, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.inquiry-page-title {
  margin: 0 0 4px 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.inquiry-page-sub {
  margin: 0;
  font-size: 12px;
  opacity: 0.88;
  line-height: 1.4;
}

.inquiry-form-panel {
  background: #ffffff;
  border: 1px solid #e1e8e4;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.form-label-custom {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #1b382b;
  margin-bottom: 6px;
}

.inquiry-select-custom {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid #c8d8cf;
  background: #f8faf9;
  font-size: 14px;
  font-weight: 600;
  color: #123b2a;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.inquiry-select-custom:focus {
  border-color: #27ae60;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.15);
}

.inquiry-textarea-custom {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1.5px solid #c8d8cf;
  background: #f8faf9;
  font-size: 14px;
  font-family: inherit;
  color: #123b2a;
  outline: none;
  resize: vertical;
  min-height: 110px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.inquiry-textarea-custom:focus {
  border-color: #27ae60;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.15);
}

/* Submit Action Bar & Icon-Only Send Button */
.inquiry-submit-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 10px;
}

.inquiry-send-icon-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e824c, #27ae60);
  color: #ffffff;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(39, 174, 96, 0.38);
  transition: all 0.25s ease;
}

.inquiry-send-icon-btn:hover, .inquiry-send-icon-btn:active {
  transform: scale(1.08) rotate(-5deg);
  background: linear-gradient(135deg, #166534, #1e824c);
  box-shadow: 0 6px 18px rgba(39, 174, 96, 0.5);
}

.inquiry-send-icon-btn svg {
  transform: translateX(1px) translateY(-1px);
}

.inquiry-count-badge {
  background: #e6f4ed;
  color: #13744c;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
}

.inquiry-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.inquiry-item-card {
  background: #f8faf9;
  border: 1px solid #e2eae5;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.inquiry-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.inquiry-item-subject {
  font-size: 14px;
  font-weight: 700;
  color: #123b2a;
}

.inquiry-item-status {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.inquiry-item-status.pending {
  background: #fef3c7;
  color: #b45309;
}

.inquiry-item-status.replied {
  background: #dcfce7;
  color: #15803d;
}

.inquiry-item-message {
  font-size: 13px;
  color: #374151;
  margin: 4px 0 6px 0;
  line-height: 1.45;
}

.inquiry-item-meta {
  font-size: 11px;
  color: #6b7c74;
}

/* Inquiry Card Delete Action Button */
.inquiry-delete-btn {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: 8px;
  padding: 4px 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.inquiry-delete-btn:hover, .inquiry-delete-btn:active {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
  box-shadow: 0 3px 8px rgba(220, 38, 38, 0.3);
  transform: translateY(-1px);
}

/* Unread Notification Badge on Bottom Nav */
.nav-unread-dot {
  position: absolute;
  top: -3px;
  right: -5px;
  width: 9px;
  height: 9px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.85);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.2); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Admin Reply Box inside Inquiry History Cards */
.inquiry-item-card.has-reply-card {
  border-color: #a7f3d0;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
}

.admin-reply-box {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1.5px solid #a7f3d0;
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 10px;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.08);
}

.admin-reply-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 800;
  color: #065f46;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px dashed rgba(6, 95, 70, 0.18);
}

.admin-reply-content {
  font-size: 13.5px;
  color: #044e37;
  line-height: 1.5;
  font-weight: 600;
  margin: 0;
}

/* Follow-Up Reply Button & Thread Box Styles */
.inquiry-reply-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #047857;
  border: 1.5px solid #a7f3d0;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(4, 120, 87, 0.08);
}

.inquiry-reply-trigger-btn:hover, .inquiry-reply-trigger-btn:active {
  background: #047857;
  color: #ffffff;
  border-color: #047857;
  box-shadow: 0 4px 10px rgba(4, 120, 87, 0.25);
  transform: translateY(-1px);
}

.inquiry-inline-reply-box {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 12px;
  padding: 12px;
  margin-top: 10px;
  display: none;
  animation: slideDown 0.25s ease-out;
}

.inquiry-inline-reply-box.show {
  display: block;
}

.inquiry-inline-reply-box textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid #86efac;
  background: #ffffff;
  font-size: 13px;
  font-family: inherit;
  color: #123b2a;
  outline: none;
  resize: vertical;
  min-height: 70px;
  box-sizing: border-box;
  margin-bottom: 8px;
}

.inquiry-inline-reply-box textarea:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.inline-reply-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.inline-reply-send-btn {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(22, 163, 74, 0.3);
  transition: all 0.2s ease;
}

.inline-reply-send-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(22, 163, 74, 0.4);
}

.inline-reply-cancel-btn {
  background: transparent;
  color: #64748b;
  border: 1px solid #cbd5e1;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* Thread Bubbles */
.inquiry-thread-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.thread-bubble {
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
}

.thread-bubble.mushrif-bubble {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  align-self: flex-start;
  width: 100%;
  box-sizing: border-box;
}

.thread-bubble.admin-bubble {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1.5px solid #a7f3d0;
  color: #044e37;
  align-self: flex-start;
  width: 100%;
  box-sizing: border-box;
}

.thread-bubble-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 800;
  margin-bottom: 4px;
  padding-bottom: 3px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

/* Network Status Indicator Badge */
.network-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 6px;
  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; }
}
