/* Modal 樣式 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.modal-content {
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    margin: 0 15px;
    border:unset;
}

.modal-header {
    background: linear-gradient(to right, #4a90e2, #5a9ee2);
    color: white;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.modal-close {
    color: rgba(255, 255, 255, 0.8);
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0 8px;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: white;
}

.modal-body {
    padding: 24px 20px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #edf2f7;
    padding: 12px 20px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    display: flex;
    justify-content: flex-end;
}

/* 按鈕樣式 */
.modal-open-btn,
.modal-dialog .btn-primarycustom {
    background-color: #4a90e2;
    border: 1px solid #4a90e2;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(74, 144, 226, 0.1);
}

.modal-open-btn:hover,
.modal-dialog .btn-primarycustom:hover {
    background-color: #357abd;
    box-shadow: 0 2px 6px rgba(74, 144, 226, 0.2);
}

.modal-dialog .btn-secondarycustom {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 8px 16px;
    border-radius: 6px;
    margin-right: 10px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.modal-dialog .btn-secondarycustom:hover {
    background-color: #f8f9fa;
    border-color: #cbd5e1;
}

/* 警告類型 Modal 樣式 */
.modal-header.warning {
    background: linear-gradient(to right, #dc7676, #e48686);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 警告類型按鈕樣式 */
.btn-warning {
    background-color: #dc7676;
    border: 1px solid #dc7676;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(220, 118, 118, 0.1);
}

.btn-warning:hover {
    background-color: #c56666;
    box-shadow: 0 2px 6px rgba(220, 118, 118, 0.2);
}

/* 取消按鈕保持灰色但調整樣式 */
.btn-secondary.warning {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    color: #666;
}

.btn-secondary.warning .close {
    color:white;
}

.btn-secondary.warning:hover {
    background-color: #f8f9fa;
    border-color: #ddd;
}
#alert_Modal .modal-body ul li {
    margin: 8px 0px 8px 0.8rem;
}
#alert_Modal .modal-body ul li::before {
    content: "•";  /* 使用圓點符號 */
    color: #dc7676;  /* 設定紅色 */
    font-weight: bold;
    display: inline-block;
    width: 1em;
}

#submit_Modal .modal-body ul li {
    margin: 8px 0px 8px 0.8rem;
}
#submit_Modal .modal-body ul li::before {
    content: "•";  /* 使用圓點符號 */
    color: #4a90e2;  /* 設定藍色 */
    font-weight: bold;
    display: inline-block;
    width: 1em;
}