@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0F3460; /* Deep Navy Blue */
    --accent-color: #E94560; /* Action Red/Pink */
    --success-color: #16C79A; /* Green for gains */
    --warning-color: #F8B400; /* Yellow/Gold */
    --bg-color: #F4F7F6;
    --sidebar-bg: #0F2940; /* Refined Navy sidebar */
    --sidebar-text: #A0A5B1;
    --sidebar-hover: #ffffff;
    --card-bg: #ffffff;
    --text-main: #333333;
    --text-muted: #6c757d;
    --border-color: #E5E9F2;
    --header-height: 80px;
    --sidebar-width: 280px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--primary-color);
}

.text-primary { color: var(--primary-color) !important; }
.text-accent { color: var(--accent-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-muted { color: var(--text-muted) !important; }

/* Unified Page Header Banner */
.page-header-banner {
    background: linear-gradient(135deg, #0F3460, #1A5276);
    padding: 18px 24px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(15, 52, 96, 0.25);
}

.page-header-banner h4 {
    color: #fff;
    margin: 0;
    font-weight: 600;
    font-size: 1.15rem;
}

.page-header-banner h4 i {
    opacity: 0.85;
}

/* Layout Variables */
.wrapper {
    display: block; /* Use block, sidebar is fixed */
    width: 100%;
}

/* 手機模板啟用：整站只留 9 宮格入口，無側欄 → 主內容佔滿全寬 */
body[data-template="mobile"] .main-content {
    width: 100%;
    margin-right: 0;
}

/* 手機模板啟用時隱藏首頁原版內容（股票/業績/公告/PPT） */
.hide-on-mobile {
    display: none !important;
}

/* ============ 微信式底部 9 宮格導航 ============ */
body[data-template="mobile"] {
    --ng-bar-h: 182px;
    padding-bottom: calc(var(--ng-bar-h) + env(safe-area-inset-bottom, 0px));
}
body[data-template="mobile"].ninegrid-collapsed {
    --ng-bar-h: 78px;
}

.ninegrid-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 990;
    border-top: 1px solid rgba(132, 228, 255, .18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
body[data-theme="dark"] .ninegrid-tabbar { background: rgba(8, 20, 32, .96); color: #e8f7ff; }
body[data-theme="light"] .ninegrid-tabbar { background: rgba(255, 253, 250, .97); color: #2a2830; border-top-color: rgba(167, 128, 144, .22); }

/* 收起/展開把手（預設展開 3×3，點擊收成一行 3 格） */
.ninegrid-grabber {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    opacity: .85;
}
.ninegrid-grabber i { font-size: .62rem; transition: transform .25s ease; }
.ninegrid-collapsed .ninegrid-grabber i { transform: rotate(180deg); }

.ninegrid-tabbar-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    max-width: 640px;
    margin: 0 auto;
}
.ninegrid-collapsed .ninegrid-tabbar-inner {
    grid-template-rows: repeat(1, minmax(0, 1fr));
}
.ninegrid-collapsed .ninegrid-tab:nth-child(n+4) { display: none; }

.ninegrid-tab {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 9px 4px 10px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.ninegrid-tab i { font-size: 1.16rem; line-height: 1; }
.ninegrid-tab span { font-size: .6rem; font-weight: 600; line-height: 1.15; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .82; }
body[data-theme="dark"] .ninegrid-tab.is-active { color: #70e5d0; }
body[data-theme="light"] .ninegrid-tab.is-active { color: #b56d84; }
.ninegrid-tab.is-active::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: inherit;
    border-top-color: currentColor;
}

/* 子菜單底部彈出面板 */
.ninegrid-backdrop {
    position: fixed;
    inset: 0;
    z-index: 980;
    background: rgba(0, 0, 0, .45);
    display: none;
}
.ninegrid-backdrop.is-open { display: block; animation: ninegridFade .18s ease; }

.ninegrid-sheet {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: calc(env(safe-area-inset-bottom, 0px) + var(--ng-bar-h) + 10px);
    z-index: 985;
    width: min(92%, 420px);
    max-height: 58vh;
    overflow-y: auto;
    border-radius: 18px;
    padding: 15px;
    box-shadow: 0 18px 46px rgba(0, 0, 0, .38);
    display: none;
}
.ninegrid-sheet.is-open { display: block; animation: ninegridUp .22s ease; }
body[data-theme="dark"] .ninegrid-sheet { background: rgba(10, 28, 45, .97); color: #e8f7ff; border: 1px solid rgba(132, 228, 255, .24); }
body[data-theme="light"] .ninegrid-sheet { background: rgba(255, 250, 247, .98); color: #2a2830; border: 1px solid rgba(167, 128, 144, .24); }

.ninegrid-sheet-caret {
    position: absolute;
    bottom: -9px;
    width: 0;
    height: 0;
    border: 9px solid transparent;
}
body[data-theme="dark"] .ninegrid-sheet-caret { border-top-color: rgba(10, 28, 45, .97); }
body[data-theme="light"] .ninegrid-sheet-caret { border-top-color: rgba(255, 250, 247, .98); }

.ninegrid-sheet-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
    padding-right: 26px;
}
.ninegrid-sheet-head > i { font-size: 1.2rem; }
body[data-theme="dark"] .ninegrid-sheet-head > i { color: #70e5d0; }
body[data-theme="light"] .ninegrid-sheet-head > i { color: #b56d84; }
.ninegrid-sheet-head h3 { margin: 0; font-size: 1rem; }
.ninegrid-sheet-close {
    position: absolute;
    top: 9px;
    right: 12px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    opacity: .7;
}
.ninegrid-sheet-items { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ninegrid-sheet-items a {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 10px 11px;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    font-size: .8rem;
    font-weight: 600;
}
.ninegrid-sheet-items a i { flex: 0 0 auto; font-size: .95rem; }
.ninegrid-sheet-items a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body[data-theme="dark"] .ninegrid-sheet-items a { background: rgba(255, 255, 255, .09); }
body[data-theme="light"] .ninegrid-sheet-items a { background: rgba(181, 109, 132, .1); }

@keyframes ninegridFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ninegridUp { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* 回到 9 宮格首頁按鈕（子頁面顯示） */
.ninegrid-home-btn {
    position: fixed;
    top: calc(60px + 10px);
    left: 12px;
    z-index: 992;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
}
body[data-theme="dark"] .ninegrid-home-btn { background: #0b1b2e; color: #70e5d0; border: 1px solid rgba(132, 228, 255, .3); }
body[data-theme="light"] .ninegrid-home-btn { background: #fffaf7; color: #b56d84; border: 1px solid rgba(167, 128, 144, .3); }

/* Sidebar (Now on the Right) */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100vh;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: -4px 0 15px rgba(0,0,0,0.1);
}

.sidebar .sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111122;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sidebar .sidebar-header h3 {
    color: #ffffff;
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

/* Distinctive Rounded Menu Items */
.sidebar-menu {
    padding: 12px 10px;
    list-style: none;
}

.sidebar-menu > li {
    margin-bottom: 2px;
}

.sidebar-menu > li > a {
    padding: 8px 14px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    color: var(--sidebar-text);
    text-decoration: none;
    transition: all 0.3s ease;
    
    /* Rounded Card Style */
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.sidebar-menu > li > a:hover, 
.sidebar-menu > li.active > a {
    color: #ffffff;
    background: var(--primary-color);
    box-shadow: 0 6px 15px rgba(15, 52, 96, 0.4);
    border-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.sidebar-menu li a i {
    width: 22px;
    font-size: 0.95rem;
    margin-right: 10px;
    text-align: center;
}

/* Dropdown arrow */
.sidebar-menu li a .dropdown-icon {
    margin-left: auto;
    margin-right: 0;
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.sidebar-menu li.active > a .dropdown-icon {
    transform: rotate(180deg);
}

/* Submenu */
.sidebar-submenu {
    list-style: none;
    padding: 6px 12px;
    display: none;
    background: transparent;
    border-radius: 0 0 12px 12px;
    margin-top: -4px;
    padding-top: 10px;
    border: 1px solid rgba(255,255,255,0.02);
    border-top: none;
}

.sidebar-menu li.active .sidebar-submenu {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.sidebar-submenu li {
    margin-bottom: 2px;
}

.sidebar-submenu li a {
    padding: 6px 12px;
    font-size: 0.82rem;
    border-radius: 8px;
    color: var(--sidebar-text);
    text-decoration: none;
    display: block;
    transition: all 0.2s;
}

.sidebar-submenu li a:hover {
    background: rgba(255,255,255,0.08);
    color: var(--sidebar-hover);
    transform: translateX(5px);
}

/* Active submenu item */
.sidebar-submenu li.active a {
    background: rgba(255,255,255,0.12);
    color: #ffffff;
    font-weight: 600;
    border-left: 3px solid var(--accent-color);
    padding-left: 9px;
}

/* 績效分組標籤（不可點擊） */
.sidebar-submenu li.sidebar-submenu-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.4);
    padding: 6px 12px 2px;
    text-transform: uppercase;
    cursor: default;
    pointer-events: none;
    margin-top: 4px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Main Content */
.main-content {
    width: calc(100% - var(--sidebar-width));
    margin-right: var(--sidebar-width);
    min-height: 100vh;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body[data-is-logged-in="False"] .main-content {
    width: 100%;
    margin-right: 0;
}

/* Header Navbar */
.top-navbar {
    height: var(--header-height);
    background: #ffffff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 999;
    gap: 12px;
}

/* ===== Brand Logo Styles ===== */
.brand-logo-area {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

.brand-link:hover {
    transform: scale(1.03);
}

/* Logo image wrapper with glow effect */
.logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-logo-img {
    height: 46px;
    width: auto;
    position: relative;
    z-index: 2;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 6px rgba(184, 149, 42, 0.25));
}

.brand-link:hover .brand-logo-img {
    filter: drop-shadow(0 4px 12px rgba(184, 149, 42, 0.45));
    transform: rotate(8deg) scale(1.05);
}

/* Golden glow ring behind logo */
.logo-glow {
    position: absolute;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184,149,42,0.18) 0%, rgba(184,149,42,0) 70%);
    z-index: 1;
    animation: logoGlowPulse 3s ease-in-out infinite;
}

@keyframes logoGlowPulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.6; 
    }
    50% { 
        transform: scale(1.25); 
        opacity: 1; 
    }
}

/* Brand text */
.brand-text-group {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.brand-name-en {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1b2a4a;
    letter-spacing: 0.5px;
    line-height: 1;
}

.brand-name-zh {
    font-size: 0.95rem;
    font-weight: 600;
    color: #b8952a;
    line-height: 1;
}

/* ===== Sidebar Brand Styles ===== */
.sidebar-brand-link {
    gap: 12px;
}

.sidebar-logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo-img {
    height: 36px;
    width: auto;
    position: relative;
    z-index: 2;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.sidebar-brand-link:hover .sidebar-logo-img {
    transform: scale(1.05);
}

.sidebar-brand-en {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.sidebar-brand-zh {
    font-size: 0.85rem;
    color: #d4a836;
    font-weight: 600;
    margin-left: 2px;
}

.sidebar-toggler {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s;
}

.sidebar-toggler:hover {
    background: var(--primary-color);
    color: #fff;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.user-profile img {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.top-user-name {
    margin-bottom: 2px;
    color: #6b7280;
}

.top-user-rank {
    font-size: 0.75rem;
    letter-spacing: 0.2px;
    color: #2563eb;
}

.navbar-logout-circle {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.register-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    color: #ffffff;
    background: linear-gradient(135deg, #ff5b5b 0%, #ff8a3d 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.register-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(255, 107, 107, 0.28);
    filter: brightness(1.05);
}


/* Cards */
.fin-card {
    background: var(--card-bg);
    border-radius: 20px; /* More rounded */
    box-shadow: 0 8px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
    padding: 30px;
    margin-bottom: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.fin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px; /* Rounded icon boxes */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.bg-icon-primary { background: linear-gradient(135deg, var(--primary-color), #2A5298); }
.bg-icon-accent { background: linear-gradient(135deg, var(--accent-color), #FF6B6B); }
.bg-icon-success { background: linear-gradient(135deg, var(--success-color), #20E3B2); }
.bg-icon-warning { background: linear-gradient(135deg, var(--warning-color), #FFD93D); }

/* Tables */
.table-custom {
    width: 100%;
    margin-bottom: 0;
}
.table-custom th {
    font-weight: 600;
    color: var(--text-muted);
    border-top: none;
    border-bottom: 2px solid var(--border-color);
    padding: 15px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.table-custom td {
    padding: 18px 15px;
    vertical-align: middle;
    border-bottom: 1px dashed var(--border-color);
    font-size: 0.95rem;
}

/* Buttons */
.btn-fin {
    background: var(--primary-color);
    color: #fff;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 500;
    border: none;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(15, 52, 96, 0.2);
}
.btn-fin:hover {
    background: #0B2545;
    color: #fff;
    box-shadow: 0 6px 15px rgba(15, 52, 96, 0.3);
    transform: translateY(-1px);
}

/* Responsive Right Sidebar */
@media (max-width: 991px) {
    .sidebar {
        right: calc(-1 * var(--sidebar-width)); /* Hide to the right */
    }
    .sidebar.active {
        right: 0;
    }
    .main-content {
        width: 100%;
        margin-right: 0;
    }
    .sidebar-overlay {
        display: none;
        position: fixed;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        top: 0;
        left: 0;
        backdrop-filter: blur(2px);
    }
    .sidebar-overlay.active {
        display: block;
    }

    /* ===== Mobile Brand Logo Enhancement ===== */
    .top-navbar {
        padding: 0 16px;
        height: 70px;
        gap: 8px;
    }

    .brand-logo-area {
        flex: 1;
        justify-content: center;
    }

    .brand-link {
        flex-direction: column;
        gap: 2px;
        align-items: center;
    }

    .brand-logo-img {
        height: 42px;
    }

    .logo-glow {
        width: 52px;
        height: 52px;
        background: radial-gradient(circle, rgba(184,149,42,0.25) 0%, rgba(184,149,42,0) 70%);
    }

    .brand-text-group {
        gap: 4px;
    }

    .brand-name-en {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    .brand-name-zh {
        font-size: 0.65rem;
    }

    /* Compact user profile on mobile */
    .user-profile img {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    /* Language switcher compact */
    .language-switcher .form-select-sm {
        font-size: 0.75rem;
        padding: 4px 24px 4px 8px;
        min-width: 0;
        width: auto;
    }
}

/* Extra small screens: logo only, no text */
@media (max-width: 480px) {
    .top-navbar {
        padding: 0 10px;
        height: 64px;
    }

    .brand-link {
        flex-direction: row;
        gap: 8px;
    }

    .brand-logo-img {
        height: 38px;
    }

    .logo-glow {
        width: 48px;
        height: 48px;
    }

    .brand-text-group {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .brand-name-en {
        font-size: 0.7rem;
        font-weight: 700;
    }

    .brand-name-zh {
        font-size: 0.6rem;
    }

    .language-switcher .form-select-sm {
        font-size: 0.7rem;
        padding: 3px 20px 3px 6px;
    }

    .user-profile img {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .navbar-logout-circle {
        width: 30px;
        height: 30px;
    }

    .register-link {
        padding: 0.35rem 0.6rem;
    }
}

/* Footer */
.app-footer {
    background: linear-gradient(180deg, rgba(15, 34, 96, 0.98), rgba(14, 24, 69, 0.98));
    color: rgba(255, 255, 255, 0.92);
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.app-footer .footer-top {
    padding-top: 40px;
    padding-bottom: 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 24px;
    align-items: start;
}

.footer-brand-title,
.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: #f8fafc;
}

.footer-brand-copy {
    max-width: 420px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.78);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #E94560;
}

.footer-contact p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.78);
}

.footer-bottom {
    background: rgba(10, 18, 44, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-content {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.68);
}

.footer-brand-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}

.footer-brand-logo {
    height: 22px;
    width: auto;
    max-width: 100%;
    border-radius: 4px;
}

.footer-brand-name {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.footer-copyright {
    margin-top: 2px;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .footer-top {
        padding-top: 32px;
        padding-bottom: 24px;
    }
    .footer-bottom-content {
        font-size: 0.82rem;
    }
}

/* 暫時隱藏所有 DataTable 的搜尋列 */
.dataTables_filter {
    display: none !important;
}
