/* ============================================================
   S-PRESSO STAFF DASHBOARD — breakfast.css
   Styles for the Breakfast tab.
============================================================ */

/* Card grid */
.bf-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }

/* Card */
.bf-card {
  position: relative;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.bf-card:hover { border-color: var(--gold-600); box-shadow: 0 3px 12px rgba(160,122,34,0.10); }
.bf-card.arrived { background: linear-gradient(180deg, #fef9e7, #ffffff); border-color: #d4a72c; }

/* Card layout — main row */
.bf-main {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr 0.7fr 0.5fr auto;
  gap: 10px;
  align-items: center;
}

/* Hotel + guest */
.bf-hotel { font-weight: 700; font-size: 0.92rem; color: var(--navy-800); line-height: 1.15; }
.bf-guest { font-size: 0.74rem; color: var(--gray-500); margin-top: 2px; font-weight: 500; }

/* Date / time / room / count cells */
.bf-cell-label { font-size: 0.62rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.bf-cell-value { font-size: 0.88rem; font-weight: 700; color: var(--navy-800); margin-top: 1px; }

/* Source badge (guest vs staff) */
.bf-source-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.bf-source-badge.guest { background: #eef2ff; color: #3730a3; }
.bf-source-badge.staff { background: #faf6ee; color: #7a5a10; }

/* Action buttons */
.bf-actions { display: flex; gap: 6px; align-items: center; }
.bf-action-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  transition: all 0.15s;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.bf-action-btn:hover  { transform: scale(1.08); }
.bf-action-btn:active { transform: scale(0.95); }
.bf-arrival-btn { background: rgba(30,58,95,0.10); color: var(--navy-800); }
.bf-arrival-btn:hover { background: rgba(30,58,95,0.20); }
.bf-arrival-btn.arrived { background: var(--navy-800); color: #fff; }
.bf-edit-btn   { background: rgba(30,58,95,0.10); color: var(--navy-800); }
.bf-edit-btn:hover { background: rgba(30,58,95,0.20); }
.bf-delete-btn { background: rgba(220,38,38,0.10); color: #dc2626; }
.bf-delete-btn:hover { background: rgba(220,38,38,0.20); }

/* Notes */
.bf-notes {
  font-size: 0.78rem;
  color: var(--gray-600);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--gray-200);
  font-style: italic;
}

/* ============ FAB (mirrors sub-fab style) ============ */
.bf-fab-btn {
  position: fixed; bottom: 90px; right: 20px; z-index: 150;
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, #0f1b34, #2d4a7a);
  border: 2px solid var(--gold-border);
  color: white; font-size: 0.72rem; font-weight: 700;
  cursor: pointer; box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  white-space: pre-line; line-height: 1.3; text-align: center;
  transition: all 0.2s;
}
.bf-fab-btn.has-pending {
  border-color: #f59e0b;
  animation: bfFabPulse 2s infinite;
}
@keyframes bfFabPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(245,158,11,0); }
}
.bf-fab-panel {
  position: fixed; bottom: 162px; right: 20px; z-index: 149;
  width: 320px; max-height: 420px; overflow-y: auto;
  background: var(--white); border-radius: 14px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--gold-border);
}
.bf-fab-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 11px 14px; border-bottom: 1px solid var(--gray-200);
  font-weight: 600; font-size: 0.85rem; color: var(--navy-800);
  position: sticky; top: 0; background: var(--white); z-index: 1;
}
.bf-fab-header button {
  background: none; border: none; cursor: pointer;
  color: var(--gray-400); font-size: 1rem; padding: 0;
}
.bf-fab-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.82rem;
  display: flex; gap: 10px; align-items: center; justify-content: space-between;
}
.bf-fab-item:last-child { border-bottom: none; }
.bf-fab-item-info { flex: 1; min-width: 0; }
.bf-fab-item-room { font-weight: 700; color: var(--navy-800); }
.bf-fab-item-meta { font-size: 0.74rem; color: var(--gray-500); margin-top: 1px; }
.bf-fab-tap-arrived {
  background: rgba(30,58,95,0.10); color: var(--navy-800);
  border: none; padding: 5px 10px;
  border-radius: 6px; font-size: 0.72rem; font-weight: 700;
  cursor: pointer; flex-shrink: 0;
}
.bf-fab-tap-arrived:hover { background: rgba(30,58,95,0.20); }
.bf-fab-empty {
  padding: 24px 16px; text-align: center; color: var(--gray-500); font-size: 0.84rem;
}

/* ============ MODAL ============ */
.bf-modal {
  display: none;
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15,27,52,0.5); backdrop-filter: blur(2px);
  align-items: flex-start; justify-content: center;
  overflow-y: auto;
}
.bf-modal.open { display: flex; padding: 30px 12px; }
.bf-modal-content {
  background: var(--white);
  border-radius: 14px;
  width: 100%; max-width: 460px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin: auto;
}
.bf-modal-header {
  background: linear-gradient(135deg, #0f1b34, #1a365d);
  color: #fff;
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.bf-modal-title { font-size: 1rem; font-weight: 700; }
.bf-modal-close {
  background: rgba(255,255,255,0.15); border: none; color: #fff;
  width: 30px; height: 30px; border-radius: 50%;
  cursor: pointer; font-size: 1rem;
}
.bf-modal-body { padding: 16px 18px; }
.bf-modal-row { margin-bottom: 12px; }
.bf-modal-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.bf-modal-label { font-size: 0.78rem; font-weight: 600; color: var(--gray-700); margin-bottom: 5px; display: block; }
.bf-modal-input, .bf-modal-select {
  width: 100%; padding: 9px 10px;
  border: 1.5px solid var(--gray-200); border-radius: 7px;
  font-size: 0.92rem; color: var(--navy-800);
  font-family: inherit; background: #fff;
  box-sizing: border-box;
}
.bf-modal-input:focus, .bf-modal-select:focus { outline: none; border-color: var(--gold-600); }
.bf-modal-input:disabled { background: var(--gray-50); color: var(--gray-500); }
.bf-modal-textarea { resize: vertical; min-height: 60px; }
.bf-modal-footer {
  display: flex; gap: 8px; justify-content: flex-end;
  padding: 12px 18px; border-top: 1px solid var(--gray-100); background: var(--gray-50);
}
.bf-modal-btn {
  padding: 8px 16px; border-radius: 7px; border: none;
  font-size: 0.85rem; font-weight: 600; cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 6px;
}
.bf-modal-btn-cancel { background: var(--gray-200); color: var(--gray-700); }
.bf-modal-btn-cancel:hover { background: var(--gray-300); }
.bf-modal-btn-save   { background: var(--navy-800); color: #fff; }
.bf-modal-btn-save:hover { background: #0f1b34; }
.bf-modal-btn-save:disabled { opacity: 0.5; cursor: not-allowed; }
.bf-modal-btn-delete { background: rgba(220,38,38,0.10); color: #dc2626; }
.bf-modal-btn-delete:hover { background: rgba(220,38,38,0.20); }
.bf-modal-error { color: #dc3545; font-size: 0.78rem; margin-top: 8px; min-height: 16px; }

/* ============ ADD GUEST BUTTON ============ */
.bf-add-btn {
  position: fixed; bottom: 158px; right: 20px; z-index: 148;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-600), var(--gold-500));
  border: 2px solid var(--gold-border);
  color: #fff;
  font-size: 1.7rem; font-weight: 700; line-height: 1;
  cursor: pointer; box-shadow: var(--shadow-md);
  display: none;
  align-items: center; justify-content: center;
  transition: all 0.2s;
}
.bf-add-btn.show { display: flex; }
.bf-add-btn:hover { transform: scale(1.08); }

/* ============ MOBILE ============ */
@media (max-width: 768px) {
  .bf-main {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .bf-actions {
    margin-top: 8px;
    justify-content: flex-end;
  }
  .bf-cell-label { display: inline-block; min-width: 60px; }
  .bf-cell-value { display: inline-block; }
  .bf-cell { display: flex; gap: 8px; align-items: baseline; }
}

/* Mobile: shrink + lift FABs above bottom bar */
@media (max-width: 768px) {
  .bf-fab-btn { width: 50px; height: 50px; bottom: 184px; right: 14px; font-size: 0.62rem; }
  .bf-add-btn { width: 50px; height: 50px; bottom: 184px; left: 14px; right: auto; font-size: 1.5rem; }
}
