@charset "UTF-8";
/* line 6, /opt/webroot/column/app/assets/stylesheets/pages.scss */
:root {
  --bg-sidebar: #0b0e1a;
  --bg-main: #f4f6fa;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #ffffff;
  /* グラデーションとプライマリ */
  --primary: #4f46e5;
  --btn-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --sidebar-active-bg: linear-gradient(90deg, rgba(59, 130, 246, 0.12) 0%, rgba(139, 92, 246, 0.02) 100%);
  --progress-gradient: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  /* ステータスバッジ用カラー */
  --status-published: #10b981;
  --status-published-bg: #e6f4ea;
  --border-color: #e2e8f0;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  --radius: 16px;
}

/* ブラウザ規定値リセット */
/* line 29, /opt/webroot/column/app/assets/stylesheets/pages.scss */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* line 35, /opt/webroot/column/app/assets/stylesheets/pages.scss */
body.admin-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
}

/* 全体を2カラムにする親コンテナ */
/* line 43, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.admin-shell {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* ==========================================================================
   2. Dark Mode Sidebar (左側固定)
   ========================================================================== */
/* line 52, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.admin-sidebar {
  width: 260px;
  background-color: var(--bg-sidebar);
  color: #7e84a3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 0 24px 0;
  flex-shrink: 0;
  position: fixed;
  /* 左側に常駐固定 */
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
}

/* サイドバー上部コンテナ */
/* line 69, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.sidebar-top {
  padding: 0 18px;
}

/* line 73, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.admin-sidebar .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 6px;
  margin-bottom: 32px;
}

/* 新規作成ボタン（紫青ネオングラデーション） */
/* line 82, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.btn-create-article {
  width: 100%;
  background: var(--btn-gradient);
  color: var(--text-light);
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.25);
  margin-bottom: 32px;
  transition: opacity 0.2s;
}

/* line 101, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.btn-create-article:hover {
  opacity: 0.9;
}

/* ナビゲーションリンク */
/* line 106, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* line 112, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.sidebar-nav a {
  color: #7e84a3;
  text-decoration: none;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 10px;
  transition: all 0.2s ease;
}

/* line 125, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.sidebar-nav a svg {
  color: #4a5275;
}

/* line 129, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.sidebar-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
}

/* line 134, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.sidebar-nav a.active {
  color: var(--text-light);
  background: var(--sidebar-active-bg);
  font-weight: 600;
  box-shadow: inset 3px 0 0 0 #3b82f6;
}

/* line 141, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.sidebar-nav a.active svg {
  color: #3b82f6;
}

/* サイドバー下部固定セクション */
/* line 146, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.sidebar-bottom {
  padding: 24px 18px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto;
}

/* line 152, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

/* line 159, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.user-profile .avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

/* line 166, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.user-profile .user-info {
  display: flex;
  flex-direction: column;
}

/* line 171, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.user-profile .user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
}

/* line 177, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.user-profile .user-plan {
  font-size: 11px;
  color: #52597d;
}

/* line 182, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.user-profile .btn-user-menu {
  margin-left: auto;
  background: none;
  border: none;
  color: #52597d;
  cursor: pointer;
}

/* 使用状況メーター（プログレスバー） */
/* line 191, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.usage-container {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

/* line 198, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.usage-header {
  font-size: 11px;
  color: #52597d;
  margin-bottom: 8px;
}

/* line 204, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.usage-stats {
  margin-bottom: 8px;
}

/* line 208, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.usage-current {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-light);
}

/* line 214, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.usage-total {
  font-size: 12px;
  color: #52597d;
}

/* line 219, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.usage-progress-bar {
  height: 6px;
  background: #1a1f36;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}

/* line 227, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.usage-progress-fill {
  height: 100%;
  background: var(--progress-gradient);
}

/* line 232, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.usage-footer {
  font-size: 11px;
  color: #52597d;
}

/* ==========================================================================
   3. Main Dashboard View (右側可変領域)
   ========================================================================== */
/* line 240, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.admin-main {
  flex-grow: 1;
  padding: 40px;
  margin-left: 260px;
  /* 固定サイドバーの幅だけ右に寄せる */
  min-width: 0;
  /* フレックスアイテムの縮みバグ対策 */
}

/* line 247, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

/* line 254, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.page-header h1 {
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
}

/* KPIブロック */
/* line 261, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

/* line 268, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.kpi-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

/* line 276, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.kpi-card .label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}

/* line 283, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.kpi-card .value {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
}

/* Bulk Panel (一括生成) */
/* line 290, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.bulk-panel {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--card-shadow);
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
}

/* line 299, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.bulk-panel h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* line 305, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.bulk-panel .grid {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

/* line 311, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.bulk-panel .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

/* line 318, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.bulk-panel label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

/* line 324, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.bulk-panel select {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: #f8fafc;
}

/* line 332, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.bulk-panel button {
  background: var(--btn-gradient);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  height: 38px;
}

/* フィルタセグメントコントロール */
/* line 344, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.filter-bar {
  display: flex;
  gap: 4px;
  background-color: #e2e8f0;
  padding: 4px;
  border-radius: 10px;
  width: fit-content;
  margin-bottom: 20px;
}

/* line 354, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.filter-bar .btn {
  padding: 6px 16px;
  border-radius: 7px;
  font-size: 13px;
  text-decoration: none;
  color: var(--text-muted);
}

/* データテーブル */
/* line 363, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.table-wrap {
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

/* line 371, /opt/webroot/column/app/assets/stylesheets/pages.scss */
table {
  width: 100%;
  border-collapse: collapse;
}

/* line 376, /opt/webroot/column/app/assets/stylesheets/pages.scss */
th {
  background-color: #f8fafc;
  color: var(--text-muted);
  font-weight: 600;
  padding: 14px 20px;
  font-size: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

/* line 386, /opt/webroot/column/app/assets/stylesheets/pages.scss */
td {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 14px;
}

/* line 392, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background-color: var(--status-published-bg);
  color: var(--status-published);
}

/* line 402, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.actions a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: #3b82f6;
  margin-right: 12px;
}

/* line 410, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.actions a[method="delete"] {
  color: #ef4444;
}

/* ボタン装飾 */
/* line 415, /opt/webroot/column/app/assets/stylesheets/pages.scss */
.btn-outline-light {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
