/* public/hire/hire-inspections.css */

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

/* Lists */
.hin-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 600px) {
  .hin-lists { grid-template-columns: 1fr; }
}
.hin-list-section {
  background: var(--bg-secondary, #1e293b);
  border-radius: 12px;
  padding: 1rem;
}
.hin-list-section h3 {
  margin: 0 0 1rem;
  color: var(--accent, #f39c12);
}
.hin-booking-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border, #334155);
}
.hin-booking-card:last-child { border-bottom: none; }
.hin-booking-summary strong {
  color: var(--text-primary, #e2e8f0);
}
.hin-booking-dates {
  display: block;
  color: var(--text-muted, #94a3b8);
  font-size: 0.8rem;
}
.hin-btn-start {
  background: var(--accent, #f39c12);
  color: #0f172a;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 1rem;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.85rem;
  white-space: nowrap;
}
.hin-empty {
  color: var(--text-muted, #64748b);
  text-align: center;
  padding: 1rem;
}

/* Form */
.hin-form-container {
  background: var(--bg-secondary, #1e293b);
  border-radius: 12px;
  padding: 1.5rem;
  border-left: 4px solid var(--accent, #f39c12);
  margin-top: 1rem;
}
.hin-form-container h3 {
  margin: 0 0 1rem;
  color: var(--accent, #f39c12);
}
.hin-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hin-field {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 200px;
}
.hin-field label {
  font-size: 0.85rem;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 0.3rem;
}
.hin-field input,
.hin-field textarea,
.hin-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;
}
.hin-field input:focus,
.hin-field textarea:focus {
  outline: none;
  border-color: var(--accent, #f39c12);
}
.hin-field input[type=range] {
  padding: 0;
  height: 8px;
}
.hin-form-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
  margin-top: 0.5rem;
}
.hin-btn-save {
  background: var(--accent, #f39c12);
  color: #0f172a;
  border: none;
  border-radius: 6px;
  padding: 0.7rem 1.5rem;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
}
.hin-btn-cancel {
  background: transparent;
  border: 1px solid var(--border, #475569);
  color: var(--text-primary, #e2e8f0);
  border-radius: 6px;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  font-size: 1rem;
}

/* Photo preview */
.hin-photos-preview {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.hin-photo-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border, #334155);
}

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

.hin-sos-map-container {
  background: var(--bg-secondary, #1e293b);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1.5rem;
  border: 2px solid var(--accent, #f39c12);
}

/* SOS Alerts section */
.hin-sos-alerts {
  background: #1e293b;
  border: 2px solid #ef4444;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  animation: hin-sos-pulse 2s ease-in-out infinite;
}
@keyframes hin-sos-pulse {
  0%, 100% { border-color: #ef4444; }
  50% { border-color: #fca5a5; }
}
.hin-sos-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}
.hin-sos-header h3 {
  margin: 0;
  color: #ef4444;
  font-size: 1.1rem;
}
.hin-sos-count {
  background: #ef4444;
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
}
.hin-sos-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(239,68,68,0.08);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.5rem;
}
.hin-sos-card:last-child { margin-bottom: 0; }
.hin-sos-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: #e2e8f0;
}
.hin-sos-card-body strong { color: #fca5a5; }
.hin-sos-presses {
  font-size: 0.8rem;
  color: #f59e0b;
}
.hin-sos-latest {
  font-size: 0.75rem;
  color: #94a3b8;
}
.hin-btn-sos-map {
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.85rem;
  white-space: nowrap;
}