/* navbar */

#navbar {
    display: inline-flex;
    width: 100vw;
    height: 62px;
    background-color: #030215;
}


/* navbar超連結 */

#navbar a:hover {
    text-decoration: unset;
}


/* navbar項目 */

.navbar-item {
    color: white;
    font-weight: bold;
    font-size: 15pt;
}

.navbar-item.active {
    color: white;
}

.navbar-item.active::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f13d";
}

.navbar-item:hover {
    color: #dbe1f1;
}


/* navbar項目伸縮按鈕 */

.navbar-toggler:focus {
    outline-color: unset;
}

#navbarNav {
    background-color: #030215;
}


/* logo */

#logo {
    max-height: 48px;
}


/* 購物車、通知、使用者 */


/* => 購物車、通知、使用者圖示 */

#shopping_cart img,
#notify img {
    height: 30px;
    filter: brightness(10);
}

#nav-user-icon img {
    height: 50px;
    cursor: pointer;
}


/* => 購物車數量顯示背景 */

.shopping_cart_num_bg,
.shopping_cart_num_bg:after {
    background-color: #FF7111!important;
}


/* => 購物車、通知數量顯示 */

.icon_num {
    position: relative;
    right: 17px;
    bottom: 13px;
    display: inline-flex;
    justify-content: center;
    width: 18px;
    height: 17px;
    border-radius: 12pt;
    color: white;
    font-size: 9pt;
}


/* 通知顯示 */


/* => 通知共用設定基本設定 */

.no-new-notify-imply {
    text-align: center;
    color: #4a53ff;
    font-size: larger;
    font-weight: bold;
}

.not_read:before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    -moz-border-radius: 7.5px;
    -webkit-border-radius: 7.5px;
    border-radius: 7.5px;
    background-color: #0FB6CC;
    left: 10px;
    position: absolute;
}

.notify_content {
    color: black;
    letter-spacing: 0.7px;
}

.notify_content b {
    color: var(--stress-color);
}

.notify_date {
    color: #1876F2;
    font-weight: bold;
}


/* => 手機板通知 navbar 基本設定 */

#navbar_notify {
    position: absolute;
    background-color: white;
    height: 100vh;
    width: 30vw;
    top: 0;
    right: 0;
    right: -100vw;
    z-index: 1034;
}

#navbar_notify #notify_container {
    max-height: 500px;
    overflow-y: scroll;
}

#navbar_notify .notify-box {
    overflow: hidden;
    padding-left: 2rem;
}

#navbar_notify .notify-box p {
    overflow: hidden;
}

#navbar_mobile_notify_title {
    color: black !important;
}

#close_notify_box {
    position: absolute;
    bottom: 0;
    width: 100%;
}

#close_notify_btn:after {
    content: "";
    position: absolute;
    width: 50%;
    height: 1px;
    background-color: black;
    bottom: 5px;
    right: 25%;
}


/* => 通知 navbar 電腦版 基本設定 */

.desktop-notify-box {
    position: absolute;
    width: 30vw;
    right: 10px;
}

.desktop-notify-box .card-body {
    z-index: 1034;
    max-height: 600px;
    overflow-y: scroll;
}

#desktop-notify-main div {
    padding-left: 2vw;
}

.spinner-border {
    padding: unset !important;
}

#navbar_mobile_notify_background {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    height: 100vh;
    width: 100%;
    top: 0;
    z-index: 1033;
}

.dropdown-toggle::after {
    content: unset !important;
}

.noscroll {
    position: fixed;
    overflow-y: hidden;
}


/* 其他裝飾 */

.hello {
    line-height: 10px;
    font-size: 14px;
}

#logout {
    color: #FF7111!important;
}

.navbar a,
.navbar a:hover,
.popover-body a,
.popover-body a:hover,
#navbar_mobile_login a,
#navbar_mobile_login a:hover {
    text-decoration: unset;
}


/* 按鍵 */

.btn {
    font-weight: bold;
}


/* => 主要按鍵*/

.primary-bg {
    background-color: #0D8599 !important;
    border-color: #0D8599;
}

.primary-bg:hover {
    background-color: #0fa7c2 !important;
    border-color: #0fa7c2;
}


/* 手機版 */

@media (max-width:575px) {
    #navbar_notify,
    #navbar_mobile_login {
        width: 65vw!important;
    }
    .navbar-toggler-icon.active {
        position: relative;
    }
    .navbar-toggler-icon.active:after {
        content: ' ';
        position: absolute;
        right: -4px;
        top: -2px;
        width: 8px;
        height: 8px;
        background-color: red;
        border-radius: 4px;
    }
    #navbar_notify .notify_circle,
    #navbar_mobile_login .notify_circle {
        margin-left: 0.2rem;
    }
    #navbar_notify .notify_circle.active:after,
    #navbar_mobile_login .notify_circle.active:after {
        content: ' ';
        position: absolute;
        padding: 0.3rem;
        border-radius: 10px;
        background-color: red;
        top: 8px;
        left: 1%;
    }
    .not_read:before {
        top: 7px;
    }
}

@media (min-width:576px) and (max-width:767px) {
    #navbar_mobile_login {
        width: 40vw!important;
    }
    .not_read:before {
        top: 7px;
    }
}


/*電腦版以下*/

@media (max-width:992px) {
    /* navbar */
    #navbar_mobile_login {
        position: absolute;
        background-color: white;
        height: 100vh;
        width: 30vw;
        top: 0;
        right: 0;
        right: -100vw;
        z-index: 1032;
    }
    /* navbar背景 */
    #navbar_mobile_login_background {
        position: absolute;
        background-color: rgba(0, 0, 0, 0.5);
        height: 100vh;
        width: 100vw;
        top: 0;
        z-index: 1031;
    }
    /* navbar伸縮按鈕 */
    .navbar-collapse {
        background-color: white;
        padding-left: 2rem;
    }
    button.navbar-toggler:focus {
        outline: unset;
    }
    /* 通知 */
    #notify,
    #close_notify_btn {
        cursor: pointer;
    }
    #navbar_notify {
        position: absolute;
        background-color: white;
        height: 100vh;
        width: 30vw;
        top: 0;
        right: 0;
        right: -100vw;
        z-index: 1034;
    }
    #navbar_notify .nav-link.active,
    #navbar_mobile_login .nav-link.active {
        color: #075985;
        background-color: #ffffff;
        border-radius: 10px
    }
    #navbar_notify a,
    #navbar_mobile_login a {
        color: #3F4B69;
        font-weight: bold;
        font-size: 14pt;
    }
    #navbar_notify .v-center,
    #navbar_mobile_login .v-center {
        line-height: 65px;
    }
    #navbar_mobile_login_title {
        background-color: #0FB6CC;
    }
    .not_read:before {
        top: 7px;
    }
    .notify_circle {
        position: absolute;
        display: inline-block;
        justify-content: center;
        width: 35px;
        font-size: 0.8rem;
    }
}


/*電腦版*/

@media (min-width:992px) {
    /* Popover */
    .popover {
        max-width: 180px;
        left: -20px!important;
    }
    .popover-body a {
        color: black;
        font-size: 12pt;
    }
    .popover-body a:hover {
        color: #075985;
    }
    .popover hr {
        border: #0D8599 2px solid;
    }
    /* Popover指標 */
    .bs-popover-bottom .arrow::after,
    .bs-popover-bottom .arrow::before {
        right: -20px!important;
    }
    /* 未讀 */
    .not_read:before {
        top: 5px;
    }
}