﻿.custom-toggle-btn {
    all: unset;
    cursor: pointer;
    display: inline-block;
}

.notification-wrapper {
    position: relative;
    width: 100%;
}

@media (max-width: 768px) {
    .hide-on-small {
        display: none;
    }

    #left-side-bar {
        width: 0;
        transition: width 0.3s ease;
    }

        #left-side-bar.expanded {
            width: max-content !important;
            position: absolute !important;
            box-shadow: 2px 0 8px rgba(0,0,0,0.15);
            padding-top: 50px;
            transition: transform 0.3s ease-in-out;
        }
}

@media (min-width: 769px) {
    #left-side-bar {
        width: max-content;
    }
}



.disabled {
    pointer-events: none;
    opacity: 0.6;
}

.rz-menu .rz-navigation-item {
    justify-items: flex-end;
    direction: rtl;
}

.rz-menu:not(.rz-profile-menu) .rz-navigation-menu .rz-navigation-item-wrapper {
    float: left;
    direction: ltr;
}

.rz-navigation-item .rz-navigation-item-wrapper {
    width: 100%;
}

.rz-profile-menu .rz-navigation-item-icon-children {
    display: none !important;
}

.item-with-icon img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
}

.librariesdp {
}

    .librariesdp .rz-dropdown-panel {
        height: 500px !important; /* Set a new maximum height */
        width: 400px;
        overflow-y: auto; /* Add a scrollbar if needed */
        background-color: red;
    }

.lanugage-popup {
    display: none;
    position: absolute;
    overflow: hidden;
    width: 130px;
    right: 10px;
    padding: 10px;
    border: var(--rz-panel-border);
    background-color: var(--rz-panel-background-color);
    box-shadow: var(--rz-panel-shadow);
    border-radius: var(--rz-border-radius)
}

.colored-word span {
    font-size: 24px;
    font-weight: bold;
    width: 300px;
}

.colored-word .char1 {
    color: red;
}

.colored-word .char2 {
    color: blue;
}

.colored-word .char3 {
    color: green;
}

.colored-word .char4 {
    color: orange;
}

.colored-word .char5 {
    color: purple;
}

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }
}

.rz-menu .rz-navigation-item {
    justify-items: flex-start !important;
    direction: ltr !important;
}

.rz-body {
    padding: 0 !important;
    margin: 0 !important
}

.hide-sm {
    display: none !important;
}

.show-sm {
    display: block !important;
}

.hide-lg {
    display: none !important;
}

.show-lg {
    display: block !important;
}

.submenu-item {
    padding-left: 5px !important;
}


.faq-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    z-index: 1100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}
.chat-button {
    position: fixed;
    bottom: 20px;
    right: 80px;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    z-index: 1100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

    .faq-button:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.faq-dialog {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    max-height: 70vh;
    background-color: var(--rz-panel-background-color);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    z-index: 1051;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.faq-header {
    padding: 16px;
    background-color: var(--rz-secondary-background-color);
    border-bottom: 1px solid var(--rz-border-color);
    display: flex;
    align-items: center;
}

.faq-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px;
}

.faq-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--rz-border-color);
    transition: background-color 0.2s ease;
}

    .faq-item:last-child {
        border-bottom: none;
    }

    .faq-item:hover {
        background-color: var(--rz-grid-hover-background-color);
    }

.faq-question {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
}

.faq-answer {
    padding: 8px 0 12px 24px;
    color: var(--rz-text-secondary-color);
    animation: fadeIn 0.3s ease-out;
}

.ask-librarian {
    padding: 16px;
    background-color: var(--rz-secondary-background-color);
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .ask-librarian:hover {
        background-color: var(--rz-grid-hover-background-color);
    }

/* Chat Dialog Styles */
.chat-dialog {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 380px;
    max-height: 60vh;
    background-color: var(--rz-panel-background-color);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    z-index: 1051;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    padding: 16px;
    background-color: var(--rz-secondary-background-color);
    border-bottom: 1px solid var(--rz-border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

.chat-input-area {
    padding: 16px;
    border-top: 1px solid var(--rz-border-color);
    background-color: var(--rz-secondary-background-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .faq-dialog,
    .chat-dialog {
        width: 90vw;
        right: 5vw;
        max-height: 60vh;
    }

    .faq-button {
        bottom: 70px;
        right: 20px;
    }
    .chat-button {
        bottom: 70px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .faq-dialog,
    .chat-dialog {
        width: 95vw;
        right: 2.5vw;
        bottom: 80px;
    }

    .faq-button {
        width: 50px;
        height: 50px;
        bottom: 60px;
    }
    .chat-button {
        width: 50px;
        height: 50px;
        bottom: 60px;
    }
}

.notification-badge {
    position: absolute;
    background-color: #d71313;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px white;
}

    .notification-badge.profile {
        top: 0;
        right: -8px;
    }

    .notification-badge.sidebar-icon {
        position: initial !important;
        margin-left: 5px !important;
    }

.onedigit {
    font-size: 12px;
    line-height: 1;
    padding: 2px 5px;
}

.twodigit {
    font-size: 11px;
    line-height: 1;
    padding: 4px;
}

.plus {
    font-size: 9px;
    line-height: 1.2;
    padding: 5px 4px;
}

.rz-navigation-item-link {
    overflow: visible !important;
}

.icon-label {
    position: absolute;
    display: flex;
    justify-content: center;
    width: 40px;
}

    .icon-label p {
        margin-top: 2px;
        font-size: 11px !important;
        /* color: var(--rz-primary-dark) !important; */
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

.translate-btn {
    background-color: var(--rz-primary) !important;
    color: var(--rz-on-primary) !important;
}
