/*
 * 管理画面モダンデザイン共通スタイル
 *
 * /admin/supports/cron で確立した青ヘッダー + カード型レイアウトを
 * admin 配下の他ページにも適用するための共通 CSS。
 *
 * adminstyle.css の global h3 / h5 ルールに干渉されないよう
 * 各セレクタで !important を使い background / border-left / border-bottom
 * を明示リセットしている。
 *
 * 対応 Blade コンポーネント:
 *   - <x-admin.page>      最上位ラッパー (admin-page クラス)
 *   - <x-admin.hero>      ページヘッダー (青グラデーション)
 *   - <x-admin.card>      白背景セクションコンテナ
 *   - <x-admin.section>   左ボーダー強調セクションタイトル
 *   - <x-admin.alert>     インフォ / エラーアラート
 *
 * refs #1607 / #1970
 */

/* ===== ページラッパー ===== */
.admin-page {
    padding: 24px 0 40px;
    font-size: 16px;
}
.admin-page * {
    box-sizing: border-box;
}

/* ===== Hero ヘッダー ===== */
.admin-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    background: linear-gradient(135deg, #2c7be5 0%, #1f5fbf 100%) !important;
    color: #fff !important;
    padding: 26px 32px;
    border-radius: 12px;
    margin-bottom: 28px;
    box-shadow: 0 6px 18px rgba(31, 95, 191, 0.22);
    border: none !important;
}
.admin-hero__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
}
.admin-hero__title {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.02em;
}
.admin-hero__sub {
    margin: 6px 0 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.5;
}
.admin-hero__sub code {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.95rem;
}

/* ===== カード ===== */
.admin-card {
    background: #fff;
    border: 1px solid #dfe6ee;
    border-radius: 6px;
    padding: 18px 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    font-size: 16px;
}
.admin-card h5,
.admin-card .admin-card__title {
    margin: 0 0 20px !important;
    padding: 0 0 12px !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    color: #2962a6 !important;
    letter-spacing: 0.04em;
    background: transparent !important;
    border-left: none !important;
    border-bottom: 1px solid #e3eaf2 !important;
    line-height: 1.4 !important;
}

/* ===== フォーム行 ===== */
.admin-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: flex-end;
}
.admin-form-row .form-group {
    margin-bottom: 0;
    min-width: 200px;
}
.admin-form-row label {
    display: block;
    font-size: 15px !important;
    font-weight: 600;
    color: #5b6b7a;
    margin-bottom: 8px;
}
.admin-form-row input,
.admin-form-row select,
.admin-form-row textarea {
    width: 100%;
    padding: 12px 16px !important;
    font-size: 17px !important;
    border: 1px solid #cfd8e3;
    border-radius: 5px;
    background: #fafcff;
    color: #1d3557;
    font-family: inherit;
}
.admin-form-row input:focus,
.admin-form-row select:focus,
.admin-form-row textarea:focus {
    outline: none;
    border-color: #2c7be5;
    box-shadow: 0 0 0 2px rgba(44, 123, 229, 0.15);
}
.admin-form-row .btn-default,
.admin-form-row .admin-btn-secondary {
    font-size: 15px !important;
    padding: 11px 20px !important;
    background: #fff;
    border: 1px solid #cfd8e3;
    border-radius: 5px;
    color: #2962a6;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.12s ease, border-color 0.12s ease;
    cursor: pointer;
}
.admin-form-row .btn-default:hover,
.admin-form-row .admin-btn-secondary:hover {
    background: #eaf3ff;
    border-color: #2c7be5;
    text-decoration: none;
    color: #1f5fbf;
}

/* ===== セクションタイトル ===== */
.admin-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #2962a6;
    margin: 28px 0 12px;
    padding-left: 12px;
    border-left: 4px solid #2c7be5;
    line-height: 1.4;
}

/* ===== テーブル ===== */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border: 1px solid #dfe6ee;
    border-radius: 6px;
    overflow: hidden;
}
.admin-table th,
.admin-table td {
    padding: 16px 20px !important;
    border-top: 1px solid #eef2f6;
    font-size: 17px !important;
    vertical-align: middle;
    line-height: 1.5;
}
.admin-table thead th {
    background: #f4f8fc;
    color: #2962a6;
    font-weight: 700;
    border-top: none;
    font-size: 16px !important;
    text-transform: none;
    letter-spacing: 0.02em;
}
.admin-table tbody tr:hover {
    background: #f9fbfe;
}

/* ===== バッジ ===== */
.admin-badge {
    display: inline-block;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 14px;
    margin-left: 10px;
    color: #fff;
    background: #6c7a89;
    font-weight: 500;
}
.admin-badge.is-primary {
    background: #2c7be5;
}
.admin-badge.is-success {
    background: #198754;
}
.admin-badge.is-warning {
    background: #ffc107;
    color: #1d3557;
}

/* ===== 主要ボタン (青グラデ) ===== */
.admin-btn-primary {
    background: linear-gradient(135deg, #2c7be5, #1f5fbf);
    color: #fff;
    border: none;
    padding: 10px 26px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: transform 0.05s ease, opacity 0.12s ease;
    text-decoration: none;
    display: inline-block;
}
.admin-btn-primary:hover {
    color: #fff;
    opacity: 0.92;
    transform: translateY(-1px);
    text-decoration: none;
}
.admin-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 小型 (テーブル内アクション用) */
.admin-btn-primary.is-sm {
    padding: 7px 18px;
    font-size: 14px;
}

/* ===== アラート ===== */
.admin-alert-info {
    background: #eaf3ff;
    border-left: 4px solid #2c7be5;
    padding: 14px 18px;
    border-radius: 4px;
    color: #1d3557;
    margin-bottom: 18px;
    font-size: 1.05rem;
}
.admin-alert-error {
    background: #fdecea;
    border-left: 4px solid #dc3545;
    padding: 14px 18px;
    border-radius: 4px;
    color: #842029;
    margin-bottom: 18px;
    font-size: 1.05rem;
}
.admin-alert-success {
    background: #e8f5ec;
    border-left: 4px solid #198754;
    padding: 14px 18px;
    border-radius: 4px;
    color: #0f5132;
    margin-bottom: 18px;
    font-size: 1.05rem;
}

/* ===== ヒント (灰色補足テキスト) ===== */
.admin-hint {
    margin-top: 14px;
    font-size: 15px !important;
    line-height: 1.7;
    color: #5b6b7a;
}
.admin-hint strong {
    color: #2962a6;
}
.admin-hint span.chip {
    display: inline-block;
    padding: 3px 10px;
    margin: 0 6px 6px 0;
    background: #eaf3ff;
    border-radius: 12px;
    font-size: 14px;
}
