.antispoofing_btn {
    background-color: rgb(250,250,250);
    cursor: pointer;
}
.antispoofing_btn:hover{
    background-color: #F0F8FF;
    color: rgb(0,163,230);
}

.antispoofing_menubtn {
    background-color: rgb(250,250,250);
}

.splitter{
    width:100%;
    height: 1px;
    background-color: gray;
}

.option_container{
    width:100%;
    height: 40px; 
    display: flex; 
    align-items: center; 
    padding: 0 0 0 18px;
}

.option_btn{
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
    position: relative;
    height:40px;
    top: 0;
}

.option_text{
    line-height: 18px;
    padding: 0 0 10px 0;
}

.item_container{
    width:100%;
    height: 40px; 
    align-items: center; 
    display: flex; 
    padding: 0 14px 0 14px;
}

.check_img{
    cursor: pointer; 
    width: 20px; 
    height: 20px;
}

.item_text{
    display: grid;
    min-width: 200px;
    padding: 0 14px 0 14px;
}

.root-footer {
    width: 100%;
    z-index: 9;
    bottom: 0;
    position: fixed;
    padding: 0.1rem 1rem 0.2rem;
}

.intro-page {
    width: calc(100vw);
    font-size: 20px;
    overflow: auto;
    overflow-x: hidden;
    height: calc(62vh);
    padding: 0 1rem 1rem;
    align-items: center;
    margin-top: -20px;
    display: none;
}
/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
    display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.intro-page,
.intro-page-general,
.hide-scroll-bar::-webkit-scrollbar,
#idas_ocr_info_region {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}
@media only screen and (min-height: 601px) {
    .intro-page {
        height: 480px;
    }
}
@media only screen and (min-height: 667px) {
    .intro-page {
        height: calc(100vh - 200px);
    }
}
.intro-desc {
    font-weight: 400;
    min-height:32px;
    align-items: center;
    line-height: 28px;
    width: 100%;
    padding-left: 0.1rem;
    text-shadow: 1px 0px 1px #EEE;
    display: inline-table;
}
.intro-idcard {
    flex-shrink: 0;
    padding: 0.5em;
    font-weight: bold;
    max-width: 50%;
    text-align: center;
    line-height: 1em;
}
div.intro-idcard-img {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    border-right: 1px solid white;
    border-top: 1px solid white;
    border-bottom: 1px solid white;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 10px;
}
.intro-idcard-img {
    flex-shrink: 0;
    min-width: calc(30vw);
    max-width: calc(35vw);
    border-radius: 8px 8px 8px 8px;
    object-fit: cover;
}
.intro-idcard-box {
    width: calc(100vw);
    margin: 30px 0 0;
    padding: 10px;
    border-radius: 8px 8px 8px 8px;
    border: 2px solid #19ae8a;
    object-fit: cover;
}
.intro-idcard-box-fail {
    border: 2px solid #ae2020;
}
.intro-idcard-icon {
    height: 30px;
    margin-left: calc(4vw);
    object-fit: contain;
    transform: translate(0, -15px);
    margin-top: 30px;
    position: absolute;
}
.intro-root-footer {
    height: 80px;
    box-shadow: white 0 -30px 25px;
}

.colon {
    margin-left: 0.3em;
    margin-right: 0.3em;
}

.result-title {
    font-size: 20px;
    font-weight: 700;
}
.result-content {
    font-size: 18px;
    font-weight: 600;
    padding: 0 0.3em;
    align-items: center;
}
.result-content-gray {
    background: #e9e9e9;
}
.result-content-light {
    font-weight: normal;
}
.result-multi-content {
    padding-left: 0.5em;
}

.important-text {
    color: #D7000F;
    font-size: 16pt;
    font-weight: bold;
}
.label-text {
    font-weight: bold;
    font-size: 12pt;
}
.form-control {
    width: 100%;                  /* 🔹 關鍵：讓 input 撐滿容器 */
    height: 36px;                 /* 稍微加高一點會更舒適（32px 太擠） */
    font-size: 14px;
    padding: var(--form-padding, 4px 8px);  /* 使用 CSS 變數，有預設值 有內距才能讓文字不貼邊 */
    line-height: 1.5;
    box-sizing: border-box;       /* 內距不影響總寬度 */
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;       /* 確保不是透明或異色背景 */
    transition: border-color 0.2s;  /* 若要有動畫效果 */
}
.form-control[readonly] {
    border: none;  /* 無邊框 */
    background-color: transparent;  /* 背景透明 */
    pointer-events: none;  /* 禁止點擊 */
}
.form-control:focus {
    outline: none;
    border-color: #007bff; /* 改變顏色但不改邊框粗細 */
    height: 36px;
}
.form-control[disabled] {
    border: none !important;
    background-color: transparent !important;
    color: #000 !important;
    appearance: none;
    pointer-events: none;
}
.flex-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    justify-content: space-between; /* 或其他方式來調整間距 */
}
.flex-row .box:nth-child(odd) {
    flex: 2.6;
}
.flex-row .box:nth-child(even) {
    flex: 7.6;
}
.box {
    padding: 8px;
    min-width: 0; /* 允許縮放 */
}
main {
    padding-bottom: 100px; /* 或依據 footer 高度微調 (修正 main 被 footer 遮住的問題) */
}
/* Loading Spinner 樣式 */
#global-loading-spinner {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 9999;
  }
  
  .spinner-backdrop {
    background: rgba(0, 0, 0, 0.4);
    width: 100%; height: 100%;
    position: absolute;
  }
  
  .spinner-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;  /* 垂直排列 */
    align-items: center;
    justify-content: center;
    gap: 10px; /* 圈圈跟文字的間距 */
  }
  
  .loading-text {
    color: white;
    font-size: 16px;
    font-weight: 500;
    user-select: none;
  }  
  
  .spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px; height: 60px;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  
  
  