/* Base styles */
:root {
  --accent: #c62828;
  --accent-strong: #b71c1c;
  --bg: #fff6f6;
  --muted: #666;
  --card: #fff;
}

* {
  box-sizing: border-box;
}

/* Component / Utility CSS (reusable across project) */
:root {
  --accent: #c62828;
  --accent-strong: #b71c1c;
  --bg: #fff6f6;
  --muted: #666;
  --card: #fff
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  font-family: Inter, system-ui, Arial, sans-serif;
  margin: 0;
  background: var(--bg);
  color: #111;
  -webkit-font-smoothing: antialiased
}

/* Layout utilities */
.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 16px
}

.container-fluid {
  width: 100%;
  padding: 0 5%;
  margin: 0 auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px
}

.col {
  flex: 1
}

.center {
  text-align: center
}

.text-right {
  text-align: right
}

@media (min-width: 1024px) {
  .admin-logged-in .main {
    margin-left: 280px;
    padding: 24px;
    width: calc(100% - 280px);
  }
}

/* Spacing helpers */
.py-8 {
  padding-top: 8px;
  padding-bottom: 8px
}

.py-12 {
  padding-top: 12px;
  padding-bottom: 12px
}

.mt-8 {
  margin-top: 8px
}

.mb-8 {
  margin-bottom: 8px
}

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(198, 40, 40, 0.12);
  transition: transform .12s ease, box-shadow .12s ease;

}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(198, 40, 40, 0.16)
}

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

.btn-secondary {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #eee;
  color: #333;
  text-decoration: none
}

/* Card component */
.card {
  background: var(--card);
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(198, 40, 40, 0.06);
  margin-bottom: 12px;
  transition: transform .18s ease, box-shadow .18s ease
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(198, 40, 40, 0.08)
}

/* Table */
.table {
  width: 100%;
  border-collapse: collapse
}

.table th,
.table td {
  padding: 10px;
  border-bottom: 1px solid #f6e9e9
}

.table thead th {
  background: transparent;
  text-align: left
}

.table-responsive {
  overflow: auto
}

.table-hamburger {
  position: absolute;
  right: 8px;
  top: 6px;
  background: var(--accent);
  border: 0;
  color: #fff;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  z-index: 50
}

.table-hamburger svg {
  stroke: #fff
}

.table-responsive.expanded {
  position: fixed;
  left: 8px;
  right: 8px;
  top: 80px;
  bottom: 80px;
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  z-index: 1200;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: auto
}

.table-responsive.expanded table {
  width: 100%
}

.table-responsive.expanded .table-hamburger {
  right: 14px;
  top: 12px
}

.table-striped tbody tr:nth-child(odd) {
  background: rgba(198, 40, 40, 0.03)
}

/* Small text */
.muted {
  color: var(--muted);
  font-size: 0.9em
}

/* Flash */
.flash-message {
  background: white;
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  margin-bottom: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  animation: fadeIn 0.3s ease;
  display: flex;
  align-items: center;
  font-weight: 500;
  color: #333;
}

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

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* Responsive helpers */
.hide-mobile {
  display: inline
}

.show-mobile {
  display: none
}

@media(max-width:720px) {
  .hide-mobile {
    display: none
  }

  .show-mobile {
    display: inline
  }
}

/* End utilities */
/* Header & Navigation Improvements */
.site-header {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.brand-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
}

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

.brand-logo {
  height: 40px;
  width: auto;
}

.site-branding {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.site-subtitle {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.5px;
}

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

.tech-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 2px;
}

.bpt-logo {
  height: 24px;
}

.topbar {
  background: #fff;
  border-top: 1px solid #f8f8f8;
  padding: 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.page-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: #333;
}

.menu-toggle {
  background: #f5f5f5;
  border: none;
  padding: 8px;
  border-radius: 8px;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.menu-toggle:hover {
  background: #eee;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.primary-menu {
  display: flex;
  gap: 5px;
}

.primary-menu a {
  text-decoration: none;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s;
}

.primary-menu a:hover,
.primary-menu a.active {
  color: var(--accent);
  background: rgba(198, 40, 40, 0.08);
  box-shadow: inset 0 -2px 0 var(--accent);
  border-radius: 8px 8px 0 0;
}

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

.user-avatar {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

/* Unified Site Drawer */
.site-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: #fff;
  z-index: 2000;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.site-drawer.open {
  transform: translateX(0);
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sidebar-branding {
  padding: 24px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo {
  height: 90px;
  width: auto;
}

.sidebar-info {
  display: flex;
  flex-direction: column;
}

.sidebar-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.sidebar-tag {
  font-size: 10px;
  color: var(--muted);
}

.drawer-content {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.drawer-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 1px;
  margin: 0;
  padding-left: 5px;
}

.drawer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.drawer-menu a {
  text-decoration: none;
  color: #555;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 15px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.drawer-menu a:hover,
.drawer-menu a.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(198, 40, 40, 0.05);
  transform: translateX(4px);
}

/* Sidebar Footer Global Styles */
.sidebar-footer {
  padding: 20px 24px;
  border-top: 1px solid #f8f8f8;
  margin-top: auto;
}

.tech-partner-sidebar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tech-partner-sidebar .tech-label {
  display: none;
  /* Hidden by default (mobile) */
}

.bpt-logo-sidebar {
  height: 73px;
  width: auto;
  transition: all 0.3s;
}

@media (min-width: 1024px) {
  .tech-partner-sidebar .tech-label {
    display: block;
    /* Visible on desktop */
  }
}

.mobile-only {
  display: none;
}

@media (max-width: 720px) {
  .primary-menu {
    display: none;
  }

  .tech-partner {
    display: none;
  }

  .mobile-only {
    display: flex;
  }

  .menu-toggle {
    display: flex !important;
  }
}

@media (min-width: 1024px) {
  .admin-logged-in .site-drawer {
    transform: translateX(0);
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    width: 280px;
    box-shadow: none;
    border-right: 1px solid #f0f0f0;
  }

  .admin-logged-in .drawer-overlay {
    display: none;
  }

  .admin-logged-in .drawer-content {
    padding: 10px 0;
  }

  .admin-logged-in .drawer-section.mobile-only {
    display: none;
  }

  .admin-logged-in .menu-toggle {
    display: none !important;
  }
}

@media (min-width: 721px) {
  .menu-toggle {
    display: none;
  }
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.logout-link {
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
}

.logout-link:hover {
  color: var(--accent);
}

.login-btn {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s;
}

.login-btn:hover {
  background: var(--accent-strong);
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.2);
}

.bottom-nav {
  position: fixed;
  right: 0;
  left: 0;
  bottom: 0;
  height: 64px;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.06)
}

.bottom-nav .nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px
}

.bottom-nav .nav-icon {
  display: block;
  color: var(--muted);
  margin-bottom: 4px
}

.bottom-nav .nav-label {
  font-size: 11px;
  line-height: 1;
  color: var(--muted)
}

.bottom-nav .nav-item.active,
.bottom-nav .nav-item:focus,
.bottom-nav .nav-item:hover {
  background: linear-gradient(90deg, rgba(198, 40, 40, 0.08), rgba(198, 40, 40, 0.02));
  color: var(--accent-strong);
}

.bottom-nav .nav-item.active .nav-icon svg,
.bottom-nav .nav-item:focus .nav-icon svg,
.bottom-nav .nav-item:hover .nav-icon svg {
  stroke: var(--accent-strong);
}

/* Compact mode for very small screens: hide labels to save space */
@media(max-width:360px) {
  .bottom-nav {
    height: 56px
  }

  .bottom-nav .nav-label {
    display: none
  }

  .bottom-nav .nav-icon {
    margin-bottom: 0
  }
}

.page h1,
.page h2 {
  margin: 8px 0
}

.card {
  background: var(--card);
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(198, 40, 40, 0.06);
  margin-bottom: 12px;
  transition: transform .18s ease, box-shadow .18s ease
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(198, 40, 40, 0.08)
}

.btn {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(198, 40, 40, 0.12);
  transition: transform .12s ease, box-shadow .12s ease
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(198, 40, 40, 0.16)
}

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

.btn-secondary {
  background: #f5f5f5;
  border: 2px solid #ddd;
  color: #333;
  transition: all .2s ease
}

.btn-secondary:hover {
  background: #efefef;
  border-color: #999
}

/* Admin Form Styles */
.admin-form-container {
  max-width: 800px;
  margin: 0 auto;
}

.admin-form-section {
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid #f0f0f0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.admin-form-section h3 {
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 700;
  color: #111;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(198, 40, 40, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #555;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: #fcfcfc;
  border: 1.5px solid #eee;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  color: #111;
  transition: all 0.25s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.1);
}

.checkbox-group {
  display: flex !important;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 12px;
  background: #f9f9f9;
  border-radius: 10px;
  border: 1px solid #eee;
  transition: all 0.2s;
}

.checkbox-group:hover {
  background: #f0f0f0;
  border-color: #ddd;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin: 0;
}

.photo-preview {
  transition: transform 0.3s ease;
}

.photo-preview:hover {
  transform: scale(1.05);
}

.form-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.form-actions .btn,
.form-actions .btn-secondary {
  flex: 1;
  padding: 14px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  justify-content: center;
}

/* Photo Upload Layout */
.photo-upload-container {
  display: flex;
  align-items: center;
  gap: 24px;
}

.photo-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px dashed #ddd;
}

.photo-placeholder svg {
  width: 40px;
  height: 40px;
  color: #ccc;
}

/* Form Layout Helpers */
.col-full {
  flex: 0 0 100% !important;
  max-width: 100% !important;
}

@media (max-width: 600px) {
  .photo-upload-container {
    flex-direction: column;
    text-align: center;
  }

  .form-actions {
    flex-direction: column;
  }
}

/* Donor Search & Suggestions */
.search-container {
  position: relative;
}

.suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-radius: 12px;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: none;
  overflow: hidden;
  margin-top: 4px;
}

.suggestions div {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
  transition: all 0.2s;
}

.suggestions div:last-child {
  border-bottom: none;
}

.suggestions div:hover {
  background: rgba(198, 40, 40, 0.05);
  color: var(--accent);
}

.selected-donor-info {
  margin-top: 10px;
  font-weight: 600;
  font-size: 13px;
}

/* Donors Page Styles */
.page.donors {
  padding: 16px;
}

.page.requests {
  padding: 16px;
}

.donors-header {
  margin-bottom: 24px;
}

.donors-title-section {
  padding: 16px 0;
}

.donors-title-section h1 {
  margin: 0 0 6px 0;
  font-size: 28px;
  font-weight: 700;
  color: #111;
}

.donors-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* Donor Table Styles */
.donor-cell {
  display: flex;
  gap: 12px;
  align-items: center;
}

.donor-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(198, 40, 40, 0.1);
  color: var(--accent);
  border-radius: 50%;
  font-weight: 700;
  overflow: hidden;
}

.donor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.donor-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.donor-name-text {
  font-weight: 600;
  color: #111;
  font-size: 14px;
}

.donor-source-tag {
  font-size: 11px;
  color: var(--muted);
}

.action-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Filters Container */
.filters-container {
  margin-bottom: 24px;
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #f0f0f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.donor-filter-form {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.filter-group {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-group label {
  font-size: 13px;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group select {
  width: 100%;
  padding: 12px 16px;
  background: #fcfcfc;
  border: 1.5px solid #eee;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #111;
  cursor: pointer;
  transition: all 0.25s ease;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' 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 12px center;
  background-size: 16px;
}

.filter-group select:focus {
  outline: none;
  border-color: var(--accent);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.1);
}

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

.btn-filter {
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
}

.btn-filter svg {
  opacity: 0.9;
}

.btn-clear-filters {
  background: #f5f5f5;
  color: #111;
  border: 1px solid #eee;
  box-shadow: none;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 14px;
}

.btn-clear-filters:hover {
  background: #eee;
  color: var(--accent);
}

@media (max-width: 720px) {
  .filters-container {
    padding: 16px;
  }

  .donor-filter-form {
    gap: 16px;
  }

  .filter-group {
    min-width: 100%;
  }

  .filter-actions {
    width: 100%;
  }

  .btn-filter {
    flex: 1;
    justify-content: center;
  }
}

/* Donors List Container */
.donors-list-container {
  padding: 0;
}

/* Donors List Grid */
.donor-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Mobile to Tablet: 2 columns */
@media (min-width: 640px) {
  .donor-list {
    grid-template-columns: repeat(2, 1fr);
  }

  #blood_group {
    font-size: 15px;
  }

  .donors-title-section h1 {
    font-size: 26px;
  }

  .blood-badge {
    width: 65px;
    height: 65px;
    font-size: 19px;
  }
}

/* Tablet: 3 columns */
@media (min-width: 768px) {
  .donor-list {
    grid-template-columns: repeat(3, 1fr);
  }

  #donor-search {
    font-size: 15px;
    padding: 12px 12px 12px 40px;
  }

  .donors-title-section h1 {
    font-size: 26px;
  }

  .blood-badge {
    width: 68px;
    height: 68px;
    font-size: 19px;
  }
}

/* Desktop/Laptop: 4 columns */
@media (min-width: 1024px) {
  .donor-list {
    grid-template-columns: repeat(4, 1fr);
  }

  #blood_group {
    font-size: 16px;
    padding: 12px 12px 12px 40px;
  }

  .search-icon {
    width: 20px;
    height: 20px;
    left: 12px;
  }

  .blood-badge {
    width: 70px;
    height: 70px;
    font-size: 20px;
  }
}

.donor-list .empty-state {
  padding: 40px 16px;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  list-style: none;
  grid-column: 1 / -1;
}

.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* Donor Card */
.donor-card {
  list-style: none;
  margin: 0;
}

.donor-card-link {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #f0f0f0;
  text-decoration: none;
  color: #111;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.donor-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.donor-info {
  width: 100%;
}

.donor-name {
  font-size: 16px;
  font-weight: 600;
  color: #111;
  margin: 0 0 8px 0;
  word-break: break-word;
}

.donor-status-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-eligible {
  background: #c8e6c9;
  color: #1b5e20;
}

.status-not-eligible {
  background: #ffccbc;
  color: #bf360c;
}

.status-pending {
  background: #fff9c4;
  color: #f57f17;
}

.status-deferred {
  background: #ede7f6;
  color: #512da8;
}

/* Blood Badge */
.blood-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.blood-badge[data-blood="O+"] {
  background: #d32f2f;
}

.blood-badge[data-blood="O-"] {
  background: #b71c1c;
}

.blood-badge[data-blood="A+"] {
  background: #f57c00;
}

.blood-badge[data-blood="A-"] {
  background: #e65100;
}

.blood-badge[data-blood="B+"] {
  background: #1976d2;
}

.blood-badge[data-blood="B-"] {
  background: #1565c0;
}

.blood-badge[data-blood="AB+"] {
  background: #7b1fa2;
}

.blood-badge[data-blood="AB-"] {
  background: #512da8;
}

/* Donor Profile Page */
.donor-view {
  padding: 0;
}

.donor-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 24px;
  gap: 12px;
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.back-btn:active {
  transform: scale(0.95);
}

.back-btn svg {
  width: 20px;
  height: 20px;
}

.profile-title {
  flex: 1;
  text-align: center;
  font-weight: 600;
  color: #111;
}

.profile-placeholder {
  width: 40px;
  flex-shrink: 0;
}

/* Profile Card */
.donor-profile-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.profile-blood-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 12px;
  color: #fff;
  flex-shrink: 0;
}

.blood-type {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.blood-label {
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
  opacity: 0.9;
}

.profile-blood-badge[data-blood="O+"] {
  background: #d32f2f;
}

.profile-blood-badge[data-blood="O-"] {
  background: #b71c1c;
}

.profile-blood-badge[data-blood="A+"] {
  background: #f57c00;
}

.profile-blood-badge[data-blood="A-"] {
  background: #e65100;
}

.profile-blood-badge[data-blood="B+"] {
  background: #1976d2;
}

.profile-blood-badge[data-blood="B-"] {
  background: #1565c0;
}

.profile-blood-badge[data-blood="AB+"] {
  background: #7b1fa2;
}

.profile-blood-badge[data-blood="AB-"] {
  background: #512da8;
}

.profile-info {
  width: 100%;
}

.donor-profile-name {
  margin: 0 0 12px 0;
  font-size: 24px;
  font-weight: 700;
  color: #111;
}

.profile-status {
  margin-bottom: 16px;
}

.eligibility-info,
.contact-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #f0f0f0;
  text-align: left;
}

.eligibility-info:first-of-type {
  border-top: none;
}

.icon-small {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.eligibility-text,
.phone-text {
  flex: 1;
}

.eligibility-label,
.phone-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.eligibility-date,
.phone-number {
  font-size: 15px;
  color: #111;
  font-weight: 500;
}

/* Donation History Section */
.donation-history-section {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.section-title {
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 700;
  color: #111;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title .icon-small {
  color: var(--accent);
}

/* Donation Timeline */
.donation-timeline {
  position: relative;
}

.empty-timeline {
  padding: 40px 20px;
  text-align: center;
}

.empty-timeline .empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-message {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.timeline-items {
  position: relative;
  padding-left: 24px;
}

.timeline-items::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(198, 40, 40, 0.2));
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 4px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -18px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-content {
  padding: 12px;
  background: #f9f9f9;
  border-radius: 10px;
  border-left: 2px solid var(--accent);
}

.donation-date {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  margin-bottom: 4px;
}

.donation-event {
  font-size: 15px;
  color: #333;
  margin-bottom: 6px;
}

.donation-coordinator {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

/* Mobile Responsive */
@media (max-width: 720px) {
  .donor-profile-card {
    padding: 20px;
  }

  .profile-blood-badge {
    width: 90px;
    height: 90px;
  }

  .blood-type {
    font-size: 32px;
  }

  .donor-profile-name {
    font-size: 22px;
  }

  .blood-badge {
    width: 60px;
    height: 60px;
    font-size: 18px;
  }

  .donation-history-section {
    padding: 20px;
  }

  .donors-title-section h1 {
    font-size: 24px;
  }

  #blood_group {
    padding: 11px 11px 11px 36px;
    font-size: 14px;
  }

  .search-icon {
    width: 18px;
    height: 18px;
    left: 10px;
  }

  .donor-card-body {
    gap: 12px;
  }

  .blood-badge {
    width: 65px;
    height: 65px;
    font-size: 18px;
  }

  .donor-list {
    gap: 12px;
  }
}

.leader-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: 10px;
  background: linear-gradient(90deg, rgba(198, 40, 40, 0.06), rgba(255, 255, 255, 0));
  margin-bottom: 8px
}

.leader-rank {
  font-weight: 700;
  color: var(--accent-strong);
  margin-right: 8px
}

.muted {
  color: var(--muted);
  font-size: 0.9em
}

/* Leaderboard Page Styles */
.page.leaderboard {
  padding: 16px;
  max-width: 1400px;
  margin: 0 auto;
}

.leaderboard-header {
  margin-bottom: 32px;
  text-align: center;
}

.leaderboard-header h1 {
  margin: 0 0 8px 0;
  font-size: 32px;
  font-weight: 700;
  color: #111;
}

.leaderboard-subtitle {
  margin: 0 0 12px 0;
  font-size: 15px;
  color: var(--muted);
}

.leaderboard-rotation {
  margin: 0;
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}

/* Leaderboard Sections */
.leaderboard-section {
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  width: 100%;
  flex-flow: column;
}

.section-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.section-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #111;
}

/* Leaderboard Grid */
.leaderboard-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  max-width: 1300px;
  margin: 0 auto;
  padding: 10px 0;
}

/* Leaderboard Card */
.leaderboard-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #f0f0f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  width: 280px;
  max-width: 100%;
  gap: 8px;
  margin: 0 auto;
}

.leaderboard-card:active {
  background: #fafafa;
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.1);
  transform: translateY(-2px);
}

@media (hover: hover) {
  .leaderboard-card:hover {
    background: #fafafa;
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.1);
    transform: translateY(-2px);
  }
}

/* Rank Badge */
.rank-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.rank-badge.rank-1 {
  background: linear-gradient(135deg, #FFD700, #FFA500);
}

.rank-badge.rank-2 {
  background: linear-gradient(135deg, #C0C0C0, #A9A9A9);
}

.rank-badge.rank-3 {
  background: linear-gradient(135deg, #CD7F32, #8B4513);
}

.rank-badge.rank-other {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

/* Profile Section */
.profile-section {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.15);
}

.profile-image-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(198, 40, 40, 0.1), rgba(198, 40, 40, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #f0d6d6;
}

.profile-image-placeholder svg {
  width: 56px;
  height: 56px;
  color: var(--accent);
}

/* Card Content */
.card-content {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.donor-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #111;
  word-break: break-word;
}

.blood-info {
  margin: 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.blood-badge-small {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blood-badge-small[data-blood="O+"] {
  background: #d32f2f;
}

.blood-badge-small[data-blood="O-"] {
  background: #b71c1c;
}

.blood-badge-small[data-blood="A+"] {
  background: #f57c00;
}

.blood-badge-small[data-blood="A-"] {
  background: #e65100;
}

.blood-badge-small[data-blood="B+"] {
  background: #1976d2;
}

.blood-badge-small[data-blood="B-"] {
  background: #1565c0;
}

.blood-badge-small[data-blood="AB+"] {
  background: #7b1fa2;
}

.blood-badge-small[data-blood="AB-"] {
  background: #512da8;
}

/* Donation Count */
.donation-count {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(198, 40, 40, 0.08), rgba(198, 40, 40, 0.03));
  border-radius: 10px;
  border: 1px solid rgba(198, 40, 40, 0.1);
  width: 100%;
  align-items: center;
  justify-content: center;
}

.count-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.count-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-strong);
}

/* Empty State */
.empty-leaderboard {
  padding: 60px 20px;
  text-align: center;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #f0f0f0;
}

.empty-leaderboard .empty-icon {
  font-size: 56px;
  margin-bottom: 12px;
}

.empty-leaderboard p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* Responsive */
@media (max-width: 720px) {
  .leaderboard-header h1 {
    font-size: 28px;
  }

  .leaderboard-header {
    margin-bottom: 24px;
  }

  .section-header h2 {
    font-size: 20px;
  }

  .profile-image,
  .profile-image-placeholder {
    width: 100px;
    height: 100px;
  }

  .profile-image-placeholder svg {
    width: 48px;
    height: 48px;
  }

  .donor-name {
    font-size: 16px;
  }

  .leaderboard-card {
    padding: 16px;
  }

  .leaderboard-grid {
    gap: 12px;
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  .leaderboard-header h1 {
    font-size: 30px;
  }
}

@media (min-width: 768px) {
  .leaderboard-header h1 {
    font-size: 32px;
  }
}

@media (min-width: 1024px) {
  .leaderboard-header {
    margin-bottom: 36px;
  }

  .section-header h2 {
    font-size: 24px;
  }
}

.flash-message {
  background: rgba(255, 255, 255, 0.95);
  border-left: 4px solid var(--accent);
  padding: 10px 14px;
  margin: 12px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  animation: fadeIn .28s ease
}

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

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* Admin and Primary menu responsive */
@media(max-width:720px) {

  /* Mobile brand header: compact layout */
  .brand-header.container {
    gap: 8px;
    padding: 4px 0 6px 0
  }

  .brand-left {
    gap: 4px
  }

  .rotaract-logo {
    max-height: 40px
  }

  .bpt-logo {
    max-height: 28px
  }

  .site-title {
    font-size: 12px
  }

  .tech-label {
    font-size: 0.65em
  }

  /* Mobile dropdown menus */
  .site-header {
    position: relative
  }

  .admin-logged-in .admin-menu {
    background: linear-gradient(180deg, var(--accent), var(--accent-strong));
    padding: 0;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    opacity: 0;
    position: absolute;
  }

  .admin-logged-in .admin-menu.open {
    opacity: 1;
    overflow: visible;
    position: absolute;
    left: 0;
    top: 100%;
  }

  .admin-logged-in .admin-menu a {
    display: block;
    color: #fff;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 14px
  }

  .admin-logged-in .admin-menu a:last-child {
    border-bottom: none
  }

  .primary-menu {
    background: linear-gradient(180deg, var(--accent), var(--accent-strong));
    padding: 0;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    opacity: 0;
    position: absolute;
  }

  .primary-menu.open {
    opacity: 1;
    overflow: visible;
    position: absolute;
    left: 0;
    top: 100%;
    display: flex;
  }

  .primary-menu a {
    display: block;
    color: #fff;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 14px
  }

  .primary-menu a:last-child {
    border-bottom: none
  }

  .topbar {
    padding-right: 12px
  }

  /* make table-hamburger visible on small screens */
  .table-hamburger {
    display: inline-flex
  }
}

@media(min-width:720px) {
  .menu-toggle {
    display: none
  }

  .site-header {
    position: relative
  }

  .brand-header {
    width: 100%
  }

  .topbar {
    width: 100%;
    position: relative;
    align-items: center
  }

  .admin-logged-in .topbar {
    display: flex
  }

  .admin-logged-in .admin-menu {
    display: flex;
    gap: 6px;
    align-items: center;
    height: 100%;
    background: transparent;
    padding: 0;
    flex-direction: row
  }

  .admin-logged-in .admin-menu a {
    padding: 6px 8px;
    border-bottom: none;
    display: inline-block
  }

  .primary-menu {
    display: flex;
    gap: 6px;
    align-items: center;
    height: 100%;
    background: transparent;
    padding: 0;
    flex-direction: row
  }

  .primary-menu a {
    padding: 6px 8px;
    border-bottom: none;
    display: inline-block
  }
}

@media(min-width:720px) {
  .main .page, .admin-logged-in .main {
    max-width: 1440px;
    margin: 0 auto
  }
}

/* Responsive nav behavior:
	 - Show bottom navigation on mobile and tablet (default)
	 - Hide bottom navigation and enable topbar on laptop and above (>=1024px)
*/
@media(min-width:1024px) {
  .bottom-nav {
    display: none
  }

  .admin-logged-in .topbar {
    display: flex
  }

  .menu-toggle {
    display: none
  }

  .admin-logged-in .admin-menu {
    display: flex;
    gap: 4px
  }

  .primary-menu {
    display: flex;
    gap: 4px
  }

  /* When bottom nav is hidden, reduce bottom padding to avoid extra space */
  .main {
    padding-bottom: 24px
  }
}

/* Primary menu styles - now uses same layout system as admin-menu */
.admin-logged-in .primary-menu {
  display: none !important
}

/* Hero styles for homepage */
.hero {
  padding: 28px 0;
  background: linear-gradient(180deg, rgba(198, 40, 40, 0.03), rgba(255, 255, 255, 0));
}

.hero-card {
  max-width: 720px;
  margin: 18px auto;
  padding: 28px;
  text-align: center
}

.hero-title {
  font-size: 28px;
  margin: 4px 0;
  color: var(--accent-strong)
}

.hero-sub {
  color: var(--muted);
  margin: 8px 0
}

.hero-actions .btn {
  padding: 12px 18px;
  font-size: 16px;
  margin-right: 20px
}

.hero-actions .btn-secondary {
  background: #f5f5f5;
  color: #333;
  border: 2px solid #ddd
}

/* Footer */
.site-footer {
  padding: 28px 12px;
  background: #0b2540;
  color: #fff;
  margin-top: 28px
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between
}

.site-footer .credit {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95em
}

.site-footer .credit strong {
  color: #bcd6f0
}

/* Final layout components */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: #fff;
  padding-top: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden
}

.brand-header.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0 10px 0;
  flex-wrap: nowrap;
  overflow: hidden
}

.brand-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 1
}

.brand-right {
  display: flex;
  align-items: center;
  flex-shrink: 1
}

.site-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-strong);
  text-align: center;
  line-height: 1.2;
  white-space: normal
}

.brand-logo {
  max-height: 56px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain
}

.bpt-logo {
  max-height: 50px;
  max-width: 100%;
  width: auto;
  height: auto;
  opacity: 0.95;
  object-fit: contain
}

.rotaract-logo {
  max-height: 72px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain
}

.tech-partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px
}

.tech-label {
  font-size: 0.8em;
  margin: 0;
  color: var(--muted)
}

/* When admin menu is open, push page content down by menu height (set via JS to --admin-menu-offset) */
.admin-menu-open .main {
  padding-top: var(--admin-menu-offset, 0px);
  transition: padding-top .28s ease
}

/* watermark on hero */
.hero {
  position: relative;
  overflow: hidden
}

.hero:before {
  content: '';
  position: absolute;
  right: 6%;
  top: 6%;
  width: 260px;
  height: 260px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23C62828" opacity="0.12" d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7z"/></svg>');
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none
}

/* Stats grid */
.impact-stats {
  padding: 28px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 12px
}

.stat-box {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  transition: transform .2s ease, box-shadow .2s ease;
  border: 1px solid #f0f0f0
}

.stat-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08)
}

.stat-num {
  font-weight: 700;
  font-size: 32px;
  color: var(--accent-strong);
  margin-bottom: 8px
}

.stat-label {
  color: var(--muted);
  font-size: 0.95em;
  font-weight: 500
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px
}

.step {
  background: var(--card);
  padding: 16px;
  border-radius: 10px;
  text-align: center
}

.step-icon {
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 8px
}

/* Contact */
.contact {
  margin-top: 18px
}

.contact .card {
  display: flex;
  flex-direction: column;
  gap: 8px
}

@media(max-width:720px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px
  }

  .stat-box {
    padding: 20px
  }

  .stat-num {
    font-size: 28px
  }

  .impact-stats {
    padding: 20px 0
  }

  .steps {
    grid-template-columns: 1fr
  }

  .brand-center {
    justify-content: center
  }

  .hero:before {
    right: -20px;
    top: -40px;
    width: 180px;
    height: 180px
  }

  .hero-card {
    padding: 18px
  }

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

  .hero-actions .btn {
    width: 100%;
    max-width: none
  }
}

/* Donor Module Admin Forms */
.error-messages {
  margin-bottom: 20px;
}

.error-message {
  padding: 12px;
  background: #ffebee;
  border-left: 4px solid #c62828;
  color: #b71c1c;
  border-radius: 4px;
  margin-bottom: 8px;
  font-size: 14px;
}

.donor-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-section {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.form-section h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #111;
}

.form-section div {
  margin-bottom: 14px;
}

.form-section input,
.form-section select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}

.form-section input:focus,
.form-section select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1);
}

.form-section label {
  display: block;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
}

.photo-upload-container {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.photo-preview {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  background: #f5f5f5;
  border: 2px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.photo-placeholder svg {
  width: 60px;
  height: 60px;
}

.photo-upload-input {
  flex: 1;
}

.file-label {
  display: inline-block;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.file-label:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

#photo {
  display: none;
}

.file-help {
  margin: 8px 0 0 0;
  font-size: 12px;
  color: var(--muted);
}

.form-actions {
  margin-top: 28px;
}

.form-actions .btn {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
}

@media (max-width: 600px) {
  .photo-upload-container {
    flex-direction: column;
    align-items: center;
  }

  .photo-upload-input {
    width: 100%;
    text-align: center;
  }
}

/* Premium Elite Login UI */
.view-admin-login .main {
  padding: 0;
  max-width: 100%;
}

.login-wrapper {
  min-height: calc(100vh - 400px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: radial-gradient(circle at top right, rgba(198, 40, 40, 0.04), transparent),
    radial-gradient(circle at bottom left, rgba(198, 40, 40, 0.02), transparent);
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 28px;
  padding: 48px 40px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.login-header {
  text-align: center;
  margin-bottom: 36px;
}

.login-logo-container {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.login-logo-img {
  height: 64px;
  width: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.05));
}

.login-title {
  font-size: 26px;
  font-weight: 800;
  color: #111;
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}

.login-subtitle {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  padding: 0 20px;
}

.login-error {
  background: #fffcfc;
  border: 1px solid #fee2e2;
  color: #dc2626;
  padding: 12px 14px;
  border-radius: 14px;
  margin-bottom: 28px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.05);
  animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-field label {
  font-size: 13px;
  font-weight: 700;
  color: #444;
  margin-left: 4px;
}

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

.login-input-wrap .field-icon {
  position: absolute;
  left: 16px;
  color: #999;
  transition: color 0.2s;
}

.login-input-wrap input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  background: #fcfcfc;
  border: 1.5px solid #eee;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 500;
  color: #111;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-input-wrap input:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.1);
}

.login-input-wrap input:focus+.field-icon {
  color: var(--accent);
}

.login-submit-btn {
  margin-top: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(198, 40, 40, 0.2);
  transition: all 0.2s;
}

.login-submit-btn:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(198, 40, 40, 0.25);
}

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

.login-footer {
  margin-top: 32px;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #f8f8f8;
}

.login-back-btn {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.login-back-btn:hover {
  color: var(--accent);
  transform: translateX(-4px);
}

@media (max-width: 480px) {
  .login-card {
    padding: 40px 24px;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .login-wrapper {
    padding: 0;
    background: #fff;
    min-height: 100vh;
  }

  .login-footer {
    border-top: none;
  }
}

/* Premium Elite Dashboard UI */
.admin-dashboard {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 40px;
}

.dashboard-header {
  padding: 32px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border-radius: 24px;
}

.dashboard-title {
  font-size: 28px;
  font-weight: 800;
  color: #111;
  margin: 0 0 4px 0;
  letter-spacing: -0.5px;
}

.dashboard-subtitle {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}

.date-badge {
  background: #f8f8f8;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  border: 1px solid #f0f0f0;
}

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

.stat-card {
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: white;
  border-radius: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.stat-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon svg {
  stroke-width: 2.5px;
}

.donor-icon {
  background: rgba(198, 40, 40, 0.08);
  color: var(--accent);
}

.donation-icon {
  background: rgba(30, 136, 229, 0.08);
  color: #1e88e9;
}

.request-icon {
  background: rgba(255, 143, 0, 0.08);
  color: #ff8f00;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 32px;
  font-weight: 800;
  margin: 4px 0 0 0;
  color: #111;
}

.text-red {
  color: var(--accent) !important;
}

.dashboard-sections {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
}

.dashboard-section {
  padding: 32px;
  background: white;
  border-radius: 24px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin: 0 0 24px 0;
  padding-bottom: 16px;
  border-bottom: 1px solid #f8f8f8;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 24px 16px;
  border-radius: 20px;
  background: #fcfcfc;
  border: 1px solid #f0f0f0;
  transition: all 0.2s;
}

.action-btn:hover {
  background: white;
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.action-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-red-light {
  background: rgba(198, 40, 40, 0.08);
  color: var(--accent);
}

.bg-blue-light {
  background: rgba(30, 136, 229, 0.08);
  color: #1e88e9;
}

.bg-green-light {
  background: rgba(67, 160, 71, 0.08);
  color: #43a047;
}

.bg-orange-light {
  background: rgba(251, 140, 0, 0.08);
  color: #fb8c00;
}

.action-btn span {
  font-size: 14px;
  font-weight: 600;
  color: #444;
}

.blood-summary-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.blood-summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fcfcfc;
  border-radius: 14px;
  border: 1px solid #f0f0f0;
}

.blood-badge {
  background: var(--accent);
  color: white;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  min-width: 40px;
  text-align: center;
}

.blood-count {
  font-size: 14px;
  font-weight: 600;
  color: #555;
}

@media (max-width: 1024px) {
  .dashboard-sections {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
  }

  .stat-card {
    padding: 24px;
  }
}

/* Premium Elite Admin Sidebar */
@media (min-width: 1024px) {
  .admin-logged-in .site-drawer {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 260px;
    background: #fff;
    border-right: 1px solid #f0f0f0;
    border-top: none;
    border-bottom: none;
    z-index: 1500;
    padding: 0;
    flex-direction: column;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.02);
  }

  .admin-logged-in .drawer-content {
    padding: 0;
    flex-direction: column;
    height: 100%;
    max-width: 100%;
    width: 100%;
  }

  .admin-logged-in .drawer-section {
    padding: 40px 20px;
    height: 100%;
  }

  .admin-logged-in .drawer-label {
    padding-left: 15px;
    margin-bottom: 25px;
    color: #999;
    font-size: 11px;
    font-weight: 800;
  }

  .admin-logged-in .drawer-menu {
    flex-direction: column;
    gap: 8px;
  }

  .admin-logged-in .drawer-menu a {
    width: 100%;
    background: transparent;
    border: none;
    padding: 14px 20px;
    border-radius: 16px;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    justify-content: flex-start;
    gap: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .admin-logged-in .drawer-menu a svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.2px;
    opacity: 0.7;
    transition: all 0.2s;
  }

  .admin-logged-in .drawer-menu a:hover {
    background: #fcfcfc;
    color: var(--accent);
    transform: translateX(4px);
  }

  .admin-logged-in .drawer-menu a.active,
  .admin-logged-in .drawer-menu a[href*="/admin/index"]:hover {
    background: rgba(198, 40, 40, 0.06);
    color: var(--accent);
  }

  .admin-logged-in .drawer-menu a.active svg,
  .admin-logged-in .drawer-menu a:hover svg {
    opacity: 1;
    stroke: var(--accent);
  }

  /* Adjust Main Layout for Sidebar - FIXED POSITIONING */
  .admin-logged-in .site-drawer {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #fff;
    border-right: 1px solid #f0f0f0;
    border-top: none;
    z-index: 1100;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.02);
  }

  .admin-logged-in .site-header,
  .admin-logged-in .main,
  .admin-logged-in .site-footer {
    margin-left: 280px;
    width: calc(100% - 280px);
  }

  .admin-logged-in .site-header {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    position: relative;
    z-index: 1050;
  }

  .admin-logged-in .topbar {
    background: transparent;
    border: none;
    padding: 10px 24px;
  }

  .admin-logged-in .topbar-inner {
    background: #fff;
    margin: 0 30px;
    padding: 0 25px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
    height: 64px;
    max-width: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .admin-logged-in .container {
    max-width: 1390px;
    margin: 0;
    padding: 0 30px;
    width: 100%;
  }

  .admin-logged-in .main {
    padding-top: 10px;
  }

  /* Admin Branding in Topbar (Mobile/Compact) */
  .admin-topbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 20px;
  }

  .admin-topbar-brand.hide {
    display: none;
  }

  .admin-mini-logo {
    height: 32px;
    width: auto;
  }

  .admin-brand-text {
    display: flex;
    flex-direction: column;
  }

  .admin-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
  }

  .admin-subtitle {
    font-size: 10px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  /* Tech Partner mini in Header */
  .header-right-actions {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .tech-partner-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 15px;
    border-right: 1px solid #f0f0f0;
  }

  .mini-bpt-logo {
    height: 18px;
    width: auto;
  }

  /* Sidebar Branding Fixes */
  .sidebar-branding {
    padding: 30px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f8f8f8;
    margin-bottom: 10px;
  }

  .sidebar-info {
    display: flex;
    flex-direction: column;
  }

  .sidebar-name {
    font-size: 15px;
    font-weight: 800;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .sidebar-tag {
    font-size: 10px;
    color: var(--muted);
    font-weight: 600;
  }

  .drawer-content {
    padding: 10px 24px;
    flex: 1;
    overflow-y: auto;
  }

  .drawer-menu a {
    background: transparent;
    border: none;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 4px;
    width: 100%;
  }

  .drawer-menu a:hover,
  .drawer-menu a.active {
    background: rgba(198, 40, 40, 0.05);
    color: var(--accent);
  }

  .hide-admin {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .admin-logged-in .site-drawer {
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex !important;
  }

  .admin-logged-in .site-drawer.open {
    transform: translateX(0);
  }

  .admin-logged-in .site-header,
  .admin-logged-in .main,
  .admin-logged-in .site-footer {
    margin-left: 0;
    width: 100%;
  }

  .admin-logged-in .topbar-inner {
    margin: 0 15px;
    padding: 0 15px;
    width: 100%;
  }

  .admin-logged-in .menu-toggle {
    display: flex !important;
  }

  .admin-topbar-brand {
    display: none;
  }
}

/* Blood Requests Page Styles */
.requests-intro {
  margin-bottom: 20px;
}

.requests-stats {
  margin-bottom: 24px;
}

.requests-actions {
  margin-bottom: 24px;
}

.requests-filter-card {
  margin-bottom: 20px;
  padding: 16px;
}

.requests-filter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-group {
  flex: 1;
  min-width: 150px;
}

.filter-label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 14px;
}

.filter-input,
.filter-select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
}

.filter-actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.btn-search,
.btn-clear,
.btn-small {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-clear {
  text-decoration: none;
  display: inline-block;
}

/* Requests Grid - Modern 3-4 column layout */
.requests-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .requests-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .requests-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.request-card {
  padding: 20px !important;
  border-left: 4px solid var(--accent) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 100% !important;
  margin-bottom: 0 !important;
}

.request-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.request-blood-type {
  margin: 0 0 4px 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-strong);
}

.request-location {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

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

.request-units {
  font-weight: 700;
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 4px;
  line-height: 1;
}

.request-date {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.request-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
  padding-top: 12px;
  border-top: 1px solid #f8f8f8;
}

.detail-label {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.detail-value {
  margin: 4px 0 0 0;
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.contact-link {
  color: var(--accent);
  text-decoration: none;
}

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

.request-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.requests-empty-card {
  text-align: center;
  padding: 60px 40px;
}

.empty-title {
  color: #333;
  margin-bottom: 8px;
  font-size: 20px;
}

.empty-text {
  color: var(--muted);
  margin: 0 0 24px 0;
}

/* Modern Donor Card Styles */
.donor-card-link {
  overflow: hidden;
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
  border: 1px solid #f0f0f0 !important;
}

.donor-card-header {
  position: relative;
  height: 120px;
  background: linear-gradient(135deg, rgba(198, 40, 40, 0.05), rgba(198, 40, 40, 0.02));
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #f8f8f8;
  width: 100%;
}

.donor-profile-img-container {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  background: #fdfdfd;
  z-index: 1;
}

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

.donor-profile-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ddd;
}

.donor-profile-icon svg {
  width: 44px;
  height: 44px;
}

.card-blood-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 42px;
  padding: 4px 8px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(198, 40, 40, 0.2);
  z-index: 5;
}

.donor-card-meta {
  padding: 16px;
  text-align: center;
  width: 100%;
}

.donor-card-name {
  font-weight: 700;
  font-size: 17px;
  color: #111;
  margin-bottom: 6px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.donor-card-status-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 8px;
  position: relative;
}

.status-text {
  line-height: 1;
}

/* Eligible / Available Status */
.status-available {
  background: rgba(67, 160, 71, 0.08);
  color: #2e7d32;
  border: 1px solid rgba(67, 160, 71, 0.15);
}

.status-available .status-dot {
  background-color: #43a047;
  box-shadow: 0 0 0 0 rgba(67, 160, 71, 0.4);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(67, 160, 71, 0.4);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(67, 160, 71, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(67, 160, 71, 0);
  }
}

/* Not Eligible Status */
.status-not_eligible {
  background: rgba(229, 57, 53, 0.08);
  color: #c62828;
  border: 1px solid rgba(229, 57, 53, 0.15);
}

.status-not_eligible .status-dot {
  background-color: #e53935;
}

/* Pending Status */
.status-pending {
  background: rgba(251, 140, 0, 0.08);
  color: #ef6c00;
  border: 1px solid rgba(251, 140, 0, 0.15);
}

.status-pending .status-dot {
  background-color: #fb8c00;
}

/* Deferred Status */
.status-deferred {
  background: rgba(123, 31, 162, 0.08);
  color: #6a1b9a;
  border: 1px solid rgba(123, 31, 162, 0.15);
}

.status-deferred .status-dot {
  background-color: #7b1fa2;
}

/* ==========================================================================
   Admin UI Refinements (V2 - Elegance & Consistency)
   ========================================================================== */

:root {
  --admin-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  --admin-border-radius: 16px;
}

/* Admin Page Header */
.admin-page-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 24px 0 !important;
  margin-bottom: 24px !important;
  border-bottom: 2px solid #f8f8f8 !important;
}

.admin-header-content {
  flex: 1 !important;
}

.admin-title {
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #111 !important;
  margin: 0 !important;
  letter-spacing: -0.8px !important;
}

.admin-subtitle {
  font-size: 14px !important;
  color: #888 !important;
  margin: 6px 0 0 0 !important;
  font-weight: 500 !important;
}

.admin-header-actions {
  display: flex !important;
  gap: 12px !important;
}

/* Stats Grid & Cards */
.admin-stats-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
  margin-bottom: 32px !important;
}

/* Stats Card Scaling - Refinement */
.admin-stat-card {
  flex: 1 !important;
  min-width: 280px !important;
  background: #fff !important;
  border-radius: var(--admin-border-radius) !important;
  padding: 24px !important;
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  box-shadow: var(--admin-card-shadow) !important;
  border: 1px solid #f8f8f8 !important;
  transition: all 0.2s ease !important;
}

.admin-stat-icon {
  width: 56px !important;
  height: 56px !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.admin-stat-icon svg {
  width: 28px !important;
  height: 28px !important;
}

.admin-stat-label {
  display: block !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #aaa !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  margin-bottom: 4px !important;
}

.admin-stat-value {
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #111 !important;
  margin: 0 !important;
}

/* Table Design Refinement */
.table-card {
  border-radius: var(--admin-border-radius) !important;
  overflow: hidden !important;
  border: 1px solid #f8f8f8 !important;
  box-shadow: var(--admin-card-shadow) !important;
}

.table thead th {
  background: #fafafa !important;
  color: #999 !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  font-size: 10px !important;
  letter-spacing: 1px !important;
}

/* Home Page V3 Improvements */
.hero-v3 {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  padding: 80px 0;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(198, 40, 40, 0.4) 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(198, 40, 40, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--accent);
  text-shadow: 0 0 20px rgba(198, 40, 40, 0.4);
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 40px;
}

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

.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 700;
}

.btn-xl {
  padding: 20px 40px;
  font-size: 1.2rem;
  font-weight: 800;
}

.btn-white {
  background: #fff !important;
  color: var(--accent) !important;
  border: none !important;
}

.btn-white:hover {
  background: #f8f8f8 !important;
  color: var(--accent-strong) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* Impact Stats V3 */
.impact-stats-v3 {
  padding: 80px 0;
  background: #fff;
}

.section-header {
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
}

.stats-grid-v3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.stat-card {
  background: #fff;
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  gap: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #f0f0f0;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(198, 40, 40, 0.1);
  border-color: rgba(198, 40, 40, 0.1);
}

.stat-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon-wrapper svg {
  width: 32px;
  height: 32px;
}

.stat-icon-wrapper.blood {
  background: rgba(198, 40, 40, 0.1);
  color: var(--accent);
}

.stat-icon-wrapper.hospital {
  background: rgba(21, 101, 192, 0.1);
  color: #1565C0;
}

.stat-icon-wrapper.lives {
  background: rgba(46, 125, 50, 0.1);
  color: #2E7D32;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: #111;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-name {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

/* How It Works */
.how-it-works {
  background: var(--bg);
  padding: 100px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.step-card {
  position: relative;
  padding: 40px;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.04);
}

.step-number {
  position: absolute;
  top: -20px;
  right: 30px;
  font-size: 5rem;
  font-weight: 900;
  color: rgba(198, 40, 40, 0.05);
  line-height: 1;
  user-select: none;
}

.step-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #111;
  position: relative;
}

.step-text {
  color: var(--muted);
  line-height: 1.7;
}

/* CTA Section */
.cta-section {
  padding: 60px 0 120px 0;
}

.cta-card {
  border-radius: 40px;
  padding: 80px 40px;
  text-align: center;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff;
  box-shadow: 0 30px 60px rgba(198, 40, 40, 0.3);
}

.cta-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.cta-text {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.pulse {
  animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .cta-title {
    font-size: 2rem;
  }
}