/* assets/css/debug.css */
/* 開発用デバッグパネル（?debug=1） */

.debug-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 340px;
  max-height: 85vh;
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid #334155;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  font-family: monospace;
  font-size: 12px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.debug-panel-header {
  background: #1e293b;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #334155;
  font-weight: bold;
}

.debug-panel-body {
  padding: 14px;
  overflow-y: auto;
  flex: 1;
}

.debug-panel-body.collapsed {
  display: none;
}

.debug-field {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.debug-field label {
  color: #94a3b8;
}

.debug-field input,
.debug-field select {
  background: #1e293b;
  border: 1px solid #475569;
  color: #f8fafc;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.debug-btn-sm {
  background: #334155;
  color: #f8fafc;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
}

.debug-btn-sm:hover {
  background: #475569;
}

.debug-section-title {
  margin-top: 14px;
  margin-bottom: 6px;
  font-weight: bold;
  color: #38bdf8;
  border-bottom: 1px dashed #334155;
  padding-bottom: 3px;
}

.debug-btn-group {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.debug-warp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  max-height: 180px;
  overflow-y: auto;
  background: #1e293b;
  padding: 8px;
  border-radius: 4px;
}

.debug-warp-grid a {
  color: #93c5fd;
  text-decoration: none;
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.debug-warp-grid a:hover {
  background: #334155;
  color: #ffffff;
}
