/* Dasher テーマへの最小限の追加スタイル */

/* ブランドマーク（ロゴ代替の四角アイコン） */
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--ds-primary, #00a76f);
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  flex-shrink: 0;
}

/* トップバーのユーザーアバター */
.avatar-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ds-primary-bg-subtle, #e7f0ee);
  color: var(--ds-primary-text-emphasis, #007867);
  font-weight: 700;
}

/* 会員IDの大きな表示 */
.big-id {
  font-family: var(--bs-font-monospace, monospace);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 2px;
}

/* ヘルプ（チャット） */
.chat {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-height: 460px;
  overflow-y: auto;
  padding: .5rem;
}
.chat .msg {
  display: flex;
  flex-direction: column;
  max-width: 72%;
}
.chat .msg .bubble {
  padding: .55rem .85rem;
  border-radius: .9rem;
  font-size: .88rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}
.chat .msg .meta { font-size: .68rem; opacity: .6; margin-top: .2rem; padding: 0 .25rem; }
.chat .from-user {
  align-self: flex-end;
  align-items: flex-end;
}
.chat .from-user .bubble {
  background: var(--bs-primary, #635bff);
  color: #fff;
  border-bottom-right-radius: .2rem;
}
.chat .from-admin {
  align-self: flex-start;
  align-items: flex-start;
}
/* テーマ非依存で常に本文色とコントラストが取れる中間グレーの半透明バブル */
.chat .from-admin .bubble {
  background: rgba(128, 128, 128, .22);
  color: var(--bs-body-color);
  border-bottom-left-radius: .2rem;
}
/* 管理画面: 自分(admin)を右・相手を左（ポータル会員画面とは左右反転） */
.chat.chat-staff .from-admin {
  align-self: flex-end;
  align-items: flex-end;
}
.chat.chat-staff .from-admin .bubble {
  background: var(--bs-primary, #635bff);
  color: #fff;
  border-bottom-right-radius: .2rem;
  border-bottom-left-radius: .9rem;
}
.chat.chat-staff .from-user {
  align-self: flex-start;
  align-items: flex-start;
}
.chat.chat-staff .from-user .bubble {
  background: rgba(128, 128, 128, .22);
  color: var(--bs-body-color);
  border-bottom-left-radius: .2rem;
  border-bottom-right-radius: .9rem;
}
.chat-form { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; }
.chat-form textarea { min-height: 120px; resize: vertical; }
.chat-form .chat-send { align-self: flex-end; }

/* ヘルプのスレッド一覧: 選択中(active)は背景が濃色になるため文字を白で可読に */
.list-group-item.active,
.list-group-item.active .text-secondary,
.list-group-item.active .text-muted,
.list-group-item.active .small,
.list-group-item.active .font-monospace { color: #fff !important; }
.list-group-item.active .badge.text-bg-secondary {
  background-color: rgba(255, 255, 255, .28) !important;
  color: #fff !important;
}
/* メール由来の問い合わせを示すアイコン */
.mail-origin { color: var(--bs-primary, #635bff); font-size: 1.15rem; vertical-align: -2px; }
.list-group-item.active .mail-origin { color: #fff !important; }

/* 認証画面のロゴマーク中央寄せ */
.auth-brand-mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--ds-primary, #00a76f); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.4rem;
}

/* ===== 特権管理者パネル（AdminCore）専用の識別デザイン =====
 * 提供元パネルと取り違えないよう、サイドバーを濃いスレート＋シアンのアクセントにする。
 * Dasher テーマ（html.expanded #miniSidebar …）を確実に上書きするため !important を使用。
 * アクセント: #54a0ff(明) / #2e86de(基) / #0984e3(暗) */
.chrome-admin #miniSidebar,
.chrome-admin #miniSidebar .brand-logo,
.chrome-admin #miniSidebar .navbar-nav {
  background-color: #12161f !important;
  border-right-color: #2a3040 !important;
}
.chrome-admin #miniSidebar .site-logo-text { color: #f8fafc !important; }
.chrome-admin #miniSidebar .site-logo-text small { color: #54a0ff !important; }
.chrome-admin #miniSidebar .nav-link { color: #aeb7c6 !important; }
.chrome-admin #miniSidebar .nav-link:hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, .07) !important;
}
.chrome-admin #miniSidebar .nav-link.active {
  color: #ffffff !important;
  background-color: rgba(84, 160, 255, .18) !important;
  box-shadow: inset 3px 0 0 #54a0ff;
}
.chrome-admin #miniSidebar .nav-link.active .ti { color: #54a0ff !important; }

/* ブランドマーク／アバターをシアンに */
.chrome-admin .brand-mark,
.chrome-admin .avatar-initial {
  background: #2e86de !important;
  color: #ffffff !important;
}

/* トップバー上端にシアンのアクセントストライプ */
.chrome-admin .navbar-glass {
  border-top: 3px solid #2e86de;
}

/* コンテンツ領域にごく薄いシアンのティントを敷いて全体の雰囲気を変える */
.chrome-admin #content {
  background-color: rgba(46, 134, 222, .04);
}

/* モバイル用オフキャンバスのヘッダにもアクセント */
.chrome-admin #mobileNav .offcanvas-header { border-bottom: 3px solid #2e86de; }

/* 特権管理のプライマリ系 UI もシアンに寄せる */
.chrome-admin .btn-primary {
  --bs-btn-bg: #2e86de; --bs-btn-border-color: #2e86de;
  --bs-btn-hover-bg: #1f6fc4; --bs-btn-hover-border-color: #1f6fc4;
  --bs-btn-active-bg: #0984e3; --bs-btn-active-border-color: #0984e3;
  --bs-btn-disabled-bg: #2e86de; --bs-btn-disabled-border-color: #2e86de;
}
.chrome-admin a:not(.btn) { color: #1f6fc4; }
.chrome-admin a:not(.btn):hover { color: #0984e3; }

/* ===== 管理者ログイン（AdminCore）ヒーロー：グラデーション + グラスカード ===== */
body.auth-admin { background: #0b1220; }
.auth-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 600px at 15% 10%, #2e86de 0%, rgba(46,134,222,0) 55%),
              radial-gradient(1000px 700px at 90% 90%, #54a0ff 0%, rgba(84,160,255,0) 50%),
              linear-gradient(135deg, #0b1e3f 0%, #123a72 45%, #0984e3 100%);
}
/* 背景の光彩ブロブ */
.auth-blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: 0;
  pointer-events: none;
}
.auth-blob-1 { width: 420px; height: 420px; top: -120px; left: -100px; background: #54a0ff; }
.auth-blob-2 { width: 460px; height: 460px; bottom: -160px; right: -120px; background: #0984e3; }

.auth-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px;
  padding: 2.25rem 2rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  color: #eaf1ff;
}
.auth-card .auth-brand-mark {
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .25);
}
.auth-card .auth-title { font-size: 1.5rem; font-weight: 800; color: #fff; }
.auth-card .auth-title small { font-weight: 500; color: #bcd6ff; font-size: .95rem; }
.auth-card .auth-sub { color: rgba(234, 241, 255, .72); font-size: .9rem; }
.auth-card .form-label { color: rgba(234, 241, 255, .85); font-size: .82rem; font-weight: 600; }

/* アイコン付き入力欄 */
.auth-input { position: relative; }
.auth-input > .ti:first-child {
  position: absolute; top: 50%; left: .9rem; transform: translateY(-50%);
  color: rgba(234, 241, 255, .6); font-size: 1.05rem; pointer-events: none;
}
.auth-input .form-control {
  height: 48px;
  padding-left: 2.5rem;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  border-radius: .7rem;
}
.auth-input .form-control::placeholder { color: rgba(234, 241, 255, .5); }
.auth-input .form-control:focus {
  background: rgba(255, 255, 255, .16);
  border-color: #54a0ff;
  box-shadow: 0 0 0 .2rem rgba(84, 160, 255, .25);
  color: #fff;
}
.auth-input .auth-input-toggle {
  position: absolute; top: 50%; right: .5rem; transform: translateY(-50%);
  padding: .35rem .5rem; cursor: pointer; color: rgba(234, 241, 255, .6);
}

/* ログインボタン（白ベース + シアン文字） */
.btn-auth {
  background: #fff; color: #0b1e3f; font-weight: 700; border: none;
  border-radius: .7rem; height: 48px;
  transition: transform .05s ease, box-shadow .15s ease, background .15s ease;
}
.btn-auth:hover { background: #eaf1ff; color: #0984e3; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.btn-auth:active { transform: translateY(1px); }

/* bare ページ右上の言語スイッチャーを明色に */
body.auth-admin .btn-ghost { color: rgba(255, 255, 255, .85) !important; }
body.auth-admin .btn-ghost:hover { color: #fff !important; background: rgba(255, 255, 255, .12) !important; }

/* ===== ライトモードのモダン配色調整 =====
 * 既定テーマの info（鮮やかな水色 #cafdf5 / #61f3f3）は彩度が高く目が疲れるため、
 * 落ち着いたスレート系に置き換える。primary(緑)はそのまま活かす。 */
:root:not([data-bs-theme="dark"]) {
  --ds-info-bg-subtle: #eef2f7;      /* slate-100 相当 */
  --ds-info-border-subtle: #dbe3ec;  /* slate-200 相当 */
  --bs-info-bg-subtle: #eef2f7;
  --bs-info-border-subtle: #dbe3ec;
}
/* info アラート（DNS案内ボックス等）を穏やかなスレートに */
:root:not([data-bs-theme="dark"]) .alert-info {
  --bs-alert-color: #334155;
  --bs-alert-bg: #f3f6fa;
  --bs-alert-border-color: #e2e8f0;
  --bs-alert-link-color: #1e293b;
}
:root:not([data-bs-theme="dark"]) .alert-info .text-secondary { color: #64748b !important; }
:root:not([data-bs-theme="dark"]) .alert-info code { color: #0f172a; }

/* info ボックス内の DNS テーブルは背景を白基調にして視認性を上げる */
:root:not([data-bs-theme="dark"]) .alert-info .mail-dns-table {
  --bs-table-bg: transparent;
  --bs-table-color: #334155;
}
:root:not([data-bs-theme="dark"]) .alert-info .mail-dns-table thead th {
  border-bottom-color: #dbe3ec;
  color: #64748b;
}

/* カードやテーブルヘッダのコントラストを少しやわらげてモダンに */
:root:not([data-bs-theme="dark"]) .table-light {
  --bs-table-bg: #f7f9fc;
  --bs-table-color: #334155;
}

/* Abuse 詳細: セクションを枠線で明確化（Bootstrap utility 併用。暗色でもコントラスト確保） */
.abuse-detail-section {
  border-width: 1px !important;
  border-style: solid !important;
  border-color: rgba(128, 128, 128, .45) !important;
  overflow: hidden;
}
.abuse-detail-section-title {
  font-size: .8rem;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
}
.abuse-detail-section-body {
  /* padding は Bootstrap の p-3 に委譲 */
}

/* ========== Abuse 公開フォーム ========== */
body.abuse-public {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(15, 118, 110, .12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(30, 64, 175, .10), transparent 50%),
    linear-gradient(180deg, #f4f6f8 0%, #e8edf2 100%);
  color: #1a2332;
}
.abuse-shell {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem 1rem 3rem;
}
.abuse-card {
  width: 100%;
  max-width: 720px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(26, 35, 50, .08);
  border-radius: 1.25rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
  padding: 2rem 1.75rem 1.5rem;
  backdrop-filter: blur(8px);
}
.abuse-langs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .35rem .75rem;
  margin: 0 0 1.25rem;
  font-size: .82rem;
}
.abuse-langs a {
  color: #64748b;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.abuse-langs a:hover { color: #0f172a; }
.abuse-langs a.is-active {
  color: #0f766e;
  font-weight: 600;
  border-bottom-color: rgba(15, 118, 110, .45);
}
.abuse-head { margin-bottom: 1.5rem; }
.abuse-brand {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .8rem;
  letter-spacing: .04em;
  color: #0f766e;
  margin: 0 0 .35rem;
  font-weight: 600;
}
.abuse-title {
  font-family: "Source Serif 4", "Noto Serif JP", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 650;
  line-height: 1.25;
  margin: 0 0 .5rem;
  color: #0f172a;
}
.abuse-lead {
  margin: 0;
  color: #64748b;
  font-size: .95rem;
  line-height: 1.55;
}
.abuse-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: .75rem;
  padding: .75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: .9rem;
}
.abuse-form fieldset {
  border: 0;
  margin: 0 0 1.5rem;
  padding: 0;
}
.abuse-form legend {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: .85rem;
  padding: 0;
  float: none;
  width: auto;
}
.abuse-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem 1rem;
}
.abuse-field { display: flex; flex-direction: column; gap: .35rem; margin: 0; }
.abuse-field-full { grid-column: 1 / -1; }
.abuse-field > span {
  font-size: .85rem;
  font-weight: 600;
  color: #334155;
}
.abuse-field em { color: #b45309; font-style: normal; }
.abuse-field input,
.abuse-field textarea {
  border: 1px solid #cbd5e1;
  border-radius: .65rem;
  padding: .65rem .8rem;
  font-size: .95rem;
  background: #fff;
  color: #0f172a;
  transition: border-color .15s, box-shadow .15s;
}
.abuse-field input:focus,
.abuse-field textarea:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .15);
}
.abuse-consent-help {
  font-size: .88rem;
  color: #64748b;
  margin: 0 0 .75rem;
}
.abuse-radios { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; }
.abuse-radio {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
}
.abuse-actions { margin-top: .5rem; }
.abuse-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .65rem 1.4rem;
  border: 0;
  border-radius: .7rem;
  background: #0f766e;
  color: #fff !important;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.abuse-submit:hover { background: #0d9488; color: #fff; }
.abuse-submit:active { transform: translateY(1px); }
.abuse-foot {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  font-size: .85rem;
  color: #64748b;
}
.abuse-foot a { color: #0f766e; font-family: "IBM Plex Mono", ui-monospace, monospace; }
.abuse-result { text-align: center; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.abuse-result .abuse-submit { margin-top: 1.25rem; }
@media (max-width: 640px) {
  .abuse-grid { grid-template-columns: 1fr; }
  .abuse-card { padding: 1.5rem 1.15rem; }
}

/* Abuse ドメイン一覧のドメイン名 */
.abuse-domain-name {
  font-family: "Source Serif 4", "Noto Serif JP", Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .01em;
  text-decoration: none;
}
.abuse-domain-name:hover {
  text-decoration: underline;
}

/* Abuse ステータスフィルタ: 色付きボタン上の件数バッジ */
.abuse-status-filters .btn .badge {
  font-weight: 600;
}
