/* 
 * No Card Hover Effects - APM Design System Override
 * Removes hover animations from cards while keeping them for interactive elements
 */

/* ===== CARD HOVER OVERRIDES ===== */

/* Remove hover effects from all card types */
.card:hover,
.md-card:hover,
.aircoprofs-card:hover,
.accuprofs-card:hover,
.config-card:hover,
.stats-card:hover,
.stat-card:hover,
.werkbon-card:hover,
.telling-card:hover,
.foto-card:hover,
.materieel-card:hover,
.template-card:hover {
  transform: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Remove hover effects from specific card elements */
.materieel-card:hover::before {
  opacity: 0 !important;
}

.foto-card:hover img {
  transform: none !important;
}

/* Remove hover elevate class effects */
.hover-elevate:hover {
  transform: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* ===== KEEP HOVER EFFECTS FOR INTERACTIVE ELEMENTS ===== */

/* Buttons should keep their hover effects */
.btn:hover,
.aircoprofs-btn-primary:hover,
.aircoprofs-btn-secondary:hover,
.aircoprofs-btn-accent:hover,
.fixed-bottom .btn:hover {
  /* Keep existing hover effects for buttons */
}

/* Links should keep their hover effects */
a:hover,
.link-primary:hover,
.link-secondary:hover {
  /* Keep existing hover effects for links */
}

/* Interactive elements that should keep hover */
.action-dropdown:hover,
.verwijder-foto:hover,
.card-link:hover {
  /* Keep existing hover effects for interactive elements */
}

/* Table rows can keep subtle hover */
.aircoprofs-table-row:hover,
tr:hover {
  /* Keep existing hover effects for table rows */
}

/* Form controls can keep focus/hover states */
.form-control:hover,
.form-select:hover,
.form-control:focus,
.form-select:focus {
  /* Keep existing hover/focus effects for form elements */
}

/* ===== CLICKABLE CARDS EXCEPTION ===== */

/* If a card is explicitly clickable (has onclick or cursor pointer), allow subtle hover */
.card[onclick]:hover,
.card.clickable:hover,
.option-card:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12) !important;
  cursor: pointer;
}

/* ===== ACCUPROFS SPECIFIC OVERRIDES ===== */

/* Remove hover from Accuprofs configuration cards */
.accuprofs-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  transform: none !important;
}

/* Remove hover from merkconfiguratie cards */
.config-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  transform: none !important;
}

/* Remove hover from stats cards */
.stat-card:hover,
.stats-card:hover {
  transform: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
  border-color: transparent !important;
}

/* ===== WERKBON SPECIFIC OVERRIDES ===== */

/* Remove hover from werkbon cards */
.werkbon-card:hover {
  transform: none !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* ===== MATERIAL DESIGN OVERRIDES ===== */

/* Remove hover from material design cards */
.md-card:hover {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.05) !important;
}

/* ===== JAVASCRIPT HOVER OVERRIDES ===== */

/* Override JavaScript-added hover effects */
.stat-card,
.telling-card {
  transition: none !important;
}

/* Prevent JavaScript hover transforms */
.stat-card[style*="transform"],
.telling-card[style*="transform"] {
  transform: none !important;
}

/* ===== AIRCOPROFS SPECIFIC OVERRIDES ===== */

/* Remove hover from aircoprofs cards */
.aircoprofs-card:hover {
  box-shadow: 0 4px 20px var(--aircoprofs-shadow) !important;
  transform: none !important;
  border-color: var(--aircoprofs-outline) !important;
}

/* ===== TEMPLATE CARD OVERRIDES ===== */

/* Remove hover from template cards */
.template-card:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  transform: none !important;
}

/* ===== GENERAL CARD RESET ===== */

/* Ensure all cards have consistent, non-animated shadows */
.card,
.md-card,
.aircoprofs-card,
.accuprofs-card,
.config-card,
.stats-card,
.stat-card,
.werkbon-card,
.telling-card,
.materieel-card,
.template-card {
  transition: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Exception for explicitly interactive cards */
.card.interactive,
.card[role="button"],
.card.btn,
button.card {
  transition: all 0.2s ease !important;
}

.card.interactive:hover,
.card[role="button"]:hover,
.card.btn:hover,
button.card:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12) !important;
}

/* ===== TOOLTIP STYLES ===== */

/* Info icon styling */
.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #6c757d;
  color: white;
  font-size: 10px;
  font-weight: bold;
  margin-left: 6px;
  cursor: help;
  position: relative;
  transition: background-color 0.2s ease;
}

.info-icon:hover {
  background-color: #495057;
}

/* Tooltip container */
.tooltip-container {
  position: relative;
  display: inline-block;
}

/* Tooltip content */
.tooltip-content {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  z-index: 1000;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  text-align: center;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  max-width: 250px;
  white-space: normal;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: opacity 0.3s, visibility 0.3s;
}

/* Tooltip arrow */
.tooltip-content::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

/* Show tooltip on hover */
.tooltip-container:hover .tooltip-content {
  visibility: visible;
  opacity: 1;
}

/* Alternative positioning for tooltips that might go off-screen */
.tooltip-content.tooltip-right {
  bottom: auto;
  left: 125%;
  top: 50%;
  transform: translateY(-50%);
}

.tooltip-content.tooltip-right::after {
  top: 50%;
  left: -5px;
  margin-left: 0;
  margin-top: -5px;
  border-color: transparent #333 transparent transparent;
}

.tooltip-content.tooltip-left {
  bottom: auto;
  right: 125%;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
}

.tooltip-content.tooltip-left::after {
  top: 50%;
  right: -5px;
  left: auto;
  margin-left: 0;
  margin-top: -5px;
  border-color: transparent transparent transparent #333;
}

/* Responsive tooltip adjustments */
@media (max-width: 768px) {
  .tooltip-content {
    font-size: 11px;
    padding: 6px 10px;
    max-width: 200px;
  }

  .info-icon {
    width: 14px;
    height: 14px;
    font-size: 9px;
  }
}
