/* Image Placeholder Styles */

.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.image-placeholder:hover {
  border-color: #9ca3af;
  background: linear-gradient(135deg, #e5e7eb 0%, #b8c2cc 100%);
}

.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px;
}

.placeholder-icon {
  width: 48px;
  height: 48px;
  opacity: 0.6;
}

.placeholder-text {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Default image styling */
.default-image {
  opacity: 0.8;
  filter: grayscale(20%);
}

.default-image:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* Responsive image containers */
.image-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #f9fafb;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-container:hover img {
  transform: scale(1.05);
}

/* Car-specific placeholders */
.car-image-placeholder {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

.car-image-placeholder .placeholder-icon {
  width: 64px;
  height: 64px;
}

/* Customer-specific placeholders */
.customer-image-placeholder {
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.customer-image-placeholder .placeholder-icon {
  width: 56px;
  height: 56px;
}

/* Inventory-specific placeholders */
.inventory-image-placeholder {
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%);
}

.inventory-image-placeholder .placeholder-icon {
  width: 56px;
  height: 56px;
}

/* Company-specific placeholders */
.company-image-placeholder {
  aspect-ratio: 2/1;
  background: linear-gradient(135deg, #f3e8ff 0%, #c084fc 100%);
}

.company-image-placeholder .placeholder-icon {
  width: 72px;
  height: 72px;
}

/* Loading states */
.image-loading {
  position: relative;
  background: #f3f4f6;
  border-radius: 8px;
  overflow: hidden;
}

.image-loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Error states */
.image-error {
  border: 2px solid #ef4444;
  background: #fef2f2;
}

.image-error .placeholder-text {
  color: #dc2626;
}

/* Responsive breakpoints */
@media (max-width: 768px) {
  .placeholder-content {
    padding: 16px;
  }
  
  .placeholder-icon {
    width: 40px;
    height: 40px;
  }
  
  .placeholder-text {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .placeholder-content {
    padding: 12px;
  }
  
  .placeholder-icon {
    width: 32px;
    height: 32px;
  }
  
  .placeholder-text {
    font-size: 10px;
  }
}

/* Print styles */
@media print {
  .image-placeholder {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
  }
  
  .placeholder-icon {
    display: none;
  }
  
  .placeholder-text {
    font-size: 12px;
    color: #374151;
  }
} 