/* ── Blood Donors Plugin Styles ── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

#bd-wrap, #bd-admin-wrap {
  font-family: 'Poppins', sans-serif;
  background: #fffde7;
  color: #0d2b6b;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0 40px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(13,43,107,0.12);
}

/* ── Ticker ── */
.bd-ticker {
  background: linear-gradient(90deg, #c62828, #e53935);
  color: #fff;
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
}
.bd-ticker-inner {
  display: inline-block;
  animation: bdScroll 60s linear infinite;
  font-size: 14px;
  font-weight: 600;
  padding-left: 100%;
}
@keyframes bdScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ── Header ── */
.bd-header {
  background: linear-gradient(135deg, #0d2b6b 0%, #1565c0 60%, #1976d2 100%);
  padding: 30px 20px;
  text-align: center;
  color: #fff;
}
.bd-drop { font-size: 48px; display:block; line-height:1; }
.bd-header h1 { margin: 8px 0 4px; font-size: 28px; font-weight: 700; letter-spacing: 1px; }
.bd-header p  { margin: 0; font-size: 14px; opacity: 0.85; }

/* ── Tabs ── */
.bd-tabs {
  display: flex;
  background: #1565c0;
  border-bottom: 3px solid #c62828;
}
.bd-tab {
  flex: 1;
  padding: 14px 10px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Poppins', sans-serif;
}
.bd-tab:hover, .bd-tab.active {
  background: #0d2b6b;
  color: #ffe082;
  border-bottom: 3px solid #ffe082;
}

.bd-tab-content { padding: 24px 20px; }

/* ── Form ── */
.bd-form-box { background: #fff8e1; border-radius: 10px; padding: 24px; border: 1px solid #ffe082; }
.bd-form-box h2 { color: #0d2b6b; margin: 0 0 20px; font-size: 20px; }
.bd-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:600px) { .bd-form-grid { grid-template-columns: 1fr; } }

.bd-field label { display: block; font-size: 13px; font-weight: 600; color: #0d2b6b; margin-bottom: 5px; }
.bd-field input, .bd-field select, .bd-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #bbdefb;
  border-radius: 8px;
  font-size: 14px;
  color: #0d2b6b;
  background: #fff;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  transition: border-color 0.2s;
}
.bd-field input:focus, .bd-field select:focus, .bd-field textarea:focus {
  outline: none;
  border-color: #1565c0;
  box-shadow: 0 0 0 3px rgba(21,101,192,0.15);
}

.bd-btn-submit {
  margin-top: 20px;
  background: linear-gradient(135deg, #c62828, #e53935);
  color: #fff;
  border: none;
  padding: 13px 30px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 3px 12px rgba(198,40,40,0.35);
}
.bd-btn-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(198,40,40,0.4); }

#bd-enroll-msg, #chat-submit-msg { margin: 12px 0; font-weight: 600; font-size: 14px; }
.bd-success { color: #1b5e20; background: #e8f5e9; padding: 10px 14px; border-radius: 6px; }
.bd-error   { color: #b71c1c; background: #ffebee; padding: 10px 14px; border-radius: 6px; }

/* ── Directory ── */
.bd-dir-box { background: #fff8e1; border-radius: 10px; padding: 20px; border: 1px solid #ffe082; }
.bd-dir-box h2 { color: #0d2b6b; margin: 0 0 16px; }

.bd-group-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.bd-gbtn {
  padding: 8px 18px;
  border: 2px solid #0d2b6b;
  background: #fff;
  color: #0d2b6b;
  border-radius: 25px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: all 0.2s;
}
.bd-gbtn:hover, .bd-gbtn.active { background: #0d2b6b; color: #ffe082; }
.bd-gbtn.a-pos.active  { background: #1565c0; border-color: #1565c0; color: #fff; }
.bd-gbtn.a-neg.active  { background: #283593; border-color: #283593; color: #fff; }
.bd-gbtn.b-pos.active  { background: #c62828; border-color: #c62828; color: #fff; }
.bd-gbtn.b-neg.active  { background: #880e4f; border-color: #880e4f; color: #fff; }
.bd-gbtn.o-pos.active  { background: #2e7d32; border-color: #2e7d32; color: #fff; }
.bd-gbtn.o-neg.active  { background: #1b5e20; border-color: #1b5e20; color: #fff; }
.bd-gbtn.ab-pos.active { background: #e65100; border-color: #e65100; color: #fff; }
.bd-gbtn.ab-neg.active { background: #bf360c; border-color: #bf360c; color: #fff; }

.bd-count { font-size: 13px; color: #555; margin-bottom: 12px; font-weight: 600; }

/* Donor Cards */
.bd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 14px; }

.bd-card {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  border-left: 5px solid #c62828;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}
.bd-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.bd-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.bd-card-name { font-weight: 700; font-size: 15px; color: #0d2b6b; }
.bd-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #c62828;
  white-space: nowrap;
}
.bd-card-info { font-size: 13px; color: #444; line-height: 1.7; }
.bd-card-info span { display: inline-block; margin-right: 8px; }

.bd-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  background: #25D366;
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
}
.bd-wa-btn:hover { background: #1da851; }
.bd-wa-logo { width: 18px; height: 18px; }

/* ── Chat ── */
.bd-chat-box { background: #fff8e1; border-radius: 10px; padding: 20px; border: 1px solid #ffe082; }
.bd-chat-box h2 { color: #0d2b6b; margin: 0 0 10px; }
.bd-chat-note { font-size: 13px; color: #555; margin-bottom: 16px; }

.bd-chat-msg {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  border-left: 4px solid #1565c0;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.bd-chat-msg .bd-chat-author { font-weight: 700; color: #0d2b6b; font-size: 14px; }
.bd-chat-msg .bd-chat-text   { font-size: 14px; margin: 6px 0; color: #222; }
.bd-chat-msg .bd-chat-time   { font-size: 11px; color: #888; }
.bd-chat-reply-btn {
  background: none; border: 1px solid #1565c0; color: #1565c0;
  padding: 3px 10px; border-radius: 4px; font-size: 12px; cursor: pointer;
  font-family: 'Poppins', sans-serif; margin-top: 6px;
}
.bd-chat-reply-btn:hover { background: #e3f2fd; }
.bd-reply-form { margin-top: 10px; display: none; }
.bd-reply-form input, .bd-reply-form textarea {
  width: 100%; padding: 8px; border: 1px solid #bbdefb; border-radius: 6px;
  font-size: 13px; margin-bottom: 6px; font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}
.bd-reply-form button {
  background: #1565c0; color: #fff; border: none; padding: 7px 16px;
  border-radius: 5px; cursor: pointer; font-size: 13px; font-family: 'Poppins', sans-serif;
}
.bd-replies { padding-left: 20px; border-left: 3px solid #ffe082; margin-top: 10px; }

/* ── Admin ── */
#bd-admin-wrap { max-width: 1200px; }
#bd-admin-login {
  max-width: 300px; margin: 60px auto; text-align: center;
  background: #fff; border-radius: 12px; padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
#bd-admin-login h2 { color: #0d2b6b; margin-bottom: 20px; }
#bd-admin-login input {
  width: 100%; padding: 10px; border: 2px solid #bbdefb; border-radius: 8px;
  font-size: 16px; text-align: center; box-sizing: border-box; margin-bottom: 12px;
}
#bd-admin-login button {
  background: #0d2b6b; color: #fff; border: none; padding: 10px 30px;
  border-radius: 8px; font-size: 15px; cursor: pointer; width: 100%;
  font-family: 'Poppins', sans-serif;
}
.bd-admin-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: #0d2b6b; color: #fff; }
.bd-admin-header h2 { margin: 0; font-size: 18px; }
.bd-logout { background: #c62828; color: #fff; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-family:'Poppins',sans-serif; font-weight:600; }

.bd-admin-tabs { display: flex; background: #1565c0; }
.bd-atab { flex: 1; padding: 12px; background: none; border: none; color: rgba(255,255,255,0.7); font-size: 14px; font-weight: 600; cursor: pointer; font-family:'Poppins',sans-serif; }
.bd-atab.active { background: #0d2b6b; color: #ffe082; }

#admin-tab-donors, #admin-tab-chats { padding: 20px; }

.bd-stat-boxes { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.bd-stat { background: #fff; border-radius: 8px; padding: 14px 20px; text-align: center; min-width: 90px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.bd-stat .bd-snum { font-size: 24px; font-weight: 700; color: #0d2b6b; }
.bd-stat .bd-slabel { font-size: 12px; color: #666; }

.bd-filter-bar { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.bd-filter-bar select, .bd-filter-bar input {
  padding: 8px 12px; border: 1px solid #ccc; border-radius: 6px; font-size: 13px; font-family:'Poppins',sans-serif;
}
.bd-filter-bar input { flex: 1; min-width: 180px; }

.bd-bulk-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.bd-bulk-bar button {
  padding: 6px 14px; border: none; border-radius: 5px; cursor: pointer;
  font-size: 13px; font-weight: 600; font-family:'Poppins',sans-serif;
}
.bd-bulk-bar button:nth-child(2) { background: #1b5e20; color: #fff; }
.bd-bulk-bar button:nth-child(3) { background: #e65100; color: #fff; }
.bd-bulk-bar button:nth-child(4) { background: #b71c1c; color: #fff; }

.bd-admin-table-wrap { overflow-x: auto; }
.bd-admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bd-admin-table th {
  background: #0d2b6b; color: #ffe082; padding: 10px 8px; text-align: left; white-space: nowrap;
}
.bd-admin-table td {
  padding: 8px; border-bottom: 1px solid #e3f2fd; word-break: break-word; vertical-align: middle;
}
.bd-admin-table tr:hover td { background: #fff8e1; }
.bd-row-btns { display: flex; gap: 5px; }
.bd-row-btns button {
  padding: 4px 10px; border: none; border-radius: 4px; cursor: pointer;
  font-size: 12px; font-weight: 600; font-family:'Poppins',sans-serif;
}
.btn-approve { background: #1b5e20; color: #fff; }
.btn-reject  { background: #e65100; color: #fff; }
.btn-delete  { background: #b71c1c; color: #fff; }
.btn-edit    { background: #f57f17; color: #fff; }

.status-approved { color: #1b5e20; font-weight: 700; }
.status-pending  { color: #e65100; font-weight: 700; }
.status-rejected { color: #b71c1c; font-weight: 700; }

/* Edit Strip */
.bd-edit-row td { background: #fff9c4 !important; }
.bd-edit-input {
  width: 95%; padding: 5px; border: 1px solid #bbdefb; border-radius: 4px;
  font-size: 12px; font-family:'Poppins',sans-serif;
}

/* Responsive */
@media(max-width:700px) {
  .bd-tabs { flex-direction: column; }
  .bd-form-grid { grid-template-columns: 1fr; }
  .bd-stat-boxes { justify-content: center; }
}
