/* data-list-2: リスト 2 — フィルター絞り込み */

/* デモコンテナをフィルター+リストの縦並びにする */
.demo-container {
  display: block;
  padding: 24px;
}

/* ====== フィルターバー ====== */
.dl2-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.dl2-filter-input,
.dl2-filter-select {
  padding: 7px 12px;
  font-size: 13px;
  font-family: sans-serif;
  color: #1A2332;
  background: #fff;
  border: 1.5px solid #D0D7E0;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.15s;
}

.dl2-filter-input {
  flex: 1;
  min-width: 160px;
}

.dl2-filter-input:focus,
.dl2-filter-select:focus {
  border-color: #2B7FE8;
}

.dl2-filter-count {
  font-size: 13px;
  color: #6B7280;
  white-space: nowrap;
  margin-left: auto;
}

.dl2-filter-clear {
  padding: 6px 14px;
  font-size: 13px;
  font-family: sans-serif;
  color: #5A6A7A;
  background: #fff;
  border: 1.5px solid #D0D7E0;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.dl2-filter-clear:hover {
  background: #F4F6F9;
  border-color: #9AA5B4;
}

/* ====== リスト本体 ====== */
.dl2-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.10);
  overflow: hidden;
}

/* リストアイテム */
.dl2-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #E5E9F2;
  transition: background 0.1s;
}

.dl2-item:last-child { border-bottom: none; }
.dl2-item:hover { background: #F4F7FF; }

/* 非表示クラス（フィルターで使用） */
.dl2-item.is-hidden { display: none; }

/* アバター */
:root {
  --dl2-av1: #2B7FE8;
  --dl2-av2: #10B981;
  --dl2-av3: #F59E0B;
  --dl2-av4: #8B5CF6;
  --dl2-av5: #EF4444;
}

.dl2-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.dl2-avatar[data-color="1"] { background: var(--dl2-av1); }
.dl2-avatar[data-color="2"] { background: var(--dl2-av2); }
.dl2-avatar[data-color="3"] { background: var(--dl2-av3); }
.dl2-avatar[data-color="4"] { background: var(--dl2-av4); }
.dl2-avatar[data-color="5"] { background: var(--dl2-av5); }

/* 本文エリア */
.dl2-body {
  flex: 1;
  min-width: 0;
}

.dl2-name {
  font-size: 14px;
  font-weight: 700;
  color: #1A2332;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dl2-meta {
  font-size: 12px;
  color: #6B7280;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 状態バッジ */
.dl2-status {
  flex-shrink: 0;
  display: inline-block;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
}

.dl2-status[data-status="在籍"] { background: #D1FAE5; color: #065F46; }
.dl2-status[data-status="休職"] { background: #FEF3C7; color: #92400E; }
.dl2-status[data-status="退職"] { background: #F3F4F6; color: #6B7280; }

/* 0件メッセージ */
.dl2-empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 14px;
  color: #9AA5B4;
}


/* サンプルソースヒント */
.source-hint {
  margin: 0 0 16px;
  padding: 10px 14px;
  background: #F4F7FF;
  border-radius: 6px;
  font-size: 13px;
  color: #3D5A80;
  line-height: 1.7;
}

.source-hint code {
  font-family: monospace;
  background: #E8EDF4;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 12px;
}

/* プロンプト補足（注意・ヒント） */
.prompt-notes {
  margin-bottom: 20px;
  padding: 14px 16px;
  background: #F9FAFB;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.7;
}

.prompt-note-caution {
  margin: 0 0 8px;
  color: #E65100;
}

.prompt-note-tip {
  margin: 0;
  color: #5A6A7A;
}

/* レスポンシブ */
@media (max-width: 480px) {
  .demo-container { padding: 16px; }
  .dl2-filter-input { min-width: 120px; }
  .dl2-item { gap: 10px; padding: 10px 12px; }
  .dl2-avatar { width: 36px; height: 36px; font-size: 14px; }
}
