/* AdminLTE 主題的補充樣式：外框細節，以及沿用自 Hope UI 的頁面元件（btn-soft、時間軸、統計卡…）在 AdminLTE 下的對應樣式 */

body { font-family: "Source Sans 3", "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", system-ui, sans-serif; }

/* ---- 品牌圖示（SVG） */
.lte-brand svg { width: 33px; height: 33px; }
.lte-brand .st0 { fill: currentColor; }
.app-sidebar .lte-brand { color: #fff; opacity: .85; display: inline-flex; align-items: center; justify-content: center; box-shadow: none; }
.lte-brand-lg svg { width: 42px; height: 42px; }
.login-box { width: 380px; max-width: calc(100% - 32px); }

/* ---- 頭像：AdminLTE 用照片，這裡用第一個字 */
.lte-avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--bs-primary); color: #fff; font-weight: 600; flex-shrink: 0; }
.lte-avatar-sm { width: 2rem; height: 2rem; font-size: .9rem; }
.lte-avatar-lg { width: 5.5rem; height: 5.5rem; font-size: 2.2rem; border: 3px solid rgba(255, 255, 255, .25); }
.navbar .user-menu .user-header { height: auto; padding: 1rem; }
.navbar .user-menu .user-header p small { display: block; opacity: .8; }

/* ---- 側邊欄：Feather 圖示對齊、分組數字（展開時隱藏，只在收合的分組顯示合計） */
.sidebar-menu .nav-icon.fe { font-size: 1.05rem; width: 1.6rem; text-align: center; display: inline-block; }
.sidebar-menu .nav-arrow.fe { font-size: .9rem; }
.sidebar-menu .menu-open > .nav-link .lte-group-badge { display: none; }
.sidebar-menu .nav-link > p > .nav-badge + .nav-arrow { margin-left: .25rem; }
.sidebar-menu .nav-link > p > .lte-group-badge { right: 2.4rem !important; }
.sidebar-menu .nav-treeview > .nav-item > .nav-link { padding-left: 1.6rem; }
/* 縮成圖示列時：子項目也保留圖示，每項上下排列 */
.sidebar-mini.sidebar-collapse .app-sidebar:not(:hover) .sidebar-menu .nav-treeview > .nav-item > .nav-link { padding-left: .5rem; }

/* ---- 頂列 */
.app-header .nav-link .fe { vertical-align: -2px; }
.app-header .navbar-badge { font-size: .6rem; }

/* ---- 表單（Bootstrap 5 沒有 form-group） */
.form-group { margin-bottom: 1rem; }
.required::after { content: " *"; color: var(--bs-danger); }
.form-label { font-weight: 500; }

/* ---- 卡片：Hope UI 的 card-header + header-title + card-title 結構 */
.card { margin-bottom: 1.5rem; }
.card-header .header-title .card-title, .card-header .card-title { font-size: 1.05rem; font-weight: 500; margin-bottom: 0; }
.card-header.d-flex .card-title { float: none; }
.table thead th { white-space: nowrap; }
.table thead tr.ligth th { background: var(--bs-tertiary-bg); }

/* ---- 按鈕：Hope UI 的 btn-soft-*、btn-icon */
.btn-soft-primary { color: var(--bs-primary); background: rgba(var(--bs-primary-rgb), .1); border-color: transparent; }
.btn-soft-primary:hover, .btn-soft-primary.active { color: #fff; background: var(--bs-primary); }
.btn-soft-secondary { color: var(--bs-secondary-color); background: rgba(var(--bs-secondary-rgb), .1); border-color: transparent; }
.btn-soft-secondary:hover, .btn-soft-secondary.active { color: #fff; background: var(--bs-secondary); }
.btn-soft-danger { color: var(--bs-danger); background: rgba(var(--bs-danger-rgb), .1); border-color: transparent; }
.btn-soft-danger:hover { color: #fff; background: var(--bs-danger); }
.btn-soft-light { color: var(--bs-body-color); background: var(--bs-tertiary-bg); border-color: transparent; }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; padding: 0; }
.btn-icon.btn-sm { width: 1.85rem; height: 1.85rem; }

/* ---- 淡色底：bg-soft-*（AdminLTE 4 對應 bg-*-subtle） */
.bg-soft-primary { background: var(--bs-primary-bg-subtle) !important; }
.bg-soft-danger { background: var(--bs-danger-bg-subtle) !important; }
.bg-soft-warning { background: var(--bs-warning-bg-subtle) !important; }
.bg-soft-success { background: var(--bs-success-bg-subtle) !important; }
.bg-soft-info { background: var(--bs-info-bg-subtle) !important; }
.bg-soft-secondary { background: var(--bs-secondary-bg-subtle) !important; }

/* ---- 統計卡：Hope UI 的 card-slide + progress-widget（AdminLTE 的 info-box 外觀） */
.card-slide { transition: box-shadow .2s; }
.card-slide:hover { box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .12); }
.progress-widget { display: flex; align-items: center; gap: 1rem; }
.progress-widget .progress-detail p { margin-bottom: .1rem; color: var(--bs-secondary-color); font-size: .9rem; }
.progress-widget .progress-detail h4 { margin-bottom: 0; font-weight: 600; }

/* ---- 時間軸：Hope UI 的 iq-timeline0（對應 AdminLTE UI/timeline.html 的左側直線＋圓點） */
.iq-timeline0 ul { position: relative; }
.iq-timeline0 ul::before { content: ""; position: absolute; left: 11px; top: 0; bottom: 0; width: 2px; background: var(--bs-border-color); }
.iq-timeline0 ul li { position: relative; padding: 0 0 0 40px; margin: 0 0 1.25rem 0; list-style: none; }
.iq-timeline0 .timeline-dots { position: absolute; left: 4px; top: 4px; width: 16px; height: 16px; border-radius: 50%; border: 3px solid var(--bs-primary); background: var(--bs-body-bg); }
.timeline-memo { white-space: pre-wrap; }

/* ---- 其他 Hope UI 元件 */
.hope-initial, .user-avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--bs-primary-bg-subtle); color: var(--bs-primary); font-weight: 600; }
.avatar-40 { width: 40px; height: 40px; } .avatar-50 { width: 50px; height: 50px; } .avatar-60 { width: 60px; height: 60px; } .avatar-100 { width: 100px; height: 100px; }
.profile-img { border-radius: 50%; }
