/* Log item styling */

/* Common log styling */
.log-item {
  position: relative;
}

/* Status colors */
.log-type-alert {
  border-left-color: #f44336 !important;
}

.log-type-maintenance {
  border-left-color: #ff9800 !important;
}

.log-type-update {
  border-left-color: #4caf50 !important;
}

/* Card view specific styling */
.card.log-item {
  border-left-width: 4px;
  overflow: hidden;
}

.card.log-item.log-type-alert {
  background-color: #ffebee;
}

.card.log-item.log-type-maintenance {
  background-color: #fff3e0;
}

.card.log-item.log-type-update {
  background-color: #e8f5e9;
}

/* List view specific styling */
.list-group-item.log-item {
  border-left-width: 4px;
}

/* Detailed view specific styling */
.log-item.log-type-alert {
  background-color: #ffebee;
}

.log-item.log-type-maintenance {
  background-color: #fff3e0;
}

.log-item.log-type-update {
  background-color: #e8f5e9;
}

/* Archived log styling */
.log-item.archived {
  opacity: 0.7;
}

/* Log meta styling */
.log-meta {
  font-size: 0.85rem;
}

.log-author {
  font-size: 0.85rem;
  color: #6c757d;
}

/* Admin actions */
.log-admin-actions {
  margin-top: 1rem;
}

/* Log actions button container */
.log-actions-container {
  justify-content: space-between;
}

/* Thumbnail styling */
.log-media-thumbnail {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  border: 2px solid #e0e0e0;
  transition: transform 0.2s ease;
}

.log-media-thumbnail:hover {
  transform: scale(1.05);
  border-color: #4caf50;
}

.log-media-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-count-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: #fff;
  backdrop-filter: blur(2px);
  color: #000;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

/* Mobile responsive */
@media (max-width: 576px) {
  .log-content-wrapper {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .log-media-thumbnail {
    width: 100%;
    height: 200px;
  }
}
