/* ----------- PppDialog CSS ----------- */
/* dialog.js用 スタイル定義               */
/* ------------------------------------- */

.dlg_dialog {
  border: none;
  padding: 0;
  max-width: 90vw;
  min-width: 20vw;
  max-height: 90vh;
  border-radius: 8px;
  overflow: hidden;
  background: white;

  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.dlg_wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dlg_header {
  padding: 10px 16px;
  border-bottom: 1px solid #ddd;
  background: #f7f7f7;
}

.dlg_title {
  font-weight: bold;
}

.dlg_body {
  padding: 16px;
  overflow: auto;
  flex-grow: 1;
}

.dlg_footer {
  padding: 10px 16px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.dlg_btn {
  padding: 8px 14px;
  border-radius: 6px;
  border: none;
  background: #e0e0e0;
  cursor: pointer;
}

.dlg_btn:hover {
  background: #d6d6d6;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.4);
}

/* テキスト入力ダイアログ用スタイル */
.dlg_prompt_container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dlg_input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dlg_input:focus {
  outline: none;
  border-color: #51bb9b;
  box-shadow: 0 0 0 3px rgba(81, 187, 155, 0.15);
}

.dlg_textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

.dlg_message {
  color: #555;
  line-height: 1.5;
}

/* OKボタン強調 */
.dlg_btn_ok {
  background: #51bb9b;
  color: white;
}

.dlg_btn_ok:hover {
  background: #3da082;
}

/* キャンセルボタン */
.dlg_btn_cancel {
  background: #e0e0e0;
  color: #333;
}

.dlg_btn_cancel:hover {
  background: #d0d0d0;
}