/* 自定義彈窗容器 - 全螢幕背景遮罩 */
.spath-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* 彈窗本體 */
.spath-alert-box {
    background: #111;
    border: 2px solid #ff4500;
    border-radius: 15px;
    padding: 30px;
    max-width: 400px;
    width: 85%;
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.4);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 顯示時的狀態 */
.spath-alert-overlay.active {
    opacity: 1;
}
.spath-alert-overlay.active .spath-alert-box {
    transform: scale(1);
}

/* 標題與內文 */
.spath-alert-title {
    color: #ff4500;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.spath-alert-message {
    color: #eee;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* 關閉按鈕 */
.spath-alert-btn {
    background: linear-gradient(135deg, #ff4500, #ff8c00);
    color: white;
    border: none;
    padding: 10px 35px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(255, 69, 0, 0.3);
}

.spath-alert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 69, 0, 0.5);
    filter: brightness(1.1);
}

.spath-alert-btn:active {
    transform: translateY(0);
}

/* 基礎遮罩樣式 (共用) */
.spath-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: all;
    background: rgba(0, 0, 0, 0.8);
}

.spath-overlay.active {
    opacity: 1;
}

/* 彈窗本體 (Alert 使用) */
.spath-alert-box {
    background: #111;
    border: 2px solid #ff4500;
    border-radius: 20px;
    padding: 35px;
    max-width: 400px;
    width: 85%;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 69, 0, 0.4);
    transform: scale(0.7);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.spath-overlay.active .spath-alert-box {
    transform: scale(1);
}

/* 載入中本體 (Loading 專用 - 無邊框，較簡潔) */
.spath-loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.spath-loading-icon {
    width: 90px;
    height: 90px;
    margin-bottom: 25px;
    object-fit: contain;
    transition: opacity 0.4s ease;
    filter: drop-shadow(0 0 10px rgba(255, 69, 0, 0.5));
}

.spath-loading-text {
    color: #ff4500;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.6;
    letter-spacing: 2px;
}