/* =========================================================
   table.css - 共通テーブルUI用スタイル
========================================================= */

/* AdminLTEのテーブル微調整（縦の真ん中揃え） */
.table td,
.table th {
  vertical-align: middle !important;
  padding: 0.75rem 1rem !important;
  font-size: 0.95rem;
}

.table td {
  font-size: 0.9rem !important;
}

/* =========================================================
   テーブルソート用UI
========================================================= */

/* 並び替え可能なヘッダー */
th.sortable {
  cursor: pointer;
  position: relative;
  padding-right: 30px !important; /* アイコン分のスペース */
  transition: background-color 0.2s;
}

th.sortable:hover {
  background-color: #f4f6f9;
}

/* ソートアイコンの基本（FontAwesomeを使用） */
th.sortable::after {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f0dc"; /* 上下矢印アイコン */
  position: absolute;
  right: 10px;
  color: #ccc;
  font-size: 0.8rem;
}

/* 昇順（ASC）の時 */
th.sortable.asc::after {
  content: "\f0de"; /* 上向き矢印 */
  color: #0075c2;
}

/* 降順（DESC）の時 */
th.sortable.desc::after {
  content: "\f0dd"; /* 下向き矢印 */
  color: #0075c2;
}

/* --- ステータスバッジ --- */
/* AdminLTEの .badge クラスと組み合わせて使います */
.badge {
  padding: 0.25em 0.55em !important;
  font-size: 0.78rem !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.public {
  background-image: linear-gradient(310deg, #e96d71, #fad7a1);
  color: #fff;
  padding: 0.5em 0.8em;
}
.draft {
  background-image: linear-gradient(310deg, #627594, #a8b8d8);
  color: #fff;
  padding: 0.5em 0.8em;
}
.reserve {
  background-image: linear-gradient(310deg, #48c6ef, #6f86d6);
  color: #fff;
  padding: 0.5em 0.8em;
}

/* --- テーブル内の操作ボタン --- */
.edit-item-btn {
  background: none;
  color: #000;
  border: 1px solid #707070;
  border-radius: 30px;
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  font-weight: bold;
  transition: all 0.3s;
}

.edit-item-btn:hover {
  background-color: #f4f6f9; /* AdminLTEの薄いグレー */
  transform: translateY(-2px);
}

.btn-delete {
  background-color: #e53935;
  color: white;
  border: none;
  border-radius: 30px;
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  font-weight: bold;
  transition: all 0.3s;
}

.btn-delete:hover {
  background-color: #c62828;
  color: white;
  transform: translateY(-2px);
}

/* 操作不可状態のボタン */
.disableEditBtn {
  background-color: #c0c0c0;
  color: #fff;
  border: none;
  cursor: not-allowed;
}

/* ドラッグ＆ドロップ（並び替え）用ハンドル */
.drag-handle {
  cursor: grab;
  color: #aeb2b8;
  font-size: 1.2rem;
  padding-right: 10px;
}
.drag-handle:active {
  cursor: grabbing;
}

/* =========================================================
   ページネーション（ページ送り）UI
========================================================= */
/* ページネーション全体の余白調整 */
.pagination {
  margin-bottom: 0;
  gap: 5px; /* ボタン同士の隙間を少し開ける */
  justify-content: center;
}

/* 通常のページボタン */
.page-item .page-link {
  color: #0075c2; /* 枠線と文字をテーマカラーの青に */
  border: 1px solid #dee2e6;
  border-radius: 5px; /* 少し丸みを持たせる */
  padding: 0.4rem 0.8rem;
  font-weight: bold;
  transition: all 0.3s ease;
  background-color: #fff;
}

/* ホバー（マウスオーバー）時の動き */
.page-item .page-link:hover {
  background-color: #f4f6f9;
  color: #0056b3;
  border-color: #c4cacc;
  transform: translateY(-2px); /* 少しだけフワッと浮く */
}

/* 現在のページ（アクティブ状態） */
.page-item.active .page-link {
  background-color: #0075c2;
  border-color: #0075c2;
  color: #fff;
  box-shadow: 0 4px 6px rgba(0, 117, 194, 0.2); /* 軽く影をつけて強調 */
}

/* 押せないボタン（最初のページにいる時の「前へ」など） */
.page-item.disabled .page-link {
  color: #aeb2b8;
  pointer-events: none;
  background-color: #fdfdfd;
  border-color: #e2e8f0;
}
