
/* 當主題為日間模式時 */
[data-bs-theme="light"] {
  --bs-body-bg: #efefef;
  --bs-body-color: #212529;
  --bs-secondary-bg-rgb: 230, 230, 230;
}

[data-bs-theme="light"] .card {
  --bs-card-bg: #eee;
  --bs-card-border-color: #333;
  --bs-card-color: #000;
  --bs-card-cap-bg: #eee;
  --bs-box-shadow-sm: 0 .125rem .25rem rgba(0, 0, 0, 0.5);
}

[data-bs-theme="light"] .modal-footer{
    --bs-secondary-bg-rgb: 222, 222, 222;
    --bs-modal-footer-bg: #dedede;
}
[data-bs-theme="light"] .modal-footer .btn-outline-secondary{
    background-color: #fff;
    color: #000;
    border-color: #000;
}

[data-bs-theme="light"] .input-group{
    border: 1px solid #36393b;
    border-radius: 0.2rem;
}
[data-bs-theme="light"] .form-select{
    border-color: #36393b;
}




/* 當主題為夜間模式時 */
[data-bs-theme="dark"] {
  --bs-body-bg: #222;
  --bs-body-color: #ffffff;
}

[data-bs-theme="dark"] .btn-outline-secondary {
  --bs-btn-color: #dee2e6;
  --bs-btn-border-color: #dee2e6;
  
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #6c757d;
  --bs-btn-hover-border-color: #6c757d;
  
  /* 按鈕被按下 (Active) 的樣式 */
  --bs-btn-active-bg: #adb5bd;
  --bs-btn-active-border-color: #adb5bd;
}

[data-bs-theme="dark"] .card {
  --bs-card-bg: #333;
  --bs-card-border-color: #fff;
  --bs-card-color: #fff;
  --bs-card-cap-bg: #252525;
}

[data-bs-theme="dark"] .modal-footer{
    --bs-secondary-bg-rgb: 50, 50, 50;
    --bs-modal-footer-bg: #333;
}

[data-bs-theme="dark"] .text-bg-success,
[data-bs-theme="dark"] .text-bg-danger,
[data-bs-theme="dark"] .text-bg-warning,
[data-bs-theme="dark"] .text-bg-secondary{
    background-color: #aaaaaaee !important;
    filter: brightness(120%);
}


/*----------- 商戶.錢包 資訊 ...... 商戶.錢包 資訊  -----------*/
[data-bs-theme="dark"] .info-item{
    background:#444;
}

[data-bs-theme="dark"] .info-item:hover{
    background:#333;
    border-color:#86b7fe;
}

[data-bs-theme="dark"] .info-title{
    color:#fff;
}

[data-bs-theme="dark"] .info-content{
    color:#5590ff;
}


/*----------- 錢包 log ...... 錢包 log  -----------*/
[data-bs-theme="dark"] #logsModal .card{
    background:#333;
}

[data-bs-theme="dark"] .log-card{
    border:1px solid #e1e5ea;
    background:#444;
}

[data-bs-theme="dark"] .log-card:hover{
    background:#555;
    border-color:#7ea5f3;
}

[data-bs-theme="dark"] .log-time{
    font-size:13px;
    font-weight:600;
    margin-bottom:6px;
}

[data-bs-theme="dark"] .log-content{
    background:#000;
    border-radius:6px;
    padding:10px;
    margin:0;
    font-size:13px;
    color:#fff;
}


/* flatpickr */
[data-bs-theme="dark"] .flatpickr-calendar {
    background-color: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .flatpickr-day.selected {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
}

[data-bs-theme="dark"] .flatpickr-day {
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .flatpickr-day:hover {
    background: #495057;
}

[data-bs-theme="dark"] .flatpickr-months .flatpickr-month,
[data-bs-theme="dark"] .flatpickr-months .flatpickr-prev-month,
[data-bs-theme="dark"] .flatpickr-months .flatpickr-next-month,
[data-bs-theme="dark"] span.flatpickr-weekday {
    color: var(--bs-body-color);
    fill:  var(--bs-body-color);
}

[data-bs-theme="dark"] .flatpickr-day.flatpickr-disabled {
    color: rgba(255, 255, 255, 0.7) !important;
    opacity: 0.4;
    cursor: not-allowed;
}

[data-bs-theme="dark"] .flatpickr-current-month .numInputWrapper span.arrowUp:after {
    border-bottom-color: var(--bs-body-color);
}
[data-bs-theme="dark"] .flatpickr-current-month .numInputWrapper span.arrowDown:after {
    border-top-color: var(--bs-body-color);
}

[data-bs-theme="dark"] .flatpickr-monthDropdown-months {
    background-color: var(--bs-body-bg) !important;
    color: var(--bs-body-color);
    border: 1px solid var(--bs-border-color);
}
