/* style.css - আমার রূপগঞ্জ (Amar Rupganj) */
/* Mobile-First, Deep Green (#006A4E) & White Clean Modern Theme */

:root {
  --primary: #006A4E;
  --primary-dark: #004D38;
  --primary-light: #008765;
  --primary-soft: #E8F5E9;
  --primary-mint: #F0FDF4;
  --accent-amber: #D97706;
  --accent-blue: #2563EB;
  --accent-red: #DC2626;
  --accent-green: #059669;
  --text-dark: #111827;
  --text-muted: #4B5563;
  --text-light: #9CA3AF;
  --bg-page: #F8FAF8;
  --bg-card: #FFFFFF;
  --border-color: #E5E7EB;
  --border-focus: #006A4E;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --font-bangla: 'Hind Siliguri', 'Kalpurush', 'SolaimanLipi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  font-family: var(--font-bangla);
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: 72px; /* Space for bottom nav on mobile */
  -webkit-font-smoothing: antialiased;
}

/* Container */
.app-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--bg-card);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.03);
}

/* Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--primary);
  color: #ffffff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 106, 78, 0.2);
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.brand-logo {
  width: 40px;
  height: 40px;
  background-color: #ffffff;
  color: var(--primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 19px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.brand-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 11px;
  opacity: 0.9;
  font-weight: 400;
}

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

.profile-avatar-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255, 255, 255, 0.85);
  background-color: var(--primary-dark);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.profile-avatar-btn:hover {
  transform: scale(1.05);
}

.profile-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-initial {
  font-size: 16px;
  font-weight: 700;
}

/* Banner / Emergency Ribbon */
.top-notice-bar {
  background: #E8F5E9;
  border-bottom: 1px solid #C8E6C9;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.emergency-quick-pill {
  background: var(--accent-red);
  color: #fff;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Main Content Area */
.main-content {
  flex: 1;
  padding: 16px;
}

/* Bottom Navigation (Mobile-first) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 40;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.05);
  max-width: 900px;
  margin: 0 auto;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  flex: 1;
  height: 100%;
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  margin-bottom: 2px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.nav-item.active {
  color: var(--primary);
  font-weight: 700;
}

/* Elevated Camera Action Button in Bottom Nav */
.nav-camera-btn-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-camera-btn {
  position: absolute;
  top: -24px;
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 106, 78, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-camera-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 106, 78, 0.5);
}

.nav-camera-btn svg {
  width: 26px;
  height: 26px;
  stroke: #ffffff;
  stroke-width: 2;
  fill: none;
}

/* Cards & Sections */
.hero-card {
  background: linear-gradient(135deg, #006A4E 0%, #004D38 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-card::after {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 140px;
  height: 140px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  pointer-events: none;
}

.hero-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.hero-text {
  font-size: 13px;
  opacity: 0.95;
  margin-bottom: 16px;
  line-height: 1.4;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

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

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

.btn-white {
  background-color: #ffffff;
  color: var(--primary-dark);
}

.btn-white:hover {
  background-color: #f0fdf4;
}

.btn-outline {
  background-color: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
}

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

.btn-danger {
  background-color: var(--accent-red);
  color: #ffffff;
}

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

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-block {
  width: 100%;
}

/* Quick Stats Bar */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Complaint Feed & Cards */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.complaint-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.complaint-card:hover {
  box-shadow: var(--shadow-md);
}

.complaint-meta-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.tracking-badge {
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
}

.status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-pending {
  background: #FEF3C7;
  color: #B45309;
}

.status-review {
  background: #DBEAFE;
  color: #1D4ED8;
}

.status-resolved {
  background: #D1FAE5;
  color: #047857;
}

.status-rejected {
  background: #FEE2E2;
  color: #B91C1C;
}

.complaint-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.35;
}

.complaint-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.complaint-desc {
  font-size: 13px;
  color: #374151;
  margin-bottom: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* Photo Thumbnail Grid */
.photo-thumbs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.photo-thumb-wrapper {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #f3f4f6;
  cursor: pointer;
}

.photo-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.photo-thumb-wrapper:hover img {
  transform: scale(1.05);
}

.admin-response-box {
  background: #F9FAFB;
  border-left: 3px solid var(--primary);
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 12px;
  margin-top: 10px;
}

.admin-response-title {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

/* Modals & Overlays */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 100;
  display: none;
  align-items: flex-end; /* Mobile bottom sheet */
  justify-content: center;
  padding: 0;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: #ffffff;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

@media (min-width: 640px) {
  .modal-overlay {
    align-items: center;
    padding: 20px;
  }
  .modal-container {
    border-radius: var(--radius-lg);
    max-height: 85vh;
  }
}

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

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-dark);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  background-color: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 106, 78, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-helper {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Camera & Upload Area */
.photo-uploader-box {
  border: 2px dashed #006A4E;
  background: var(--primary-mint);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
}

.uploader-action-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

.btn-cam-action {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-cam-action:hover {
  background: var(--primary-dark);
}

.btn-gallery-action {
  background: #ffffff;
  color: var(--primary-dark);
  border: 1.5px solid var(--primary);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

/* Upload Preview Grid */
.upload-previews-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.preview-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--primary);
  background: #f0fdf4;
}

.preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-photo-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Location input with GPS button */
.location-input-group {
  display: flex;
  gap: 8px;
}

.btn-gps {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border: 1px solid #C8E6C9;
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-gps:hover {
  background: #C8E6C9;
}

/* Captcha Block */
.captcha-container {
  background: #F9FAFB;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.captcha-img-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.captcha-refresh-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
}

.captcha-refresh-btn:hover {
  color: var(--primary);
}

/* Profile Off-Canvas Drawer */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 90;
  display: none;
}

.drawer-overlay.active {
  display: block;
}

.profile-drawer {
  position: fixed;
  top: 0;
  right: -340px;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background: #ffffff;
  z-index: 95;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  transition: right 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.profile-drawer.open {
  right: 0;
}

.drawer-header {
  background: var(--primary);
  color: #ffffff;
  padding: 24px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.drawer-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
}

.drawer-avatar {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-full);
  border: 3px solid #ffffff;
  background: var(--primary-dark);
  color: #ffffff;
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
}

.drawer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drawer-user-name {
  font-size: 17px;
  font-weight: 700;
}

.drawer-user-mobile {
  font-size: 13px;
  opacity: 0.9;
}

.drawer-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.drawer-menu-group {
  margin-bottom: 20px;
}

.drawer-menu-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  padding-left: 8px;
}

.drawer-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.drawer-menu-item:hover {
  background-color: #F3F4F6;
}

.drawer-menu-item.active {
  background-color: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 600;
}

.drawer-menu-item svg {
  width: 18px;
  height: 18px;
  margin-right: 10px;
}

/* Emergency Directory Section */
.emergency-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: transform 0.15s;
}

.emergency-card:hover {
  transform: translateY(-1px);
}

.emergency-icon-pill {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.emergency-info {
  flex: 1;
}

.emergency-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.emergency-category-tag {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
}

.emergency-address {
  font-size: 11px;
  color: var(--text-muted);
}

.btn-call {
  background: #059669;
  color: #fff;
  border-radius: var(--radius-full);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  flex-shrink: 0;
}

.btn-call:hover {
  background: #047857;
}

/* Admin Dashboard Elements */
.admin-tab-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.admin-tab-btn {
  background: none;
  border: none;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.admin-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
}

.admin-table-wrapper {
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.admin-table th {
  background: #F9FAFB;
  padding: 12px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.admin-table tr:hover {
  background-color: #F9FAFB;
}

/* ============================================================ */
/* PRINT & PDF DOWNLOAD SPECIAL STYLESHEET                     */
/* ============================================================ */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
    font-size: 12pt;
  }

  .app-header,
  .top-notice-bar,
  .bottom-nav,
  .btn-no-print,
  .modal-overlay:not(.print-active-modal),
  .profile-drawer,
  .drawer-overlay {
    display: none !important;
  }

  .app-container {
    max-width: 100% !important;
    box-shadow: none !important;
  }

  .print-page-wrapper {
    display: block !important;
    padding: 15mm;
  }

  .print-header {
    text-align: center;
    border-bottom: 2px solid #006A4E;
    padding-bottom: 14px;
    margin-bottom: 20px;
  }

  .print-gov-emblem {
    width: 60px;
    height: 60px;
    margin: 0 auto 8px auto;
  }

  .print-photo-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
    page-break-inside: avoid;
    margin: 20px 0;
  }

  .print-photo-item img {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
    border: 1px solid #ccc !important;
  }

  .print-signatures-row {
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    page-break-inside: avoid;
  }

  .signature-box {
    text-align: center;
    width: 200px;
    border-top: 1px dashed #444;
    padding-top: 6px;
    font-size: 11pt;
  }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 90%;
  max-width: 400px;
  pointer-events: none;
}

.toast {
  background: #111827;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.2s ease forwards;
  pointer-events: auto;
}

.toast-success {
  background: #006A4E;
}

.toast-error {
  background: #DC2626;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================ */
/* IMAGE SLIDER / CAROUSEL STYLES                               */
/* ============================================================ */
.hero-slider-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
  background-color: var(--primary-dark);
}

.slider-track {
  position: relative;
  width: 100%;
  height: 220px;
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

@media (min-width: 640px) {
  .slider-track {
    height: 300px;
  }
}

.slider-item {
  min-width: 100%;
  height: 100%;
  position: relative;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #004d38;
}

.slider-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-overlay-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 18px 14px 18px;
  background: linear-gradient(0deg, rgba(0, 45, 33, 0.95) 0%, rgba(0, 77, 56, 0.6) 60%, rgba(0, 0, 0, 0) 100%);
  color: #ffffff;
}

.slider-overlay-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 3px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.slider-overlay-subtitle {
  font-size: 12px;
  opacity: 0.92;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slider-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.slider-arrow-btn:hover {
  background: var(--primary);
  border-color: #ffffff;
  transform: translateY(-50%) scale(1.08);
}

.slider-arrow-prev {
  left: 10px;
}

.slider-arrow-next {
  right: 10px;
}

.slider-indicators {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}

.slider-dot.active {
  background: #ffffff;
  width: 20px;
  border-radius: 10px;
}

/* 4-Stat Grid for Home page */
.stats-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

@media (min-width: 600px) {
  .stats-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-box-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-box-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-box-card .stat-number {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 3px;
}

.stat-box-card .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Pre-login landing actions */
.home-guest-cta-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

/* Admin Slides Grid */
.admin-slides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.admin-slide-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.admin-slide-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  background: #f3f4f6;
}

.admin-slide-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Language Switcher Toggle Button */
.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 6px 11px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.lang-toggle-btn:hover {
  background: #ffffff;
  color: var(--primary);
  border-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Hope Blood Emergency Module Styles */
.blood-emergency-section {
  background: #ffffff;
  border: 1px solid #FECACA;
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.06);
}

.blood-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.blood-card {
  background: #FFF5F5;
  border: 1px solid #FCA5A5;
  border-radius: var(--radius-sm);
  padding: 14px;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.blood-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.12);
  border-color: #EF4444;
}

.blood-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.blood-group-badge {
  background: #DC2626;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

.blood-urgency-badge {
  background: #FEE2E2;
  color: #991B1B;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid #FCA5A5;
}

.blood-card-details {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.blood-card-details strong {
  color: #7F1D1D;
}
.blood-card-details .row-item {
  display: flex;
  gap: 6px;
  margin-bottom: 3px;
}

.blood-btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #059669;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s ease;
  width: 100%;
  border: none;
  cursor: pointer;
}
.blood-btn-call:hover {
  background: #047857;
  color: #fff;
}

/* Blood Group Filter Pills */
.blood-filter-pill {
  background: #ffffff;
  border: 1px solid #D1D5DB;
  color: #374151;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.blood-filter-pill:hover,
.blood-filter-pill.active {
  background: #DC2626;
  color: #ffffff;
  border-color: #DC2626;
}

