/* ============================================================
   Notify — 공통 알림/모달/토스트 스타일 (notipay)
   사용: window.Notify.alert / .confirm / .toast / .success / .error
   ============================================================ */

/* ---- 백드롭 ---- */
.notify-backdrop {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 9000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: notify-fade .18s ease-out;
}
@keyframes notify-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---- 모달 카드 ---- */
.notify-modal {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
    width: 100%;
    max-width: 380px;
    overflow: hidden;
    animation: notify-pop .22s cubic-bezier(.2,.9,.3,1.2);
    box-sizing: border-box;
}
@keyframes notify-pop {
    from { transform: scale(.85) translateY(10px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}

.notify-icon {
    width: 64px; height: 64px;
    margin: 26px auto 14px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #fff;
}
.notify-icon.success { background: linear-gradient(135deg, #28a745, #4cc26b); box-shadow: 0 6px 18px rgba(40,167,69,0.35); }
.notify-icon.error   { background: linear-gradient(135deg, #d33, #f06b6b);     box-shadow: 0 6px 18px rgba(221,51,51,0.35); }
.notify-icon.info    { background: linear-gradient(135deg, #1f6feb, #4a90e2);  box-shadow: 0 6px 18px rgba(31,111,235,0.35); }
.notify-icon.warn    { background: linear-gradient(135deg, #f0ad4e, #ffc107);  box-shadow: 0 6px 18px rgba(240,173,78,0.4); }

.notify-title {
    text-align: center;
    color: #1f2a44;
    font-size: 18px;
    font-weight: 700;
    margin: 0 22px 6px;
    line-height: 1.4;
    word-break: keep-all;
}
.notify-message {
    text-align: center;
    color: #555;
    font-size: 14px;
    line-height: 1.65;
    padding: 0 24px 22px;
    word-break: keep-all;
    overflow-wrap: anywhere;
}
.notify-message strong { color: #1f2a44; }

.notify-actions {
    display: flex;
    border-top: 1px solid #ecf0f5;
}
.notify-btn {
    flex: 1;
    padding: 14px 16px;
    border: none;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #1f2a44;
    transition: background .15s;
    text-align: center;
}
.notify-btn:hover { background: #f4f6f8; }
.notify-btn + .notify-btn { border-left: 1px solid #ecf0f5; }
.notify-btn.primary  { color: #1f6feb; }
.notify-btn.danger   { color: #d33; }
.notify-btn.success  { color: #28a745; }
.notify-btn[disabled]{ opacity: .5; cursor: not-allowed; }

/* ---- 토스트 (하단 floating) ---- */
.notify-toast-wrap {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 9100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    width: max-content;
    max-width: calc(100% - 32px);
}
.notify-toast {
    background: rgba(15, 23, 42, 0.94);
    color: #fff;
    border-radius: 50px;
    padding: 12px 22px;
    font-size: 13.5px;
    font-weight: 500;
    box-shadow: 0 10px 28px rgba(15,23,42,0.35);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    word-break: keep-all;
    animation: notify-toast-in .22s ease-out;
    line-height: 1.4;
}
.notify-toast.fade-out { animation: notify-toast-out .25s ease-in forwards; }
.notify-toast i { font-size: 16px; }
.notify-toast.success { background: linear-gradient(135deg, #28a745, #4cc26b); }
.notify-toast.error   { background: linear-gradient(135deg, #d33, #f06b6b); }
.notify-toast.warn    { background: linear-gradient(135deg, #f0ad4e, #ffc107); color:#5b3a00; }
@keyframes notify-toast-in {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
@keyframes notify-toast-out {
    from { transform: translateY(0); opacity: 1; }
    to   { transform: translateY(20px); opacity: 0; }
}

@media (max-width: 480px) {
    .notify-modal { max-width: 100%; border-radius: 14px; }
    .notify-icon { width: 56px; height: 56px; font-size: 24px; }
    .notify-title { font-size: 16px; }
    .notify-message { font-size: 13px; }
    .notify-btn { font-size: 13.5px; padding: 13px 12px; }
    .notify-toast { font-size: 12.5px; padding: 10px 18px; }
}
