﻿/* --- 健保卡讀取模態框美化 --- */

/* 模態框本體：圓角與陰影 */
#ErrorMessageModal .modal-content {
    border: none;
    border-radius: 20px; /* 圓潤導角 */
    box-shadow: 0 15px 35px rgba(0, 70, 140, 0.15); /* 藍色系科技感陰影 */
    overflow: hidden;
}

/* 標題列：科技藍漸層 */
#ErrorMessageModal .modal-header {
    background: linear-gradient(135deg, #2b5876 0%, #4e4376 100%); /* 深藍漸層，更有專業感 */
    /* 或者維持亮藍色： background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); */
    border-bottom: none;
    padding: 1.5rem;
}

/* 標題文字 */
#ErrorMessageModal .modal-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

/* 內容區塊 */
#ErrorMessageModal .modal-body {
    padding: 3rem 1.5rem;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px; /* 圖示與文字的間距 */
}

/* 讀取中的旋轉圈圈 (純 CSS) */
.ic-loading-spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #4e4376; /* 跟標題色系呼應 */
    border-radius: 50%;
    animation: ic-spin 1s linear infinite;
}

/* 文字樣式 */
.ic-loading-text {
    font-size: 1.15rem; /* 字體稍微加大 */
    font-weight: 700; /* 加粗，看起來更有質感 */
    color: #333; /* 改深灰色，對比度更好 */
    letter-spacing: 0.5px; /* 微幅增加字距 */
    animation: ic-pulse 2s infinite;
}

/* 動畫關鍵影格 */
@keyframes ic-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes ic-pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}
/* --- 緊急關閉按鈕樣式 --- */
.btn-emergency-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    /* 玻璃質感設計 */
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%; /* 圓形 */

    color: #fff;
    font-size: 24px;
    line-height: 28px; /* 垂直置中微調 */
    text-align: center;
    padding: 0;
    cursor: pointer;
    z-index: 1060; /* 確保在最上層 */
    transition: all 0.3s ease;
    /* 移除預設按鈕樣式 */
    outline: none;
    box-shadow: none;
}

    .btn-emergency-close:hover {
        background: rgba(255, 255, 255, 0.5); /* 滑鼠滑過變亮 */
        transform: rotate(90deg); /* 趣味的小旋轉效果 */
    }