/* LAN Map - Component Styles */
/* Shared styles for UI components */

/* Toast Container */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1060;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 250px;
  max-width: 400px;
}

/* Toast styling enhancements */
.toast {
  min-width: 250px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.toast .btn-close {
  opacity: 0.8;
}

.toast .btn-close:hover {
  opacity: 1;
}

/* State UI Components */
.loading-indicator,
.empty-state {
  padding: 3rem 0;
  text-align: center;
}

/* Utility classes for state management */
.state-hidden {
  display: none !important;
}

.state-visible {
  display: block !important;
}

.state-flex {
  display: flex !important;
}

/* Tag Badge Styles */
.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.tag-badge-sm {
  padding: 2px 6px;
  font-size: 11px;
}

.tag-badge-md {
  padding: 4px 10px;
  font-size: 12px;
}

.tag-badge-lg {
  padding: 6px 14px;
  font-size: 14px;
}

.tag-badge .tag-icon {
  font-size: 14px;
  line-height: 1;
}

.tag-badge-sm .tag-icon {
  font-size: 12px;
}

.tag-badge-lg .tag-icon {
  font-size: 16px;
}

.tag-badge .tag-name {
  margin-left: 2px;
}

.tag-badge-more {
  background-color: #6c757d !important;
  color: white !important;
}

/* Event Tags Container */
.event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.event-tags-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Tag Selector Styles */
.tag-selector-container {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 12px;
  background-color: #f8f9fa;
}

.tag-selector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.tag-selector-label {
  font-weight: 600;
  font-size: 14px;
  color: #495057;
}

.tag-selected-count {
  font-size: 12px;
  color: #6c757d;
}

.tag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.tag-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.tag-option:hover {
  opacity: 1 !important;
  transform: scale(1.02);
}

.tag-option:active {
  transform: scale(0.98);
}

/* Selected tag state */
.tag-option.tag-selected {
  opacity: 1 !important;
}

.tag-option.tag-selected::after {
  content: "✓";
  font-size: 14px;
  font-weight: bold;
  color: inherit;
}

/* Event Card Selected State */
.event-card.selected {
  border: 2px solid #0d6efd !important;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}

/* Status Strip */
.status-strip {
  height: 4px;
  border-radius: 8px 8px 0 0;
}

.status-strip.upcoming {
  background-color: #0d6efd !important;
}

.status-strip.active {
  background-color: #198754 !important;
}

.status-strip.ended {
  background-color: #6c757d !important;
}

/* Date Badge */
.date-badge {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
  min-width: 50px;
}

.date-badge .day {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: #212529;
}

.date-badge .month {
  font-size: 12px;
  font-weight: 500;
  color: #6c757d;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Search Highlight */
.search-highlight {
  background-color: #fff3cd;
  padding: 0 2px;
  border-radius: 2px;
}

/* Text Truncate 2 Lines */
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
