* {
    margin: 0;
    padding: 0;
}

body {
    background-color: #f7f7f7;
}

.header {
    background-color: white;
    color: #7793ab;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 7vh;
}

.header-title {
    margin-left: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.header h5 {
    margin: 0;
}

.titleButton {
    background-color: transparent;
    border: none;
    color: #7793ab;
}

.user-info {
    width: 300px;
    font-size: 13px;
    border: 1px solid lightgray;
    border-radius: 5px;
    padding: 5px;
    display: flex;
    align-items: center;
}

.user-info-icon {
    margin: 0px 10px;
    width: 10%;
}

.mb-0 {
    width: 70%;
    height: 100%;
}

.portal-logout {
    width: 20%;
    height: 100%;
    background-color: transparent;
    border: none;
    font-size: x-large;
}

aside {
    background-color: white;
}

.portal-sidebar {
    position: fixed;
    left: 0;
    bottom: 0;
    height: 93vh;
    width: 15%;
    background-color: white;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    z-index: 10;
    justify-content: center;
    align-items: center;
}

.tools-portal {
    height: 93%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .tools-portal button {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        height: 5%;
        width: 94%;
        background-color: #f7f7f7;
        border: none;
        color: #7793ab;
        cursor: pointer;
        margin-left: 3%;
        margin-right: 3%;
        margin-bottom: 3%;

        gap: 0.5vw;
        font-size: 1vw;
        white-space: nowrap;
        overflow: hidden; 
        text-overflow: ellipsis;
    }

        .tools-portal button:hover {
            background-color: #e7f5ff;
        }

        .tools-portal button i {
            margin-left: 3%;
            /* margin-right: 20px;*/
            flex-shrink: 0; /* 防止图标缩小 */
            width: 30px;
            height: 30px;
            line-height: 30px; /* 确保图标垂直居中 */
            display: inline-block;
        }

.switchDatabase {
    width: 94%;
    height: 6%;
    background-color: white;
}

    .switchDatabase button {
        height: 100%;
        width: 100%;
        background-color: #7793ab;
        color: white;
        border: none;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        text-decoration: none;
        font-weight: 600;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
        margin-left: 3%;
        margin-right: 3%;
        /*新加的*/
        gap: 0.5vw;
        font-size: 1vw;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

        .switchDatabase button i {
            margin-left: 3%;
            flex-shrink: 0; 
            width: 30px;
            height: 30px;
            line-height: 30px; 
            display: inline-block;
        }

        .switchDatabase button:hover {
            background-color: #e7f5ff;
            color: black;
        }

#portalMainPage {
    justify-content: center;
    align-items: center;
    font-size: 30px;
}

.px-0 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.rightPanel {
    margin-left: 15%;
    height: 93vh;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-color: #f7f7f7;
    overflow-y: auto;
    scrollbar-width: none;
}

/* 
=======================================
    User Information form CSS Style
=======================================
*/

.main-userinfo {
    width: 100%;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.required::after {
    content: " *";
    color: #ff4d4d;
}

.error-message {
    color: #ff4d4d;
}

