﻿/* 背景遮罩 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

/* Alert 主要框架，新增陰影效果 */
.alert-box {
    background: white;
    width: 400px;
    max-width: 80%; /* 確保 RWD，預設左右保留 10% 空間 */
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* 陰影增加浮動感 */
    transform: scale(1.5); /* 1.0 為原始比例，1.2 表示放大 120% */
    transform-origin: center center; /* 確保從中心放大 */
}

/* 訊息區塊 */
.alert-message {
    font-size: 18px;
    margin-bottom: 28px; /* 增加與按鈕的距離 */
    color: #333;
    text-align: left;
}

/* 按鈕區塊，讓按鈕靠右 */
.button-container {
    display: flex;
    justify-content: flex-end; /* 確保按鈕靠右 */
    gap: 10px; /* 按鈕間距 */
}

/* 按鈕基本樣式 */
.alert-btn {
    padding: 8px 14px; /* 上下縮小，左右稍微變窄 */
    border-radius: 12px; /* 維持圓角 */
    cursor: pointer;
    font-size: 15px; /* 字體微調 */
    transition: 0.3s;
    min-width: 90px; /* 讓按鈕變窄 */
    text-align: center;
}

/* 取消按鈕：透明底 + 細灰框 + 橘字 */
.cancel-btn {
    background-color: transparent;
    color: #FF6600;
    border: 1.5px solid #999;
}

/* 確定按鈕：上至下漸層綠底 + 白字 */
.confirm-btn {
    background: linear-gradient(to bottom, #4CAF50, #2E8B57);
    color: white;
    border: none;
}

/* 按鈕 Hover 效果 */
.alert-btn:hover {
    opacity: 0.85;
}

/* RWD 設定：確保手機版型右邊邊界不貼邊 */
@media (max-width: 480px) {
    .alert-box {
        max-width: 75%; /* 降低寬度，左右邊界更寬 */
        margin: 0 auto; /* 讓框保持置中 */
    }

    .button-container {
        justify-content: flex-end; /* 依然維持靠右 */
    }
}
