/* ===============================
   対応履歴管理システム - カスタムCSS
   =============================== */

:root {
  --primary: #1a6fca;
  --sidebar-width: 220px;
}

/* ---- ログイン画面 ---- */
.login-page {
  min-height: 100vh;
}

/* ---- ナビゲーション ---- */
.navbar-brand {
  font-size: 1rem;
}

/* ---- パンくずリスト ---- */
nav[aria-label="breadcrumb"] {
  font-size: .82rem;
}

/* ---- テーブル ---- */
.table > tbody > tr.cursor-pointer {
  cursor: pointer;
}
.table > tbody > tr.cursor-pointer:hover td {
  background-color: rgba(13, 110, 253, 0.04);
}

/* ---- 統計カード ---- */
.stat-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.1) !important;
}
.stat-icon {
  font-size: 1.8rem;
}
.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}
.stat-label {
  font-size: .8rem;
  margin-top: .3rem;
}

/* ---- ポータルページ ---- */
.main-portal-header {
  background: linear-gradient(135deg, #1a6fca 0%, #0d47a1 100%);
  box-shadow: 0 4px 15px rgba(13, 110, 253, .25);
}

.module-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border-top: 3px solid transparent;
}
.module-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.1) !important;
}
.module-card:has(.btn-primary):hover {
  border-top-color: #0d6efd;
}
.module-card:has(.btn-success):hover {
  border-top-color: #198754;
}
.module-card:has(.btn-info):hover {
  border-top-color: #0dcaf0;
}
.module-card:has(.btn-warning):hover {
  border-top-color: #ffc107;
}

.module-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---- アバター ---- */
.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}

/* ---- コメント ---- */
.comment-body {
  background: #f8f9fa;
  border-radius: .5rem;
  padding: .6rem .9rem;
  font-size: .9rem;
}

/* ---- 情報リスト (dl) ---- */
.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .25rem .75rem;
}
.info-list dt {
  color: #6c757d;
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
  padding-top: .15rem;
}
.info-list dd {
  margin: 0;
  font-size: .9rem;
  word-break: break-all;
}

/* ---- 改行を保持 ---- */
.pre-wrap {
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---- 緊急行のハイライト ---- */
.table-danger-subtle td {
  background-color: rgba(220, 53, 69, 0.06) !important;
}

/* ---- フッター ---- */
.footer {
  margin-top: auto;
}

/* ---- カード ---- */
.card-header {
  font-size: .95rem;
}

/* ---- バッジ調整 ---- */
.badge {
  font-weight: 500;
}

/* ---- レスポンシブ調整 ---- */
@media (max-width: 767px) {
  .stat-number {
    font-size: 1.6rem;
  }
  .stat-icon {
    font-size: 1.4rem;
  }
  .table-responsive {
    font-size: .85rem;
  }
  .module-icon {
    width: 44px;
    height: 44px;
  }
}

/* ---- アニメーション ---- */
.alert {
  animation: slideDown .2s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- ログインページ装飾 ---- */
.login-logo i {
  filter: drop-shadow(0 2px 4px rgba(13, 110, 253, .3));
}

/* ---- アクティブナビ ---- */
.navbar-dark .navbar-nav .nav-link.active {
  font-weight: 600;
  border-bottom: 2px solid rgba(255,255,255,.8);
}

/* ---- フォームコントロール focus ---- */
.form-control:focus,
.form-select:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, .15);
}

/* ---- ステータスカラーバー ---- */
.status-bar {
  height: 4px;
  border-radius: 2px;
}

/* ---- ドロップダウンメニュー ---- */
.dropdown-item.active,
.dropdown-item:active {
  background-color: rgba(13, 110, 253, .1);
  color: #0d6efd;
}
.dropdown-item i {
  width: 1.2em;
}
