/*
 * 통합 워크스페이스 단축키 안내 모달
 * 2026-06-01 — workspace_keyboard_shortcuts.js 와 짝
 *
 * Scope: .ks-modal-body 하위 only — global selector 미사용.
 */

.ks-modal-body {
  font-size: 13.5px;
  color: #2c3e50;
  max-height: 70vh;
  overflow-y: auto;
  padding: 0 2px;
}

.ks-modal-hint {
  background: #f6f9ff;
  border: 1px solid #d6e3ff;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12.5px;
  color: #4a5d80;
  line-height: 1.55;
  margin-bottom: 12px;
}

.ks-modal-hint i.bi {
  font-size: 12px;
  vertical-align: -1px;
}

.ks-section {
  border: 1px solid #d8e1ec;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.ks-section:hover {
  border-color: #b2c5e0;
  box-shadow: 0 2px 6px rgba(74, 108, 247, 0.08);
}

.ks-section[open] {
  border-color: #8fa9d8;
  box-shadow: 0 3px 10px rgba(74, 108, 247, 0.12);
}

.ks-section-header {
  display: flex;
  align-items: center;
  padding: 13px 14px 13px 14px;
  background: linear-gradient(135deg, #eef3fc 0%, #f6f9fd 100%);
  cursor: pointer;
  user-select: none;
  list-style: none;
  font-weight: 600;
  color: #18233d;
  border-bottom: 2px solid transparent;
  border-left: 4px solid #4a6cf7;
  transition: background 0.2s ease, border-left-color 0.2s ease, padding-left 0.15s ease;
}

.ks-section-header::-webkit-details-marker {
  display: none;
}

.ks-section-header:hover {
  background: linear-gradient(135deg, #dfeafc 0%, #ebf2fb 100%);
  border-left-color: #2c4fdc;
  border-left-width: 5px;
  padding-left: 13px;
}

.ks-section[open] .ks-section-header {
  background: linear-gradient(135deg, #d9e5fa 0%, #e6eef8 100%);
  border-bottom-color: #b8cae8;
  border-left-color: #2c4fdc;
}

.ks-section[open] .ks-section-header:hover {
  background: linear-gradient(135deg, #cfdcf6 0%, #dfe9f5 100%);
  border-left-width: 5px;
  padding-left: 13px;
}

.ks-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(74, 108, 247, 0.12);
  color: #2c4fdc;
  font-size: 14px;
  margin-right: 10px;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ks-section-header:hover .ks-section-icon {
  background: rgba(44, 79, 220, 0.18);
  color: #1f3bc4;
  transform: scale(1.05);
}

.ks-section[open] .ks-section-icon {
  background: rgba(44, 79, 220, 0.2);
  color: #1f3bc4;
}

.ks-section-title {
  font-size: 14px;
  letter-spacing: -0.01em;
  color: #18233d;
}

.ks-section-subtitle {
  font-size: 12px;
  font-weight: 500;
  color: #5d7099;
  margin-left: 10px;
  flex: 1;
  letter-spacing: -0.005em;
}

.ks-section-chevron {
  font-size: 13px;
  color: #6a7e9e;
  transition: transform 0.25s ease, color 0.2s ease;
  flex-shrink: 0;
}

.ks-section-header:hover .ks-section-chevron {
  color: #2c4fdc;
}

.ks-section[open] .ks-section-chevron {
  transform: rotate(180deg);
  color: #2c4fdc;
}

.ks-section-body {
  padding: 4px 0;
}

.ks-shortcut-row {
  display: grid;
  grid-template-columns: minmax(180px, auto) 1fr 28px;
  align-items: center;
  gap: 12px;
  padding: 7px 14px;
  border-bottom: 1px solid #f1f3f6;
}

.ks-shortcut-row:last-child {
  border-bottom: none;
}

.ks-shortcut-row:hover {
  background: #fafbfd;
}

.ks-keys {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.kbd-key {
  display: inline-block;
  padding: 2px 7px;
  background: #f4f5f7;
  border: 1px solid #d1d5db;
  border-bottom-width: 2px;
  border-radius: 4px;
  font-family: "SF Mono", "Menlo", "Consolas", monospace;
  font-size: 11.5px;
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.kbd-plus {
  margin: 0 5px;
  font-size: 11px;
  color: #94a2b8;
  font-weight: 600;
}

.ks-label {
  font-size: 12.5px;
  color: #41506b;
  line-height: 1.45;
}

.ks-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ks-lock-icon,
.ks-rebind-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  font-size: 12px;
  cursor: not-allowed;
}

.ks-lock-icon {
  color: #b8c1cf;
  background: transparent;
}

.ks-rebind-icon.ks-disabled {
  color: #c8d0dc;
  background: #f4f5f7;
  border: 1px dashed #d8dde5;
  position: relative;
}

.ks-rebind-icon.ks-disabled:hover {
  color: #94a2b8;
  background: #eef2f7;
  border-color: #c7d0db;
}

.ks-rebind-icon.ks-disabled::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
