/**
 * DeMV Platform - Vehicle Card Actions Scroll
 * Makes the action buttons on vehicle cards scrollable when there are many buttons
 */

/* Make dropdown menu scrollable */
.vehicle-actions-dropdown .dropdown-menu {
  max-height: 250px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 5px;
  margin-top: 5px;
  border: 1px solid rgba(108, 99, 255, 0.3);
  border-radius: 4px;
  background: rgba(20, 20, 35, 0.95);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 5px rgba(108, 99, 255, 0.2);
  scrollbar-width: thin;
  scrollbar-color: rgba(108, 99, 255, 0.5) rgba(30, 30, 45, 0.3);
  z-index: 100;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
}

/* Custom scrollbar styling */
.vehicle-actions-dropdown .dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.vehicle-actions-dropdown .dropdown-menu::-webkit-scrollbar-track {
  background: rgba(30, 30, 45, 0.3);
  border-radius: 3px;
}

.vehicle-actions-dropdown .dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(108, 99, 255, 0.5);
  border-radius: 3px;
}

.vehicle-actions-dropdown .dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(108, 99, 255, 0.8);
}

/* Style for the dropdown items */
.vehicle-actions-dropdown .dropdown-menu .dropdown-item {
  width: 100%;
  padding: 8px 12px;
  background: rgba(30, 30, 45, 0.8);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(108, 99, 255, 0.3);
  border-radius: 4px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-bottom: 3px;
}

.vehicle-actions-dropdown .dropdown-menu .dropdown-item:hover {
  background: rgba(108, 99, 255, 0.2);
  border-color: rgba(108, 99, 255, 0.7);
  transform: translateX(2px);
}

.vehicle-actions-dropdown .dropdown-menu .dropdown-item i {
  color: rgba(108, 99, 255, 0.9);
  width: 16px;
  text-align: center;
}

/* Add a subtle glow to the dropdown menu */
.vehicle-actions-dropdown .dropdown-menu::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(108, 99, 255, 0) 0%, rgba(108, 99, 255, 0.5) 50%, rgba(108, 99, 255, 0) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Hover functionality removed as requested */

/* Dropdown positioning */
.vehicle-actions-dropdown {
  position: relative;
}

.vehicle-actions-dropdown .dropdown-menu {
  display: none;
}

/* Hover functionality removed as requested */

/* More actions button styling */
.more-actions-btn {
  background: rgba(30, 30, 45, 0.8);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(108, 99, 255, 0.3);
  border-radius: 4px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Hover functionality removed as requested */

/* Responsive adjustments */
@media (max-width: 768px) {
  .vehicle-actions-dropdown .dropdown-menu {
    max-height: 200px;
    right: auto;
    left: 0;
  }
}
