/**
 * 確認の枠（CH-145 の第 2 段・webroot/js/app-confirm.js）
 *
 * 見た目は保存のあとのメッセージ（flash-message.css）とそろえる：暗い地・細い線・ネオンブルーの差し色。
 * 取り消せない操作（.is-danger）は、OK のボタンをサーバーの状態の「危険」の赤にする。
 */
.app-confirm {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(2, 6, 12, .6);
}

html.app-confirm-open {
    overflow: hidden;
}

.app-confirm-box {
    width: 100%;
    max-width: 420px;
    padding: 18px 20px 16px;
    border: 1px solid rgba(0, 242, 254, .35);
    border-top: 3px solid #00f2fe;
    border-radius: 6px;
    background: #0b1220;
    color: #e2e8f0;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .5);
}

.app-confirm-box.is-danger {
    border-color: rgba(220, 38, 38, .45);
    border-top-color: #dc2626;
}

.app-confirm-title {
    margin-bottom: 8px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    color: #00f2fe;
}

.app-confirm-box.is-danger .app-confirm-title {
    color: #f87171;
}

.app-confirm-message {
    margin-bottom: 18px;
    font-size: .95rem;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* 入力欄（任意・CH-529・AppConfirm.ask の input） */
.app-confirm-input {
    display: block;
    width: 100%;
    margin: -6px 0 16px;
    padding: 7px 10px;
    border: 1px solid rgba(148, 163, 184, .5);
    border-radius: 4px;
    background: #020617;
    color: #e2e8f0;
    font-size: .88rem;
}

.app-confirm-input:focus {
    outline: 2px solid #00f2fe;
    outline-offset: 1px;
}

.app-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.app-confirm-btn {
    min-width: 96px;
    padding: 8px 16px;
    border: 1px solid;
    border-radius: 4px;
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.app-confirm-btn-cancel {
    border-color: rgba(148, 163, 184, .5);
    background: transparent;
    color: #cbd5e1;
}

.app-confirm-btn-ok {
    border-color: #00f2fe;
    background: rgba(0, 242, 254, .15);
    color: #e6fdff;
}

.app-confirm-box.is-danger .app-confirm-btn-ok {
    border-color: #dc2626;
    background: #dc2626;
    color: #fff;
}

.app-confirm-btn:hover,
.app-confirm-btn:focus-visible {
    outline: 2px solid #00f2fe;
    outline-offset: 2px;
}

.app-confirm-box.is-danger .app-confirm-btn-ok:hover,
.app-confirm-box.is-danger .app-confirm-btn-ok:focus-visible {
    outline-color: #f87171;
}

/* スマホ：ボタンを横いっぱいに並べる */
@media (max-width: 480px) {
    .app-confirm-actions .app-confirm-btn {
        flex: 1;
    }
}
