/**
 * Vehicle Manager Modal Styles
 * Enhances the manage vehicle modal with styling for photo upload and feature selection
 */

/* Photo preview container */
.photo-preview-container {
  margin-top: 10px;
  text-align: center;
}

.photo-upload-label {
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 5px;
}

/* Feature selection styling */
.features-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.features-list {
  max-height: 150px;
  overflow-y: auto;
  border: 1px solid rgba(0, 195, 255, 0.3);
  border-radius: 5px;
  padding: 5px;
  background-color: rgba(18, 18, 30, 0.5);
}

.feature-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background-color: rgba(0, 195, 255, 0.1);
  border-radius: 4px;
  margin-bottom: 5px;
}

.feature-item:last-child {
  margin-bottom: 0;
}

.feature-item span {
  flex-grow: 1;
}

.remove-feature-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0 5px;
  font-size: 14px;
}

.remove-feature-btn:hover {
  color: #ff5555;
}

.feature-select-container {
  margin-bottom: 10px;
}

.feature-input-container {
  display: flex;
  gap: 5px;
}

.feature-input-container input {
  flex-grow: 1;
}

/* Vehicle photo upload styling */
#vehicle-photo-upload {
  border: 1px dashed rgba(0, 195, 255, 0.5);
  padding: 10px;
  background-color: rgba(0, 195, 255, 0.05);
}

.vehicle-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  padding: 10px;
  border-radius: 8px;
  background-color: rgba(18, 18, 30, 0.7);
  border: 1px solid rgba(0, 195, 255, 0.3);
}

.vehicle-preview-img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 4px;
  margin-bottom: 10px;
}

.vehicle-preview-title {
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
}

/* Form styling enhancements */
.form-group {
  margin-bottom: 15px;
}

.form-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

/* Make sure the modal is properly displayed */
#manage-vehicle-modal {
  display: none;
}

#manage-vehicle-modal.show {
  display: block;
}

#manage-vehicle-modal:not(.hidden) {
  display: block;
}
