:root {
    --main-color: #001f61;
    --main-background: #0043a4;
    --main-background-disable: #0044a48e;
}

* {
    font-family: "Play", serif;
    font-weight: normal;
    font-style: normal;
}

.play-regular {
    font-family: "Play", serif;
    font-weight: normal;
    font-style: normal;
}

.play-bold {
    font-family: "Play", serif;
    font-weight: normal;
    font-style: normal;
}

.main-color {
    color: var(--main-color) !important;
}

.main-background {
    background-color: var(--main-background) !important;
}

.bg-main {
    background-color: var(--main-color) !important;
}

.bg-green {
    background-color: #008805 !important;
    color: white;
}

.btn.disabled {
    background-color: var(--main-background-disable) !important;
    border: none;
    cursor: not-allowed;
}

img {
    object-fit: cover;
}

.mt-6 {
    margin-top: 4rem !important;
}

.mt-7 {
    margin-top: 5rem !important;
}

.z-20 {
    z-index: 20 !important;
}

.navbar-nav .nav-link {
    color: white;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: auto 0;
    gap: 10px;
}

    .navbar-nav .nav-link:hover {
        color: rgba(255, 255, 255, 0.577);
    }

.navbar-nav .nav-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: auto 0;
    background-color: var(--main-color);
}

    .navbar-nav .nav-item nav-link {
        height: 100%;
    }
/* .navbar-nav .nav-item:hover {
  background-color: #487fd1;
} */
/* navbar */

.dropdown-menu {
    background-color: var(--main-color);
    color: #ffffff;
    top: 97% !important;
}

    .dropdown-menu a {
        color: #ffffff;
    }

.badge-notification {
    background-color: #ff0000;
    color: #ffffff;
    font-size: 0.75rem;
    border-radius: 50%;
    padding: 0.25em 0.5em;
    position: absolute;
    top: 17px;
    right: 0px;
}

.dropdown-menu-fix {
    width: 350px;
    max-height: 350px;
    overflow-y: auto;
    word-wrap: break-word;
    white-space: normal;
}

.dropdown-item-gray {
    background-color: #d9d9d9;
}

.dropdown-item .timer {
    font-size: 13px;
}

.dropdown-item :hover,
.dropdown-item :focus {
    /* background-color: #83a9e1 !important; */
}

.vn-language img,
.uk-language img {
    width: 20px;
    height: auto;
    margin-right: 5px;
}

.language-dropdown .dropdown-toggle::after {
    display: none !important;
}

.icon {
    width: 30px;
    height: 30px;
}
/* landing page */

.bg-img-product {
    background-image: url(../img/detailProduct.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.bg-img-story {
    background-image: url(../img/storyImg.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.bg-img-news {
    background-image: url(../img/newImg.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.border-main-color {
    border: 1px solid var(--main-background) !important;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 253, 253, 0.397);
}

.btn-link:hover {
    background: var(--main-background) !important;
    color: white !important;
    border: none !important;
}

.btn-main-color:hover {
    background: var(--main-color) !important;
    color: white !important;
    border: none !important;
}

.card-text {
    text-align: justify;
}

.new-card img {
    object-fit: cover;
    height: 300px;
    border-radius: 8px;
}

.previewImg {
    max-width: 200px;
    height: auto;
    display: none;
}

.hover-effect {
    transition: transform 0.3s ease;
}

    .hover-effect:hover {
        transform: scale(1.05);
    }
/* message */
.card.card-header {
    border-top: 4px solid var(--main-color) !important;
}

.box-message {
    height: 70vh;
    overflow-y: auto;
}

.unread {
    background-color: #dff2ff;
    border: none !important;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}
/* add product */
#star-container .fa-start,
#star-container .fa-regular {
    font-size: 25px;
    color: gray;
}

.evaluate > .fa-solid {
    color: orange;
    font-size: 25px;
}

#ocopForm .form-control,
#ocopForm .form-select {
    max-width: 400px;
}

span.required {
    color: red;
}
/* label > span.required {
  color: red;
} */
.image-preview-item {
    position: relative;
    display: inline-block;
}

    .image-preview-item img {
        max-width: 100px;
        height: 100px;
        border: 1px solid #ddd;
        border-radius: 5px;
        object-fit: cover;
    }

    .file-preview .remove-btn,
    .image-preview-item .remove-btn {
        position: absolute;
        top: -5px;
        right: -5px;
        background-color: red;
        color: white;
        border: none;
        border-radius: 50%;
        font-size: 12px;
        width: 20px;
        height: 20px;
        cursor: pointer;
    }

    .image-preview-item.img-thumbnail {
        height: 100px;
        width: 100px;
        object-fit: cover;
    }
/* admin page */
#sidebarMenu .nav-item:hover,
table tbody tr:hover {
    background: #cbe1fb92;
}

#sidebarMenu .nav-item.active,
table tbody tr.active {
    background: #cbe1fb;
}

table tbody tr td :hover {
    background-color: #fff;
}
/* responsive */
@media (max-width: 576px) {
    .responsive-font-size {
        font-size: 100px !important;
    }

    .font-size-auto {
        font-size: 16px;
    }
}

@media (min-width: 577px) {
    .responsive-font-size {
        font-size: 150px !important;
    }

    .font-size-auto {
        font-size: 16px;
    }
}

@media (min-width: 992px) {
    .reponsive-navbar {
        height: 70px;
    }

    .font-size-auto {
        font-size: 16px;
    }
}

@media (max-width: 991px) {
    .reponsive-navbar {
        height: auto;
    }

    .font-size-auto {
        font-size: 13px;
    }
}


.message-box {
    bottom: 1px; 
    right: 10px;  
    width: 400px; 
    height: 500px;  
    z-index: 9999;  
    border-radius: 10px;  
}

#chatBoxContainer {
    position: fixed;
    bottom: 1px; /* Kho?ng cách t? d??i màn hình */
    right: 10px; /* Kho?ng cách t? bên ph?i màn hình */
    width: auto; /* Chi?u r?ng c? ??nh */
    display: flex;
    justify-content: end;
    /*height: 500px;*/ /* Chi?u cao t?ng lên */
    z-index: 9999; /* ??m b?o h?p tin nh?n luôn n?m trên các ph?n t? khác */
    border-radius: 10px; /* T?o góc bo tròn cho h?p */
}

.card-item-messageBox {
    max-width: 100%; /* Cho phép m? r?ng toàn b? chi?u r?ng h?p */
}

    .card-item-messageBox .card {
        height: 100%;
        border-radius: 10px;
    }

    .card-item-messageBox .card-header {
        height: 60px; /* ?i?u ch?nh chi?u cao c?a ph?n header */
    }

    .card-item-messageBox .card-body {
        height: calc(100% - 120px); /* Gi?m chi?u cao ?? phù h?p v?i ph?n header và footer */
        overflow-y: auto; /* ??m b?o cu?n tin nh?n khi c?n */
    }

    .card-item-messageBox .card-footer {
        height: 60px; /* ?i?u ch?nh chi?u cao c?a ph?n footer */
    }

/* Container tin nh?n */
.message-container {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Tin nh?n c?a ng??i g?i */
.message-sender {
    display: flex;
    justify-content: flex-end;
}

    .message-sender span {
        background-color: var(--main-color); /* Màu xanh lá */
        color: white;
        padding: 10px 15px;
        border-radius: 15px;
        max-width: 60%;
        word-wrap: break-word;
    }

/* Tin nh?n c?a ng??i nh?n */
.message-receiver {
    display: flex;
    justify-content: flex-start;
}

    .message-receiver span {
        background-color: #f1f1f1; /* Màu tr?ng nh?t */
        color: black;
        padding: 10px 15px;
        border-radius: 15px;
        max-width: 60%;
        word-wrap: break-word;
    }

/* Form container */
.form-message-container {
    display: flex;
    justify-content: center;
    padding: 15px;
    width: 100%; /* Ensure the form takes full width */
}

/* Individual message item card styling */
.message-card {
    display: flex;
    flex-direction: column;
    border: 2px solid #dcdfe3; 
    border-radius: 12px; /* Rounded corners */
    padding: 20px;
    margin-bottom: 15px;
    background-color: #ffffff; /* Clean white background */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1); /* Larger shadow for more depth */
    transition: all 0.1s ease;
    width: 100%; /* Make the card take up full width of the form */
    max-width: none; /* Disable the max-width constraint */
    box-sizing: border-box; /* Include padding in the total width calculation */
    text-decoration: none;
}

    .message-card.message-unread {
        background-color: #e6f7ff; /* Light blue background */
        font-weight: bold;
    }


    .message-card.message-read {
        background-color: #ffffff; /* White background */
        border-left: 5px solid #dcdfe3; /* Gray border */
        font-weight: normal;
    }

        /* Hover effect cho c? tr?ng thái read và unread */
        .message-card.read:hover,
        .message-card.unread:hover {
            transform: scale(1.03);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }
    .message-card:hover {
        transform: scale(1.03); /* Slight zoom on hover for interactivity */
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */
    }

    /* User name styling */
    .message-card .user-name {
        font-weight: 700;
        font-size: 1.4rem; /* Larger font size */
        margin-bottom: 8px;
        color: #343a40; /* Darker color for user name */
    }

    /* Message content styling */
    .message-card .message-text {
        font-size: 1.2rem; /* Larger font for the message */
        color: #495057;
        margin-bottom: 12px;
    }

    /* Timestamp styling */
    .message-card .timestamp {
        font-size: 1rem; /* Larger timestamp font */
        color: #868e96; /* Light gray color */
    }

        /* Right-aligned timestamp */
        .message-card .timestamp.text-end {
            text-align: right;
        }

    /* Hidden input field styling */
    .message-card input[type="hidden"] {
        display: none;
    }
    .message-unread {
        background-color: #e6f7ff; /* Light blue background */
        font-weight: bold;
    }


    .message-read {
        background-color: #ffffff; /* White background */
        border-left: 5px solid #dcdfe3; /* Gray border */
        font-weight: normal;
    }