/* public/hire/hire-bookings.css */

.hb-container {
  padding: 1rem 0;
}

.hb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.hb-header h2 {
  margin: 0;
  color: var(--text-primary, #e2e8f0);
  font-size: 1.4rem;
}
.hb-btn-dashboard {
  background: var(--bg-secondary, #334155);
  color: var(--text-primary, #e2e8f0);
  border: 1px solid var(--border, #475569);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.9rem;
}

/* Calendar nav */
.hb-calendar-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.hb-calendar-nav button {
  background: var(--bg-secondary, #334155);
  color: var(--text-primary, #e2e8f0);
  border: 1px solid var(--border, #475569);
  border-radius: 4px;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  font-size: 1rem;
}
#hb-month-label {
  font-weight: 700;
  color: var(--accent, #f39c12);
  font-size: 1.1rem;
  min-width: 140px;
  text-align: center;
}

/* Calendar grid */
.hb-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  background: var(--border, #334155);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.hb-calendar-header {
  background: var(--bg-primary, #0f172a);
  color: var(--text-muted, #94a3b8);
  text-align: center;
  padding: 0.5rem 0;
  font-size: 0.8rem;
  font-weight: 600;
}

.hb-calendar-cell {
  background: var(--bg-secondary, #1e293b);
  min-height: 80px;
  padding: 0.3rem;
  cursor: pointer;
  transition: background 0.15s;
  position: relative;
}
.hb-calendar-cell:hover {
  background: #334155;
}
.hb-calendar-empty {
  background: var(--bg-secondary, #1e293b);
  cursor: default;
}
.hb-today {
  border: 2px solid var(--accent, #f39c12);
}
.hb-selected {
  background: #334155;
  box-shadow: inset 0 0 0 2px var(--accent, #f39c12);
}

.hb-day-num {
  color: var(--text-muted, #94a3b8);
  font-size: 0.8rem;
  font-weight: 600;
}

.hb-dots {
  display: flex;
  gap: 3px;
  margin-top: 0.2rem;
  flex-wrap: wrap;
}
.hb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.hb-dot-reserved    { background: #3b82f6; }
.hb-dot-checked_out  { background: #f59e0b; }
.hb-dot-checked_in   { background: #22c55e; }
.hb-dot-cancelled   { background: #ef4444; }

/* Booking form */
.hb-form-container {
  background: var(--bg-secondary, #1e293b);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--accent, #f39c12);
}
.hb-form-container h3 {
  margin: 0 0 1rem;
  color: var(--accent, #f39c12);
}
.hb-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}
.hb-field {
  display: flex;
  flex-direction: column;
  min-width: 180px;
  flex: 1;
}
.hb-field label {
  font-size: 0.85rem;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 0.3rem;
}
.hb-field input,
.hb-field select {
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--border, #334155);
  background: var(--bg-primary, #0f172a);
  color: var(--text-primary, #e2e8f0);
  font-size: 0.95rem;
}
.hb-field input:focus,
.hb-field select:focus {
  outline: none;
  border-color: var(--accent, #f39c12);
}

.hb-price-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary, #e2e8f0);
  font-size: 1rem;
}
.hb-price-row strong {
  color: var(--accent, #f39c12);
  font-size: 1.2rem;
}

.hb-availability-msg {
  color: var(--danger-text, #fca5a5);
  font-size: 0.85rem;
}

.hb-form-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
}
.hb-btn-save {
  background: var(--accent, #f39c12);
  color: #0f172a;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  cursor: pointer;
}
.hb-btn-cancel-form {
  background: transparent;
  border: 1px solid var(--border, #475569);
  color: var(--text-primary, #e2e8f0);
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
}

/* Booking list */
.hb-list-title {
  color: var(--text-primary, #e2e8f0);
  margin: 0 0 1rem;
}
.hb-table-wrap {
  overflow-x: auto;
}
.hb-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-secondary, #1e293b);
  border-radius: 12px;
  overflow: hidden;
}
.hb-table th {
  text-align: left;
  padding: 0.8rem;
  background: var(--bg-primary, #0f172a);
  color: var(--text-muted, #94a3b8);
  font-weight: 600;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border, #334155);
}
.hb-table td {
  padding: 0.8rem;
  color: var(--text-primary, #e2e8f0);
  font-size: 0.9rem;
  border-bottom: 1px solid #1e293b;
}
.hb-status {
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.hb-status-reserved    { background: #1e3a8a; color: #93c5fd; }
.hb-status-checked_out  { background: #92400e; color: #fcd34d; }
.hb-status-checked_in   { background: #14532d; color: #86efac; }
.hb-status-cancelled   { background: #7f1d1d; color: #fca5a5; }

.hb-actions {
  display: flex;
  gap: 0.5rem;
}
.hb-btn-cancel {
  background: #7f1d1d;
  color: #fca5a5;
  border: none;
  border-radius: 4px;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
}
.hb-empty {
  text-align: center;
  color: var(--text-muted, #64748b);
  padding: 2rem;
}

/* Confirm dialog */
.hb-confirm-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.6);
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hb-confirm-box {
  background: var(--bg-secondary, #1e293b);
  border-radius: 12px;
  padding: 2rem;
  max-width: 400px;
  text-align: center;
  color: var(--text-primary, #e2e8f0);
}
.hb-confirm-box p {
  margin-bottom: 1.5rem;
}
.hb-confirm-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Toasts */
.hb-toast {
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  animation: hb-slide-in 0.2s ease;
}
.hb-toast-error {
  background: var(--danger, #7f1d1d);
  color: var(--danger-text, #fca5a5);
  border: 1px solid #ef4444;
}
.hb-toast-success {
  background: var(--success, #14532d);
  color: var(--success-text, #86efac);
  border: 1px solid #22c55e;
}
@keyframes hb-slide-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}