﻿body {
    font-family: Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
    display: inline;
}

.sidebar {
    width: 250px;
    height: 90vh;
    background: #384859;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    position: absolute;
    left: -250px;
    transition: left 0.1s;
    z-index: 1;
    overflow-y: auto;
    overflow-x: hidden;
}
.sidebar-content {
    width: 100%;
    /*min-height:80vh;*/
    /*height:100%;*/
}
    .sidebar.show {
        left: 0;
    }

.class_inline
{
    display: flex;
    /*margin-left:36px;*/
}

#ToppicTitleId {
    margin-left: 24px;
    margin-top: 5px;
}
.toggle-button {
    position: absolute;
    /* left: 200px;
    top: 50%;
    transform: translateY(-50%);*/
    /* padding: 5px;*/
    background-color: transparent !important;
    color: #10A37F !important;
    border: none;
    cursor: pointer;
    z-index: 201;
    font-weight: bold;
    font-size: larger;
    margin: 3px;
}
.chat-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 80vh; /*sua cai nay*/
    position: relative;
}

.chat-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
    max-height: 70vh; /*sua cai nay*/
}

.chat-container.shifted {
    margin-left: 200px;
    width: calc(100% - 200px);
}

.chat-messages {
    flex: 1;
    /* padding: 20px;*/
    overflow-y: auto;
    margin-left: 40px;
    z-index: 0;
}

.message {
    /*margin-bottom: 15px;*/
    display:flex;
    text-align: start;
}

    .message .role {
        font-weight: bold;
        display: inline-block;
        vertical-align: top;
        width: 32px;
        color: #10A37F;
    }

    .message .question {
        margin-left: 10px;
        display: inline-block;
        padding-left: 10px;
        margin-bottom: 5px;
        border-left: 2px solid #0000fb;
        color: #0000fb;
    }

    .message .reply {
        margin-left: 10px;
        display: inline-block;
        padding-left: 10px;
        margin-bottom: 5px;
        border-left: 2px solid #10A37F;
    }

.input-box {
    position: absolute;
    bottom: 0px;
    right: 0;
    left: 0;
    /*display: flex;*/
    padding: 10px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    max-width: 1024px;
    margin: auto;
    border-radius: 5px;
}

#chat-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    resize: none;
    font-size: 16px;
    overflow-y: hidden; /* Hide scrollbar */
    max-height: 300px;
    overflow-y: auto;
}

    #chat-input:focus {
        border-color: #10A37F; /* Change border color */
        outline: none;
    }

#send-button {
    margin-left: 10px;
    padding: 10px 20px;
    border: none;
    background-color: #10A37F;
    color: white;
    font-size: 24px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

    #send-button:hover {
        background-color: #1ec39b;
    }

.spinner {
    display: none; /* Bắt đầu ẩn spinner */
    width: 50px;
    height: 50px;
    border: 5px solid lightgray;
    border-top: 5px solid #10A37F;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2024;
}
/*Share popub*/

.popup {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 500px;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
    color: black;
}

.share-link-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

#shareLink {
    width: 70%;
    padding: 5px;
    margin-right: 10px;
}

#copyLinkBtn {
    padding: 5px 10px;
    cursor: pointer;
}

.social-buttons button {
    margin: 5px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
}

/*End Share link*/
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    /* #sidebar {
        display: none;
    }

        #sidebar.show {
            display: flex;
            position: fixed;
            top: 0;
            left: 0;
            height: 100%;
            z-index: 999;
        }*/
    .chat-messages {
        margin-left: 0px;
    }

    #chat-input {
        width: 100%;
        left: 0;
    }

        #chat-input input {
            width: 85%;
            left: 0;
        }
    .chat-container {
        height: 80vh; /*sua cai nay*/
    }

    .chat-box {
        max-height: 70vh; /*sua cai nay*/
    }
}

.btn-light {
    min-width: 120px;
    border-color: #ddd;
    background-color: white;
}

    .btn-light:hover {
        background-color: #ddd;
        border-color: #8ad3d3
    }

.btn-primary {
    color: #f3f6f4;
    background-color: #10a37f;
    border-color: #5bc2c2;
    min-width: 120px;
}

    .btn-primary:hover {
        color: #f3f6f4;
        background-color: #0c7e62;
        border-color: #8ad3d3
    }

    .btn-primary:focus,
    .btn-primary.focus {
        box-shadow: 0 0 0 .2rem rgba(91, 194, 194, 0.5)
    }

    .btn-primary.disabled,
    .btn-primary:disabled {
        color: #f3f6f4;
        background-color: #7cc;
        border-color: #5bc2c2
    }

    .btn-primary:not(:disabled):not(.disabled):active,
    .btn-primary:not(:disabled):not(.disabled).active,
    .show > .btn-primary.dropdown-toggle {
        color: #212529;
        background-color: #9cdada;
        border-color: #2e7c7c
    }

        .btn-primary:not(:disabled):not(.disabled):active:focus,
        .btn-primary:not(:disabled):not(.disabled).active:focus,
        .show > .btn-primary.dropdown-toggle:focus {
            box-shadow: 0 0 0 .2rem rgba(91, 194, 194, 0.5)
        }

.btn-outline-primary {
    color: #10A37F;
    background-color: transparent;
    background-image: none;
    border-color: #10A37F
}

    .btn-outline-primary:hover {
        color: #222;
        background-color: #8ad3d3;
        border-color: #10A37F
    }

    .btn-outline-primary:focus,
    .btn-outline-primary.focus {
        box-shadow: 0 0 0 .2rem rgba(119, 204, 204, 0.5)
    }

    .btn-outline-primary.disabled,
    .btn-outline-primary:disabled {
        color: #10A37F;
        background-color: transparent
    }

    .btn-outline-primary:not(:disabled):not(.disabled):active,
    .btn-outline-primary:not(:disabled):not(.disabled).active,
    .show > .btn-outline-primary.dropdown-toggle {
        color: #212529;
        background-color: #8ad3d3;
        border-color: #7cc
    }

        .btn-outline-primary:not(:disabled):not(.disabled):active:focus,
        .btn-outline-primary:not(:disabled):not(.disabled).active:focus,
        .show > .btn-outline-primary.dropdown-toggle:focus {
            box-shadow: 0 0 0 .2rem rgba(119, 204, 204, 0.5)
        }

.login-page {
    width: 100%;
    padding: 2% 0 0;
    margin: auto;
    height: auto !important;
    max-width: 480px;
}

.text-primary {
    color:#008564 !important;
}

.menu {
    width: 100%;
    z-index: 1000;
}

    .menu ul {
        list-style-type: none;
        padding: 0;
    }

    .menu li {
        display: block;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
        padding: 0px;
        border-radius: 4px;
        position: relative;
    }

.topic {
    list-style-type: none !important;
    text-align: left;
    padding: 0;
    position: relative;
}

    .topic:hover {
        background-color: rgba(0, 0, 0, 0.1);
        transition: background-color 0.5s;
    }

.topic-name {
    display: inline-block;
    min-width: 100px; /* Adjust as needed */
    padding: 5px;
    margin: 3px;
    text-decoration: none;
    color: white;
    font-weight: normal;
}
    .topic-name:hover {
        color:#10A37F;
    }
.dropbtn {
    background-color: transparent;
    margin: 5px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    color:aliceblue;
   /* float:right;*/
}

.dropdown-container {
    position: absolute;
    display: none;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 101;
}

.topic-input {
    width: 100%;
    padding: 5px;
    font-size: 16px;
    border: 0px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Đảm bảo input không vượt quá kích thước của phần tử cha */
}

.dropdown-content {
    display: block;
}

    .dropdown-content a {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
    }

        .dropdown-content a:hover {
            background-color: #f1f1f1;
        }
.file-upload {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 96px;
    border: 1px dashed #10A37F;
    border-radius: 5px;
    background-color: #f8f9fa;
    color: #10A37F;
    cursor: pointer;
    transition: background-color 0.3s;
    padding: 10px 20px;
    font-size: 16px;
}

    .file-upload:hover {
        background-color: #e9ecef;
    }

    .file-upload input[type="file"] {
        display: none; /* Ẩn input file gốc */
    }

.file-icon {
    width: 20px; /* Thay đổi kích thước icon */
    height: 20px; /* Thay đổi kích thước icon */
    margin-right: 10px; /* khoảng cách giữa icon và text */
}
.files_name_upload {
    display: block; /* Mặc định, nhưng thêm để minh họa */
    margin-top: 20px; /* Tạo khoảng cách bên trên nếu cần */
    clear: both; /* Xóa các phần tử nổi nếu input-box */
    max-width: 1024px;
    text-align: left;
    margin: auto;
    position:relative;
    height:auto;
}