/* GINM Nexus 統一樣式表 */

/* ===== 基礎字級階層 (1.25x Scale) ===== */
:root {
    /* 文字尺寸 - 基於 1.25x 縮放比例 */
    --ginm-font-xs: 0.8rem; /* 12.8px - 最小文字 */
    --ginm-font-sm: 0.875rem; /* 14px - 小型文字 */
    --ginm-font-base: 1rem; /* 16px - 基準文字 */
    --ginm-font-lg: 1.25rem; /* 20px - 大型文字 */
    --ginm-font-xl: 1.5rem; /* 24px - 特大文字 */
    --ginm-font-xxl: 1.875rem; /* 30px - 超大文字 */

    /* Display 尺寸 - 用於標題和強調 */
    --ginm-font-display-6: 1.25rem; /* 20px */
    --ginm-font-display-5: 1.5rem; /* 24px */
    --ginm-font-display-4: 1.75rem; /* 28px */
    --ginm-font-display-3: 2rem; /* 32px */
    --ginm-font-display-2: 2.25rem; /* 36px */
    --ginm-font-display-1: 2.5rem; /* 40px */

    /* 行高與圖示 */
    --ginm-line-height-base: 1.5;
    --ginm-icon-sm: 0.75rem;
    --ginm-icon-md: 1rem;
    --ginm-icon-lg: 1.5rem;
    --ginm-icon-xl: 2rem;
    --ginm-icon-xxl: 2.5rem;
}

body {
    font-size: var(--ginm-font-base);
    line-height: var(--ginm-line-height-base);
}

small,
.small {
    font-size: var(--ginm-font-xs);
}

/* ===== Typography Utilities Normalization ===== */
h1 {
    font-size: var(--ginm-font-xxl);
}

h2 {
    font-size: var(--ginm-font-xl);
}

h3 {
    font-size: var(--ginm-font-lg);
}

h4 {
    font-size: var(--ginm-font-base);
}

h5 {
    font-size: var(--ginm-font-sm);
}

h6 {
    font-size: var(--ginm-font-xs);
}

.fs-1 {
    font-size: var(--ginm-font-xxl) !important;
}

.fs-2 {
    font-size: var(--ginm-font-xl) !important;
}

.fs-3 {
    font-size: var(--ginm-font-lg) !important;
}

.fs-4 {
    font-size: var(--ginm-font-base) !important;
}

.fs-5 {
    font-size: var(--ginm-font-sm) !important;
}

.fs-6 {
    font-size: var(--ginm-font-xs) !important;
}

.display-1 {
    font-size: var(--ginm-font-display-1) !important;
}

.display-2 {
    font-size: var(--ginm-font-display-2) !important;
}

.display-3 {
    font-size: var(--ginm-font-display-3) !important;
}

.display-4 {
    font-size: var(--ginm-font-display-4) !important;
}

.display-5 {
    font-size: var(--ginm-font-display-5) !important;
}

.display-6 {
    font-size: var(--ginm-font-display-6) !important;
}

.text-xs {
    font-size: var(--ginm-font-xs) !important;
}

.text-sm {
    font-size: var(--ginm-font-sm) !important;
}

.text-lg {
    font-size: var(--ginm-font-lg) !important;
}

.text-xl {
    font-size: var(--ginm-font-xl) !important;
}

/* ===== 頁面標題統一樣式 ===== */
.page-header h1 {
    font-size: var(--ginm-font-display-5);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.25rem;
    color: #212529;
}

.page-header h1 i {
    color: #6c757d;
    margin-right: 0.5rem;
    font-size: var(--ginm-font-lg);
}

.page-header p {
    font-size: var(--ginm-font-sm);
    color: #6c757d;
    margin-bottom: 0;
    font-weight: 400;
}

/* Section header + card rhythm */
.section-header {
    background: transparent;
    border-bottom: 1px solid #e9ecef;
    border-radius: 0;
    padding: 0 0 0.75rem 0;
    box-shadow: none;
}

/* ===== 麵包屑統一樣式 ===== */
.breadcrumb {
    background-color: transparent;
    padding: 0.5rem 0;
    margin-bottom: 0;
    font-size: var(--ginm-font-sm);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: attr(data-separator);
    color: #adb5bd;
    font-weight: normal;
}

.breadcrumb-item a {
    text-decoration: none;
    color: #6c757d;
    transition: color 0.15s ease-in-out;
}

.breadcrumb-item a:hover {
    color: #495057;
}

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 400;
}

/* ===== 按鈕統一樣式 ===== */
.btn {
    font-weight: 400;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    transition: color 0.15s ease-in-out,
    background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out,
    opacity 0.15s ease-in-out;
    font-size: var(--ginm-font-base);
    border-width: 1px;
    line-height: 1.5;
}

.btn-sm {
    font-size: var(--ginm-font-xs);
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    line-height: 1.5;
}

.btn-lg {
    font-size: var(--ginm-font-lg);
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    line-height: 1.5;
}

.btn i {
    margin-right: 0.375rem;
}

/* 修復：當按鈕內只有圖標時，不需要右邊距以保持水平置中 */
.btn i:only-child,
.btn i:last-child {
    margin-right: 0;
}

/* 簡潔的按鈕樣式 */
.btn-secondary {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #495057;
}

.btn-secondary:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
    color: #495057;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

.btn-outline-primary {
    color: #007bff;
    border-color: #007bff;
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: #fff;
}

/* ===== 間距統一樣式 ===== */
.container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* 統一卡片間距 */
.card {
    margin-bottom: 1.5rem;
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    background-color: #fff;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    color: #495057;
    padding: 0.75rem 1rem;
}

.card-header h5,
.card-header h6,
.card-header .card-title {
    margin-bottom: 0;
    font-weight: 600;
    font-size: var(--ginm-font-base);
}

.card-header h5 > i,
.card-header h6 > i,
.card-header .card-title > i {
    display: none;
}

/* ===== 表格統一樣式 ===== */
.table {
    margin-bottom: 0;
    font-size: var(--ginm-font-sm);
}

.table th {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: 500;
    color: #495057;
    vertical-align: middle;
    padding: 0.75rem;
}

.table td {
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
    padding: 0.75rem;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* ===== 徽章統一樣式 ===== */
.badge {
    font-size: var(--ginm-font-xs);
    font-weight: 400;
    border-radius: 0.25rem;
    padding: 0.25em 0.5em;
}

/* ===== Component Typography Scale ===== */
.form-label,
.form-check-label,
.input-group-text,
.form-text,
.dropdown-item,
.nav-link,
.pagination .page-link,
.list-group-item,
.modal-body,
.alert {
    font-size: var(--ginm-font-sm);
}

.form-control,
.form-select,
.btn {
    font-size: var(--ginm-font-base);
}

.card-title,
.modal-title,
.toast-body {
    font-size: var(--ginm-font-base);
}

.card-text {
    font-size: var(--ginm-font-sm);
}

/* Card secondary info */
.card .text-muted,
.card .small,
.card small,
.card .form-text,
.card .badge {
    font-size: var(--ginm-font-xs);
    line-height: 1.4;
}

.breadcrumb,
.breadcrumb-item,
.table th,
.table td {
    font-size: var(--ginm-font-sm);
}

.badge i {
    margin-right: 0.25rem;
}

/* ===== 統計卡片樣式 ===== */
.stats-card {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 0.375rem;
}

.stats-card .card-body {
    padding: 1.25rem;
}

/* ===== 工具提示樣式 ===== */
.tooltip-inner {
    max-width: 200px;
    font-size: var(--ginm-font-sm);
}

/* ===== 響應式設計 ===== */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: var(--ginm-font-xl);
    }

    .page-header .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }

    .btn-group {
        flex-wrap: wrap;
    }

    .container {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

/* ===== 深色模式支援 ===== */
[data-bs-theme="dark"] .page-header h1,
[data-bs-theme="dark"] .page-header p {
    color: #e9ecef;
}

[data-bs-theme="dark"] .section-header {
    background: transparent;
    border-color: #333;
}

[data-bs-theme="dark"] .card {
    background-color: #212529;
    border-color: #495057;
    color: #e9ecef;
}

[data-bs-theme="dark"] .card-header {
    background-color: rgba(13, 110, 253, 0.15);
    border-bottom-color: #495057;
    color: #e9ecef;
}

[data-bs-theme="dark"] .table {
    color: #e9ecef;
}

[data-bs-theme="dark"] .table th {
    background-color: #343a40;
    color: #e9ecef;
    border-bottom-color: #495057;
}

[data-bs-theme="dark"] .table td {
    border-top-color: #495057;
    color: #e9ecef;
}

[data-bs-theme="dark"] .table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

[data-bs-theme="dark"] .breadcrumb-item a {
    color: #adb5bd;
}

[data-bs-theme="dark"] .breadcrumb-item a:hover {
    color: #6ea8fe;
}

[data-bs-theme="dark"] .breadcrumb-item.active {
    color: #e9ecef;
}

[data-bs-theme="dark"] .text-muted {
    color: #adb5bd !important;
}

[data-bs-theme="dark"] .user-info-page .text-muted {
    color: #e9ecef !important;
}

[data-bs-theme="dark"] .user-info-page strong {
    color: #f8f9fa !important;
}

/* ===== 輔助類別 ===== */
.text-muted {
    color: #6c757d !important;
}

/* 淺色模式下確保 bg-light 是淺色 */
.bg-light {
    background-color: #f8f9fa !important;
}

/* 只在深色模式下才改變 bg-light 的顏色 */
[data-bs-theme="dark"] .bg-light {
    background-color: #343a40 !important;
}

/* table-light 在深色模式下的樣式 */
[data-bs-theme="dark"] .table-light {
    background-color: #495057 !important;
}

.border-light {
    border-color: #e9ecef !important;
}

/* ===== Fake Login ===== */
.fake-login-shell {
    background: radial-gradient(circle at top left, rgba(13, 110, 253, 0.08), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(25, 135, 84, 0.12), transparent 50%),
    #ffffff;
    border: 1px solid rgba(13, 110, 253, 0.12);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.fake-login-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.fake-login-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: var(--ginm-font-xs);
    font-weight: 700;
    color: #6c757d;
    margin-bottom: 0.75rem;
}

.fake-login-title {
    font-size: var(--ginm-font-display-1);
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.fake-login-subtitle {
    font-size: var(--ginm-font-base);
    color: #475569;
    margin-bottom: 0;
}

.fake-login-hero-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1.5rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.fake-login-hero-head {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.fake-login-hero-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--ginm-font-lg);
}

.fake-login-hero-title {
    font-weight: 600;
    font-size: var(--ginm-font-base);
}

.fake-login-hero-desc {
    font-size: var(--ginm-font-sm);
    color: #6c757d;
}

.fake-login-tip {
    font-size: var(--ginm-font-xs);
    color: #6c757d;
}

.fake-login-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.fake-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    animation: fade-up 0.5s ease both;
}

.fake-card:nth-child(2) {
    animation-delay: 0.05s;
}

.fake-card:nth-child(3) {
    animation-delay: 0.1s;
}

.fake-card:nth-child(4) {
    animation-delay: 0.15s;
}

.fake-card-head {
    margin-bottom: 1rem;
}

.fake-card-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.fake-card-desc {
    font-size: var(--ginm-font-sm);
    color: #6c757d;
}

.fake-login-btn {
    font-size: var(--ginm-font-sm);
    border-radius: 12px;
    padding: 0.55rem 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
}

.fake-login-btn i {
    flex-shrink: 0;
}

.fake-login-btn-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fake-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.12);
}

.fake-login-hero-card .input-group {
    flex-wrap: nowrap;
}

.fake-login-hero-card .input-group > .select2-container--bootstrap-5 {
    width: 1% !important;
    flex: 1 1 auto;
}

.fake-login-hero-card .select2-container--bootstrap-5 .select2-selection {
    height: calc(2.5rem + 2px);
    display: flex;
    align-items: center;
}

.fake-login-hero-card .select2-container--bootstrap-5 .select2-selection__rendered {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 992px) {
    .fake-login-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .fake-login-hero {
        grid-template-columns: 1fr;
    }

    .fake-login-shell {
        padding: 2rem 1.5rem;
    }

    .fake-login-title {
        font-size: var(--ginm-font-display-2);
    }
}

@media (max-width: 576px) {
    .fake-login-shell {
        padding: 1.5rem 1rem;
    }
}

[data-bs-theme="dark"] .fake-login-shell {
    background: radial-gradient(circle at top left, rgba(13, 110, 253, 0.25), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(25, 135, 84, 0.25), transparent 50%),
    #121212;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .fake-login-title,
[data-bs-theme="dark"] .fake-card-title {
    color: #f8f9fa;
}

[data-bs-theme="dark"] .fake-login-subtitle,
[data-bs-theme="dark"] .fake-card-desc,
[data-bs-theme="dark"] .fake-login-hero-desc,
[data-bs-theme="dark"] .fake-login-tip {
    color: #adb5bd;
}

[data-bs-theme="dark"] .fake-card,
[data-bs-theme="dark"] .fake-login-hero-card {
    background: rgba(33, 37, 41, 0.9);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

[data-bs-theme="dark"] .fake-login-btn.btn-outline-dark {
    color: #e9ecef;
    border-color: #6c757d;
}

[data-bs-theme="dark"] .fake-login-btn.btn-outline-dark:hover {
    background-color: #6c757d;
    color: #ffffff;
}

[data-bs-theme="dark"] .fake-login-hero-card .input-group-text {
    background: #1f2937;
    color: #e9ecef;
    border-color: #334155;
}

[data-bs-theme="dark"] .fake-login-hero-card .select2-container--bootstrap-5 .select2-selection {
    background: #1f2937;
    color: #e9ecef;
    border-color: #334155;
}

[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-dropdown {
    background-color: #1f2937;
    border-color: #334155;
    color: #e9ecef;
}

[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-results__option {
    color: #e9ecef;
}

[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: #0d6efd;
    color: #ffffff;
}

[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection__placeholder {
    color: #9aa4b2;
}

/* ===== Professor Bind ===== */
.hover-lift {
    transition: all 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-2px);
    background-color: rgba(0, 0, 0, 0.02);
}

.avatar-sm {
    width: 32px;
    height: 32px;
}

.avatar-md {
    width: 48px;
    height: 48px;
}

.avatar-lg {
    width: 56px;
    height: 56px;
}

.avatar-xl {
    width: 80px;
    height: 80px;
}

.student-message {
    background-color: var(--bs-gray-100);
    border: 1px solid var(--bs-border-color);
}

[data-bs-theme="dark"] .student-message {
    background-color: var(--bs-gray-800);
    border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .hover-lift:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .list-group-item {
    background-color: transparent !important;
    border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .list-group-flush .list-group-item {
    background-color: transparent !important;
}

[data-bs-theme="dark"] #studentListModal .table-warning {
    background-color: rgba(255, 193, 7, 0.2) !important;
}

[data-bs-theme="dark"] #studentListModal .table-warning td,
[data-bs-theme="dark"] #studentListModal .table-warning .text-muted,
[data-bs-theme="dark"] #studentListModal .table-warning code {
    color: #f8f9fa !important;
}

/* ===== Professor Students ===== */
.professor-students-header {
    background-color: #f8f9fa !important;
}

[data-bs-theme="dark"] .professor-students-header {
    background-color: #2c2c2c !important;
}

.chart-wrap {
    min-height: 260px;
}


/* ===== Extracted blade styles ===== */

/* from resources/views/dashboard.blade.php */
/* === Light Theme (Default) === */
/* 頁首自訂樣式 */
.custom-header {
    background: linear-gradient(135deg, #f0f2f5 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 2rem;
}

/* 卡片 hover 效果 */
.card-hover {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* Dashboard card links - 限制在 dashboard 卡片內的直接連結 */
.dashboard-card > a,
.card-body > a.card-link {
    font-size: var(--ginm-font-lg);
    padding: 6px;
}

/* 標籤頁樣式優化 */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 2rem;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 0;
    color: #6c757d;
    font-weight: 500;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    border-color: transparent;
    color: #495057;
    background-color: #f8f9fa;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    background-color: transparent;
    border-color: transparent;
    border-bottom: 3px solid #0d6efd;
}

/* 分組標題樣式 */
.tab-pane h5 {
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

/* === Dark Theme === */
[data-bs-theme="dark"] .custom-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-bottom: 1px solid #444;
}

[data-bs-theme="dark"] .card-hover:hover {
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .nav-tabs {
    border-bottom: 2px solid #444;
}

[data-bs-theme="dark"] .nav-tabs .nav-link {
    color: #adb5bd;
}

[data-bs-theme="dark"] .nav-tabs .nav-link:hover {
    color: #f8f9fa;
    background-color: #2d2d2d;
}

[data-bs-theme="dark"] .nav-tabs .nav-link.active {
    color: #4dabf7;
    border-bottom-color: #4dabf7;
}

[data-bs-theme="dark"] .tab-pane h5 {
    color: #f8f9fa;
    border-bottom: 2px solid #444;
}

/* Dark theme 卡片優化 */
[data-bs-theme="dark"] .card {
    background-color: #1e1e1e;
    border-color: #444;
}

[data-bs-theme="dark"] .card-body {
    color: #e9ecef;
}

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

[data-bs-theme="dark"] .card-text {
    color: #adb5bd;
}

/* Dark theme 徽章優化 */
[data-bs-theme="dark"] .badge.bg-success {
    background-color: #198754 !important;
}

[data-bs-theme="dark"] .badge.bg-danger {
    background-color: #dc3545 !important;
}

[data-bs-theme="dark"] .badge.bg-warning {
    background-color: #fd7e14 !important;
    color: #000 !important;
}

[data-bs-theme="dark"] .badge.bg-primary {
    background-color: #0d6efd !important;
}

[data-bs-theme="dark"] .badge.bg-secondary {
    background-color: #6c757d !important;
}

/* Dark theme 按鈕優化 */
[data-bs-theme="dark"] .btn-outline-primary {
    border-color: #4dabf7;
    color: #4dabf7;
}

[data-bs-theme="dark"] .btn-outline-primary:hover {
    background-color: #4dabf7;
    border-color: #4dabf7;
    color: #000;
}

[data-bs-theme="dark"] .btn-outline-secondary {
    border-color: #6c757d;
    color: #adb5bd;
}

[data-bs-theme="dark"] .btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

/* Dark theme 文字優化 */
[data-bs-theme="dark"] .text-muted {
    color: #adb5bd !important;
}

[data-bs-theme="dark"] .text-secondary {
    color: #adb5bd !important;
}

[data-bs-theme="dark"] .text-dark {
    color: #f8f9fa !important;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: var(--ginm-font-sm);
    }

    .nav-tabs .nav-link i {
        display: none;
    }
}

/* from resources/views/layouts/guest.blade.php */
:root {
    --ginm-font-base: 1.1rem;
    --ginm-font-sm: 1.0rem;
    --ginm-font-xs: 0.9rem;
}

body {
    font-family: 'Noto Sans TC', sans-serif;
    background-color: #f8f9fa;
    font-size: var(--ginm-font-base);
}

small,
.small {
    font-size: var(--ginm-font-sm);
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.text-gray-600 {
    color: #6b7280;
}

[data-bs-theme="dark"] body {
    background-color: #121212;
    color: #e9ecef;
}

[data-bs-theme="dark"] .auth-card {
    background: #1e1e1e;
    color: #f8f9fa;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

[data-bs-theme="dark"] .text-gray-600 {
    color: #adb5bd;
}

/* from resources/views/layouts/app.blade.php */
/* --- Default Light Mode --- */
body {
    font-family: 'Noto Sans TC', sans-serif;
    background: #f8f9fa;
}

main {
    min-height: 100vh;
}

.navbar-modern {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    min-height: 48px;
    z-index: 1030;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* 桌面版緊湊設計 */
@media (min-width: 768px) {
    .navbar-modern {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
        min-height: 40px;
    }

    .navbar-modern .nav-link, .navbar-modern .btn-light {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }
}

.navbar-modern .nav-link, .navbar-modern .btn-light {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    cursor: pointer;
}

.navbar-brand {
    font-weight: 600;
    color: #0d6efd !important;
    font-size: var(--ginm-font-base);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Guest用戶的navbar - 與首頁完全一致，覆蓋navbar-modern設定 */
.navbar-guest {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    min-height: 48px !important;
}

/* 解決container padding導致的高度問題 */
.navbar-guest .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.navbar-guest .navbar-brand {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.navbar-guest .nav-link,
.navbar-guest .btn-light {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    cursor: pointer;
}

/* 桌面版緊湊設計 - 覆蓋預設設定 */
@media (min-width: 768px) {
    .navbar-guest {
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
        min-height: 40px !important;
    }

    .navbar-guest .navbar-brand {
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
    }

    .navbar-guest .nav-link,
    .navbar-guest .btn-light {
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
    }
}

[data-bs-theme="dark"] .navbar-brand {
    color: #6ea8fe !important;
}

.navbar-modern .fa-bell {
    position: relative;
    font-size: var(--ginm-font-lg);
}

.navbar-modern #notification-badge {
    top: 5px;
    left: 30px;
}

.navbar-modern .nav-link {
    color: #212529 !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.navbar-modern .nav-link:hover {
    color: #0d6efd !important;
}

.navbar-modern .btn-light {
    border: 1px solid #dee2e6;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.navbar-modern .btn-light:hover {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

#notification-list {
    max-height: 300px;
    max-width: 90vw;
    overflow: auto;
}

footer.modern-footer {
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    padding: 2rem 0;
}

footer.modern-footer p,
footer.modern-footer a {
    color: #6c757d;
    font-size: var(--ginm-font-sm);
    transition: color 0.2s ease;
}

footer.modern-footer a:hover {
    color: #0d6efd;
    text-decoration: underline;
}

/* --- Dark Mode 覆蓋 --- */
[data-bs-theme="dark"] body {
    background: #121212;
    color: #e9ecef;
}

[data-bs-theme="dark"] .navbar-modern {
    background: #1e1e1e;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

[data-bs-theme="dark"] .navbar-modern .nav-link {
    color: #f8f9fa !important;
}

[data-bs-theme="dark"] .navbar-modern .nav-link:hover {
    color: #0d6efd !important;
}

[data-bs-theme="dark"] .btn-light {
    background: #333 !important;
    color: #f8f9fa !important;
    border-color: #444 !important;
}

[data-bs-theme="dark"] .btn-light:hover {
    background: #0d6efd !important;
    color: #fff !important;
    border-color: #0d6efd !important;
}

[data-bs-theme="dark"] .navbar-toggler-icon {
    filter: invert(1);
}

[data-bs-theme="dark"] footer.modern-footer {
    background: #1e1e1e;
    border-top: 1px solid #333;
}

[data-bs-theme="dark"] footer.modern-footer p,
[data-bs-theme="dark"] footer.modern-footer a {
    color: #adb5bd;
}

[data-bs-theme="dark"] footer.modern-footer a:hover {
    color: #0d6efd;
}

/* DataTable */
[data-bs-theme="dark"] .dataTable {
    background: #1e1e1e;
    color: #f8f9fa;
}

[data-bs-theme="dark"] table.dataTable thead th {
    background: #2c2c2c;
    color: #f8f9fa;
}

[data-bs-theme="dark"] table.dataTable tbody tr:hover {
    background: #2a2a2a;
}

[data-bs-theme="dark"] .dataTables_paginate .paginate_button {
    color: #f8f9fa !important;
}

[data-bs-theme="dark"] .dataTables_info {
    color: #adb5bd;
}

/* 確保 DataTable 排序符號正確顯示 */
table.dataTable thead > tr > th.dt-orderable-asc span.dt-column-order:before,
table.dataTable thead > tr > th.dt-orderable-desc span.dt-column-order:before,
table.dataTable thead > tr > th.dt-orderable-asc span.dt-column-order:after,
table.dataTable thead > tr > th.dt-orderable-desc span.dt-column-order:after {
    opacity: 0.3;
}

table.dataTable thead > tr > th.dt-ordering-asc span.dt-column-order:before,
table.dataTable thead > tr > th.dt-ordering-desc span.dt-column-order:after {
    opacity: 1;
}


/* Form elements */
[data-bs-theme="dark"] input.form-control,
[data-bs-theme="dark"] select.form-select,
[data-bs-theme="dark"] textarea.form-control {
    background: #1e1e1e;
    color: #f8f9fa;
    border-color: #444;
}

[data-bs-theme="dark"] input.form-control:focus,
[data-bs-theme="dark"] select.form-select:focus,
[data-bs-theme="dark"] textarea.form-control:focus {
    background: #1e1e1e;
    color: #f8f9fa;
    border-color: #0d6efd;
}

/* Card */
[data-bs-theme="dark"] .card {
    background: #1e1e1e;
    color: #f8f9fa;
    border: 1px solid #333;
}

/* Modal */
[data-bs-theme="dark"] .modal-content {
    background: #1e1e1e;
    color: #f8f9fa;
}

/* Dropdown */
[data-bs-theme="dark"] .dropdown-menu {
    background: #1e1e1e;
    color: #f8f9fa;
    border: 1px solid #333;
}

[data-bs-theme="dark"] .dropdown-item {
    color: #f8f9fa;
}

[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus {
    background: #2b3035 !important;
    color: #f8f9fa !important;
}

/* 通知中心特殊樣式 */
[data-bs-theme="dark"] .notification-item:hover,
[data-bs-theme="dark"] .notification-item:focus {
    background: #2b3035 !important;
    color: #f8f9fa !important;
}

[data-bs-theme="dark"] .notification-item:hover .text-muted,
[data-bs-theme="dark"] .notification-item:focus .text-muted {
    color: #adb5bd !important;
}

/* Tooltip */
[data-bs-theme="dark"] .tooltip-inner {
    background: #333;
    color: #fff;
}

/* Table borders */
[data-bs-theme="dark"] table,
[data-bs-theme="dark"] th,
[data-bs-theme="dark"] td {
    border-color: #444 !important;
}

/* Dashboard custom header */
.custom-header {
    background: rgba(13, 110, 253, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(13, 110, 253, 0.1);
}

[data-bs-theme="dark"] .custom-header {
    background: rgba(110, 168, 254, 0.1);
    border: 1px solid rgba(110, 168, 254, 0.2);
}

/* Alert styling */
[data-bs-theme="dark"] .alert-info {
    background: rgba(110, 168, 254, 0.15);
    border-color: rgba(110, 168, 254, 0.3);
    color: #b3d4fc;
}

[data-bs-theme="dark"] .alert-danger {
    background: rgba(248, 81, 73, 0.15);
    border-color: rgba(248, 81, 73, 0.3);
    color: #f5c2c7;
}

/* Badge adjustments for dark theme */
[data-bs-theme="dark"] .badge {
    color: #fff !important;
}

[data-bs-theme="dark"] .badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

[data-bs-theme="dark"] .badge.bg-light {
    background-color: #495057 !important;
    color: #fff !important;
}

/* Text color utilities enhancement */
[data-bs-theme="dark"] .text-muted {
    color: #adb5bd !important;
}

/* Navbar Right Side Optimization Styles */
.navbar-group {
    position: relative;
    margin-right: 0;
}

.navbar-group:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 24px;
    background: linear-gradient(to bottom, transparent, #dee2e6 20%, #dee2e6 80%, transparent);
}

[data-bs-theme="dark"] .navbar-group:not(:last-child)::after {
    background: linear-gradient(to bottom, transparent, #444 20%, #444 80%, transparent);
}

/* Time Group Styling */
.time-group {
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(13, 110, 253, 0.05);
    border: 1px solid rgba(13, 110, 253, 0.1);
    transition: all 0.3s ease;
}

.time-group:hover {
    background: rgba(13, 110, 253, 0.08);
    transform: translateY(-1px);
}

[data-bs-theme="dark"] .time-group {
    background: rgba(110, 168, 254, 0.08);
    border-color: rgba(110, 168, 254, 0.15);
}

[data-bs-theme="dark"] .time-group:hover {
    background: rgba(110, 168, 254, 0.12);
}

/* Action Button Styling */
.navbar-action-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #e9ecef;
    background: #ffffff;
    color: #6c757d;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 0;
    line-height: 1;
}

.navbar-action-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--ginm-font-base);
    width: 100%;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

.navbar-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #0d6efd;
    background: #ffffff;
    color: #0d6efd;
}

.navbar-action-btn:focus {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
    outline: none;
}

[data-bs-theme="dark"] .navbar-action-btn {
    background: #2c2c2c;
    border-color: #444;
    color: #adb5bd;
}

[data-bs-theme="dark"] .navbar-action-btn:hover {
    background: #333;
    border-color: #0d6efd;
    color: #6ea8fe;
}

/* Theme Switch Modern Design */
.theme-switch-modern {
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-icon {
    font-size: var(--ginm-font-base);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 !important;
    padding: 0 !important;
}

.theme-switch-modern.active .theme-icon {
    transform: rotate(180deg);
}

/* User Info Styling */
.user-info {
    padding: 8px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.user-info:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .user-info {
    background: linear-gradient(135deg, #2c2c2c 0%, #1e1e1e 100%);
    border-color: #444;
}

[data-bs-theme="dark"] .user-info:hover {
    background: linear-gradient(135deg, #333 0%, #2c2c2c 100%);
}

.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--ginm-font-sm);
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.2);
}

.user-name {
    font-size: var(--ginm-font-sm);
    font-weight: 600;
    color: #495057;
    line-height: 1.2;
    margin-bottom: 2px;
}

.user-role {
    font-size: var(--ginm-font-xs);
    color: #6c757d;
    line-height: 1;
}

[data-bs-theme="dark"] .user-name {
    color: #f8f9fa;
}

[data-bs-theme="dark"] .user-role {
    color: #adb5bd;
}

/* Logout Button Special Styling */
.btn-logout {
    border-color: #dc3545;
    color: #dc3545;
}

.btn-logout:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
    .time-group {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .navbar-group:not(:last-child)::after {
        display: none;
    }

    .navbar-group {
        margin-right: 8px !important;
    }

    .user-info {
        padding: 6px 12px;
    }

    .user-name {
        font-size: var(--ginm-font-xs);
    }

    .user-role {
        font-size: var(--ginm-font-xs);
    }
}

@media (max-width: 767.98px) {
    .user-info {
        display: none !important;
    }

    .navbar-action-btn {
        width: 38px;
        height: 38px;
    }
}

/* Tailwind CSS Dark Mode Overrides */
[data-bs-theme="dark"] .bg-white {
    background-color: #1e1e1e !important;
}

[data-bs-theme="dark"] .text-gray-800 {
    color: #f8f9fa !important;
}

[data-bs-theme="dark"] .text-gray-700 {
    color: #e9ecef !important;
}

[data-bs-theme="dark"] .text-gray-500 {
    color: #adb5bd !important;
}

[data-bs-theme="dark"] .border-gray-100 {
    border-color: #444 !important;
}

[data-bs-theme="dark"] .border-gray-200 {
    border-color: #444 !important;
}

[data-bs-theme="dark"] .border-gray-300 {
    border-color: #555 !important;
}

/* Table header styling */
[data-bs-theme="dark"] .table-light {
    background-color: #2c2c2c !important;
    color: #f8f9fa !important;
}

[data-bs-theme="dark"] .table th {
    background-color: #2c2c2c;
    color: #f8f9fa;
    border-color: #444;
}


/* Main content adjustments for sidebar */
.main-content-with-sidebar {
    transition: margin-left 0.3s ease;
}

/* 桌面版佈局調整 */
@media (min-width: 768px) {
    .main-content-with-sidebar {
        margin-left: 280px;
    }

    /* Navbar 容器調整 */
    .navbar-with-sidebar .container {
        margin-left: 280px;
        max-width: calc(100% - 280px);
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Footer 調整 */
    .footer-with-sidebar {
        margin-left: 280px;
    }

    /* 減少頁面切換時的視覺閃爍 */
    .main-content-with-sidebar {
        opacity: 0;
        transition: opacity 0.2s ease-in-out, margin-left 0.3s ease;
    }

    .main-content-with-sidebar.loaded {
        opacity: 1;
    }
}

/* 移動版佈局 */
@media (max-width: 767.98px) {
    .main-content-with-sidebar {
        margin-left: 0 !important;
    }

    .navbar-with-sidebar .container {
        margin-left: 0 !important;
        max-width: 100% !important;
    }

    .footer-with-sidebar {
        margin-left: 0 !important;
    }

    body.sidebar-open {
        overflow: hidden;
    }
}

/* Navbar 優化 */
.navbar-modern {
    z-index: 1030; /* 確保 navbar 在 sidebar 下方 */
}

/* Auth navbar content should clear sidebar on desktop */
@media (min-width: 768px) {
    .navbar-with-sidebar .navbar-main {
        margin-left: 280px;
        max-width: calc(100% - 280px);
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Sidebar Toggle 按鈕在 navbar 中的樣式 */
#sidebarToggle {
    border: 1px solid #0d6efd;
    transition: all 0.2s ease;
}

#sidebarToggle:hover {
    background: #0d6efd;
    color: white;
}

/* Quick Search Styles */
#quickSearch {
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

#quickSearch:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

#searchResults {
    top: 100% !important;
    left: 0 !important;
    margin-top: 0.5rem;
    border: 1px solid #e0e0e0;
    background: #fff;
}

.navbar-search {
    flex: 1 1 320px;
    max-width: 420px;
    margin-left: 1rem;
}

.navbar-search .form-control {
    width: 100%;
}

.search-result-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #212529;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 0.25rem;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid transparent;
}

.search-result-item:hover,
.search-result-item.active {
    background: #f8f9fa;
    color: #0d6efd;
    border-color: #e3f2fd;
}

.search-result-category {
    font-size: var(--ginm-font-xs);
    color: #6c757d;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    margin-bottom: 0.25rem;
}

.search-result-title {
    font-weight: 600;
    font-size: var(--ginm-font-sm);
    margin-bottom: 0.25rem;
}

.search-result-desc {
    font-size: var(--ginm-font-xs);
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.search-result-path {
    font-size: var(--ginm-font-xs);
    color: #adb5bd;
}

.time-group-icon {
    font-size: var(--ginm-font-sm);
}

.time-group-text {
    font-size: var(--ginm-font-xs);
    line-height: 1.2;
}

.notification-empty {
    font-size: var(--ginm-font-sm);
}

.search-highlight {
    background: #fff3cd;
    padding: 0.1rem 0.2rem;
    border-radius: 3px;
    font-weight: 600;
}

/* Dark mode styles for search */
[data-bs-theme="dark"] #quickSearch {
    background: #1e1e1e;
    color: #f8f9fa;
    border-color: #444;
}

[data-bs-theme="dark"] #quickSearch:focus {
    background: #1e1e1e;
    color: #f8f9fa;
    border-color: #0d6efd;
}

[data-bs-theme="dark"] #searchResults {
    background: #1e1e1e;
    border-color: #444;
}

[data-bs-theme="dark"] .search-result-item {
    color: #f8f9fa;
}

[data-bs-theme="dark"] .search-result-item:hover {
    background: #2c2c2c;
    color: #0d6efd;
    border-color: #1e40af;
}

[data-bs-theme="dark"] .search-result-category {
    background: #333;
    color: #adb5bd;
}

[data-bs-theme="dark"] .search-result-desc {
    color: #adb5bd;
}

[data-bs-theme="dark"] .search-result-path {
    color: #6c757d;
}

[data-bs-theme="dark"] .search-highlight {
    background: #ffc107;
    color: #000;
}

/* Page Loading Overlay Styles */
.page-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.page-loading-overlay .loading-spinner {
    text-align: center;
}

[data-bs-theme="dark"] .page-loading-overlay {
    background: rgba(33, 37, 41, 0.9);
}

[data-bs-theme="dark"] {
    --bs-body-bg: #121212;
    --bs-body-color: #f8f9fa;
}

body {
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
}

/* from resources/views/dashboard/system.blade.php */
/* Chart 容器固定尺寸 */
.chart-container {
    height: 300px;
    position: relative;
    margin-bottom: 1rem;
}

.chart-container canvas {
    max-height: 100% !important;
    width: 100% !important;
}

.stats-card {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-dark, #0056b3) 100%);
    border-radius: 15px;
    padding: 1.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.stats-card.bg-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
}

.stats-card.bg-success {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
}

.stats-card.bg-info {
    background: linear-gradient(135deg, #0dcaf0 0%, #087990 100%);
}

.stats-card.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #000;
}

.stats-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stats-icon {
    font-size: var(--ginm-font-display-1);
    opacity: 0.8;
}

.stats-content h3 {
    font-size: var(--ginm-font-display-1);
    font-weight: bold;
    margin: 0;
    line-height: 1;
}

.stats-content p {
    margin: 0;
    font-size: var(--ginm-font-base);
    opacity: 0.9;
}

.stat-item h4 {
    font-size: var(--ginm-font-display-3);
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.stat-item small {
    font-size: var(--ginm-font-sm);
}

.card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
}

.card-header {
    border: none;
    padding: 1rem 1.25rem;
}

.progress {
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.6s ease;
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .stats-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .stats-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .card {
    background: #2c2c2c;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* from resources/views/components/admin-nav-tabs.blade.php */
.admin-nav-tabs .nav-pills .nav-link {
    background: transparent;
    border: none;
    color: #6c757d;
    padding: 0.6rem 0.5rem;
    margin: 0;
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.admin-nav-tabs .nav-pills .nav-link:not(.active):hover {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    transform: translateY(-2px);
}

.admin-nav-tabs .nav-pills .nav-link.active {
    background: #0d6efd;
    color: white;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.admin-nav-tabs .tab-content-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.admin-nav-tabs .tab-icon {
    font-size: var(--ginm-font-base);
}

.admin-nav-tabs .tab-text {
    font-size: var(--ginm-font-sm);
    white-space: nowrap;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .admin-nav-tabs .tab-text {
        display: inline;
    }

    .admin-nav-tabs .tab-icon {
        font-size: var(--ginm-font-sm);
    }

    .admin-nav-tabs .nav-pills .nav-link {
        padding: 0.5rem 0.4rem;
    }
}

@media (max-width: 576px) {
    .admin-nav-tabs .nav-pills {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
    }

    .admin-nav-tabs .nav-pills .nav-link {
        flex: 0 0 auto;
        min-width: 110px;
    }
}

/* 深色模式支援 */
[data-bs-theme="dark"] .admin-nav-tabs .nav-pills .nav-link {
    color: #adb5bd;
}

[data-bs-theme="dark"] .admin-nav-tabs .nav-pills .nav-link:not(.active):hover {
    background: rgba(110, 168, 254, 0.1);
    color: #6ea8fe;
}

[data-bs-theme="dark"] .admin-nav-tabs .nav-pills .nav-link.active {
    background: #6ea8fe;
    color: #000;
    box-shadow: 0 4px 12px rgba(110, 168, 254, 0.3);
}

[data-bs-theme="dark"] .admin-nav-tabs .card {
    background: #1e1e1e;
    border-color: #333;
}

/* from resources/views/components/sidebar.blade.php */
/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    border-right: 1px solid #e0e0e0;
    transition: left 0.3s ease;
    z-index: 1050;
    overflow-y: auto;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
}

.sidebar.show {
    left: 0;
}

/* Desktop: sidebar always visible */
@media (min-width: 768px) {
    .sidebar {
        left: 0;
    }

    .sidebar-toggle {
        display: none !important;
    }

    .main-content-with-sidebar {
        margin-left: 280px;
    }
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    background: #0d6efd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--ginm-font-lg);
}

.sidebar-menu {
    flex: 1;
    padding: 1rem 0;
}

.menu-section {
    margin-bottom: 1.5rem;
}

.menu-header {
    padding: 0.5rem 1.5rem;
    font-size: var(--ginm-font-xs);
    font-weight: 600;
    text-transform: uppercase;
    color: #6c757d;
    letter-spacing: 0.5px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    position: relative;
}

.menu-item i {
    width: 20px;
    margin-right: 0.75rem;
    font-size: var(--ginm-font-base);
}

.menu-item:hover {
    background: #f8f9fa;
    color: #0d6efd;
    text-decoration: none;
}

.menu-item.active {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border-right: 3px solid #0d6efd;
}

.menu-item .badge {
    font-size: var(--ginm-font-xs);
    margin-left: auto;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid #e0e0e0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

.sidebar-overlay.show {
    display: block;
}


/* Dark Mode Styles */
[data-bs-theme="dark"] .sidebar {
    background: #1e1e1e;
    border-right-color: #333;
}

[data-bs-theme="dark"] .sidebar-header {
    border-bottom-color: #333;
}

[data-bs-theme="dark"] .menu-header {
    color: #adb5bd;
}

[data-bs-theme="dark"] .menu-item {
    color: #f8f9fa;
}

[data-bs-theme="dark"] .menu-item:hover {
    background: #2c2c2c;
    color: #6ea8fe;
}

[data-bs-theme="dark"] .menu-item.active {
    background: rgba(110, 168, 254, 0.15);
    color: #6ea8fe;
    border-right-color: #6ea8fe;
}

[data-bs-theme="dark"] .sidebar-footer {
    border-top-color: #333;
}

/* Smooth scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #dee2e6;
    border-radius: 3px;
}

[data-bs-theme="dark"] .sidebar::-webkit-scrollbar-thumb {
    background: #495057;
}

/* 減少頁面切換閃爍 */
.sidebar {
    opacity: 0;
    transition: opacity 0.2s ease, left 0.3s ease;
}

.sidebar.loaded {
    opacity: 1;
}

/* from resources/views/notifications/index.blade.php */
.notification-item {
    transition: all 0.2s ease;
    position: relative;
}

.notification-item:hover {
    background-color: var(--bs-light);
}

.notification-item.unread {
    border-left: 4px solid #0d6efd;
    background-color: rgba(13, 110, 253, 0.02);
}

.notification-icon {
    position: relative;
}

.icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bs-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.unread-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #dc3545;
    border-radius: 50%;
    border: 2px solid white;
}

.notification-content {
    min-height: 48px;
}

.notification-message {
    font-size: var(--ginm-font-sm);
    line-height: 1.4;
    color: var(--bs-body-color);
}

.badge-type {
    font-size: var(--ginm-font-xs);
    font-weight: 500;
}

.notification-time {
    font-size: var(--ginm-font-xs);
}

.notification-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .notification-item.unread {
    background-color: rgba(110, 168, 254, 0.05);
}

[data-bs-theme="dark"] .icon-wrapper {
    background: var(--bs-secondary);
}

[data-bs-theme="dark"] .notification-message {
    color: var(--bs-light);
}

[data-bs-theme="dark"] .badge-type {
    background: var(--bs-secondary) !important;
    color: var(--bs-light) !important;
}

/* Loading animation */
.notification-loading {
    opacity: 0.6;
    pointer-events: none;
}

.notification-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 35px,
        rgba(0, 0, 0, 0.05) 35px,
        rgba(0, 0, 0, 0.05) 70px
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* from resources/views/approvals/showReadonly.blade.php */
.bg-gradient-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.border-left-success {
    border-left: 4px solid #28a745 !important;
}

.border-left-danger {
    border-left: 4px solid #dc3545 !important;
}

.border-left-warning {
    border-left: 4px solid #ffc107 !important;
}

.border-left-info {
    border-left: 4px solid #17a2b8 !important;
}

.border-left-secondary {
    border-left: 4px solid #6c757d !important;
}

.timeline-marker {
    min-width: 40px !important;
    width: 40px !important;
    height: 40px !important;
}

.timeline-content {
    flex: 1;
}

.signature-image:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.card {
    transition: all 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.sticky-top {
    z-index: 1020;
    top: calc(var(--navbar-height, 72px) + 2rem) !important;
}

/* 動態計算navbar高度 */
.sticky-element {
    position: sticky;
    z-index: 1020;
}

@media (max-width: 991.98px) {
    .sticky-top {
        position: relative !important;
        top: auto !important;
    }
}

/* 唯讀模式特殊樣式 */
.bg-gradient-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

/* 禁用所有互動效果 */
.readonly-mode .card:hover {
    transform: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.readonly-mode .btn:hover {
    transform: none;
}

/* 右側資訊面板 */
.right-info-panel {
    position: sticky;
    top: calc(var(--navbar-height, 72px) + 1rem);
    max-height: calc(100vh - var(--navbar-height, 72px) - 2rem);
    overflow-y: auto;
    z-index: 1020;
}

/* 工作流程進度卡片 */
.workflow-progress-card {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.workflow-progress-card .card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
}

.workflow-progress-card .card-body {
    padding: 0;
    background: #fff;
}

/* 工作流程步驟 */
.workflow-step {
    display: flex;
    align-items: flex-start;
    padding: 1.25rem;
    border-bottom: 1px solid #f1f3f5;
    transition: all 0.2s ease;
    position: relative;
}

.workflow-step:last-child {
    border-bottom: none;
}

.workflow-step-active {
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.08) 0%, rgba(255, 193, 7, 0.02) 100%);
    border-left: 4px solid #ffc107;
    padding-left: calc(1.25rem - 4px);
}

.workflow-step-completed {
    background: linear-gradient(90deg, rgba(25, 135, 84, 0.05) 0%, rgba(25, 135, 84, 0.01) 100%);
    border-left: 4px solid #198754;
    padding-left: calc(1.25rem - 4px);
}

.workflow-step-rejected {
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.05) 0%, rgba(220, 53, 69, 0.01) 100%);
    border-left: 4px solid #dc3545;
    padding-left: calc(1.25rem - 4px);
}

/* 步驟時間軸 */
.step-timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 1rem;
    position: relative;
    flex-shrink: 0;
}

.step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--ginm-font-xs);
    color: white;
    font-weight: 600;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 3px solid #fff;
}

.step-icon-success {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
}

.step-icon-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffb347 100%);
    color: #000;
}

.step-icon-danger {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
}

.step-icon-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #95a5a6 100%);
}

.step-line {
    width: 3px;
    height: 100%;
    position: absolute;
    left: 50%;
    top: 32px;
    transform: translateX(-50%);
    z-index: 1;
    border-radius: 2px;
}

.line-success {
    background: linear-gradient(180deg, #198754 0%, #20c997 100%);
}

.line-warning {
    background: linear-gradient(180deg, #ffc107 0%, #ffb347 100%);
}

.line-danger {
    background: linear-gradient(180deg, #dc3545 0%, #e74c3c 100%);
}

.line-muted {
    background: #e9ecef;
}

.workflow-step.step-pending {
    background: rgba(248, 249, 250, 0.5);
    border-left: 4px solid #e9ecef;
    padding-left: calc(1.25rem - 4px);
}

.step-number {
    font-size: var(--ginm-font-xs);
    font-weight: 600;
    color: white;
}

/* 並簽進度條 */
.parallel-progress {
    margin: 0.5rem 0;
}

.progress-text {
    font-size: var(--ginm-font-xs);
    margin-bottom: 0.25rem;
}

/* 簽核者狀態 */
.approver-row.approved {
    background: rgba(25, 135, 84, 0.05);
    border-left: 3px solid #198754;
    padding-left: 12px;
}

.approver-row.rejected {
    background: rgba(220, 53, 69, 0.05);
    border-left: 3px solid #dc3545;
    padding-left: 12px;
}

.approver-row.bypassed {
    background: rgba(255, 193, 7, 0.05);
    border-left: 3px solid #ffc107;
    padding-left: 12px;
}

.approver-row.pending {
    background: rgba(108, 117, 125, 0.05);
    border-left: 3px solid #6c757d;
    padding-left: 12px;
}

.actual-approver {
    margin-top: 2px;
}

.step-badges {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    flex-wrap: wrap;
}

/* 步驟詳細資訊 */
.step-details {
    flex: 1;
    min-width: 0;
    padding-top: 0.25rem;
}

.step-title {
    font-size: var(--ginm-font-base);
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
}

.badge-outline {
    font-size: var(--ginm-font-xs);
    background: transparent;
    color: #6c757d;
    border: 1px solid #dee2e6;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-weight: 500;
}

/* 簽核者清單 */
.approvers-list {
    margin-top: 0.75rem;
    padding: 0.5rem 0;
}

.approver-row {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.approver-row:hover {
    background: #e9ecef;
    transform: translateX(2px);
}

.approver-row:last-child {
    margin-bottom: 0;
}

.approver-status {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: var(--ginm-font-sm);
    flex-shrink: 0;
}

.approver-info {
    flex: 1;
    min-width: 0;
}

.approver-name {
    font-size: var(--ginm-font-sm);
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.approval-time {
    font-size: var(--ginm-font-xs);
    color: #6c757d;
    line-height: 1.2;
}

/* 響應式調整 */
@media (max-width: 991.98px) {
    .right-info-panel {
        position: relative;
        top: auto;
        max-height: none;
        margin-top: 2rem;
    }

    .workflow-step {
        padding: 1rem 0.75rem;
    }

    .step-icon {
        width: 28px;
        height: 28px;
        font-size: var(--ginm-font-xs);
    }

    .step-line {
        top: 28px;
    }

    .approver-row {
        padding: 0.4rem 0.6rem;
    }
}

/* 深色模式修正 */
[data-bs-theme="dark"] .text-muted {
    color: #adb5bd !important;
}

[data-bs-theme="dark"] .border {
    border-color: #444 !important;
}

[data-bs-theme="dark"] .readonly-mode .card:hover {
    box-shadow: 0 0.125rem 0.25rem rgba(255, 255, 255, 0.075) !important;
}

[data-bs-theme="dark"] .workflow-step.active {
    background: rgba(255, 193, 7, 0.15);
}

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

[data-bs-theme="dark"] .connector-line {
    background: #495057;
}

/* from resources/views/approvals/index.blade.php */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.avatar-sm {
    width: 40px;
    height: 40px;
}

.progress {
    border-radius: 10px;
}

.card {
    transition: all 0.3s ease;
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* 深色模式支援 */

[data-bs-theme="dark"] .border-end {
    border-color: #444 !important;
}

[data-bs-theme="dark"] .card-header {
    background-color: transparent !important;
    border-bottom-color: #444 !important;
}

/* from resources/views/approvals/history.blade.php */
.avatar-sm {
    width: 32px;
    height: 32px;
}

.avatar-md {
    width: 48px;
    height: 48px;
}

.avatar-lg {
    width: 56px;
    height: 56px;
}

.avatar-xl {
    width: 80px;
    height: 80px;
}

/* 統計卡片樣式 */
.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: var(--ginm-font-xl);
}

/* from resources/views/approvals/dynamic-workflow.blade.php */
.workflow-step {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.workflow-step.current {
    border-color: #0d6efd;
    background: #e7f3ff;
}

.workflow-step.new {
    border-color: #198754;
    background: #e8f5e9;
}

.workflow-step.moved {
    border-color: #ffc107;
    background: #fff8e1;
}

.workflow-step.replaced {
    border-color: #dc3545;
    background: #ffebee;
    opacity: 0.7;
}

.step-designer {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    min-height: 200px;
}

.modification-type-selector .btn {
    margin-bottom: 10px;
}

.step-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 10px;
}

.preview-timeline {
    position: relative;
}

.preview-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

[data-bs-theme="dark"] .workflow-step {
    background: #1e1e1e;
    border-color: #444;
}

[data-bs-theme="dark"] .workflow-step.current {
    background: #1a2f4a;
    border-color: #0d6efd;
}

[data-bs-theme="dark"] .step-designer {
    background: #2c2c2c;
    border-color: #444;
}

[data-bs-theme="dark"] .step-card {
    background: #1e1e1e;
    border-color: #444;
}

/* from resources/views/profile/edit.blade.php */
/* Dark theme support for profile pages */
[data-bs-theme="dark"] .card {
    background-color: #2c2c2c;
    border-color: #495057;
}

[data-bs-theme="dark"] .card-header {
    border-color: #495057;
}

/* Fix readonly form fields in dark mode */
[data-bs-theme="dark"] .form-control.bg-light,
[data-bs-theme="dark"] .bg-light {
    background-color: #343a40 !important;
    color: #e9ecef !important;
    border-color: #495057;
}

/* Form inputs in dark mode */
[data-bs-theme="dark"] .form-control {
    background-color: #495057;
    border-color: #6c757d;
    color: #e9ecef;
}

[data-bs-theme="dark"] .form-control:focus {
    background-color: #495057;
    border-color: #86b7fe;
    color: #e9ecef;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

[data-bs-theme="dark"] .form-control::placeholder {
    color: #adb5bd;
}

/* Form labels in dark mode */
[data-bs-theme="dark"] .form-label {
    color: #e9ecef;
}

/* Form switches in dark mode */
[data-bs-theme="dark"] .form-check-input {
    background-color: #495057;
    border-color: #6c757d;
}

[data-bs-theme="dark"] .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

[data-bs-theme="dark"] .form-check-label {
    color: #e9ecef;
}

/* Card with border-info in dark mode */
[data-bs-theme="dark"] .card.border-info {
    border-color: #0dcaf0 !important;
}

[data-bs-theme="dark"] .card-body {
    color: #e9ecef;
}

/* Alert styles in dark mode */
[data-bs-theme="dark"] .alert-success {
    background-color: #0f5132;
    border-color: #198754;
    color: #d1e7dd;
}

[data-bs-theme="dark"] .text-muted {
    color: #adb5bd !important;
}

/* Invalid feedback in dark mode */
[data-bs-theme="dark"] .invalid-feedback {
    color: #ea868f;
}

[data-bs-theme="dark"] .form-control.is-invalid {
    border-color: #dc3545;
}

[data-bs-theme="dark"] .form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* from resources/views/faq/index.blade.php */
.faq-category .card-header .btn-link {
    color: var(--bs-body-color);
}

.faq-category .card-header .btn-link:hover {
    color: var(--bs-primary);
}

.faq-item .card {
    transition: all 0.2s ease-in-out;
}

.faq-item .card:hover {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.collapse.show + .card-body {
    border-top: 1px solid var(--bs-border-color);
}

/* 搜尋高亮 */
.highlight {
    background-color: yellow;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 3px;
}

/* 淺色主題 */
[data-bs-theme="light"] .faq-item .card {
    background-color: var(--bs-body-bg);
    border-color: var(--bs-border-color);
}

[data-bs-theme="light"] .faq-question {
    color: var(--bs-body-color) !important;
}

/* 暗色主題支援 */
[data-bs-theme="dark"] .faq-item .card {
    background-color: var(--bs-gray-800) !important;
    border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .faq-question {
    color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .highlight {
    background-color: #ffc107;
    color: #000;
}

/* 統一按鈕樣式 */
.faq-question:hover {
    color: var(--bs-primary) !important;
}

/* from resources/views/form-builder/workflow.blade.php */
.workflow-designer {
    min-height: 400px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
}

.approval-group {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.approval-group:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.approval-group.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

.group-header {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
    border-radius: 8px 8px 0 0;
}

.group-number {
    background: #0d6efd;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
}

.group-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.group-details {
    flex: 1;
}

.group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.group-type-badge {
    font-size: var(--ginm-font-xs);
    padding: 2px 8px;
}

.group-name {
    font-weight: 600;
    color: #2c3e50;
}

.group-meta small {
    color: #6c757d;
}

.group-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.drag-handle {
    cursor: grab;
    color: #adb5bd;
    padding: 5px;
}

.drag-handle:active {
    cursor: grabbing;
}

.approvers-container {
    padding: 15px;
}

.approvers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.approver-item {
    background: #e3f2fd;
    color: #1976d2;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: var(--ginm-font-sm);
    display: flex;
    align-items: center;
    gap: 5px;
}

.parallel-settings {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
}

.properties-panel {
    position: sticky;
    top: 20px;
}

.group-type-btn {
    text-align: left;
}

.empty-designer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #6c757d;
}

.sortable-ghost {
    opacity: 0.4;
}

.sortable-drag {
    transform: rotate(5deg);
}

[data-bs-theme="dark"] .workflow-designer {
    background: #2c2c2c;
    border-color: #444;
}

[data-bs-theme="dark"] .approval-group {
    background: #1e1e1e;
    border-color: #444;
}

[data-bs-theme="dark"] .group-header {
    background: #333;
    border-bottom-color: #444;
}

[data-bs-theme="dark"] .group-name {
    color: #f8f9fa;
}

[data-bs-theme="dark"] .approver-item {
    background: #1976d2;
    color: white;
}

[data-bs-theme="dark"] .parallel-settings {
    background: #333;
}

/* from resources/views/backup/index.blade.php */
.font-monospace {
    font-family: 'Courier New', monospace;
    font-size: var(--ginm-font-sm);
}

#backupsDataTable {
    font-size: var(--ginm-font-sm);
}

.progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

.card {
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
}

.btn-group-sm .btn {
    padding: 0.25rem 0.4rem;
}

/* from resources/views/document-application/form.blade.php */
.workflow-step {
    position: relative;
}

.step-number {
    width: 30px;
    height: 30px;
    background: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: var(--ginm-font-xs);
    flex-shrink: 0;
}

.info-item {
    padding: 0.25rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.info-item:last-child {
    border-bottom: none;
}

.badge-sm {
    font-size: var(--ginm-font-xs);
}

.form-check-group .form-check {
    margin-bottom: 0.5rem;
}

.approver-avatar {
    opacity: 0.7;
}

/* from resources/views/document-application/preview.blade.php */
.workflow-step {
    position: relative;
}

.step-number {
    width: 30px;
    height: 30px;
    background: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: var(--ginm-font-xs);
    flex-shrink: 0;
}

.info-item {
    padding: 0.25rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.info-item:last-child {
    border-bottom: none;
}

.form-check-group .form-check {
    margin-bottom: 0.5rem;
}

/* 預覽樣式 */
.form-control[readonly], .form-select:disabled, .form-check-input:disabled {
    background-color: #f8f9fa;
    opacity: 0.8;
}

.card {
    transition: all 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
}

/* from resources/views/document-application/track.blade.php */
.workflow-steps {
    position: relative;
}

.workflow-step-item {
    position: relative;
}

.workflow-step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 40px;
    bottom: -20px;
    width: 2px;
    background: #dee2e6;
}

.workflow-step-item.current-step::after {
    background: #0d6efd;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    position: relative;
    z-index: 1;
}

.step-circle.pending {
    background: #6c757d;
}

.step-circle.current {
    background: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.step-circle.completed {
    background: #198754;
}

.step-circle.rejected {
    background: #dc3545;
}

.current-step {
    background: rgba(13, 110, 253, 0.05);
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #0d6efd;
}

/* from resources/views/groups/edit.blade.php */
.min-height-100 {
    min-height: 100px;
}

.user-item {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 10px;
    margin-bottom: 8px;
    cursor: move;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #212529;
}

.user-item:hover {
    background-color: #e9ecef;
}

.user-item .order-number {
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--ginm-font-xs);
    font-weight: bold;
}

.user-item .user-info {
    flex-grow: 1;
    margin-left: 10px;
}

.user-item .remove-btn {
    color: #dc3545;
    cursor: pointer;
}

/* 深色主題樣式 */
[data-bs-theme="dark"] .user-item {
    background-color: #2d3748;
    border: 1px solid #4a5568;
    color: #e2e8f0;
}

[data-bs-theme="dark"] .user-item:hover {
    background-color: #4a5568;
}

[data-bs-theme="dark"] .user-item .remove-btn {
    color: #f56565;
}

[data-bs-theme="dark"] #selected-users-list {
    border-color: #4a5568;
}

/* from resources/views/groups/create.blade.php */
.min-height-100 {
    min-height: 100px;
}

.user-item {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 10px;
    margin-bottom: 8px;
    cursor: move;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #212529;
}

.user-item:hover {
    background-color: #e9ecef;
}

.user-item .order-number {
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--ginm-font-xs);
    font-weight: bold;
}

.user-item .user-info {
    flex-grow: 1;
    margin-left: 10px;
}

.user-item .remove-btn {
    color: #dc3545;
    cursor: pointer;
}

/* 深色主題樣式 */
[data-bs-theme="dark"] .user-item {
    background-color: #2d3748;
    border: 1px solid #4a5568;
    color: #e2e8f0;
}

[data-bs-theme="dark"] .user-item:hover {
    background-color: #4a5568;
}

[data-bs-theme="dark"] .user-item .remove-btn {
    color: #f56565;
}

[data-bs-theme="dark"] #selected-users-list {
    border-color: #4a5568;
}

/* from resources/views/queue/waiting.blade.php */
.spinner-grow {
    animation-duration: 1.5s;
}

.progress-bar {
    transition: width 0.6s ease;
}

.card {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 防止頁面滾動 */
body.queue-waiting {
    overflow: hidden;
}

/* from resources/views/auth/student-preregister-success.blade.php */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Modal 樣式優化 */
.modal-content {
    border-radius: 1rem;
    overflow: hidden;
}

/* 背景頁面模糊效果 */
body.modal-open .container {
    filter: blur(5px);
}

/* from resources/views/admin/email-logs/dashboard.blade.php */
.avatar-sm {
    width: 32px;
    height: 32px;
}

.avatar-md {
    width: 48px;
    height: 48px;
}

.avatar-lg {
    width: 56px;
    height: 56px;
}

.avatar-xl {
    width: 80px;
    height: 80px;
}

/* from resources/views/admin/submissions/index.blade.php */
/* 搜尋輸入框樣式 */
.input-group-text {
    border-right: 0;
}

.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* 排序表頭樣式 */
.sort-header {
    color: inherit !important;
    font-size: inherit;
    font-weight: inherit;
}

.sort-header:hover {
    color: #0d6efd !important;
}

/* 卡片樣式 */
.card {
    border: 1px solid #e9ecef;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.04);
}

/* 表格樣式 */
.table th {
    font-size: var(--ginm-font-sm);
    font-weight: 600;
    color: #495057;
}

.users-table .table td {
    padding: 0.75rem 0.5rem;
    font-size: var(--ginm-font-sm);
}

.users-table .table td:first-child {
    padding-left: 1rem;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* 頭像樣式 */
.avatar-sm {
    width: 32px;
    height: 32px;
}

/* Badge 樣式 */
.badge {
    font-size: var(--ginm-font-xs);
    font-weight: 500;
}

/* 載入動畫 */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .table th,
    .table td {
        font-size: var(--ginm-font-xs);
        padding: 0.5rem 0.25rem;
    }

    .avatar-sm {
        width: 28px;
        height: 28px;
    }
}

/* from resources/views/admin/submissions/warning.blade.php */
/* 統計卡片樣式 */
.stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: var(--ginm-font-xl);
}

/* 卡片樣式 */
.card {
    border: 1px solid #e9ecef;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.04);
}

/* 表格樣式 */
.table th {
    font-size: var(--ginm-font-sm);
    font-weight: 600;
    color: #495057;
}


.table td {
    padding: 0.75rem 0.5rem;
    font-size: var(--ginm-font-sm);
    vertical-align: middle;
}

.table td:first-child {
    padding-left: 1rem;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* 頭像樣式 */
.avatar-sm {
    width: 28px;
    height: 28px;
}

/* 警示分析樣式 */
.warning-analysis {
    font-size: var(--ginm-font-sm);
}

.warning-item {
    padding: 2px 0;
    color: #6c757d;
}

.toggle-details {
    font-size: var(--ginm-font-xs);
    text-decoration: none;
}

.toggle-details:hover {
    color: #0d6efd;
}

/* 進度條樣式 */
.progress {
    border-radius: 4px;
}

/* Badge 樣式 */
.badge {
    font-size: var(--ginm-font-xs);
    font-weight: 500;
}

/* 表格背景色 */
.table-danger {
    background-color: rgba(220, 53, 69, 0.05);
}

.table-warning {
    background-color: rgba(255, 193, 7, 0.05);
}

/* 深色模式表格背景色調整 */
[data-bs-theme="dark"] .table-danger {
    background-color: rgba(220, 53, 69, 0.15);
}

[data-bs-theme="dark"] .table-warning {
    background-color: rgba(255, 193, 7, 0.15);
}

/* 深色模式表格文字顏色確保可讀性 - 使用更高優先級選擇器 */
[data-bs-theme="dark"] .table td {
    color: #f8f9fa;
}

/* 危險和警告表格行的所有文字元素 - 更具體的選擇器 */
[data-bs-theme="dark"] .table-danger td,
[data-bs-theme="dark"] .table-danger td *,
[data-bs-theme="dark"] .table-warning td,
[data-bs-theme="dark"] .table-warning td * {
    color: #212529 !important;
}

/* 深色模式下特定元素顏色調整 - 使用深色文字確保對比 */
[data-bs-theme="dark"] .table-danger .text-muted,
[data-bs-theme="dark"] .table-warning .text-muted {
    color: #495057 !important;
}

[data-bs-theme="dark"] .table-danger .fw-semibold,
[data-bs-theme="dark"] .table-warning .fw-semibold {
    color: #212529 !important;
}

[data-bs-theme="dark"] .table-danger .small,
[data-bs-theme="dark"] .table-warning .small {
    color: #495057 !important;
}

/* 確保 badge 和其他元素在警告背景下可見 */
[data-bs-theme="dark"] .table-danger .badge,
[data-bs-theme="dark"] .table-warning .badge {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* 響應式調整 */
@media (max-width: 768px) {
    .table th,
    .table td {
        font-size: var(--ginm-font-xs);
        padding: 0.5rem 0.25rem;
    }

    .avatar-sm {
        width: 24px;
        height: 24px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
    }

    .stat-icon i {
        font-size: var(--ginm-font-lg);
    }
}

/* from resources/views/admin/operation_logs/index.blade.php */
/* 自定義紫色類別 */
.bg-purple {
    background-color: #6f42c1 !important;
}

.text-purple {
    color: #6f42c1 !important;
}

.bg-purple.bg-opacity-20 {
    background-color: rgba(111, 66, 193, 0.2) !important;
}

/* 深色模式下的顏色調整 */
[data-bs-theme="dark"] .text-purple {
    color: #a78bfa !important;
}

[data-bs-theme="dark"] .bg-purple.bg-opacity-20 {
    background-color: rgba(167, 139, 250, 0.2) !important;
}

/* 確保 warning 徽章在深色模式下的可讀性 */
[data-bs-theme="dark"] .bg-warning.text-dark {
    background-color: #ffc107 !important;
    color: #000 !important;
}

/* from resources/views/student/bind/create.blade.php */
.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-item {
    display: flex;
    gap: 1rem;
}

.step-number {
    width: 28px;
    height: 28px;
    background: var(--bs-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--ginm-font-sm);
    font-weight: 600;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    padding-top: 2px;
}

#professorCard {
    transition: all 0.3s ease;
    transform: translateY(-10px);
    opacity: 0;
}

#professorCard.show {
    transform: translateY(0);
    opacity: 1;
}

.quota-info {
    background: var(--bs-info-bg-subtle);
    border: 1px solid var(--bs-info-border-subtle);
    border-left: 4px solid var(--bs-info);
    padding: 0.75rem;
    border-radius: var(--bs-border-radius);
    color: var(--bs-info-text-emphasis);
}

.quota-warning {
    background: var(--bs-warning-bg-subtle);
    border: 1px solid var(--bs-warning-border-subtle);
    border-left: 4px solid var(--bs-warning);
    padding: 0.75rem;
    border-radius: var(--bs-border-radius);
    color: var(--bs-warning-text-emphasis);
}

.quota-danger {
    background: var(--bs-danger-bg-subtle);
    border: 1px solid var(--bs-danger-border-subtle);
    border-left: 4px solid var(--bs-danger);
    padding: 0.75rem;
    border-radius: var(--bs-border-radius);
    color: var(--bs-danger-text-emphasis);
}

.card {
    transition: all 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
}

/* Select2 Professor Options Styling */
.select2-professor-option {
    padding: 0.25rem 0;
}

.select2-professor-option .fw-semibold {
    font-weight: 600;
}

.select2-professor-option .small {
    font-size: var(--ginm-font-sm);
    line-height: 1.2;
}

/* Select2 Bootstrap 5 Theme Adjustments */
.select2-container--bootstrap-5 .select2-selection--single {
    height: calc(2.25rem + 2px);
    padding: 0.375rem 0.75rem;
    display: flex;
    align-items: center;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    line-height: 1.5;
    padding-left: 0;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    align-items: center;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    height: calc(2.25rem);
    display: flex;
    align-items: center;
}

/* Dark mode Select2 styling */
[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection--single {
    background: #1e1e1e;
    border-color: #444;
    color: #f8f9fa;
}

[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    color: #f8f9fa;
}

[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection--single .select2-selection__placeholder {
    color: #adb5bd;
}

[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection--single:focus {
    border-color: #0d6efd;
}

[data-bs-theme="dark"] .select2-dropdown {
    background: #1e1e1e;
    border-color: #444;
}

[data-bs-theme="dark"] .select2-results__option {
    color: #f8f9fa;
    background: #1e1e1e;
}

[data-bs-theme="dark"] .select2-results__option--highlighted {
    background: #0d6efd !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .select2-results__option--disabled {
    color: #6c757d !important;
    background: #1e1e1e !important;
}

[data-bs-theme="dark"] .select2-results__option--disabled.select2-results__option--highlighted {
    background: #495057 !important;
    color: #6c757d !important;
}

[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection--multiple {
    background: #1e1e1e;
    border-color: #444;
    color: #f8f9fa;
}

[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
    background: #343a40;
    border-color: #495057;
    color: #f8f9fa;
}

[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove {
    color: #adb5bd;
}

[data-bs-theme="dark"] .select2-search--dropdown .select2-search__field {
    background: #1e1e1e;
    border-color: #444;
    color: #f8f9fa;
}

/* Fallback for non-bootstrap-5 select2 themes */
[data-bs-theme="dark"] .select2-container .select2-selection {
    background: #1e1e1e;
    border-color: #444;
    color: #f8f9fa;
}

[data-bs-theme="dark"] .select2-container .select2-selection__rendered {
    color: #f8f9fa;
}

[data-bs-theme="dark"] .select2-container .select2-selection__placeholder {
    color: #adb5bd;
}

[data-bs-theme="dark"] .select2-results__option .text-muted {
    color: #adb5bd !important;
}

[data-bs-theme="dark"] .select2-results__option .text-danger {
    color: #dc3545 !important;
}

[data-bs-theme="dark"] .select2-professor-option .small {
    color: #adb5bd;
}

[data-bs-theme="dark"] .select2-professor-option .fw-semibold {
    color: #f8f9fa;
}

/* 確保 disabled 教授選項在 hover 時有足夠的對比度 */
[data-bs-theme="dark"] .select2-results__option--disabled .select2-professor-option .fw-semibold {
    color: #6c757d !important;
}

[data-bs-theme="dark"] .select2-results__option--disabled .select2-professor-option .text-danger {
    color: #dc3545 !important;
}

[data-bs-theme="dark"] .select2-results__option--disabled.select2-results__option--highlighted .select2-professor-option .fw-semibold {
    color: #adb5bd !important;
}

[data-bs-theme="dark"] .select2-results__option--disabled.select2-results__option--highlighted .select2-professor-option .text-muted {
    color: #6c757d !important;
}

/* Step Indicator Styles */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 80px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #e9ecef;
    color: #6c757d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--ginm-font-base);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step-title {
    font-size: var(--ginm-font-sm);
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #0d6efd;
    color: white;
}

.step.active .step-title {
    color: #0d6efd;
    font-weight: 600;
}

.step.completed .step-number {
    background: #28a745;
    color: white;
}

.step.completed .step-title {
    color: #28a745;
}

.step-divider {
    flex: 1;
    height: 2px;
    background: #e9ecef;
    margin: 0 1rem;
    min-width: 20px;
    max-width: 60px;
    transition: all 0.3s ease;
}

.step-divider.completed {
    background: #28a745;
}

/* Responsive step indicator */
@media (max-width: 768px) {
    .step-indicator {
        flex-direction: column;
        gap: 0.5rem;
    }

    .step-divider {
        width: 2px;
        height: 20px;
        margin: 0;
    }

    .step {
        flex-direction: row;
        gap: 0.75rem;
    }

    .step-number {
        margin-bottom: 0;
    }
}

/* Dark mode step indicator */
[data-bs-theme="dark"] .step-number {
    background: #495057;
    color: #adb5bd;
}

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

[data-bs-theme="dark"] .step.active .step-number {
    background: #6ea8fe;
}

[data-bs-theme="dark"] .step.active .step-title {
    color: #6ea8fe;
}

[data-bs-theme="dark"] .step-divider {
    background: #495057;
}

/* Process Step Styles */
.process-number {
    width: 28px;
    height: 28px;
    background: #e9ecef;
    color: #6c757d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--ginm-font-sm);
    font-weight: 600;
    flex-shrink: 0;
}

[data-bs-theme="dark"] .process-number {
    background: #495057;
    color: #adb5bd;
}

/* 增強checkbox可見性 */
.form-check-input {
    margin-top: 0.25rem;
    vertical-align: top;
}

.form-check-input:focus {
    border-color: #0d6efd;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-check-label {
    line-height: 1.5;
}

/* Dark mode checkbox樣式 */
[data-bs-theme="dark"] .bg-light {
    background-color: #2b3035 !important;
    color: #f8f9fa;
}

[data-bs-theme="dark"] .border {
    border-color: #444 !important;
}

[data-bs-theme="dark"] .form-check-input {
    background-color: #1e1e1e;
    border-color: #6c757d;
}

[data-bs-theme="dark"] .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

[data-bs-theme="dark"] .form-check-input:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* from resources/views/student/bind/track.blade.php */
.stat-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--bs-border-color-translucent);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-badge .badge {
    font-weight: 500;
}

.time-info {
    line-height: 1.4;
}

.avatar-circle {
    flex-shrink: 0;
}

.success-indicator {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.status-explain {
    padding: 1rem 0;
    border-bottom: 1px solid var(--bs-border-color-translucent);
}

.status-explain:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.empty-state {
    padding: 2rem 0;
}

.card {
    transition: all 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
}

/* 響應式調整 */
@media (max-width: 768px) {
    .row.align-items-center > div {
        margin-bottom: 1rem;
    }

    .row.align-items-center > div:last-child {
        margin-bottom: 0;
    }

    .col-md-3, .col-md-4 {
        text-align: center;
    }
}

/* Message box styling */
.student-message-box {
    background-color: var(--bs-light);
    border: 1px solid var(--bs-border-color);
}

.professor-response-box {
    background-color: var(--bs-light);
}

.modal-info-box {
    background-color: var(--bs-light);
}

/* Dark mode support */
[data-bs-theme="dark"] .student-message-box {
    background-color: var(--bs-dark);
    border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .professor-response-box {
    background-color: var(--bs-dark);
}

[data-bs-theme="dark"] .modal-info-box {
    background-color: var(--bs-dark);
}

/* from resources/views/student/submissions/show.blade.php */
.breadcrumb {
    background-color: transparent;
    padding: 0.5rem 0;
    margin-bottom: 0;
    font-size: var(--ginm-font-sm);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #6c757d;
}

.breadcrumb-item a:hover {
    color: var(--bs-primary);
}

.progress {
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.3s ease;
}

.card {
    transition: all 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
}

/* from resources/views/student/unbinding/status.blade.php */
.avatar-sm {
    width: 32px;
    height: 32px;
}

.avatar-md {
    width: 48px;
    height: 48px;
}

.avatar-lg {
    width: 56px;
    height: 56px;
}

.avatar-xl {
    width: 80px;
    height: 80px;
}

/* from resources/views/student/unbinding/show.blade.php */
.avatar-sm {
    width: 32px;
    height: 32px;
}

.avatar-md {
    width: 48px;
    height: 48px;
}

.avatar-lg {
    width: 56px;
    height: 56px;
}

.avatar-xl {
    width: 80px;
    height: 80px;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
}

.timeline-marker {
    position: absolute;
    left: -37px;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.timeline-content h6 {
    color: #495057;
}

.timeline-item.completed .timeline-content h6 {
    color: #198754;
}

.timeline-item.rejected .timeline-content h6 {
    color: #dc3545;
}

.timeline-item.pending .timeline-content h6 {
    color: #ffc107;
}

/* from resources/views/professor/students/index.blade.php */
.avatar-sm {
    width: 32px;
    height: 32px;
}

.avatar-md {
    width: 48px;
    height: 48px;
}

.avatar-lg {
    width: 56px;
    height: 56px;
}

.avatar-xl {
    width: 80px;
    height: 80px;
}


/* 深色模式下的表格警告行樣式修正 - 使用深色字體 */
[data-bs-theme="dark"] .table-warning {
    background-color: rgba(255, 193, 7, 0.8) !important;
    color: #000000 !important;
}

[data-bs-theme="dark"] .table-warning .text-muted {
    color: #495057 !important;
    opacity: 1;
}

[data-bs-theme="dark"] .table-warning .small.text-muted {
    color: #6c757d !important;
}

[data-bs-theme="dark"] .table-warning .text-warning {
    color: #856404 !important;
    font-weight: 600;
}

/* 確保在深色模式下警告背景行的文字為深色 */
[data-bs-theme="dark"] .table-warning .fw-bold {
    color: #000000 !important;
}

[data-bs-theme="dark"] .table-warning .badge {
    background-color: #495057 !important;
    color: #ffffff !important;
    border: none;
}

[data-bs-theme="dark"] .table-warning .small {
    color: #495057 !important;
}

[data-bs-theme="dark"] .table-warning td {
    color: #000000 !important;
}

[data-bs-theme="dark"] .table-warning h6 {
    color: #000000 !important;
}

/* from resources/views/office/binding/index.blade.php */
/* Avatar sizes */
.avatar-sm {
    width: 32px;
    height: 32px;
}

.avatar-md {
    width: 48px;
    height: 48px;
}

.avatar-lg {
    width: 56px;
    height: 56px;
}

.avatar-xl {
    width: 80px;
    height: 80px;
}

/* Dark theme support */
[data-bs-theme="dark"] .card {
    background-color: #2c2c2c;
    border-color: #495057;
}

[data-bs-theme="dark"] .table {
    color: #e9ecef;
}

[data-bs-theme="dark"] .table-light {
    background-color: #495057;
    color: #e9ecef;
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background-color: #495057;
    border-color: #6c757d;
    color: #e9ecef;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background-color: #495057;
    border-color: #86b7fe;
    color: #e9ecef;
}

[data-bs-theme="dark"] .modal-content {
    background-color: #2c2c2c;
    border-color: #495057;
}

[data-bs-theme="dark"] .modal-header {
    border-color: #495057;
}

[data-bs-theme="dark"] .modal-footer {
    border-color: #495057;
}

[data-bs-theme="dark"] .alert-success {
    background-color: #0f5132;
    border-color: #198754;
    color: #d1e7dd;
}

[data-bs-theme="dark"] .alert-danger {
    background-color: #2c0b0e;
    border-color: #dc3545;
    color: #f8d7da;
}

/* from resources/views/office/binding/import-preview.blade.php */
.professor-section:not(:last-child) {
    margin-bottom: 0;
}

.professor-section .table th {
    border-top: none;
}

.badge.bg-purple {
    background-color: #6f42c1 !important;
}

.table-responsive {
    border-radius: 0;
}

.font-monospace {
    font-family: 'Courier New', Courier, monospace;
    font-size: var(--ginm-font-sm);
}

.student-checkbox:indeterminate {
    background-color: #6c757d;
    border-color: #6c757d;
}

/* 深色模式適配 */
[data-bs-theme="dark"] .bg-light {
    background-color: #2c2c2c !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .table-secondary {
    background-color: #3c3c3c !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .table-secondary th {
    color: #ffffff !important;
    border-color: #495057 !important;
}

[data-bs-theme="dark"] .table-warning {
    background-color: rgba(255, 193, 7, 0.8) !important;
    color: #000000 !important;
}

[data-bs-theme="dark"] .table-info {
    background-color: rgba(13, 202, 240, 0.8) !important;
    color: #000000 !important;
}

[data-bs-theme="dark"] .table td,
[data-bs-theme="dark"] .table th {
    color: #ffffff !important;
    border-color: #495057 !important;
}

[data-bs-theme="dark"] .table-warning td,
[data-bs-theme="dark"] .table-warning .font-monospace,
[data-bs-theme="dark"] .table-warning .text-muted {
    color: #000000 !important;
}

[data-bs-theme="dark"] .table-info td,
[data-bs-theme="dark"] .table-info .font-monospace,
[data-bs-theme="dark"] .table-info .text-muted {
    color: #000000 !important;
}

[data-bs-theme="dark"] .text-muted {
    color: #adb5bd !important;
}

[data-bs-theme="dark"] .text-primary {
    color: #6ea8fe !important;
}

[data-bs-theme="dark"] .font-monospace {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .badge.bg-secondary {
    background-color: #6c757d !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .badge.bg-info {
    background-color: #0dcaf0 !important;
    color: #000000 !important;
}

[data-bs-theme="dark"] .badge.bg-success {
    background-color: #198754 !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000000 !important;
}

/* Progress Indicator Styles */
.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 80px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid #dee2e6;
    background: #f8f9fa;
    color: #6c757d;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.step.completed .step-number {
    background: #198754;
    border-color: #198754;
    color: white;
}

.step-label {
    font-size: var(--ginm-font-sm);
    font-weight: 500;
    color: #6c757d;
}

.step.active .step-label {
    color: #0d6efd;
    font-weight: 600;
}

.step.completed .step-label {
    color: #198754;
}

.step-line {
    width: 60px;
    height: 2px;
    background: #dee2e6;
    margin: 0 0.5rem;
}

.step-line.completed {
    background: #198754;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .progress-indicator {
        gap: 0.5rem;
    }

    .step {
        min-width: 60px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: var(--ginm-font-sm);
    }

    .step-label {
        font-size: var(--ginm-font-xs);
    }

    .step-line {
        width: 40px;
    }
}

/* 深色模式適配 */
[data-bs-theme="dark"] .step-number {
    background: #2c2c2c;
    border-color: #495057;
    color: #adb5bd;
}

[data-bs-theme="dark"] .step-label {
    color: #adb5bd;
}

/* from resources/views/office/binding/show.blade.php */
/* Timeline styles */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-marker {
    position: absolute;
    left: -23px;
    top: 5px;
    width: 12px;
    height: 12px;
    border: 2px solid #0d6efd;
    border-radius: 50%;
    background: white;
}

[data-bs-theme="dark"] .timeline-marker {
    background: #1e1e1e;
    border-color: #6ea8fe;
}

.timeline-content {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #0d6efd;
}

/* Dark theme support */
[data-bs-theme="dark"] .card {
    background-color: #2c2c2c;
    border-color: #495057;
}

[data-bs-theme="dark"] .table {
    color: #e9ecef;
}

[data-bs-theme="dark"] .bg-light {
    background-color: #343a40 !important;
    color: #e9ecef;
}

[data-bs-theme="dark"] .timeline-content {
    background-color: #343a40;
    border-left-color: #0d6efd;
    color: #e9ecef;
}

[data-bs-theme="dark"] .timeline-marker {
    background-color: #2c2c2c;
    border-color: #0d6efd;
}

[data-bs-theme="dark"] .timeline::before {
    background-color: #495057;
}

[data-bs-theme="dark"] .list-group-item {
    background-color: #2c2c2c;
    border-color: #495057;
    color: #e9ecef;
}

[data-bs-theme="dark"] .form-control {
    background-color: #495057;
    border-color: #6c757d;
    color: #e9ecef;
}

[data-bs-theme="dark"] .modal-content {
    background-color: #2c2c2c;
    border-color: #495057;
}

[data-bs-theme="dark"] .modal-header {
    border-color: #495057;
}

[data-bs-theme="dark"] .modal-footer {
    border-color: #495057;
}

[data-bs-theme="dark"] .alert-success {
    background-color: #0f5132;
    border-color: #198754;
    color: #d1e7dd;
}

[data-bs-theme="dark"] .alert-danger {
    background-color: #2c0b0e;
    border-color: #dc3545;
    color: #f8d7da;
}

/* from resources/views/office/binding/import.blade.php */
.bg-light-hover {
    background-color: #e9ecef !important;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .bg-light-hover {
    background-color: #495057 !important;
}

#drop-area {
    border: 2px dashed #dee2e6;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

#drop-area:hover {
    border-color: #0d6efd;
}

[data-bs-theme="dark"] #drop-area {
    border-color: #444;
}

[data-bs-theme="dark"] #drop-area:hover {
    border-color: #0d6efd;
}

.file-upload-wrapper {
    position: relative;
}

.card {
    transition: all 0.3s ease;
}

.card-header {
    border-bottom: none;
}

/* Pulse animation for the upload icon */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

#drop-area:hover .fa-file-excel {
    animation: pulse 1.5s infinite;
}

/* Progress Indicator Styles */
.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 80px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid #dee2e6;
    background: #f8f9fa;
    color: #6c757d;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.step.completed .step-number {
    background: #198754;
    border-color: #198754;
    color: white;
}

.step-label {
    font-size: var(--ginm-font-sm);
    font-weight: 500;
    color: #6c757d;
}

.step.active .step-label {
    color: #0d6efd;
    font-weight: 600;
}

.step.completed .step-label {
    color: #198754;
}

.step-line {
    width: 60px;
    height: 2px;
    background: #dee2e6;
    margin: 0 0.5rem;
}

.step-line.completed {
    background: #198754;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .progress-indicator {
        gap: 0.5rem;
    }

    .step {
        min-width: 60px;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: var(--ginm-font-sm);
    }

    .step-label {
        font-size: var(--ginm-font-xs);
    }

    .step-line {
        width: 40px;
    }
}

/* 深色模式適配 */
[data-bs-theme="dark"] .step-number {
    background: #2c2c2c;
    border-color: #495057;
    color: #adb5bd;
}

[data-bs-theme="dark"] .step-label {
    color: #adb5bd;
}

[data-bs-theme="dark"] .step-line {
    background: #495057;
}

[data-bs-theme="dark"] .alert-info {
    background-color: rgba(13, 202, 240, 0.1) !important;
    border-color: rgba(13, 202, 240, 0.3) !important;
    color: #ffffff !important;
}

[data-bs-theme="dark"] .alert-info .alert-heading {
    color: #0dcaf0 !important;
}

[data-bs-theme="dark"] .alert-info ul li {
    color: #ffffff !important;
}

[data-bs-theme="dark"] .alert-info a {
    color: #6ea8fe !important;
}

[data-bs-theme="dark"] .text-primary {
    color: #6ea8fe !important;
}

/* from resources/views/office/users/index.blade.php */
/* 統計卡片樣式 */
.stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: var(--ginm-font-xl);
}

/* 搜尋輸入框樣式 */
.input-group-text {
    border-right: 0;
}

.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

/* 排序表頭樣式 */
.sort-header {
    color: inherit !important;
    font-size: var(--ginm-font-sm);
}

.sort-header:hover {
    color: #0d6efd !important;
}

/* 卡片樣式 */
.card {
    border: 1px solid #e9ecef;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.04);
}

/* 表格樣式 */
.table th {
    font-size: var(--ginm-font-sm);
    font-weight: 600;
    color: #495057;
}

.users-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: #f8f9fa;
    font-size: var(--ginm-font-sm);
    font-weight: 600;
}

.users-table thead th .sort-header {
    font-size: inherit;
    font-weight: inherit;
}

.table td {
    padding: 0.75rem 0.5rem;
    font-size: var(--ginm-font-sm);
}

.table td:first-child {
    padding-left: 1rem;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.users-table tbody tr.is-selected {
    background-color: rgba(13, 110, 253, 0.08);
}

.users-table tbody tr.is-disabled {
    opacity: 0.75;
}

.users-table .user-email,
.users-table .user-admission {
    display: inline-block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.users-table .user-name {
    font-size: var(--ginm-font-sm);
}

.users-table .user-meta {
    font-size: var(--ginm-font-xs);
}

.action-col {
    min-width: 160px;
}

.row-actions {
    opacity: 0.85;
    transition: opacity 0.15s ease-in-out;
}

.table-hover tbody tr:hover .row-actions {
    opacity: 1;
}

.action-tooltip {
    display: inline-flex;
}

.system-notes-box {
    border: 1px solid #e9ecef;
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 0.5rem;
    max-height: 320px;
    overflow: auto;
    white-space: pre-wrap;
    font-size: var(--ginm-font-sm);
    color: #495057;
}

/* 頭像樣式 */
.avatar-sm {
    width: 32px;
    height: 32px;
}

/* Badge 樣式 */
.badge {
    font-size: var(--ginm-font-xs);
    font-weight: 500;
}

/* 分頁樣式 */
.pagination .page-link {
    border-radius: 0.375rem;
    margin: 0 0.125rem;
    padding: 0.375rem 0.75rem;
    font-size: var(--ginm-font-sm);
}

/* 載入動畫 */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .table th,
    .table td {
        font-size: var(--ginm-font-xs);
        padding: 0.5rem 0.25rem;
    }

    .avatar-sm {
        width: 28px;
        height: 28px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
    }

    .stat-icon i {
        font-size: var(--ginm-font-lg);
    }

    .user-email,
    .user-admission {
        max-width: 140px;
    }
}

/* from resources/views/office/users/create.blade.php */
.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.card {
    transition: all 0.2s ease-in-out;
}

.alert {
    border-left: 4px solid;
}

.alert-success {
    border-left-color: #198754;
}

.alert-info {
    border-left-color: #0dcaf0;
}

.form-label i {
    width: 16px;
    text-align: center;
}

.btn {
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* from resources/views/office/users/userInfo.blade.php */
/* 統一字體大小和風格 */
.user-info-page .info-item {
    font-size: var(--ginm-font-base);
    line-height: 1.5;
}

.user-info-page .info-item strong {
    color: #495057;
    font-weight: 600;
}

/* 卡片樣式 */
.user-info-page .card {
    border: 1px solid #dee2e6;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.user-info-page .card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* 表格樣式 */
.user-info-page .table th {
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
}

.user-info-page .table td {
    vertical-align: middle;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .user-info-page .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .user-info-page .d-flex.gap-2 {
        flex-direction: column;
    }

    .user-info-page .d-flex.gap-2 .btn {
        margin-bottom: 0.5rem;
    }
}

/* 動畫效果 */
.user-info-page .card {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {

.user-info-page from {
    opacity: 0;
    transform: translateY(20px);
}

.user-info-page to {
    opacity: 1;
    transform: translateY(0);
}

}

/* from resources/views/office/users/import.blade.php */
.bg-light-hover {
    background-color: #e9ecef !important;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .bg-light-hover {
    background-color: #495057 !important;
}

#drop-area {
    border: 2px dashed #dee2e6;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

#drop-area:hover {
    border-color: #0d6efd;
}

[data-bs-theme="dark"] #drop-area {
    border-color: #444;
}

[data-bs-theme="dark"] #drop-area:hover {
    border-color: #0d6efd;
}

.file-upload-wrapper {
    position: relative;
}

.card {
    transition: all 0.3s ease;
}

.card-header {
    border-bottom: none;
}

/* Pulse animation for the upload icon */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

#drop-area:hover .fa-file-excel {
    animation: pulse 1.5s infinite;
}

/* from resources/views/office/students/show.blade.php */
/* 統一字體大小和風格 */
.office-student-show .info-item {
    font-size: var(--ginm-font-base);
    line-height: 1.5;
}

.office-student-show .info-item strong {
    color: #495057;
    font-weight: 600;
}

/* 背景色支援深色模式 */
.office-student-show .bg-light-success {
    background-color: rgba(25, 135, 84, 0.1);
    border-color: rgba(25, 135, 84, 0.2);
}

.office-student-show .bg-light-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.2);
}

/* 深色模式適配 */
@media (prefers-color-scheme: dark) {
    .office-student-show .bg-light-success {
        background-color: rgba(25, 135, 84, 0.2);
        border-color: rgba(25, 135, 84, 0.3);
    }

    .office-student-show .bg-light-danger {
        background-color: rgba(220, 53, 69, 0.2);
        border-color: rgba(220, 53, 69, 0.3);
    }
}

/* Bootstrap 深色模式支援 */
.office-student-show [data-bs-theme="dark"] .bg-light-success {
    background-color: rgba(25, 135, 84, 0.2);
    border-color: rgba(25, 135, 84, 0.3);
}

.office-student-show [data-bs-theme="dark"] .bg-light-danger {
    background-color: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.3);
}

/* 卡片陰影效果 */
.office-student-show .card {
    border: 1px solid var(--bs-border-color-translucent);
    transition: all 0.2s ease;
}

.office-student-show .card:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

/* 資訊組件統一樣式 */
.office-student-show .info-group {
    margin-bottom: 0.75rem;
}

.office-student-show .info-label {
    display: block;
    font-size: var(--ginm-font-xs);
    font-weight: 600;
    color: var(--bs-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.office-student-show .info-value {
    font-size: var(--ginm-font-sm);
    font-weight: 500;
    color: var(--bs-body-color);
    line-height: 1.4;
}

/* 頭像圓圈統一 */
.office-student-show .avatar-circle {
    flex-shrink: 0;
}

/* 狀態指示器 */
.office-student-show .status-indicators .status-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.office-student-show .status-indicators .status-item:last-child {
    margin-bottom: 0;
}

/* 表格優化 */
.office-student-show .table {
    --bs-table-bg: transparent;
}

.office-student-show .table thead th {
    border-bottom: 2px solid var(--bs-border-color);
    font-size: var(--ginm-font-xs);
    padding: 0.75rem;
}

.office-student-show .table tbody td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--bs-border-color-translucent);
}

.office-student-show .table-hover tbody tr:hover {
    background-color: var(--bs-secondary-bg);
}

/* 徽章統一樣式 */
.office-student-show .badge {
    font-size: var(--ginm-font-xs);
    font-weight: 500;
    padding: 0.375rem 0.75rem;
}

/* 進度條 */
.office-student-show .progress {
    background-color: var(--bs-secondary-bg);
    border-radius: 0.5rem;
    overflow: hidden;
}

.office-student-show .progress-bar {
    border-radius: 0.5rem;
    transition: width 0.6s ease;
}

/* 考試結果項目 */
.office-student-show .exam-result-item {
    transition: all 0.2s ease;
}

.office-student-show .exam-result-item:hover {
    transform: translateY(-1px);
}

/* 系統備註容器 */
.office-student-show .system-notes-container .note-item {
    transition: all 0.2s ease;
}

.office-student-show .system-notes-container .note-item:hover {
    transform: translateX(2px);
}

/* 表單控件 */
.office-student-show .form-control {
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.office-student-show .form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* 按鈕統一 */
.office-student-show .student-detail-content .btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.office-student-show .student-detail-content .btn:hover {
    transform: translateY(-1px);
}

/* 教授資訊連結樣式 */
.office-student-show .professor-link {
    transition: all 0.2s ease;
    position: relative;
}

.office-student-show .professor-link:hover {
    color: var(--bs-primary) !important;
    text-shadow: 0 0 8px rgba(var(--bs-primary-rgb), 0.3);
}

.office-student-show .professor-link:hover .fa-external-link-alt {
    transform: translate(2px, -2px);
}

/* 響應式優化 */
@media (max-width: 768px) {
    .office-student-show .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .office-student-show .card-body {
        padding: 1rem;
    }

    .office-student-show .info-group {
        margin-bottom: 1rem;
    }

    .office-student-show .status-indicators {
        margin-top: 1rem;
    }

    /* 確保卡片內容不會溢出 */
    .office-student-show .card {
        overflow: hidden;
    }

    /* 響應式徽章 */
    .office-student-show .badge {
        word-break: break-word;
        white-space: normal;
    }

    /* 手機版標題調整 */
    .office-student-show h3 {
        font-size: var(--ginm-font-xl);
    }

    /* 手機版按鈕調整 */
    .office-student-show .btn-sm {
        font-size: var(--ginm-font-xs);
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width: 576px) {
    .office-student-show .card-body {
        padding: 0.75rem;
    }

    .office-student-show h3 {
        font-size: var(--ginm-font-lg);
    }

    .office-student-show .badge {
        font-size: var(--ginm-font-xs) !important;
    }
}

/* 動畫效果 */
.office-student-show .card {
    opacity: 0;
    animation: officeStudentFadeInUp 0.5s ease forwards;
}

.office-student-show .card:nth-child(1) {
    animation-delay: 0.1s;
}

.office-student-show .card:nth-child(2) {
    animation-delay: 0.2s;
}

.office-student-show .card:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes officeStudentFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal 優化 */
.office-student-show .modal-content {
    border-radius: 1rem;
    overflow: hidden;
}

.office-student-show .modal-header {
    padding: 1.5rem;
}

.office-student-show .modal-body {
    padding: 1.5rem;
}

.office-student-show .modal-footer {
    padding: 1.5rem;
}

/* from resources/views/office/unbinding/index.blade.php */
.avatar-sm {
    width: 32px;
    height: 32px;
}

.avatar-md {
    width: 48px;
    height: 48px;
}

.avatar-lg {
    width: 56px;
    height: 56px;
}

.avatar-xl {
    width: 80px;
    height: 80px;
}

/* from resources/views/office/admission-type/index.blade.php */
/* Avatar sizes */
.avatar-sm {
    width: 32px;
    height: 32px;
}

.avatar-md {
    width: 48px;
    height: 48px;
}

.avatar-lg {
    width: 56px;
    height: 56px;
}

.avatar-xl {
    width: 80px;
    height: 80px;
}

/* 確保分頁元素大小適中 */
.pagination-sm .page-link {
    padding: 0.375rem 0.75rem;
    font-size: var(--ginm-font-sm);
    border-radius: 0.375rem;
}

.pagination-sm .page-item {
    margin: 0 0.125rem;
}

/* 防止圖示過大 */
.pagination .fas {
    font-size: var(--ginm-font-xs);
}

/* 確保分頁容器不會溢出 */
.pagination {
    flex-wrap: wrap;
    margin-bottom: 0;
}

/* 小螢幕適配 */
@media (max-width: 768px) {
    .pagination-sm .page-link {
        padding: 0.25rem 0.5rem;
        font-size: var(--ginm-font-xs);
    }
}

/* from resources/views/office/professors/edit.blade.php */
.avatar-circle {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
}

.card {
    transition: all 0.2s ease-in-out;
}

.btn {
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.alert {
    border-left: 4px solid;
}

.alert-success {
    border-left-color: #198754;
}

/* from resources/views/office/professors/show.blade.php */
/* 資訊組件統一樣式 */
.office-professor-show .info-group {
    margin-bottom: 0.75rem;
}

.office-professor-show {
    font-size: var(--ginm-font-sm);
}

.office-professor-show .info-label {
    display: block;
    font-size: var(--ginm-font-xs);
    font-weight: 600;
    color: var(--bs-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.office-professor-show .info-value {
    font-size: inherit;
    font-weight: 500;
    color: var(--bs-body-color);
    line-height: 1.4;
}

/* 卡片陰影效果 */
.office-professor-show .card {
    border: 1px solid var(--bs-border-color-translucent);
    transition: all 0.2s ease;
}

.office-professor-show .card:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

/* 按鈕統一 */
.office-professor-show .btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.office-professor-show .btn:hover {
    transform: translateY(-1px);
}

/* 頭像圓圈 */
.office-professor-show .avatar-circle {
    flex-shrink: 0;
}

/* 響應式優化 */
@media (max-width: 768px) {
    .office-professor-show .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .office-professor-show .card-body {
        padding: 1.5rem;
    }

    .office-professor-show .info-group {
        margin-bottom: 1rem;
    }

    .office-professor-show .avatar-circle {
        width: 60px !important;
        height: 60px !important;
    }
}

/* from resources/views/office/professors/student_stats.blade.php */
.summary-value {
    font-size: var(--ginm-font-lg);
    line-height: 1.2;
}

.summary-subvalue {
    font-size: var(--ginm-font-sm);
}

.stats-table th {
    font-size: var(--ginm-font-sm);
}

.professor-avatar {
    width: 40px;
    height: 40px;
    font-size: var(--ginm-font-base);
}

.professor-name {
    font-size: var(--ginm-font-sm);
}

.professor-email {
    font-size: var(--ginm-font-xs);
}

.professor-title {
    font-size: var(--ginm-font-xs);
}

.stat-number {
    font-size: var(--ginm-font-lg);
    line-height: 1.1;
}

.stat-badge {
    font-size: var(--ginm-font-sm);
    padding: 0.2rem 0.55rem;
}

.stat-subtext {
    font-size: var(--ginm-font-xs);
}

.utilization-value {
    font-size: var(--ginm-font-sm);
}

@media (max-width: 768px) {
    .summary-value,
    .stat-number {
        font-size: var(--ginm-font-sm);
    }

    .professor-avatar {
        width: 36px;
        height: 36px;
        font-size: var(--ginm-font-sm);
    }
}

/* from resources/views/office/professor-binding-warning/index.blade.php */
.avatar-sm {
    width: 32px;
    height: 32px;
}

.avatar-md {
    width: 48px;
    height: 48px;
}

.avatar-lg {
    width: 56px;
    height: 56px;
}

.avatar-xl {
    width: 80px;
    height: 80px;
}

/* from resources/views/office/professor-binding-warning/all.blade.php */
.avatar-sm {
    width: 32px;
    height: 32px;
}

.avatar-md {
    width: 48px;
    height: 48px;
}

.avatar-lg {
    width: 56px;
    height: 56px;
}

.avatar-xl {
    width: 80px;
    height: 80px;
}

/* from resources/views/office/professors/partials/domestic_recent.blade.php */
.professor-item {
    transition: all 0.2s ease;
    cursor: pointer;
}

.professor-item:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.professor-item.active {
    background-color: rgba(0, 123, 255, 0.1);
    border-left: 4px solid #0d6efd;
}

.badge-sm {
    font-size: var(--ginm-font-xs);
    padding: 0.25rem 0.4rem;
}

.cursor-pointer {
    cursor: pointer;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

code.text-primary {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd !important;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.sticky-top {
    position: sticky;
    top: 20px;
    z-index: 1020;
}

.professor-list::-webkit-scrollbar {
    width: 6px;
}

.professor-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.professor-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.professor-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.loading-spinner {
    display: none;
}

@media (max-width: 768px) {
    .sticky-top {
        position: static;
    }

    .professor-list {
        max-height: 300px;
    }
}

/* 排序選擇框樣式 */
#sortOption {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    transition: all 0.2s ease;
}

#sortOption:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* 深色模式下的排序選擇框 */
[data-bs-theme="dark"] #sortOption {
    background-color: #2c2c2c;
    border-color: #444;
    color: #f8f9fa;
}

[data-bs-theme="dark"] #sortOption:focus {
    background-color: #2c2c2c;
    border-color: #0d6efd;
    color: #f8f9fa;
}

/* Dark mode table styling improvements */
[data-bs-theme="dark"] .table thead th {
    background-color: var(--bs-dark);
    border-color: var(--bs-border-color);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .table tbody tr.opacity-50 {
    opacity: 0.5;
}

/* Improve card styling in dark mode */
[data-bs-theme="dark"] .card.border-0 {
    background-color: var(--bs-dark);
    border: 1px solid var(--bs-border-color) !important;
}


/* ===== Extracted inline styles (static) ===== */
.u-inline-36be4829 {
    background: rgba(13, 110, 253, 0.1);
}

.u-inline-c40e6d30 {
    left: 280px;
    right: 320px;
    min-width: 240px;
}

.u-inline-6814f078 {
    padding-left: 2.5rem;
    border-radius: 20px;
}

.u-inline-abf37de3 {
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
}

.u-inline-a8308ff6 {
    min-width: 320px;
    border-radius: 12px;
    border: none;
}

.u-inline-8bb82a8a {
    max-height: 300px;
    overflow-y: auto;
}

.u-inline-b9d3aadf {
    z-index: 1100;
}

.u-inline-63dc1884 {
    border: 1px solid #e3f2fd;
}

.u-inline-57fe9e08 {
    border: 1px solid #fff3e0;
}

.u-inline-b20ad8d4 {
    height: 10px;
}

.u-inline-c79126ee {
    height: 300px;
    position: relative;
}

.u-inline-1260e029 {
    color: blue;
    font-weight: bold;
}

.u-inline-316496eb {
    background-color: red;
    color: white;
    font-weight: bold;
}

.u-inline-a392a2bd {
    max-height: 200px;
    overflow-y: auto;
}

.u-inline-80e449eb {
    padding: 0.5rem 1.5rem;
    font-size: var(--ginm-font-sm);
    line-height: 1.2;
}

.u-inline-ab209c9b {
    font-size: var(--ginm-font-sm);
}

.u-inline-0ace534b {
    background-color: deeppink;
    color: white;
}

.u-inline-ad1e8ee5 {
    white-space: pre-line;
}

.u-inline-945916fe {
    white-space: pre-line;
    word-break: break-word;
}

.u-inline-ff00e63b {
    max-width: 200px;
    height: auto;
    border: 1px solid #ddd;
    cursor: pointer;
}

.u-inline-1e1b4c46 {
    max-height: 600px;
    overflow-y: auto;
}

.u-inline-3da32d5f {
    width: 40px;
    height: 40px;
    min-width: 40px;
}

.u-inline-37ca5613 {
    max-width: 400px;
    height: auto;
    cursor: pointer;
}

.u-inline-de5aeada {
    font-size: var(--ginm-icon-xxl);
}

.u-inline-7acaf913 {
    width: 60px;
    height: 20px;
}

.u-inline-d5f690c7 {
    height: 8px;
}

.u-inline-a3501cdc {
    width: 32px;
    height: 32px;
    font-size: var(--ginm-font-xs);
}

.u-inline-2d58ee9f {
    width: 28px;
    height: 28px;
    font-size: var(--ginm-icon-sm);
}

.u-inline-b64e39d1 {
    height: 4px;
}

.u-inline-c4c3069a {
    font-size: var(--ginm-icon-sm);
}

.u-inline-80722803 {
    width: 40px;
    height: 40px;
}

.u-inline-7ea37169 {
    max-width: 200px;
}

.u-inline-f74f4a0b {
    max-width: 100%;
    max-height: 200px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.u-inline-0d486175 {
    width: 30px;
    height: 30px;
    font-size: var(--ginm-font-sm);
}

.u-inline-3929a452 {
    min-height: 800px;
    max-height: 800px;
    background-color: #f8f9fa;
}

.u-inline-574a1c50 {
    pointer-events: none;
}

.u-inline-681f8cc7 {
    color: #dc3545;
}

.u-inline-cd820b17 {
    color: #007bff;
}

.u-inline-54922f2e {
    color: #ffffff;
}

.u-inline-bf65c954 {
    font-size: var(--ginm-font-lg);
}

.u-inline-b4cf530e {
    font-size: var(--ginm-icon-xl);
}

.u-inline-be70d99e {
    width: 100%;
}

.u-inline-ef099051 {
    color: #333;
}

.u-inline-d6b8be3e {
    margin: 20px 0;
}

.u-inline-65d017ce {
    width: 30%;
}

.u-inline-d37906e3 {
    height: 20px;
}

.u-inline-96a1c978 {
    max-height: 600px;
    overflow: auto;
}

.u-inline-75fbf84d {
    font-size: var(--ginm-icon-xxl);
}

.u-inline-6907f80d {
    width: 1rem;
    height: 1rem;
}

.u-inline-0a25e7cb {
    width: 1rem;
    height: 1rem;
    animation-delay: 0.25s;
}

.u-inline-106da569 {
    width: 1rem;
    height: 1rem;
    animation-delay: 0.5s;
}

.u-inline-d55802a2 {
    width: 100%;
    max-width: 500px;
}

.u-inline-ed6ac08e {
    max-height: 400px;
    overflow-y: auto;
}

.u-inline-72a52b49 {
    width: 60px;
    height: 8px;
}

.u-inline-227145be {
    height: 6px;
    width: 60px;
}

.u-inline-db80b537 {
    width: 80px;
}

.u-inline-fa486ad4 {
    width: 200px;
}

.u-inline-d44c18c4 {
    width: 120px;
}

.u-inline-90f9553f {
    width: 140px;
}

.u-inline-b3a15a8a {
    width: 100px;
}

.u-inline-a2984eed {
    max-width: 150px;
}

.u-inline-199b5800 {
    font-size: var(--ginm-font-xs);
}

.u-inline-c31c95f6 {
    font-size: var(--ginm-font-sm);
    line-height: 1.4;
}

.u-inline-d9900c66 {
    width: 150px;
}

.u-inline-9dd291e0 {
    max-width: 300px;
}

.u-inline-d62e968e {
    width: 1.25rem;
    height: 1.25rem;
}

.u-inline-7fe76b61 {
    padding-left: 0.5rem;
}

.u-inline-250a21b0 {
    width: 50px;
    height: 50px;
}

.u-inline-83790578 {
    white-space: pre-wrap;
}

.u-inline-274c99d4 {
    width: 40px;
}

.u-inline-29fee910 {
    font-size: var(--ginm-icon-sm);
}

.u-inline-8e0008ec {
    width: 40%;
}

.u-inline-434118da {
    width: 20%;
}

.u-inline-c604d32e {
    height: 12px;
}

.u-inline-619c9765 {
    max-height: 250px;
    overflow-y: auto;
}

.u-inline-01f299c6 {
    font-size: var(--ginm-font-sm);
    white-space: pre-wrap;
}

.u-inline-716ec70a {
    width: 60px;
    height: 60px;
    font-size: var(--ginm-icon-xl);
}

.u-inline-4bf89374 {
    min-width: 200px;
}

.u-inline-12455c37 {
    min-width: 120px;
}

.u-inline-a6af12e5 {
    min-width: 100px;
}

.u-inline-9ec78d63 {
    width: 40px;
    height: 40px;
    font-size: var(--ginm-font-base);
}

.u-inline-7a599577 {
    width: 80px;
    height: 80px;
}

.u-inline-56de50a3 {
    min-width: 220px;
}

.u-inline-a2e051e0 {
    min-width: 90px;
}

.u-inline-731e7731 {
    min-width: 140px;
}

.u-inline-32cd59f3 {
    height: 8px;
    width: 60px;
}

.u-inline-1e487c4c {
    height: 300px;
}

.u-inline-da5f046d {
    height: 400px;
}

.u-inline-2c41effd {
    width: ${quota.utilization_rate || 0}%;
}

.u-inline-da9ad723 {
    width: ${quotaData.utilization_rate || 0}%;
}

.u-inline-65962b55 {
    top: 20px;
}

.u-inline-a1e93ddc {
    max-height: 70vh;
    overflow-y: auto;
}

.u-inline-cbbde2d3 {
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
}

/* ===== Typography normalization (tables) ===== */
.table thead th,
.table th {
    font-size: var(--ginm-font-sm) !important;
    font-weight: 600;
}

.table td {
    font-size: var(--ginm-font-sm);
}

.table td a {
    font-size: inherit;
}

.table thead th a,
.table thead th i {
    font-size: inherit;
    font-weight: inherit;
}

/* ===== Welcome Page (Scoped) ===== */
body.welcome-page {
    font-family: 'Noto Sans TC', sans-serif;
    background: #f8f9fa;
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
}

body.welcome-page .navbar-modern {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-height: 48px;
    z-index: 1030;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

body.welcome-page .navbar-modern.sticky-top {
    top: 0 !important;
    position: sticky !important;
}

body.welcome-page .navbar-modern .container {
    padding-top: 0;
    padding-bottom: 0;
}

@media (min-width: 768px) {
    body.welcome-page .navbar-modern {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
        min-height: 40px;
    }

    body.welcome-page .navbar-modern .nav-link,
    body.welcome-page .navbar-modern .btn-light {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }
}

body.welcome-page .navbar-modern .nav-link,
body.welcome-page .navbar-modern .btn-light {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    cursor: pointer;
}

body.welcome-page .navbar-brand {
    font-weight: 600;
    color: #0d6efd !important;
    font-size: var(--ginm-font-base);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

body.welcome-page .navbar-modern .nav-link {
    color: #212529 !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

body.welcome-page .navbar-modern .nav-link:hover {
    color: #0d6efd !important;
    transform: translateY(-2px);
}

body.welcome-page .navbar-modern .btn-light {
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

body.welcome-page .navbar-modern .btn-light:hover {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

body.welcome-page .navbar-toggler {
    border: none;
}

body.welcome-page .navbar-toggler:focus {
    box-shadow: none;
}

body.welcome-page .navbar-action-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #e9ecef;
    background: #ffffff;
    color: #6c757d;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 0;
    line-height: 1;
}

body.welcome-page .navbar-action-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--ginm-font-base);
    width: 100%;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

body.welcome-page .navbar-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #0d6efd;
    background: #ffffff;
    color: #0d6efd;
}

body.welcome-page .navbar-action-btn:focus {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
    outline: none;
}

body.welcome-page .theme-switch-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

body.welcome-page .theme-icon {
    transition: all 0.3s ease;
}

body.welcome-page .hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    color: #333;
    text-align: center;
    overflow: hidden;
}

body.welcome-page .hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: url('/ginm_watermark.png') repeat;
    opacity: 0.02;
    animation: float 30s ease-in-out infinite;
}

body.welcome-page .hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 2rem;
}

body.welcome-page .hero-title {
    font-size: var(--ginm-font-display-1);
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

body.welcome-page .hero-subtitle {
    font-size: var(--ginm-font-lg);
    margin-bottom: 1rem;
    color: #6c757d;
    font-weight: 400;
}

body.welcome-page .hero-description {
    font-size: var(--ginm-font-base);
    margin-bottom: 2rem;
    color: #495057;
    line-height: 1.6;
}

body.welcome-page .btn-cta {
    background: #0d6efd;
    border: none;
    padding: 0.8rem 2rem;
    font-size: var(--ginm-font-base);
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.2);
}

body.welcome-page .btn-cta:hover {
    background: #0b5ed7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

body.welcome-page .features-section {
    padding: 4rem 0;
    background: #ffffff;
}

body.welcome-page .feature-card {
    background: #fff;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
}

body.welcome-page .feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

body.welcome-page .feature-icon {
    font-size: var(--ginm-font-display-1);
    color: #0d6efd;
    margin-bottom: 1rem;
}

body.welcome-page .feature-title {
    font-size: var(--ginm-font-lg);
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #2c3e50;
}

body.welcome-page .feature-description {
    color: #6c757d;
    line-height: 1.5;
    font-size: var(--ginm-font-sm);
}

body.welcome-page .info-section {
    background: #f8f9fa;
    padding: 3rem 0;
}

body.welcome-page .info-item {
    text-align: center;
    padding: 1rem;
}

body.welcome-page .info-icon {
    font-size: var(--ginm-font-display-3);
    color: #0d6efd;
    margin-bottom: 0.8rem;
}

body.welcome-page .info-title {
    font-size: var(--ginm-font-base);
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

body.welcome-page .info-description {
    color: #6c757d;
    font-size: var(--ginm-font-sm);
}

body.welcome-page footer.modern-footer {
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    padding: 2rem 0;
}

body.welcome-page footer.modern-footer p,
body.welcome-page footer.modern-footer a {
    color: #6c757d;
    font-size: var(--ginm-font-sm);
    transition: all 0.3s ease;
}

body.welcome-page footer.modern-footer a:hover {
    color: #0d6efd;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

[data-bs-theme="dark"] body.welcome-page {
    background: #121212;
    color: #e9ecef;
}

[data-bs-theme="dark"] body.welcome-page .navbar-brand {
    color: #6ea8fe !important;
}

[data-bs-theme="dark"] body.welcome-page .navbar-modern {
    background: #1e1e1e;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

[data-bs-theme="dark"] body.welcome-page .navbar-modern .nav-link {
    color: #f8f9fa !important;
}

[data-bs-theme="dark"] body.welcome-page .navbar-modern .nav-link:hover {
    color: #0d6efd !important;
}

[data-bs-theme="dark"] body.welcome-page .btn-light {
    background: #333 !important;
    color: #f8f9fa !important;
    border-color: #444 !important;
}

[data-bs-theme="dark"] body.welcome-page .btn-light:hover {
    background: #0d6efd !important;
    color: #fff !important;
    border-color: #0d6efd !important;
}

[data-bs-theme="dark"] body.welcome-page .navbar-toggler-icon {
    filter: invert(1);
}

[data-bs-theme="dark"] body.welcome-page .navbar-action-btn {
    background: #2c2c2c;
    border-color: #444;
    color: #adb5bd;
}

[data-bs-theme="dark"] body.welcome-page .navbar-action-btn:hover {
    background: #333;
    border-color: #0d6efd;
    color: #6ea8fe;
}

[data-bs-theme="dark"] body.welcome-page .hero {
    background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
    color: #f8f9fa;
}

[data-bs-theme="dark"] body.welcome-page .hero-title {
    color: #f8f9fa;
}

[data-bs-theme="dark"] body.welcome-page .hero-subtitle {
    color: #adb5bd;
}

[data-bs-theme="dark"] body.welcome-page .hero-description {
    color: #adb5bd;
}

[data-bs-theme="dark"] body.welcome-page .features-section {
    background: #1e1e1e;
}

[data-bs-theme="dark"] body.welcome-page .feature-card {
    background: #2d2d2d;
    border-color: #444;
    color: #e9ecef;
}

[data-bs-theme="dark"] body.welcome-page .feature-title {
    color: #f8f9fa;
}

[data-bs-theme="dark"] body.welcome-page .info-section {
    background: #1a1a1a;
}

[data-bs-theme="dark"] body.welcome-page .info-icon {
    color: #4dabf7;
}

[data-bs-theme="dark"] body.welcome-page .info-title {
    color: #f8f9fa;
}

[data-bs-theme="dark"] body.welcome-page .info-description {
    color: #adb5bd;
}

[data-bs-theme="dark"] body.welcome-page footer.modern-footer {
    background: #1e1e1e;
    border-top: 1px solid #333;
}

[data-bs-theme="dark"] body.welcome-page footer.modern-footer p,
[data-bs-theme="dark"] body.welcome-page footer.modern-footer a {
    color: #adb5bd;
}

[data-bs-theme="dark"] body.welcome-page footer.modern-footer a:hover {
    color: #4dabf7;
}

@media (max-width: 768px) {
    body.welcome-page .hero-title {
        font-size: var(--ginm-font-display-2);
    }

    body.welcome-page .hero-subtitle {
        font-size: var(--ginm-font-lg);
    }

    body.welcome-page .feature-card {
        margin-bottom: 2rem;
    }
}

/* ===== Error Pages (Scoped) ===== */
body.error-page {
    --primary-color: #2C3E50;
    --accent-color: #E74C3C;
    --background-color: #FDFDFD;
    --container-bg: #FFFFFF;
    --text-color: #333;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

body.error-page .container {
    text-align: center;
    background-color: var(--container-bg);
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    max-width: 500px;
    width: 90%;
}

body.error-page h1 {
    margin: 0 0 20px;
    font-size: var(--ginm-font-display-1);
    color: var(--primary-color);
}

body.error-page p {
    font-size: var(--ginm-font-lg);
    line-height: 1.5;
    margin: 0 0 30px;
}

body.error-page a.button {
    display: inline-block;
    text-decoration: none;
    background-color: var(--accent-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: var(--ginm-font-base);
}

body.error-page a.button:hover {
    background-color: #C0392B;
}

/* ===== Accessibility Enhancements ===== */

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 4px 0;
    font-weight: 600;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid #4F46E5;
    outline-offset: 2px;
}

/* Enhanced focus indicators */
*:focus-visible {
    outline: 2px solid #4F46E5;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Ensure buttons have minimum touch target size on mobile */
@media (max-width: 768px) {
    .btn,
    button,
    a.btn {
        min-height: 44px;
        min-width: 44px;
        padding: 10px 16px;
    }

    /* Larger checkboxes and radios for touch */
    input[type="checkbox"],
    input[type="radio"] {
        width: 20px;
        height: 20px;
        cursor: pointer;
    }

    /* Ensure form controls are touch-friendly */
    .form-control,
    .form-select {
        min-height: 44px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Screen reader only content */
.sr-only,
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn,
    button {
        border: 2px solid currentColor;
    }

    a {
        text-decoration: underline;
    }
}

/* Dark mode focus enhancement */
[data-bs-theme="dark"] *:focus-visible {
    outline-color: #818CF8;
}

[data-bs-theme="dark"] .skip-link {
    background: #1F2937;
    color: white;
}

[data-bs-theme="dark"] .skip-link:focus {
    outline-color: #818CF8;
}

/* Ensure sufficient color contrast in dark mode */
[data-bs-theme="dark"] .text-muted {
    color: #9CA3AF !important;
}

/* Loading state for buttons */
button[aria-busy="true"],
.btn[aria-busy="true"] {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

/* Error states with proper contrast */
.is-invalid,
.form-control.is-invalid {
    border-color: #DC2626 !important;
}

.invalid-feedback {
    color: #DC2626;
    font-weight: 500;
}

[data-bs-theme="dark"] .is-invalid,
[data-bs-theme="dark"] .form-control.is-invalid {
    border-color: #EF4444 !important;
}

[data-bs-theme="dark"] .invalid-feedback {
    color: #FCA5A5;
}

/* Ensure checkbox and radio labels are clickable */
.form-check-label {
    cursor: pointer;
    user-select: none;
}

.form-check-input {
    cursor: pointer;
}

/* Enhanced hover states for better UX */
.card:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
    .card:hover {
        transform: none;
    }
}

/* Keyboard navigation enhancement for dropdowns */
[role="menu"] [role="menuitem"]:focus,
[role="menu"] a:focus {
    background-color: rgba(79, 70, 229, 0.1);
    outline: 2px solid #4F46E5;
    outline-offset: -2px;
}

[data-bs-theme="dark"] [role="menu"] [role="menuitem"]:focus,
[data-bs-theme="dark"] [role="menu"] a:focus {
    background-color: rgba(129, 140, 248, 0.1);
    outline-color: #818CF8;
}
