/* ============================================================
   form-datepicker-5.css — DatePicker（開始日・終了日連動）
   ============================================================ */

/* デモコンテナ：複数パターン縦並び */
.demo-container {
  flex-direction: column;
  align-items: stretch;
  padding: 24px;
}

/* ===== カラー変数（パターンカード内スコープ） ===== */
.dpr-pattern {
  --dpr-accent: #2B7FE8;
  --dpr-danger: #E53E3E;
  --dpr-text:   #1A2332;
  --dpr-muted:  #9AA5B4;
  --dpr-border: #D0D7E0;
  --dpr-bg:     #F4F6F9;
}

/* ===== パターンカード ===== */
.dpr-pattern {
  margin-bottom: 20px;
  padding: 20px;
  background: var(--dpr-bg);
  border-radius: 8px;
  max-width: 520px;
}
.dpr-pattern:last-child { margin-bottom: 0; }

.dpr-pattern-label {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--dpr-accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ===== 日付行（Pattern内：ラベル＋入力欄グループ） ===== */
.dpr-time-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.dpr-time-row:last-of-type { margin-bottom: 0; }

.dpr-row-label {
  font-size: 13px;
  color: #666;
  width: 56px;
  flex-shrink: 0;
}

/* ===== 入力欄グループ（入力+アイコン+クリア） ===== */
.dpr-input-row {
  display: flex;
  align-items: center;
}

/* ===== 入力欄 ===== */
.dpr-input {
  width: 140px;
  padding: 7px 10px;
  font-size: 14px;
  border: 1px solid var(--dpr-border);
  border-radius: 4px 0 0 4px;
  outline: none;
  font-family: sans-serif;
  color: var(--dpr-text);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s;
}
.dpr-input:focus { border-color: var(--dpr-accent); }

/* カレンダーアイコンボタン */
.dpr-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--dpr-border);
  border-left: none;
  border-radius: 0;
  background: #fff;
  color: #5A6A7A;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}
.dpr-icon-btn:hover { background: var(--dpr-bg); }

/* ×クリアボタン */
.dpr-clear-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--dpr-border);
  border-left: none;
  border-radius: 0 4px 4px 0;
  background: #fff;
  color: var(--dpr-muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: color 0.15s;
  flex-shrink: 0;
}
.dpr-clear-btn:hover { color: #5A6A7A; }

/* ===== 決定ボタン ===== */
.dpr-confirm-btn {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 24px;
  background: var(--dpr-accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: sans-serif;
  transition: opacity 0.15s;
}
.dpr-confirm-btn:hover { opacity: 0.85; }

/* ===== 結果表示 ===== */
.dpr-result {
  margin: 8px 0 0;
  font-size: 14px;
  min-height: 20px;
}
.dpr-result.has-value {
  padding: 10px 14px;
  background: #F0F7FF;
  border: 1px solid var(--dpr-accent);
  border-radius: 6px;
  color: #1A5EA8;
  font-weight: 600;
}
.dpr-result.is-error { color: var(--dpr-danger); }

/* ===== 記事への内部リンク notice ===== */
.dpr-note {
  margin: 16px 0;
  padding: 12px 16px;
  background: #EFF4FD;
  border-left: 3px solid #2B7FE8;
  border-radius: 0 6px 6px 0;
  font-size: 14px;
  line-height: 1.7;
}
.dpr-note a {
  color: #1A5EA8;
  font-weight: 600;
  text-decoration: none;
}
.dpr-note a:hover { text-decoration: underline; }

/* ===== Powered by Flatpickr ===== */
.demo-powered-by {
  margin-top: 10px;
  text-align: right;
  font-size: 12px;
  color: #9AA5B4;
}
.demo-powered-by a {
  color: #2B7FE8;
  text-decoration: none;
}
.demo-powered-by a:hover { text-decoration: underline; }

/* ===== リセットボタン ===== */
.demo-controls {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}
.reset-btn {
  padding: 6px 16px;
  font-size: 13px;
  color: #5A6A7A;
  background: #fff;
  border: 1px solid #D0D7E0;
  border-radius: 6px;
  cursor: pointer;
  font-family: sans-serif;
  transition: background 0.15s, border-color 0.15s;
}
.reset-btn:hover { background: #F4F6F9; border-color: #9AA5B4; }

/* ===== プロンプトブロック ===== */
.prompt-block { margin-bottom: 20px; }
.prompt-block:last-child { margin-bottom: 0; }
.prompt-block-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #2B7FE8;
  letter-spacing: 0.04em;
}

/* ===== レスポンシブ ===== */
@media (max-width: 540px) {
  .demo-container { padding: 16px; }
  .dpr-input { width: 118px; font-size: 13px; }
  .dpr-row-label { width: 48px; font-size: 12px; }
}
