﻿  /* 自定義 checkbox 樣式 */
  /* 隱藏默認的 checkbox 元素 */
  input[type="checkbox"] {
    display: none;
  }

  .custom-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-right: 10px;
    position: relative;
    padding-left: 30px;
  }
  
  .checkbox-mark {
    position: relative;
    display: inline-block;
    height: 18px;
    width: 18px;
    border: 1px solid #DBDADE;
    border-radius: 4px;
    margin-right: 10px;
    top: 0;
    left: 0;
    transition: background-color 0.2s, border-color 0.2s;
  }
  
  /* 當 checkbox 被選中時的樣式 */
  input[type="checkbox"]:checked + .checkbox-mark {
    background-color: orange;
    border: 0px;
  }
  
  /* 當 checkbox 被選中時，顯示勾勾 */
  .checkbox-mark::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 3px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s;
  }
  
  /* 當 checkbox 被選中時顯示勾勾 */
  input[type="checkbox"]:checked + .checkbox-mark::after {
    opacity: 1;
  }