/* 全体のレイアウト */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f8f9fa;
}

/* ナビゲーションバー */
.navbar {
  padding: 0.5rem 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 600;
}

/* サイドバー */
body .sidebar {
  min-height: calc(100vh - 56px);
  width: 250px;
  position: fixed;
  top: 56px; /* ナビゲーションバーの高さ分 */
  left: 0;
  background-color: #212529 !important;
  padding-top: 1rem;
  z-index: 100;
  overflow-y: auto; /* 縦方向のスクロールを有効化 */
  height: calc(100vh - 56px); /* ナビゲーションバーの高さを引いた高さ */
}

.sidebar-sticky {
  position: relative;
  top: 0;
  height: 100%;
  padding-bottom: 1rem;
}

.sidebar .nav-link {
  color: rgba(255, 255, 255, 0.8);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  text-decoration: none;
}

.sidebar .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.sidebar .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.sidebar .nav-link:visited {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.sidebar .nav-link:active {
  color: #fff;
  text-decoration: none;
}

.sidebar .nav-link i {
  margin-right: 0.5rem;
}

.sidebar .text-white-50 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* メインコンテンツ */
#content {
  margin-left: 250px;
  padding: 1rem;
  margin-top: 56px; /* ナビゲーションバーの高さ分 */
  min-height: calc(100vh - 56px);
}

/* カード */
.card {
  border: none;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  margin-bottom: 1.5rem;
}

.card-header {
  background-color: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
  padding: 1rem;
}

.card-header h6 {
  margin: 0;
  font-weight: 600;
}

/* テーブル */
.table {
  margin-bottom: 0;
}

.table th {
  font-weight: 600;
  background-color: #f8f9fa;
}

/* バッジ */
.badge {
  padding: 0.5em 0.75em;
  font-weight: 500;
}

/* ボタン */
.btn {
  font-weight: 500;
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

/* フォーム */
.form-label {
  font-weight: 500;
  color: #6c757d;
}

.form-control:focus,
.form-select:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* ページネーション */
.pagination {
  margin-bottom: 0;
}

.page-link {
  padding: 0.5rem 0.75rem;
  color: #0d6efd;
}

.page-item.active .page-link {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .sidebar {
    margin-left: -250px;
  }
  .sidebar.active {
    margin-left: 0;
  }
  #content {
    width: 100%;
    margin-left: 0;
  }
  #content.active {
    margin-left: 250px;
    width: calc(100% - 250px);
  }
}

/* タイムライン */
.timeline {
  position: relative;
  padding: 1rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1rem;
  height: 100%;
  width: 2px;
  background: #e9ecef;
}

.timeline-item {
  position: relative;
  padding-left: 3rem;
  padding-bottom: 1.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0.25rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #0d6efd;
}

.timeline-date {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 0.25rem;
}

.timeline-content {
  background: #f8f9fa;
  padding: 0.75rem;
  border-radius: 0.25rem;
}

.timeline-title {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.timeline-user {
  font-size: 0.875rem;
  color: #6c757d;
}

/* スクロールバーのスタイル */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: #2c3136;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #6c757d;
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: #adb5bd;
}

/* 復元ボタンのスタイル */
.btn-outline-warning.restore-btn {
  color: #e0a800 !important;
  border-color: #e0a800 !important;
}

.btn-outline-warning.restore-btn:hover {
  color: #FFFFFF !important;
  background-color: #e0a800 !important;
  border-color: #e0a800 !important;
} 