html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: rgb(206 207 206 / 0.2);
}

/* 導覽列 */
.navbar {
    position: fixed;
    width: 100%;
    height: 60px;
    border-bottom: 1px solid #008080;
    z-index: 1000; /* 避免被覆蓋 */
    background-color: rgb(240 240 240);
}

/* 導覽列文字顏色 */
.navbar .navbar-brand,
.navbar .nav-link {
    color: #333 !important; /* 深灰字體 */
    font-weight: 600;
}

/* hover 效果 */
.navbar .nav-link:hover {
    color: #008080 !important; /* 綠藍色 hover */
}

/* 漢堡選單 icon (深色模式) */
.navbar-toggler {
    border-color: rgba(0,0,0,.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'> <path stroke='rgba(51,51,51, 0.9)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/></svg>");
}

footer {
    border-top: 1px solid #b0aeae94;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-right: 30px;
    padding-left: 30px;
}

    footer p {
        padding-top: 10px;
        font-size: 14px;
        color: #008080;
    }

/* RWD (手機版排版) */
@media (max-width: 768px) {
    .navbar {
        height: auto; /* 高度自動撐開 */
    }

    .navbar .navbar-brand {
        font-size: 18px;
    }

    .navbar .nav-link {
        font-size: 16px;
        padding: 8px 0;
    }
    footer > div {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    footer .ms-4 {
        margin-left: 0 !important; /* 移除客服信箱的左邊距 */
    }

    /* 讓聯絡資訊也垂直堆疊 */
    footer div div:first-child {
        flex-direction: column;
    }
}


.pagetitle, .tabletitle {
    color: teal;
}
.pageContent {
    padding: 1rem;
    min-height: 100vh;
}
.site-label{
    color:#008080;
    font-size:16px;
    font-weight:bold;

}
.site-title {
    color: #008080;
    font-weight: bold;
    font-size: 24px;
}
.site-input {
    width: 100%;
    padding: 5px;
    border: none; 
    border-bottom: 2px solid #ccc; /* 只留下底線，預設灰色 */
    background: transparent; /* 背景透明，乾淨一點 */
    outline: none; /* 移除藍色外框 */
    transition: border-color 0.3s ease; /* 線條顏色切換動畫 */
}
.site-input:focus {
    border-bottom: 2px solid #008080; /* 聚焦時變色 */
}
.site-input:disabled {
    border-bottom: 2px solid #008080;
}
.site-btn,
.main-btn 
{
    padding: 10px 15px;
    border-radius: 20px;
    border: 0 !important;
    outline: 0 !important;
    cursor: pointer;
    background: #008080;
    color: white;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.btn-primary,
.btn-success,
.btn-warning,
.btn-danger,
.btn-secondary,
.btn-outline-danger,
.btn-outline-success,
.btn-outline-info {
    padding: 10px 15px;
    border-radius: 20px;
    border: 0 !important;
    outline: 0 !important;
    cursor: pointer;
    color: white;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.site-btn:hover
.main-btn:hover {
    background-color: #699077; 
    color: black;
    text-decoration: none;
}

.site-icon
{
    cursor:pointer;
    color:green;
    margin-left:2px;
}
#sidebar {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: sticky;
}

#sidebar .nav-link {
    border-radius: 5pt;
    font-weight: 600;
    color: white;
}

#sidebar .nav-link:hover,
#sidebar .nav-link.active {
    background-color: teal;
    color: inherit;
}

.pageContent {
    padding: 1rem;
    min-height: 100vh;
}

.pagetitle, .tabletitle {
    color: teal;
}
    
.input-with-icon {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #ccc;
}

.input-with-icon:focus-within {
    border-color: #008080; 
}

.input-with-icon .site-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    padding: 5px;
    margin: 0;
}

.input-with-icon i {
    margin-left: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    color: #666;
    transition: color 0.2s;
}

.input-with-icon i:hover {
    color: #008080;
}

.create {
    font-size: 16px;
}

#messageModalTitle {
    font-size: 22px;
    color:#a5a4a4;
}

#messageModalBody {
    font-size: 15px;
    margin-bottom:1.6rem;
    color: #333;
}

#messageModal .modal-header {
    padding-top: 0px;
    padding-bottom: 0px;
}

.info-table {
    width: 100%;
    border: 1px solid #ddd;
    border-collapse: collapse;
    background-color: #fff;
}

.info-table {
    width: 100%;
    border: 1px solid #dee2e6;
    border-collapse: collapse;
    font-size: 0.875rem;
    vertical-align: middle;
    background-color: #fff;
}

    /* 表格邊框 */
    /*.info-table th,*/
    .info-table td {
        border: 1px solid #ddd;
    }

    /* 標題列 */
    .info-table thead th {
        background-color: lightsteelblue;
        text-align: left;
        font-weight: bold;
        font-size: 15px;
    }

    /* 左邊標題欄 */
    .info-table tbody th {
        background-color: #f0f0f0; /* 淺灰背景 */
        text-align: left;
        font-weight: 600;
        width: 150px;
    }

    /* 右邊內容欄 */
    .info-table td {
        vertical-align: middle;
        width: 220px; /* 限制寬度 */
    }

    /* 輸入框樣式 */
    .info-table .form-control {
        border-radius: 4px;
        font-size: 14px;
        width: 100%;
        box-sizing: border-box;
    }