/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */
/* app/assets/stylesheets/custom.css */
.pagination {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

.pagination a, .pagination em {
  border: 1px solid #ddd;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: #337ab7;
  margin: 0 0.25rem;
  border-radius: 4px;
  transition: background-color 0.2s ease-in-out;
}

.pagination a:hover {
  background-color: #eee;
}

.pagination .current {
  background-color: #337ab7;
  color: white;
  border-color: #337ab7;
}

.pagination .prev, .pagination .next, .pagination .first, .pagination .last {
  color: #777;
}

.pagination .disabled {
  color: #ccc;
  pointer-events: none;
  cursor: not-allowed;
}

/* ベースとなるスイッチコンテナ */
.switch {
  position: relative;
  display: inline-block;
  width: 50px; /* スイッチの幅 */
  height: 28px; /* スイッチの高さ */
  cursor: pointer;
}

/* 実際のチェックボックスを非表示にする */
.switch-checkbox {
  opacity: 0;
  width: 0;
  height: 0;
}

/* スライダーの見た目を定義 */
.switch-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc; /* OFF時の背景色 */
  transition: .4s;
  border-radius: 28px; /* 丸みを帯びた形状 */
}

/* スライダーの丸い部分（つまみ） */
.switch-slider::before {
  position: absolute;
  content: "";
  height: 20px; /* つまみの高さ */
  width: 20px; /* つまみの幅 */
  left: 4px; /* 左端からの位置 */
  bottom: 4px; /* 下端からの位置 */
  background-color: white; /* つまみの色 */
  transition: .4s;
  border-radius: 50%; /* 完全な円形 */
}

/* チェックされた時のスライダーのスタイル */
.switch-checkbox:checked + .switch-slider {
  background-color: #4CAF50; /* ON時の背景色（緑） */
}

/* チェックされた時のつまみの位置 */
.switch-checkbox:checked + .switch-slider::before {
  transform: translateX(22px); /* 右に移動 */
}