/* 사이트 공통 알림 모달 (jwAlert) */
.jw-alert-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: jw-alert-fade-in 0.22s ease;
}

.jw-alert-backdrop.is-closing {
    animation: jw-alert-fade-out 0.18s ease forwards;
}

.jw-alert-dialog {
    width: min(380px, 100%);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(0, 128, 200, 0.08);
    overflow: hidden;
    text-align: center;
    animation: jw-alert-pop-in 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.jw-alert-backdrop.is-closing .jw-alert-dialog {
    animation: jw-alert-pop-out 0.18s ease forwards;
}

.jw-alert-icon-wrap {
    margin: 28px auto 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

.jw-alert--success .jw-alert-icon-wrap {
    background: #e8f7ef;
    color: #16a34a;
}

.jw-alert--error .jw-alert-icon-wrap {
    background: #fef2f2;
    color: #dc2626;
}

.jw-alert--warning .jw-alert-icon-wrap {
    background: #fffbeb;
    color: #d97706;
}

.jw-alert--info .jw-alert-icon-wrap {
    background: #e8f4fc;
    color: #0080c8;
}

.jw-alert-title {
    margin: 16px 24px 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.jw-alert-message {
    margin: 10px 24px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    word-break: keep-all;
    overflow-wrap: break-word;
    white-space: pre-line;
}

.jw-alert-actions {
    margin: 24px 20px 20px;
}

.jw-alert-btn {
    display: block;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, #0096e0 0%, #0080c8 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 128, 200, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.jw-alert-btn:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 18px rgba(0, 128, 200, 0.4);
}

.jw-alert-btn:active {
    transform: scale(0.98);
}

.jw-alert-btn:focus-visible {
    outline: 2px solid #0080c8;
    outline-offset: 2px;
}

/* 확인(취소/확인) */
.jw-alert-actions--confirm {
    display: flex;
    gap: 10px;
}

.jw-alert-actions--confirm .jw-alert-btn {
    flex: 1 1 0;
    min-width: 0;
}

.jw-alert-btn--ghost {
    background: #f1f5f9;
    color: #475569;
    box-shadow: none;
    border: 1px solid #e2e8f0;
}

.jw-alert-btn--ghost:hover {
    background: #e2e8f0;
    filter: none;
    box-shadow: none;
}

.jw-alert-btn--danger {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}

.jw-alert-btn--danger:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.4);
}

/* 관리자 화면 — 브랜드 톤 */
.admin-app .jw-alert-btn:not(.jw-alert-btn--ghost):not(.jw-alert-btn--danger) {
    background: linear-gradient(180deg, #14b8a6 0%, #0f766e 100%);
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.35);
}

.admin-app .jw-alert-btn:not(.jw-alert-btn--ghost):not(.jw-alert-btn--danger):hover {
    box-shadow: 0 6px 18px rgba(15, 118, 110, 0.4);
}

.admin-app .jw-alert--info .jw-alert-icon-wrap {
    background: #ccfbf1;
    color: #0f766e;
}

@keyframes jw-alert-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes jw-alert-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes jw-alert-pop-in {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes jw-alert-pop-out {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.96);
    }
}
