/* PPT 슬라이드 추출 전용 스타일 */

.progress-section { text-align: center; }
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.3s;
}

.select-section { margin-top: 1.5rem; }
.select-section[hidden] { display: none; }

/* 파일 정보 바 */
.file-info-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.file-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary);
}
.file-info { flex: 1; min-width: 0; }
.file-name {
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-meta { font-size: 0.75rem; color: var(--text-sub); }

.btn-change {
  padding: 0.35rem 0.75rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-sub);
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}
.btn-change:hover { border-color: var(--primary); color: var(--primary); }

/* 선택 툴바 */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.toolbar-left { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.toolbar .btn-tb {
  padding: 0.35rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-sub);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.toolbar .btn-tb:hover { border-color: var(--primary); color: var(--primary); }
.toolbar .selected-count {
  font-size: 0.8rem;
  color: var(--text-sub);
}

/* 범위 선택 힌트 */
.range-hint {
  font-size: 0.75rem;
  color: var(--text-sub);
  margin: 0 0 0.6rem;
}
.range-hint kbd {
  font-family: inherit;
  font-size: 0.7rem;
  padding: 0.1rem 0.35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 4px;
  color: var(--text);
}

/* 슬라이드 목록 */
.slide-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  max-height: 460px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.slide-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  min-height: 44px;
  user-select: none;
  transition: background 0.15s;
}
.slide-item:last-child { border-bottom: none; }
.slide-item:hover { background: rgba(102, 126, 234, 0.06); }
.slide-item:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}
.slide-item.selected { background: rgba(102, 126, 234, 0.12); }
.slide-item.selected:hover { background: rgba(102, 126, 234, 0.18); }

.slide-check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  position: relative;
  transition: background 0.15s, border-color 0.15s;
}
.slide-item.selected .slide-check {
  background: var(--primary);
  border-color: var(--primary);
}
.slide-item.selected .slide-check::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 4px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.slide-number {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  min-width: 76px;
  flex-shrink: 0;
}
.slide-title {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 추출 버튼 */
.btn-extract {
  display: block;
  width: 100%;
  padding: 0.8rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 0.5rem;
  transition: background 0.2s;
}
.btn-extract:hover:not(:disabled) { background: var(--primary-hover); }
.btn-extract:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-reset {
  display: block;
  width: 100%;
  padding: 0.6rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-sub);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-reset:hover { border-color: var(--primary); color: var(--primary); }

/* 반응형 */
@media (max-width: 480px) {
  .file-info-bar { flex-wrap: wrap; }
  .slide-number { min-width: 64px; font-size: 0.75rem; }
  .slide-title { font-size: 0.8rem; }
}
