﻿/* 頂部列 */
.topbarnav {
    background: linear-gradient(90deg,#3c6f97 0%, #407aa7 100%);
    color: #fff;
    height: 56px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
    font-size: 15px;
    z-index: 1050;
}
.topbar {
    background: linear-gradient(90deg,#3c6f97 0%, #407aa7 100%);
    color: #fff;
    height: 56px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
    font-size: 15px;
    
}
/* 左邊品牌 */
.navbar-brand {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #fff !important;
    text-decoration: none;
}

/* 主選單 */
.navbar .nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 8px 12px;
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

    .navbar .nav-link:hover {
        color: #fff !important;
        background: rgba(255,255,255,0.15);
        border-radius: 4px;
    }

    /* 橘色底線 (目前頁面) */
    .navbar .nav-link.is-active::after {
        content: "";
        position: absolute;
        left: 0%;
        right: 15%;
        bottom: 0px;
        width: 80px;
        height: 4px;
        background: #f59e0b;
        border-radius: 2px;
    }

/* 下拉選單 */
.navbar .dropdown-menu {
    background: #2c4c6f;
    width: auto;
    min-width: unset;
    padding: 4px 0;
    border-radius: 6px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.navbar .dropdown-item {
    font-size: 14px;
    padding: 6px 14px;
    line-height: 1.5;
    white-space: nowrap;
    color: #fff !important;
}

    .navbar .dropdown-item:hover {
        background-color: rgba(255,255,255,0.15);
        color: #fff !important;
    }

/* 修正 overflow */
.navbar, .navbar .container, .navbar .navbar-collapse {
    overflow: visible !important;
}
[v-cloak] {
    display: none;
}
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px
}
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #ddd;
    border-top: 5px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
/* 登入 Modal 藍底樣式 */
#loginModal .modal-content {
    background-color: #1e6fb8; /* 深藍底 */
    color: #fff; /* 白字 */
    border-radius: 12px;
}

#loginModal .modal-header {
    border-bottom: none;
    background-color: #145a99; /* 更深一點的藍 */
}

#loginModal .modal-footer {
    border-top: none;
    background-color: #145a99;
    color: #e5e5e5;
}

#loginModal label {
    color: #fff; /* 表單標籤白色 */
}

#loginModal input.form-control {
    background-color: #fff;
    color: #000;
}

#loginModal button.btn-primary {
    background-color: #fff;
    color: #1e6fb8;
    border: none;
    font-weight: bold;
}
