/* fleet-vehicles.css */

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

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

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

.fv-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.fv-header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.fv-btn-dashboard {
  background: #334155;
  color: #e2e8f0;
  border: 1px solid #475569;
  border-radius: 6px;
  padding: 0.6rem 1.5rem;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.95rem;
}

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

.fv-new-group-wrapper {
  margin-top: 0.4rem;
}

.fv-new-group-input {
  width: 100%;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.9rem;
}

/* Ensure every row has the dark background, regardless of position */
#fv-app .fv-table tbody tr {
  background-color: #1e293b;
  transition: background-color 0.15s;
}

/* Hover effect – same as the existing .fv-row-clickable but applied to all rows */
#fv-app .fv-table tbody tr:hover {
  background-color: #334155;
}