/* ===============================
   BOOK CONSULTATION STAFF DASHBOARD
   =============================== */

/* === Container === */
.bc-staff-dashboard,
.bc-staff-wrap {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin: 20px 0;
  overflow-x: auto;
}

/* === Notices === */
.bc-notice {
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 6px;
  font-size: 14px;
}
.bc-success {
  background: #e7f8e7;
  border: 1px solid #b0e3b0;
  color: #2d7a2d;
}
.bc-error {
  background: #fcebea;
  border: 1px solid #f5c2c0;
  color: #a33;
}

/* === Filters + Search === */
.bc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}
.bc-filter-btn {
  padding: 8px 14px;
  background: #f1f1f1;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.bc-filter-btn:hover,
.bc-filter-btn.bc-active {
  background: #0073aa;
  color: #fff;
}

/* === Search Form === */
.bc-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.bc-search-form input[type="text"] {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  min-width: 160px;
}
.bc-search-form button,
.bc-search-form a.button {
  padding: 8px 14px;
  border-radius: 6px;
  background: #0073aa;
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}
.bc-search-form a.button {
  background: #777;
}
.bc-search-form button:hover,
.bc-search-form a.button:hover {
  opacity: 0.9;
}

/* ===== Desktop vs Mobile Views (CLEAN VERSION) ===== */

/* Default: show table, hide mobile cards */
.bc-table-wrapper {
  display: block;
  width: 100%;
  overflow-x: auto;
}
.bc-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}
.bc-mobile-cards {
  display: none;
}

/* Mobile (<=768px): hide table, show mobile cards */
@media (max-width: 768px) {
  .bc-table-wrapper,
  .bc-table {
    display: none !important;
  }

  .bc-mobile-cards {
    display: block !important;
  }

  .bc-staff-wrap {
    padding: 15px;
  }

  .bc-filters,
  .bc-search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .bc-search-form input[type="text"],
  .bc-search-form button,
  .bc-filter-btn {
    width: 100%;
  }

  .bc-pagination {
    flex-direction: column;
  }

  .bc-page-info {
    margin-top: 8px;
  }
}

/* Smaller screens (<=480px): stack buttons nicely */
@media (max-width: 480px) {
  .bc-action-buttons a.button {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    text-align: center;
  }

  .bc-mobile-card h4 {
    font-size: 15px;
  }

  .bc-staff-wrap {
    padding: 10px;
  }
}


/* === Booking Details === */
.bc-single-booking {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 15px;
  margin-top: 15px;
  line-height: 1.6;
}
.bc-single-booking p {
  margin: 6px 0;
}
.bc-single-booking p strong {
  color: #333;
  width: 120px;
  display: inline-block;
}

/* === Action Buttons === */
.bc-action-buttons a.button {
  display: inline-block;
  margin: 4px 6px 4px 0;
  padding: 7px 14px;
  border-radius: 6px;
  text-decoration: none;
  color: #fff !important;
  font-size: 13px;
  transition: 0.2s;
}
.bc-action-buttons .button:hover {
  opacity: 0.9;
}
.button-success { background-color: #28a745 !important; }
.button-danger { background-color: #dc3545 !important; }
.bc-action-buttons .button { background: #0073aa; }

/* === Pagination === */
.bc-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.bc-page-info {
  font-weight: 500;
  color: #555;
}
.bc-pagination .button {
  background: #0073aa;
  color: #fff;
  border-radius: 6px;
  padding: 6px 12px;
  text-decoration: none;
  transition: 0.2s;
}
.bc-pagination .button:hover {
  background: #005f8d;
}

/* === Login Link === */
.bc-login-link {
  display: inline-block;
  padding: 6px 14px;
  background: #0073aa;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  margin-left: 8px;
  transition: 0.2s;
}
.bc-login-link:hover {
  background: #005177;
}

/* === Status Badges === */
.bc-status {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  text-transform: capitalize;
}
.bc-status.pending { background: #fff3cd; color: #856404; }
.bc-status.completed { background: #d4edda; color: #155724; }
.bc-status.cancelled { background: #f8d7da; color: #721c24; }

/* === Mobile Cards === */
.bc-mobile-cards { display: none; }
.bc-mobile-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  padding: 15px;
  margin-bottom: 15px;
  line-height: 1.5;
}
.bc-mobile-card h4 {
  font-size: 16px;
  margin-bottom: 6px;
  color: #222;
}
.bc-mobile-card p {
  font-size: 14px;
  margin: 4px 0;
  color: #555;
}
.bc-mobile-card .bc-status {
  float: right;
  margin-left: 8px;
}
.bc-mobile-card .bc-action-buttons {
  margin-top: 10px;
}

/* === Fancy Summary Cards === */
.bc-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
  margin-bottom: 25px;
  align-items: stretch;
}
.bc-summary-cards .bc-card {
  --accent: #0073aa;
  position: relative;
  padding: 18px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.bc-summary-cards .bc-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 5px;
  background: var(--accent);
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}
.bc-card .bc-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.bc-card .bc-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.bc-card .bc-icon svg { width: 20px; height: 20px; }
.bc-card .bc-label {
  font-size: 13px;
  font-weight: 600;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.bc-card .bc-value {
  font-size: 28px;
  font-weight: 800;
  color: #111;
  margin: 6px 0 3px;
}
.bc-card .bc-subtext {
  font-size: 12px;
  color: #6b7280;
}
.bc-summary-cards .bc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* Card accent colors */
.bc-card.bc-total { --accent: #0073aa; }
.bc-card.bc-completed { --accent: #28a745; }
.bc-card.bc-pending { --accent: #ffb000; }
.bc-card.bc-cancelled { --accent: #dc3545; }

/* === Responsive === */
@media (max-width: 768px) {
  .bc-table-wrapper { display: none; }
  .bc-mobile-cards { display: block; }
  .bc-staff-wrap { padding: 15px; }
  .bc-filters, .bc-search-form { flex-direction: column; align-items: stretch; }
  .bc-search-form input[type="text"],
  .bc-search-form button,
  .bc-filter-btn { width: 100%; }
  .bc-pagination { flex-direction: column; }
  .bc-page-info { margin-top: 8px; }
  .bc-summary-cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .bc-card .bc-value { font-size: 22px; }
}

@media (max-width: 480px) {
  .bc-summary-cards { grid-template-columns: 1fr; }
  .bc-staff-wrap { padding: 10px; }
  .bc-action-buttons a.button {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    text-align: center;
  }
  .bc-single-booking p strong {
    display: block;
    width: auto;
    margin-bottom: 4px;
  }
  .bc-mobile-card h4 { font-size: 15px; }
}

/* =========================
   RESPONSIVE VIEW CONTROL
   ========================= */

/* Default: desktop view */
.bc-table-wrapper {
  display: block;
  width: 100%;
  overflow-x: auto;
}
.bc-mobile-cards {
  display: none;
}

/* Mobile (<=768px): show cards, hide table */
@media (max-width: 768px) {
  .bc-table-wrapper {
    display: none !important;
  }
  .bc-mobile-cards {
    display: block !important;
  }
}


/* =========================
   SUMMARY CARDS (FINAL)
   ========================= */
.bc-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
  margin-bottom: 25px;
}

.bc-card {
  position: relative;
  padding: 18px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
  overflow: hidden;
}

.bc-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 5px;
  background: var(--accent, #0073aa);
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.bc-card h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #444;
  margin-bottom: 8px;
}

.bc-card p {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent, #0073aa);
  margin: 0;
}

.bc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* Accent color variants */
.bc-card.bc-total { --accent: #0073aa; }
.bc-card.bc-completed { --accent: #28a745; }
.bc-card.bc-pending { --accent: #ffb000; }
.bc-card.bc-cancelled { --accent: #dc3545; }

/* Responsive tweaks */
@media (max-width: 768px) {
  .bc-summary-cards {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .bc-card p {
    font-size: 22px;
  }
}
@media (max-width: 480px) {
  .bc-summary-cards {
    grid-template-columns: 1fr;
  }
}
