/* ============================================
   사커스타 토스트 알림 + 확인 모달
   v1.0 - 2026-03-18
   ============================================ */

/* 토스트 컨테이너 */
#ss-toast-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

/* 개별 토스트 */
.ss-toast {
    pointer-events: auto;
    margin: 8px 12px 0;
    padding: 12px 40px 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Segoe UI', -apple-system, sans-serif;
    line-height: 1.4;
    color: #fff;
    min-width: 200px;
    max-width: calc(100vw - 32px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
    word-break: keep-all;
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
}

.ss-toast.ss-show {
    transform: translateY(0);
    opacity: 1;
}

.ss-toast.ss-hide {
    transform: translateY(-100%);
    opacity: 0;
}

/* 토스트 유형별 색상 */
.ss-toast.ss-success { background: #0d904f; }
.ss-toast.ss-error   { background: #d93025; }
.ss-toast.ss-warning { background: #e37400; }
.ss-toast.ss-info    { background: #1a73e8; }

/* 토스트 닫기 버튼 */
.ss-toast-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.ss-toast-close:hover { color: #fff; }

/* ============================================
   확인 모달
   ============================================ */
#ss-confirm-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 100000;
    justify-content: center;
    align-items: center;
}
#ss-confirm-overlay.ss-active {
    display: flex;
}

#ss-confirm-box {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 340px;
    max-height: 80vh;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    overflow-y: auto;
    animation: ssModalIn 0.2s ease;
}

@keyframes ssModalIn {
    from { transform: scale(0.9); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.ss-confirm-header {
    padding: 18px 20px 0;
    font-size: 16px;
    font-weight: 700;
    color: #202124;
    font-family: 'Segoe UI', -apple-system, sans-serif;
}

.ss-confirm-body {
    padding: 12px 20px 16px;
    font-size: 14px;
    color: #5f6368;
    line-height: 1.5;
    font-family: 'Segoe UI', -apple-system, sans-serif;
    word-break: keep-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.ss-confirm-meta {
    padding: 0 20px 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ss-confirm-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}
.ss-confirm-tag.ss-cost {
    background: #fce8e6;
    color: #d93025;
}
.ss-confirm-tag.ss-effect {
    background: #e6f4ea;
    color: #0d904f;
}

.ss-confirm-buttons {
    display: flex;
    border-top: 1px solid #e0e0e0;
}

.ss-confirm-buttons button {
    flex: 1;
    padding: 14px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Segoe UI', -apple-system, sans-serif;
    transition: background 0.15s;
}

.ss-confirm-cancel {
    background: #f8f9fa;
    color: #5f6368;
}
.ss-confirm-cancel:hover { background: #e8e8e8; }

.ss-confirm-ok {
    background: #f8f9fa;
    color: #1a73e8;
}
.ss-confirm-ok:hover { background: #e8f0fe; }

.ss-confirm-ok.ss-danger {
    color: #d93025;
}
.ss-confirm-ok.ss-danger:hover { background: #fce8e6; }
