/* 刪除確認模態框樣式 */
.delete-confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 32px;
    opacity: 1;
    visibility: visible;
    transition: all 0.2s ease;
}

.delete-confirmation-modal.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* 背景遮罩 */
.delete-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(65, 70, 81, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* 模態框內容 */
.delete-modal-content {
    position: relative;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0px 3px 3px -1.5px rgba(10, 13, 18, 0.04), 
                0px 8px 8px -4px rgba(10, 13, 18, 0.03), 
                0px 20px 24px -4px rgba(10, 13, 18, 0.08);
    max-width: 544px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 模態框頭部 */
.delete-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 24px 0px;
    width: 100%;
    position: relative;
}

.delete-modal-header-content {
    display: flex;
    gap: 16px;
    flex: 1;
}

/* 特色圖標 */
.delete-featured-icon {
    width: 48px;
    height: 48px;
    background: #FEE4E2;
    border: 8px solid #FEF3F2;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.delete-featured-icon i {
    font-size: 24px;
    color: #D92D20;
}

/* 標題和描述 */
.delete-modal-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.delete-modal-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5em;
    color: #181D27;
    margin: 0;
}

.delete-modal-description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4285714285714286em;
    color: #535862;
    margin: 0;
}

/* 關閉按鈕 */
.delete-modal-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: #A4A7AE;
}

.delete-modal-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.delete-modal-close-btn i {
    font-size: 16px;
}

/* 模態框操作按鈕 */
.delete-modal-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 24px;
    width: 100%;
    box-sizing: border-box;
}

/* 按鈕樣式 */
.delete-btn-secondary,
.delete-btn-destructive {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5em;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    /* box-shadow: 0px 1px 2px 0px rgba(10, 13, 18, 0.05), 
                inset 0px -2px 0px 0px rgba(10, 13, 18, 0.05), 
                inset 0px 0px 0px 1px rgba(10, 13, 18, 0.18); */
}

.delete-btn-secondary {
    background: #FFFFFF;
    color: #414651;
    border-color: #D5D7DA;
}

.delete-btn-secondary:hover {
    background: #F9FAFB;
    border-color: #C5C7CA;
}

.delete-btn-destructive {
    background: #D92D20;
    color: #FFFFFF;
    border-color: transparent;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 100%);
}

.delete-btn-destructive:hover {
    background: #B91C1C;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 100%);
}

.delete-btn-destructive:active {
    background: #991B1B;
}

/* 響應式設計 */
@media (max-width: 576px ) {
    .delete-confirmation-modal {
        padding: 16px;
    }
    
    .delete-modal-header {
        padding: 20px 20px 0px;
    }
    
    .delete-modal-actions {
        flex-direction: column-reverse;
        gap: 8px;
    }
    
    .delete-btn-secondary,
    .delete-btn-destructive {
        width: 100%;
        justify-content: center;
    }
    
    .delete-modal-close-btn {
        top: 8px;
        right: 8px;
        width: 40px;
        height: 40px;
    }
    
    .delete-featured-icon {
        width: 44px;
        height: 44px;
        border-width: 6px;
    }
    
    .delete-featured-icon i {
        font-size: 20px;
    }
}

/* 加載動畫 */
.delete-btn-secondary.loading,
.delete-btn-destructive.loading {
    position: relative;
    color: transparent;
}

.delete-btn-secondary.loading::after,
.delete-btn-destructive.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.delete-btn-secondary.loading::after {
    border-color: #535862;
    border-top-color: transparent;
}

.delete-btn-destructive.loading::after {
    border-color: #FFFFFF;
    border-top-color: transparent;
}