/* public/hire/hire-dashboard.css */

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

.hd-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.hd-header h2 {
  margin: 0;
  color: var(--text-primary, #e2e8f0);
  font-size: 1.4rem;
}
.hd-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;
}

/* Summary cards */
.hd-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.hd-card {
  background: var(--bg-secondary, #1e293b);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  border-left: 4px solid var(--accent, #f39c12);
}
.hd-card-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent, #f39c12);
}
.hd-card-label {
  font-size: 0.8rem;
  color: var(--text-muted, #94a3b8);
  text-transform: uppercase;
  margin-top: 0.3rem;
}

/* Charts row */
.hd-charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 700px) {
  .hd-charts-row { grid-template-columns: 1fr; }
}
.hd-chart-container {
  background: var(--bg-secondary, #1e293b);
  border-radius: 12px;
  padding: 1rem;
  min-height: 250px;
}

/* Lists row */
.hd-lists-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 700px) {
  .hd-lists-row { grid-template-columns: 1fr; }
}
.hd-list-section {
  background: var(--bg-secondary, #1e293b);
  border-radius: 12px;
  padding: 1rem;
}
.hd-list-section h3 {
  margin: 0 0 0.8rem;
  color: var(--accent, #f39c12);
  font-size: 1rem;
}
.hd-overdue-section {
  border: 1px solid #ef4444;
}
.hd-overdue-box {
  background: rgba(239,68,68,0.05);
  border-radius: 8px;
  padding: 0.5rem;
}
.hd-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hd-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border, #334155);
  color: var(--text-primary, #e2e8f0);
  font-size: 0.9rem;
}
.hd-list li:last-child { border-bottom: none; }
.hd-empty {
  color: var(--text-muted, #64748b);
  text-align: center;
  padding: 1rem;
}

/* Maintenance section */
.hd-maintenance-section {
  background: var(--bg-secondary, #1e293b);
  border-radius: 12px;
  padding: 1rem;
}
.hd-maintenance-section h3 {
  margin: 0 0 0.8rem;
  color: var(--accent, #f39c12);
  font-size: 1rem;
}

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

/* Fleet Status card */
.hd-fleet-status-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
}

.hd-status-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hd-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hd-dot-available {
  background: #22c55e;
}

.hd-dot-rented {
  background: #f59e0b;
}

.hd-dot-maintenance {
  background: #ef4444;
}

.hd-status-label {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-muted, #94a3b8);
}

.hd-status-value {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary, #e2e8f0);
}