/* -------------------------------------------- */
/* 設定パネルのデザイン */
/* -------------------------------------------- */
#pomodoro-settings {
  margin-bottom: 20px;
  background: #f8f9fa; /* 設定パネルの背景色 */
  padding: 15px;
  border-radius: 8px;
}

.time-settings,
.alarm-settings {
  display: flex;
  gap: 20px; /* アイテム間のスペース */
  flex-wrap: wrap; /* 小さな画面では折り返す */
  margin-bottom: 10px;
}

.time-settings div,
.alarm-settings div {
  display: flex;
  flex-direction: row; /* 横並び */
  align-items: center;
}

.time-settings button,
.alarm-settings button {
  width: 30px; /* ボタンの幅 */
  height: 30px; /* ボタンの高さ */
  background-color: #0073aa; /* ボタンのデフォルト色 */
  color: #fff; /* ボタンの文字色 */
  border: none; /* ボーダーなし */
  border-radius: 4px; /* ボタンを少し丸く */
  font-size: 18px; /* ボタン内の文字サイズ */
  cursor: pointer; /* マウスオーバー時にポインタカーソルを表示 */
}

.time-settings button:hover,
.alarm-settings button:hover {
  background-color: #005f8a; /* マウスオーバー時のボタン色 */
}

#work-time-display,
#break-time-display {
  margin: 0 10px; /* ボタンとテキスト間の余白 */
  font-size: 20px; /* テキストサイズ */
  font-weight: bold; /* 太字 */
}

.volume-test {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px; /* 音量テストボタンとスライダー間のスペース */
}

/* -------------------------------------------- */
/* タイマーパネルのデザイン */
/* -------------------------------------------- */
#pomodoro-timer {
  text-align: center;
  padding: 30px 15px;
  background-color: #ffffff; /* タイマーパネルの背景色 */
  border-radius: 10px; /* タイマー全体の角を丸く */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* ボックスシャドウ */
}

#timer-label {
  font-size: 28px;
  margin-bottom: 10px;
  color: #0073aa; /* ラベルの文字色 */
}

#time-display {
  font-size: 100px;
  font-weight: bold;
  margin: 20px 0;
  color: #333; /* 時間表示の文字色 */
}

#indicator-bar {
  width: 100%; /* プログレスバーの幅 */
  height: 10px; /* プログレスバーの高さ */
  background-color: #ccc; /* デフォルトのプログレスバーの背景色 */
  margin: 20px 0;
  border-radius: 5px; /* プログレスバー全体を丸く */
  transition: width 0.3s ease, background-color 0.5s ease; /* アニメーションの追加 */
}

/* プログレスバーの動的な変更 */
#indicator-bar.work {
  background-color: #ff9999; /* 作業中の進行色 */
}

#indicator-bar.break {
  background-color: #99ccff; /* 休憩中の進行色 */
}

/* -------------------------------------------- */
/* ボタンデザイン */
/* -------------------------------------------- */
.button-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.button-group button {
  width: 120px; /* ボタンの幅 */
  padding: 12px 0;
  font-size: 18px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: transparent; /* 透明な背景色 */
  color: #333; /* ボタンの文字色 */
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.button-group button:hover {
  background-color: #e0e0e0; /* マウスホバー時の背景 */
}

/* -------------------------------------------- */
/* スライダーのデザイン */
/* -------------------------------------------- */
#alarm-volume {
  width: 100%; /* スライダーの幅 */
  appearance: none; /* デフォルトのブラウザスタイルを無効化 */
  height: 8px; /* スライダー全体の高さ */
  background-color: #ddd; /* スライダーの背景色 */
  border-radius: 5px; /* スライダーの角を丸くする */
  outline: none; /* フォーカス時の青い枠を非表示 */
}

/* ハンドル部分 (スライダーのつまみ) */
#alarm-volume::-webkit-slider-thumb {
  appearance: none; /* デフォルトブラウザデザインを無効化 */
  width: 16px; /* ハンドルの大きさ(横幅) */
  height: 16px; /* ハンドルの大きさ(縦幅) */
  background-color: #0073aa; /* ハンドルの色 */
  border-radius: 50%; /* ハンドルを丸くする */
  cursor: pointer; /* クリック時のポインタを表示 */
}

/* Firefox用ハンドルスタイル */
#alarm-volume::-moz-range-thumb {
  width: 16px; /* ハンドルの大きさ(横幅) */
  height: 16px; /* ハンドルの大きさ(縦幅) */
  background-color: #0073aa; /* ハンドルの色 */
  border-radius: 50%; /* ハンドルを丸くする */
  cursor: pointer; /* クリック時のポインタを表示 */
}

/* スライダー全体のスタイル(WebKit対応用) */
#alarm-volume::-webkit-slider-runnable-track {
  background-color: #ddd; /* スライダー全体の背景色 */
  border-radius: 5px; /* スライダーの角を丸くする */
  height: 8px; /* スライダー全体の高さ */
}

/* -------------------------------------------- */
/* 全画面モード時のレイアウト変更 */
/* -------------------------------------------- */
.fullscreen-mode {
  background-color: #eef6ff; /* 全画面モード時の背景色 */
  transition: background-color 0.5s ease;
}