/* --------------Base.css------------- */
* {
    font-weight: 400;
    font-family: 'Inter', sans-serif;
}

body {
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    background: whitesmoke !important;
    color: black;
}

.title-container{
    margin: 5% 3% 0 3%;
}

.popup-profile-content {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}

/* Navigation bar */
/*----------------------------------------------------------------------------------------*/

h3.logo {
    display: block;
    color: #7A7878;
    text-align: center;
    text-decoration: none;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 27px;
    margin-top: 10px;
    font-weight: 400;
}

#sidebar h3 span {
    color: var(--primary-color);
    font-weight: 750;
}

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    min-width: 260px;
    max-width: 260px;
    background: white;
    transition: all 0.3s;
    border-right: 3px solid var(--primary-color);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 13px;
    z-index: 20;
    box-shadow: 3px 3px rgb(196, 206, 245);
}

#sidebar .sidebar-header {
    padding: 20px;
    background: white;
    border-bottom: 3px solid var(--primary-color);
}

#sidebar #sidebar-user-name {
    text-align: center;
    margin-bottom: 40px;
}

#sidebar ul.components {
    padding-top: 50px;
}

#sidebar ul p {
    color: #fff;
    padding: 10px;
}

#sidebar ul li a {
    padding: 10px;
    font-size: 1.1em;
    display: block;
}

#sidebar ul li span {
    margin-left: 10px;
}

#sidebar ul li a:hover,
#sidebar ul .active a {
    color: var(--primary-color);
    background: var(--primary-light);
    text-decoration: none;
}

#sidebar ul .active a span{
    font-weight: bolder;
}

#id-account-container {
    position: absolute;
    bottom: 1%;
    left: 3%;
}

#id-account-container a {
    display: flex;
    align-items: center;
    color: grey;
    text-decoration: none;
    font-size: 16px;
}
#id-account-container a:hover {
    color: var(--primary-color);
}

#id-account-container span {
    margin-left: 5px;
    font-weight: 400;
}


/*----------------------------------------------------------------------------------------*/
.main {
    width: 100%;
    min-height: 100vh;
    transition: all 0.3s;
    margin-left: 260px;
    padding: 20px 20px 100px;
    min-width: 900px;
}

#sidebar ul a {
    color: var(--primary-color);
}

.bottom-right-button {
    background-color: var(--primary-color);
    border-radius: 20px;
    padding: 5px 10px;
    text-align: center;
    color: whitesmoke;
    width: fit-content;
    pointer-events: auto;
}

@media (max-width: 1400px) {
    #sidebar, #sidebarToggleBtn {
        position: fixed;
        transform: translateX(-260px);
        transition: transform 0.3s ease-in-out;
    }
    #sidebar.show, #sidebarToggleBtn.show {
        transform: translateX(0);
    }
    #sidebarToggleBtn {
        display: block !important;
    }
    .main {
        margin-left: 0;
    }
    .main.show {
        margin-left: 260px;
    }
}

@media (max-height: 500px) {
    #id-account-container {
        display: none;
    }
}

#close-referral {
    color: whitesmoke;
    cursor: pointer;
}

.referral-header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px;
    border-radius: 5px 5px 0 0;
}

.referral-body {
    background-color: whitesmoke;
    color: black;
    padding: 20px;
    border-radius: 5px;
    overflow-y: auto;
    max-height: 75vh;
}

.referral-body h5 {
    color: var(--primary-color);
}


.referral-container {
    display: none;
    position: fixed;
    z-index: 30;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(239, 240, 241, 0.95);
    justify-content: center;
    align-items: center;
}

.referral-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    min-width: 40%;
    max-width: 90%;
}

.i-account-button {
    height: 35px;
    align-items: center;
    justify-content: center;
}

.bottom-right-button-container {
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 0.25rem;
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 10;
    pointer-events: none;
}

/* ---- message sidebar ---- */
.sidebar-nav-btn {
    color: white;
    margin-bottom: 0;
    position: relative;
}

.sidebar-nav-btn:hover {
    color: #cccccc;
}

.sidebar-nav-btn.active {
    border-bottom: solid white 2px;
}

.sidebar-item {
    flex: 1;
    display: flex;
    justify-content: center;
}

.list-container {
    height: 100%;
    overflow: auto;
    position: relative;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.list-container::-webkit-scrollbar {
    display: none;
}

.gradient-container {
    height: 100%;
    overflow: auto;
}

.gradient-container::after {
    background: linear-gradient(0deg, #18174dff 0%, #18174d00 100%);
    content: "";
    height: 5%;
    position: absolute;
    width: 21rem;
    z-index: 2;
    left: 2rem;
    bottom: 3rem;
}

.new-message-paper-title {
    transition: transform 0.2s ease;
    transform-origin: left center;
    cursor: pointer;
    color: #f0f0f0;
}

.new-message-paper-title:hover svg {
    transform: translateX(5px);
}

.messages-activities {
    position: fixed;
    top: 0;
    right: 0;
    width: 25rem;
    z-index: 20;
    background-color: var(--primary-color);
    color: white;
    transform: translateX(100%);
}

.message-activity-btn {
    position: absolute;
    top: 2rem;
    left: 0.25rem;
    transform: translateX(-100%);
    padding: 1rem 1rem;
    box-shadow: none;
    z-index: 10;
}
.message-activity-btn:focus {
    box-shadow: none;
}

.messages-activities .message-container {
    height: 100vh;
    padding: 3rem 2rem;
    display: grid;
    grid-template-rows: auto 1fr;
}

.view-unread-message {
    cursor: pointer;
}

.filter-activity-btn {
    background-color: var(--primary-color);
    border: #f9f9f9 1px solid;
    border-radius: 5px;
    padding: 0.25rem;
    color: #f9f9f9;
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
}
.filter-activity-btn.active {
    background-color: #f9f9f9;
    color: var(--primary-color);
}

.in {
    transform: translateX(0);
}

.slide-in {
    animation: slide-in 200ms ease-in-out 0s 1 normal forwards;
}

.slide-out {
    animation: slide-out 200ms ease-in-out 0s 1 normal forwards;
}

@keyframes slide-in {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
@keyframes slide-out {
    from { transform: translateX(0%); }
    to { transform: translateX(100%); }
}

.number_activity {
    background-color: red;
    color: white;
    border-radius: 50%;
    height: 18px;
    width: 18px;
    font-size: 12px;
    text-align: center;
    position: absolute;
    top: 0;
    left: -1rem;
    transform: translate(50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.author_chat_activity {
    background-color: red;
    color: white;
    border-radius: 50%;
    height: 18px;
    width: 18px;
    font-size: 12px;
    text-align: center;
    position: absolute;
    top: 0;
    left: -1rem;
    transform: translate(50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.editor_chat_activity {
    background-color: red;
    color: white;
    border-radius: 50%;
    height: 18px;
    width: 18px;
    font-size: 12px;
    text-align: center;
    position: absolute;
    top: 0;
    left: -1rem;
    transform: translate(50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.single-activity-sidebar {
    position: relative;
}
.new-activity-modification::before {
    content: "new!";
    height: 1rem;
    width: 2rem;
    border-radius: 5px;
    background-color: orange;
    position: absolute;
    bottom: 0.25rem;
    right: 10rem;
    font-size: 10px;
    text-align: center;
    color: var(--primary-color);
}

.messages-activities .tab-content .tab-pane.active {
    display: grid;
    grid-template-rows: auto 1fr;
}

/* sus-container*/
.sus-container {
    display: none;
    position: fixed;
    z-index: 30;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(239, 240, 241, 0.95);
}

.sus-form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

#sus-form {
    background-color: whitesmoke;
    width: 70%;
    min-width: 500px;
    padding: 20px;
    border-radius: 10px;
    border: var(--primary-color) 1px solid;
}

.sus-option {
    background-color: var(--primary-light);
    width: 52px;
    height: 52px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    cursor: pointer;
    color: var(--primary-color);
    font-weight: bold;
    position: relative;
    transition: transform 0.3s ease-in-out;
}

.sus-option.checked {
    box-shadow: 0 0 0 0.2rem rgb(194, 204, 243);
}

.sus-option::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-right: 3px solid #686868;
    border-bottom: 3px solid #686868;
    transform: rotate(45deg);
    top: 50%;
    left: 50%;
    opacity: 0;
    transition: width 0.3s ease-in-out, height 0.3s ease-in-out, opacity 0.2s ease-in-out;
}

.sus-option.checked::after {
    width: 10px;
    height: 20px;
    opacity: 1;
    top: 26%;
    left: 42%;
}

.sus-option:hover {
    box-shadow: 0 0 0 0.2rem rgb(194, 204, 243);
}

.sus-question-container {
    padding: 2rem 0;
    display: none;
}

.sus-question-container.show {
    display: block;
}

.sus-question-title {
    color: var(--primary-color);
    text-align: center;
    width: 100%;
}

.sus-question-num {
    padding-left: 15px;
    font-weight: bold;
    color: gray;
    margin-right: 10px;
}

#sus-skip {
    color: gray;
    margin-bottom: 0;
    margin-right: 1.5rem;
    cursor: pointer;
}