/* Dark theme overrides - match exact screenshot design */

/* Hide legacy prechecklist */

/* Header branding styles for dark mode */
body.dark-mode .viktorie-title {
  color: #ffffff;
}
body.dark-mode .livalittle-credit {
  color: #a0aec0;
}
body.dark-mode .livalittle-logo-inline {
  filter: brightness(0.9);
}

/* Set dark background for entire prechecklist area */
#prechecklist-root {
  background-color: #1a1f2e;
  color: #ffffff;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Remove ALL Vue component styling */
#prechecklist-root .prechecklist-container {
  all: initial;
  display: block;
  font-family: inherit;
  color: inherit;
}

/* Hide Vue-specific controls */
#prechecklist-root .prechecklist-controls,
#prechecklist-root .prechecklist-actions,
#prechecklist-root .danger-zone {
  display: none !important;
}

/* Remove padding from content wrapper */
#prechecklist-root .prechecklist-content {
  all: initial;
  display: block;
  font-family: inherit;
  background-color: transparent;
  padding: 20px;
}

/* Category container styling */
#prechecklist-root .category-container {
  margin-bottom: 20px;
  border: none;
  padding: 0;
}

/* Category header (collapsible) - dark rounded rectangle like screenshot */
#prechecklist-root .collapsible {
  background-color: #2d3748;
  border: 1px solid #3d4659;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

#prechecklist-root .collapsible:hover {
  background-color: #374151;
}

/* Arrow styling */
#prechecklist-root .collapsible .arrow {
  color: #9ca3af;
  font-size: 14px;
  transition: transform 0.2s ease;
}

/* Category checkbox */
#prechecklist-root .collapsible .category-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  margin: 0;
}

/* Category content area */
#prechecklist-root .content {
  padding-left: 40px;
  margin-top: 0;
  border: none;
}

/* Items list */
#prechecklist-root .category-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Individual item - dark rounded rectangle like screenshot */
#prechecklist-root .item-list-entry {
  background-color: #2d3748;
  border: 1px solid #3d4659;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  list-style: none;
  transition: background-color 0.2s ease;
}

#prechecklist-root .item-list-entry:hover {
  background-color: #374151;
}

/* Item main row layout */
#prechecklist-root .item-main-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Item checkbox */
#prechecklist-root .item-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

/* Item info section */
#prechecklist-root .item-info-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

/* Item name */
#prechecklist-root .item-name {
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
}

/* Item secondary info (price, quantity) */
#prechecklist-root .item-secondary-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

/* Price display - green like screenshot */
#prechecklist-root .item-price-display {
  color: #4ade80;
  font-weight: 500;
}

/* Quantity display */
#prechecklist-root .item-quantity-display {
  color: #9ca3af;
  font-size: 13px;
}

/* Action buttons section */
#prechecklist-root .item-actions-column {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Action buttons styling */
#prechecklist-root .action-button.icon-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #374151;
  border: 1px solid #4b5563;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

#prechecklist-root .action-button.icon-button:hover {
  background-color: #4b5563;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Remove button - red background like screenshot */
#prechecklist-root .remove-btn {
  background-color: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
}

#prechecklist-root .remove-btn:hover {
  background-color: #dc2626 !important;
  border-color: #dc2626 !important;
}

/* Note area styling */
#prechecklist-root .item-note-area {
  margin-top: 12px;
  padding: 0;
  margin-left: 0;
}

#prechecklist-root .item-notes {
  width: 100%;
  background-color: #1f2937;
  border: 1px solid #374151;
  border-radius: 8px;
  padding: 12px;
  color: #ffffff;
  font-size: 14px;
  resize: vertical;
  min-height: 80px;
}

/* Edit section styling */
#prechecklist-root .item-edit-section {
  margin-top: 12px;
  padding: 16px;
  background-color: #1f2937;
  border: 1px solid #374151;
  border-radius: 8px;
  margin-left: 36px;
}

#prechecklist-root .item-edit-section h4 {
  color: #ffffff;
  margin: 0 0 12px 0;
  font-size: 16px;
}

#prechecklist-root .item-edit-section input,
#prechecklist-root .item-edit-section textarea {
  background-color: #111827;
  border: 1px solid #374151;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 6px;
  width: 100%;
}

/* Progress bar styling */
#prechecklist-root .progress-bar-container {
  display: none;
}

#prechecklist-root .collapsible.show-progress .progress-bar-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

#prechecklist-root .progress-bar {
  width: 120px;
  height: 6px;
  background-color: #1f2937;
  border-radius: 3px;
  overflow: hidden;
}

#prechecklist-root .progress-bar > div {
  height: 100%;
  background-color: #4ade80;
  transition: width 0.3s ease;
}

#prechecklist-root .progress-text {
  color: #9ca3af;
  font-size: 13px;
  white-space: nowrap;
}

/* Attachment dropdown */
#prechecklist-root .attachment-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #1f2937;
  border: 1px solid #374151;
  border-radius: 8px;
  padding: 8px;
  min-width: 200px;
  max-width: 300px;
  z-index: 1000;
  margin-top: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Empty state */
#prechecklist-root .empty-checklist-message {
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
  font-size: 16px;
}

/* Ensure no scoped styles interfere */
/* Vue scoped styles use data-v- attributes, but we can't use wildcard selectors */
/* Instead, we'll rely on our specific selectors having higher specificity */
