/* public/fleet/fleet-drivers.css */

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

.fd-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.fd-header h2 {
  margin: 0;
  color: #e2e8f0;
  font-size: 1.4rem;
}

.fd-header-buttons {
  display: flex;
  gap: 0.5rem;
}

.fd-btn-dashboard {
  background: #334155;
  color: #e2e8f0;
  border: 1px solid #475569;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.15s;
}

.fd-btn-dashboard:hover {
  background: #475569;
}

.fd-btn-add {
  background: #f39c12;
  color: #0f172a;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.5rem;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.95rem;
}

.fd-btn-add:hover {
  background: #e67e22;
}

/* ---- Inline form ---- */
.fd-form-container {
  background: #1e293b;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid #f39c12;
}

.fd-form-container h3 {
  margin: 0 0 1rem;
  color: #f39c12;
}

.fd-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.fd-field {
  display: flex;
  flex-direction: column;
  min-width: 180px;
}

.fd-field label {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 0.3rem;
}

.fd-field input,
.fd-field select {
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.95rem;
}

.fd-field input:focus,
.fd-field select:focus {
  outline: none;
  border-color: #f39c12;
}

.fd-form-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.fd-btn-save {
  background: #f39c12;
  color: #0f172a;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  cursor: pointer;
}

.fd-btn-cancel {
  background: transparent;
  border: 1px solid #475569;
  color: #e2e8f0;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
}

/* ---- Table ---- */
.fd-table-wrap {
  overflow-x: auto;
}

.fd-table {
  width: 100%;
  border-collapse: collapse;
  background: #1e293b;
  border-radius: 12px;
  overflow: hidden;
}

.fd-table th {
  text-align: left;
  padding: 0.8rem;
  background: #0f172a;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.85rem;
  border-bottom: 1px solid #334155;
}

.fd-table td {
  padding: 0.8rem;
  color: #e2e8f0;
  border-bottom: 1px solid #1e293b;
  font-size: 0.9rem;
}

.fd-actions {
  display: flex;
  gap: 0.5rem;
}

.fd-btn-edit,
.fd-btn-delete {
  border: none;
  border-radius: 4px;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
}

.fd-btn-edit {
  background: #334155;
  color: #e2e8f0;
}

.fd-btn-edit:hover {
  background: #475569;
}

.fd-btn-delete {
  background: #7f1d1d;
  color: #fca5a5;
}

.fd-btn-delete:hover {
  background: #991b1b;
}

.fd-empty {
  text-align: center;
  color: #64748b;
  padding: 2rem;
}

/* ---- Confirm dialog ---- */
.fd-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;
}

.fd-confirm-box {
  background: #1e293b;
  border-radius: 12px;
  padding: 2rem;
  max-width: 400px;
  text-align: center;
  color: #e2e8f0;
}

.fd-confirm-box p {
  margin-bottom: 1.5rem;
}

.fd-confirm-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

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