html,
body {
    height: 100%;
    font-family: "Lato", sans-serif;
    min-height: 100vh;
}

.dark {
    --text-color: #ffffff;
    --text-chat-color: #d1d5db;
    --text-alt-color: #686e71;
    --primary-background: #141718;
    --secondary-background: #232627;
    --primary-alt-color: #008bff;
}

.light {
    --text-color: #000000;
    --text-chat-color: #374151;
    --text-alt-color: #686e71;
    --primary-background: #fff;
    --secondary-background: #f1f1f1;
    --primary-alt-color: #008bff;
}
.gfg {
    height: 50px;
    width: 50px;
}

#bdSidebar {
    width: 280px;
    background-color: var(--primary-background) !important;
}

.mynav {
    color: var(--text-color);
}

.mynav li a {
    color: var(--text-color);
    text-decoration: none;
    width: 100%;
    display: block;
    border-radius: 5px;
    padding: 8px 5px;
}

.mynav li a.active {
    background: rgba(255, 255, 255, 0.2);
}

.mynav li a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mynav li a i {
    width: 25px;
    text-align: center;
}

.notification-badge {
    background-color: rgba(255, 255, 255, 0.7);
    float: right;
    color: #222;
    font-size: 14px;
    padding: 0px 8px;
    border-radius: 2px;
}

.bg-black {
    background-color: var(--primary-background) !important;
}
.chat-body {
    height: 100%;
    border-radius: 20px;
    background-color: var(--secondary-background) !important;
}

.chat-parent {
    padding: 20px 20px 20px 0px;
    background-color: var(--primary-background);
    height: 100%;
    min-height: 100vh;
    width: calc(100vw - 280px);
}

.sidebar-resp {
    padding: 20px;
}

.chat-body-grid h1 {
    color: var(--text-color);
}

.sidebar-title {
    color: var(--text-alt-color);
    font-size: 12px;
}

.recent-queries {
    list-style: none;
    padding: 0;
}

.recent-queries li {
    width: 240px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 8px 0px;
    display: inline-block;
}

.top-apps-card {
    background-color: var(--secondary-background) !important;
    border-radius: 10px;
    padding: 10px;
    height: 100%;
    display: grid;
    grid-template-columns: 45px auto;
}

.top-apps-card img {
    border-radius: 5px;
}

.version-top {
    font-size: 12px;
    color: var(--text-alt-color);
}

.name-top {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 175px;
}

.top-apps-section {
    list-style: none;
    padding: 0;
}
.top-apps-section li {
    width: 250px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 2px 0px;
    display: inline-block;
}

/* Typing container styling */
.typing-container {
    bottom: 0;
    width: 100%;
    display: flex;
    padding: 20px 10px;
    justify-content: center;
}
.typing-container .typing-content {
    display: flex;
    max-width: 950px;
    width: 100%;
    align-items: flex-end;
}
.typing-container .typing-textarea {
    width: 100%;
    display: flex;
    position: relative;
    border: 1px solid var(--text-alt-color);
    border-radius: 10px;
}
.typing-textarea #chat-input {
    resize: none;
    height: auto;
    width: 100%;
    border: none;
    padding: 13px 45px 13px 20px;
    color: var(--text-color);
    font-size: 1rem;
    border-radius: 4px;
    max-height: 250px;
    overflow-y: hidden;
    background: var(--secondary-background);
    border-radius: 10px;
}
.container {
    max-width: 950px;
}
#chat-input[contenteditable]:empty::before {
    content: "Enter a prompt here";
    color: var(--text-alt-color);
}
#chat-input[contenteditable="true"]:empty:before {
    content: attr(data-placeholder);
    color: var(--text-alt-color);
}
.typing-textarea textarea::placeholder {
    color: var(--placeholder-color);
}
.typing-content span {
    width: 55px;
    height: 50px;
    display: flex;
    border-radius: 4px;
    font-size: 1.35rem;
    align-items: center;
    justify-content: center;
    color: var(--icon-color);
}
.typing-textarea span {
    position: absolute;
    right: 0;
    bottom: 0;
    visibility: hidden;
}
.typing-textarea textarea:valid ~ span {
    visibility: visible;
}
.typing-controls {
    display: flex;
}
.typing-controls span {
    margin-left: 7px;
    font-size: 1.4rem;
    background: var(--incoming-chat-bg);
    outline: 1px solid var(--incoming-chat-border);
}
.typing-controls span:hover {
    background: var(--icon-hover-bg);
}

.chat-body-grid {
    display: grid;
    grid-template-rows: auto auto;
    height: 100%;
}

.chat-body-start {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.chat-body-start div {
    width: 300px;
    border: 1px solid var(--text-alt-color);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
}

.chat-body-start div p {
    margin: 0;
}

.chat-body-start div p:last-child {
    color: var(--text-alt-color);
    font-size: 12px;
    cursor: pointer;
}

.chat-body-start div p:nth-child(1) {
    color: var(--text-color);
}

/* Default */
.theme {
    display: flex;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
}
.matching-options {
    background-color: var(--secondary-background);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 15px;
}

.matching-options h4 {
    color: var(--text-color);
    margin-bottom: 10px;
}

.matching-options .saved-prompt {
    background-color: var(--primary-background);
    color: var(--text-color);
    padding: 8px 12px;
    margin-bottom: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.matching-options .saved-prompt:hover {
    background-color: var(--primary-alt-color);
}
.theme span {
    color: var(--text-color);
}
.theme__fill,
.theme__icon {
    transition: transform var(--transDur) ease-in-out;
}
.theme__fill {
    display: block;
    mix-blend-mode: difference;
    position: fixed;
    inset: 0;
    height: 100%;
    transform: translateX(-100%);
}
.theme__icon,
.theme__toggle {
    z-index: 1;
}
.theme__icon,
.theme__icon-part {
    position: absolute;
}
.theme__icon {
    display: block;
    top: 0.75em;
    left: 0.75em;
    width: 1.5em;
    height: 1.5em;
}
.theme__icon-part {
    border-radius: 50%;
    box-shadow: 0.4em -0.4em 0 0.5em hsl(0, 0%, 100%) inset;
    top: calc(50% - 0.5em);
    left: calc(50% - 0.5em);
    width: 1em;
    height: 1em;
    transition: box-shadow var(--transDur) ease-in-out,
        opacity var(--transDur) ease-in-out,
        transform var(--transDur) ease-in-out;
    transform: scale(0.5);
}
.theme__icon-part ~ .theme__icon-part {
    background-color: var(--text-color);
    border-radius: 0.05em;
    box-shadow: none;
    top: 50%;
    left: calc(50% - 0.05em);
    transform: rotate(0deg) translateY(0.5em);
    transform-origin: 50% 0;
    width: 0.1em;
    height: 0.2em;
}
.theme__icon-part:nth-child(3) {
    transform: rotate(45deg) translateY(0.5em);
}
.theme__icon-part:nth-child(4) {
    transform: rotate(90deg) translateY(0.5em);
}
.theme__icon-part:nth-child(5) {
    transform: rotate(135deg) translateY(0.5em);
}
.theme__icon-part:nth-child(6) {
    transform: rotate(180deg) translateY(0.5em);
}
.theme__icon-part:nth-child(7) {
    transform: rotate(225deg) translateY(0.5em);
}
.theme__icon-part:nth-child(8) {
    transform: rotate(270deg) translateY(0.5em);
}
.theme__icon-part:nth-child(9) {
    transform: rotate(315deg) translateY(0.5em);
}
.theme__label,
.theme__toggle,
.theme__toggle-wrap {
    position: relative;
}
.theme__toggle,
.theme__toggle:before {
    display: block;
}
.theme__toggle {
    background-color: var(--secondary-background);
    border-radius: 25% / 50%;
    box-shadow: 0 0 0 0.125em var(--primaryT);
    padding: 0.25em;
    width: 6em;
    height: 3em;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color var(--transDur) ease-in-out,
        box-shadow 0.15s ease-in-out, transform var(--transDur) ease-in-out;
}
.theme__toggle:before {
    background-color: var(--primary-background);
    border-radius: 50%;
    content: "";
    width: 2.5em;
    height: 2.5em;
    transition: background-color var(--transDur) ease-in-out,
        transform var(--transDur) ease-in-out;
}
.theme__toggle:focus {
    box-shadow: 0 0 0 0.125em var(--primary);
    outline: transparent;
}

/* Checked */
.theme__toggle:checked {
    background-color: var(--secondary-background);
}
.theme__toggle:checked:before,
.theme__toggle:checked ~ .theme__icon {
    transform: translateX(3em);
}
.theme__toggle:checked:before {
    background-color: var(--primary-background);
}
.theme__toggle:checked ~ .theme__fill {
    transform: translateX(0);
}
.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(1) {
    box-shadow: 0.2em -0.2em 0 0.2em hsl(0, 0%, 100%) inset;
    transform: scale(1);
}
.theme__toggle:checked ~ .theme__icon .theme__icon-part ~ .theme__icon-part {
    opacity: 0;
}
.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(2) {
    transform: rotate(45deg) translateY(0.8em);
}
.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(3) {
    transform: rotate(90deg) translateY(0.8em);
}
.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(4) {
    transform: rotate(135deg) translateY(0.8em);
}
.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(5) {
    transform: rotate(180deg) translateY(0.8em);
}
.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(6) {
    transform: rotate(225deg) translateY(0.8em);
}
.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(7) {
    transform: rotate(270deg) translateY(0.8em);
}
.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(8) {
    transform: rotate(315deg) translateY(0.8em);
}
.theme__toggle:checked ~ .theme__icon .theme__icon-part:nth-child(9) {
    transform: rotate(360deg) translateY(0.8em);
}
.theme__toggle-wrap {
    margin: 0 0.75em;
}

@supports selector(:focus-visible) {
    .theme__toggle:focus {
        box-shadow: 0 0 0 0.125em var(--primaryT);
    }
    .theme__toggle:focus-visible {
        box-shadow: 0 0 0 0.125em var(--primary);
    }
}

#send-btn i {
    color: var(--text-alt-color);
}

.chat-body-main {
    padding: 60px 20px 0px 20px;
    max-width: 62rem;
    width: 100%;
    margin: 0px auto;
    overflow-y: auto;
}

.chat-group {
    display: grid;
    grid-template-columns: 20px auto;
    grid-gap: 10px;
}

.chat-group h4 {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color);
}

.chat-group P {
    color: var(--text-chat-color);
}

.chat-group i {
    color: var(--text-color);
}

@media only screen and (max-width: 768px) {
    .chat-parent {
        padding: 4px 10px 10px 10px;
        width: 100%;
        height: calc(100% - 50px);
    }

    .chat-body-grid {
        display: grid;
        grid-template-rows: auto auto;
        height: 100%;
    }

    .bot-response img {
        width: 70vw !important;
    }
}

.bot-response span {
    color: var(--text-chat-color) !important;
}

.loader {
    margin-left: 20px;
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 20%;
    background-color: var(--text-color);
    box-shadow: 20px 0 var(--text-color), -20px 0 var(--text-color);
    position: relative;
    animation: flash 0.5s ease-out infinite alternate;
}

@keyframes flash {
    0% {
        background-color: #fff2;
        box-shadow: 20px 0 #fff2, -20px 0 var(--text-color);
    }
    50% {
        background-color: var(--text-color);
        box-shadow: 20px 0 #fff2, -20px 0 #fff2;
    }
    100% {
        background-color: #fff2;
        box-shadow: 20px 0 var(--text-color), -20px 0 #fff2;
    }
}

.noty_theme__mint {
    background-color: var(--primary-alt-color) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    border-bottom: 1px solid #00477e !important;
}

.Typewriter__wrapper p {
    margin-bottom: 0px !important;
}
.chat-group-parent {
    overflow-y: auto;
}

.chat-group-parent::-webkit-scrollbar-track {
    background-color: var(--secondary-background);
}

.chat-group-parent::-webkit-scrollbar {
    width: 10px;
    background-color: #f5f5f5;
}

.chat-group-parent::-webkit-scrollbar-thumb {
    background-color: var(--primary-background);
}

.bot-response img {
    width: 45vw;
}

.text-white {
    color: var(--text-color) !important;
}

.chat-section font {
    color: var(--text-chat-color) !important;
}

.recent-queries li {
    cursor: pointer;
}

.top-apps-section li {
    cursor: pointer;
}

.chat-body-start div {
    cursor: pointer;
}

.loading-animation {
    display: inline-flex;
    align-items: center;
    height: 20px;
}

.loading-animation .dot {
    width: 6px;
    height: 6px;
    margin: 0 3px;
    background-color: var(--text-color);
    border-radius: 50%;
    opacity: 0;
    animation: loadingAnimation 1.4s infinite ease-in-out;
}

.loading-animation .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-animation .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loadingAnimation {
    0%,
    100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

.chat-group .message-content {
    display: flex;
    flex-direction: column;
}

.chat-group .message-text {
    min-height: 20px;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.chat-parent {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 20px 20px 0 0;
    background-color: var(--primary-background);
}

.chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.container {
    max-width: 950px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chat-body-grid {
    flex: 1;
    overflow-y: auto;
}

.chat-group-parent {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
}

.typing-container {
    padding: 10px 0;
    margin-top: auto;
}

@media only screen and (max-width: 768px) {
    .chat-parent {
        padding: 10px;
        height: 100vh;
    }
}
.chat-group-parent {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
    max-height: calc(100vh - 100px); /* Adjust based on your layout */
}
