/* Sortable Examples Styles */
/* Sortable Placeholder - shows drop position */
.sortable-placeholder {
  outline: 2px dashed;
}
/* Example 1: Simple List */
.simple-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.simple-list li {
  padding: 15px 20px;
  margin: 8px 0;
  background: var(--color-surface);
  border-radius: 6px;
  cursor: move;
  transition: all 0.2s ease;
  font-size: 16px;
}
.simple-list li:hover {
  background: var(--color-surface-hover);
}
.simple-list li.sortable-ghost {
  opacity: 0.4;
}
.simple-list li.sortable-drag {
  opacity: 0.8;
  transform: rotate(2deg);
}
/* Example 2: Card List with Drag Handle */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}
.card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.drag-handle {
  cursor: move;
  font-size: 24px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  user-select: none;
}
.card-content {
  flex: 1;
}
.card-content h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
}
.card-content p {
  margin: 0 0 12px 0;
  font-size: 14px;
}
.card-actions {
  display: flex;
  gap: 8px;
}
.card.sortable-ghost {
  opacity: 0.5;
  background: var(--color-surface-hover);
}
.card.sortable-chosen {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transform: scale(1.02);
}
/* Example 3: Kanban Board */
.kanban-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 20px 0;
}
.kanban-column {
  background: var(--color-surface-dark);
  padding: 16px;
  border-radius: 8px;
  min-height: 400px;
}
.kanban-column h3 {
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border);
  font-size: 16px;
  font-weight: 600;
}
.kanban-card {
  background: var(--color-surface);
  padding: 16px;
  margin: 12px 0;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  cursor: move;
  transition: all 0.2s ease;
}
.kanban-card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}
.kanban-card h4 {
  margin: 0 0 8px 0;
  font-size: 15px;
}
.kanban-card p {
  margin: 0 0 12px 0;
  font-size: 13px;
  line-height: 1.5;
}
.badge {
  display: inline-block;
  padding: 4px 10px;
  background: #007bff;
  color: white;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.kanban-card.sortable-ghost {
  opacity: 0.5;
  background: var(--color-surface-hover);
}
.kanban-card.sortable-chosen {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
/* Example 4: Priority List */
.priority-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.priority-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: 6px;
  cursor: move;
  transition: all 0.2s ease;
}
.priority-item:hover {
  border-color: var(--color-border-hover);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.priority-item:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}
.priority-badge {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 70px;
  text-align: center;
}
.priority-item.high .priority-badge {
  background: var(--color-danger);
  color: white;
}
.priority-item.medium .priority-badge {
  background: var(--color-warning);
  color: var(--color-text);
}
.priority-item.low .priority-badge {
  background: var(--color-success);
  color: white;
}
.priority-text {
  flex: 1;
  font-size: 15px;
}
.priority-item.sortable-ghost {
  opacity: 0.4;
}
/* Example 6: Event Logging */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.event-item {
  padding: 12px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  cursor: move;
  transition: all 0.2s ease;
}
.event-item:hover {
  background: var(--color-surface-hover);
}
.event-log {
  margin-top: 20px;
  padding: 16px;
  background: var(--color-surface-dark);
  border-radius: 8px;
  color: var(--color-text-dark);
}
.event-log h4 {
  margin: 0 0 12px 0;
  color: var(--color-text-dark);
  font-size: 14px;
  font-weight: 600;
}
.log-output {
  background: var(--color-surface-dark);
  padding: 12px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 12px;
}
.log-entry {
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border-dark);
  color: var(--color-text-dark);
}
.log-entry:last-child {
  border-bottom: none;
}
.log-time {
  color: var(--color-text-dark);
  margin-right: 8px;
  font-size: 11px;
}
/* General Styles */
.example-box {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin: 20px 0;
}
.info-box {
  padding: 12px 16px;
  background: var(--color-surface-dark);
  border-left: 4px solid var(--color-primary);
  border-radius: 4px;
  margin: 16px 0;
  font-size: 14px;
  color: var(--color-text-dark);
}
.code-example {
  margin: 20px 0;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
}
.code-example summary {
  padding: 12px 16px;
  background: var(--color-surface-dark);
  cursor: pointer;
  font-weight: 500;
  user-select: none;
}
.code-example summary:hover {
  background: var(--color-surface-dark);
}
.code-example pre {
  margin: 0;
  padding: 16px;
  background: var(--color-surface-dark);
  overflow-x: auto;
}
.code-example code {
  color: var(--color-text-dark);
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
}
/* Responsive */
@media (max-width: 768px) {
  .kanban-board {
    grid-template-columns: 1fr;
  }
  .card {
    flex-direction: column;
  }
  .drag-handle {
    align-self: flex-start;
  }
}
/* File Preview Sortable (from FileElementFactory) */
.file-preview .preview-item {
  cursor: move;
}
.file-preview .preview-item.sortable-ghost {
  opacity: 0.4;
  background: #e9ecef;
}
.file-preview .preview-item.sortable-chosen {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}