/* pdf_2_3d.css */

/* ツールバー */
.toolbar {
  background: #f8f9fa;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #dee2e6;
}

.mode-btn.active {
  font-weight: bold;
}

/* 範囲選択パネル */
#selectAreaPanel {
  background: #cfe2ff;
  border-color: #b6d4fe;
}

/* 校正パネル */
#calibrationPanel {
  background: #e7f3ff;
  border-color: #b6d4fe;
}

/* 除外パネル */
#excludePanel {
  background: #fff3cd;
  border-color: #ffecb5;
}

/* フィルタパネル */
#filterPanel {
  background: #f8f9fa;
  border-color: #dee2e6;
}

#filterPanel .form-check {
  margin-bottom: 0;
}

/* カードの高さ */
#pdfContainer {
  min-height: 500px;
  max-height: 70vh;
  overflow: auto;
  position: relative;
  background: #fafafa;
}

#threeContainer {
  min-height: 500px;
  max-height: 70vh;
  overflow: hidden;
  position: relative;
  background: #fafafa;
}

/* PDF キャンバス */
#pdfCanvas {
  display: block;
}

/* オーバーレイキャンバス */
#overlayCanvas {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: auto;
  z-index: 10;
}

/* プレースホルダー */
.placeholder-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #6c757d;
  pointer-events: none;
}

.placeholder-text p {
  margin: 0;
  font-size: 1rem;
}

/* ドラッグオーバー */
#pdfContainer.drag-over {
  background: #e3f2fd;
  border: 2px dashed #2196f3;
}

/* 3Dコンテナ */
#threeContainer canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* 情報パネル */
.card-body .row > div {
  padding: 0.25rem 0;
}

/* ログエリア */
.log-area {
  height: 150px;
  overflow-y: auto;
  background: #1e1e1e;
  color: #d4d4d4;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 12px;
  padding: 8px;
  border-radius: 4px;
}

.log-area .log-entry {
  margin: 2px 0;
  white-space: pre-wrap;
  word-break: break-all;
}

.log-area .log-info {
  color: #9cdcfe;
}

.log-area .log-warn {
  color: #dcdcaa;
}

.log-area .log-error {
  color: #f48771;
}

.log-area .log-success {
  color: #4ec9b0;
}

/* ボタングループ調整 */
.btn-group .btn {
  min-width: 80px;
}

.pdf-service-note {
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #ffffff;
  padding: 20px;
}

.pdf-service-note__label {
  color: #47627f;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.pdf-service-note p,
.pdf-service-note li {
  color: #475569;
  line-height: 1.65;
}

.pdf-service-note__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.pdf-service-note__grid > div {
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fbfcfe;
  padding: 16px;
}

.pdf-service-note__footer {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 16px;
}

/* レスポンシブ調整 */
@media (max-width: 991px) {
  #pdfContainer,
  #threeContainer {
    min-height: 400px;
    max-height: 50vh;
  }
}

@media (max-width: 767px) {
  .toolbar {
    flex-direction: column;
    align-items: stretch !important;
  }
  
  .toolbar .btn-group,
  .toolbar .input-group {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .toolbar .ms-auto {
    margin-left: 0 !important;
    margin-top: 0.5rem;
  }

  .pdf-service-note__grid {
    grid-template-columns: 1fr;
  }

  .pdf-service-note__footer {
    align-items: stretch;
    flex-direction: column;
  }
}
