body { background-color: #09090b; color: #e4e4e7; font-family: sans-serif; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #09090b; }
::-webkit-scrollbar-thumb { background: #3f3f46; border-radius: 5px; border: 2px solid #09090b; }
::-webkit-scrollbar-thumb:hover { background: #52525b; }
.tabulator { border: none !important; background-color: #09090b !important; }
.tabulator-header { background-color: #18181b !important; border-bottom: 1px solid #27272a !important; color: #a1a1aa !important; }
.tabulator-header .tabulator-col { background-color: #18181b !important; border-right: 1px solid #27272a !important; }
.tabulator-row { background-color: #09090b !important; border-bottom: 1px solid #27272a !important; color: #e4e4e7 !important; user-select: none; }
.tabulator-row.tabulator-row-even { background-color: #18181b !important; }
.tabulator-row:hover { background-color: #27272a !important; }
.tabulator-cell { border-right: 1px solid #27272a !important; }
.tabulator-footer { background-color: #18181b !important; border-top: 1px solid #27272a !important; }
.tabulator-cell.tabulator-editable { background-color: rgba(59, 130, 246, 0.1) !important; }
.tabulator-edit-select-list { background-color: #18181b !important; color: #e4e4e7 !important; border: 1px solid #3f3f46 !important; }
.tabulator-edit-select-list-item:hover { background-color: #27272a !important; color: #fff !important; }

.tabulator-row.row-cat-normal { background-color: rgba(59, 130, 246, 0.15) !important; }
.tabulator-row.row-cat-normal:hover { background-color: rgba(59, 130, 246, 0.25) !important; }
.tabulator-row.row-cat-needsFix { background-color: rgba(245, 158, 11, 0.15) !important; }
.tabulator-row.row-cat-needsFix:hover { background-color: rgba(245, 158, 11, 0.25) !important; }
.tabulator-row.row-cat-janError { background-color: rgba(239, 68, 68, 0.15) !important; }
.tabulator-row.row-cat-janError:hover { background-color: rgba(239, 68, 68, 0.25) !important; }

.tabulator-row.tabulator-selected { background-color: rgba(59, 130, 246, 0.4) !important; color: #ffffff !important; }
.tabulator-row.tabulator-selected:hover { background-color: rgba(59, 130, 246, 0.5) !important; }
.tabulator-row.tabulator-selected .tabulator-cell { border-top: 1px solid rgba(96, 165, 250, 0.5) !important; border-bottom: 1px solid rgba(96, 165, 250, 0.5) !important; }

#tableContainer.theme-normal .tabulator-header, #tableContainer.theme-normal .tabulator-header .tabulator-col { background-color: #1e3a8a !important; color: #bfdbfe !important; border-color: #1e40af !important; }
#tableContainer.theme-needsFix .tabulator-header, #tableContainer.theme-needsFix .tabulator-header .tabulator-col { background-color: #78350f !important; color: #fde68a !important; border-color: #92400e !important; }
#tableContainer.theme-janError .tabulator-header, #tableContainer.theme-janError .tabulator-header .tabulator-col { background-color: #7f1d1d !important; color: #fecaca !important; border-color: #991b1b !important; }
#tableContainer.theme-mixed .tabulator-header, #tableContainer.theme-mixed .tabulator-header .tabulator-col { background-color: #18181b !important; color: #a1a1aa !important; border-color: #27272a !important; }

.chart-bar { cursor: pointer; opacity: 0.5; height: 16px; transition: opacity 0.3s, height 0.3s; }
.chart-bar:hover { opacity: 0.8; height: 24px; }
.chart-bar.active-category { opacity: 1; height: 32px; }

.filter-btn { cursor: pointer; opacity: 1; transition: opacity 0.2s; }
.filter-btn:hover { opacity: 0.8; }
.filter-btn.zero-count { opacity: 0.4; }
.custom-scrollbar-target { overflow-x: auto !important; }
#tableContainer .tabulator-tableholder { overflow-x: auto !important; }
.custom-col-resizer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 10px;
  cursor: col-resize;
  z-index: 50;
  touch-action: none;
}
.custom-col-resizer:hover {
  background-color: rgba(59, 130, 246, 0.4);
}
@keyframes softPop { 0% { opacity: 0; transform: scale(0.95); } 100% { opacity: 1; transform: scale(1); } }
.soft-pop { animation: softPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* チュートリアル 手順1 済マーク用スタイル */
.step1-completed::before {
  content: "";
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border: 2px solid #ef4444; /* Tailwindのred-500 */
  background-color: rgba(239, 68, 68, 0.05);
  border-radius: 0.5rem;
  pointer-events: none;
  z-index: -1;
  animation: softPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stamp-done {
  color: #ef4444;
  border: 4px solid #ef4444;
  border-radius: 50%;
  font-size: 3rem;
  font-weight: 900;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%) rotate(-15deg);
  opacity: 0.8;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
  backdrop-filter: blur(2px);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  animation: stampIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes stampIn {
  0% { transform: translate(-50%, -50%) rotate(0deg) scale(2); opacity: 0; }
  100% { transform: translate(-50%, -50%) rotate(-15deg) scale(1); opacity: 0.9; }
}

/* 完了状態のときのホバーエフェクト（クリックを促す） */
#emptyState.is-completed-state {
  cursor: pointer;
}
#emptyState.is-completed-state:hover {
  background-color: rgba(255, 255, 255, 0.03);
}
