/* Container and slider style */
.theme-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
}

.theme-toggle {
    display: none;
}

/* Slider style */
.slider {
    position: relative;
    width: 60px;
    height: 34px;
    background-color: #ccc;
    border-radius: 34px;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* Slider circle style */
.slider:before {
    content: "";
    position: absolute;
    left: 4px;
    top: 4px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: white;
    transition: 0.3s;
}

/* Icons for sun and moon */
.icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    transition: opacity 0.3s;
}

.sun {
    left: 5px;
    opacity: 1;
}

.moon {
    right: 5px;
    opacity: 0;
}

/* When the checkbox is checked (dark mode) */
.theme-toggle:checked + .slider {
    background-color: #4d4d4d;
}

.theme-toggle:checked + .slider:before {
    transform: translateX(26px);
}

/* Show moon icon and hide sun icon in dark mode */
.theme-toggle:checked + .slider .sun {
    opacity: 0;
}

.theme-toggle:checked + .slider .moon {
    opacity: 1;
}

/* Apply dark mode styles */
.theme-toggle:checked ~ body {
    background-color: #121212;
    color: #ffffff;
}
.chat {
    list-style: none;
    margin: 0;
    padding: 0;
}

.chat li {
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 1px dotted #B3A9A9;
}

.chat li .chat-body p {
    margin: 0;
    color: #777777;
}

.panel-body {
    overflow-y: scroll;
    height: 350px;
}

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: #F5F5F5;
}

::-webkit-scrollbar {
    width: 12px;
    background-color: #F5F5F5;
}

::-webkit-scrollbar-thumb {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
    background-color: #555;
}

.footer {
    position: relative;
    width: 100%;
    bottom: 0px;
}
#chat-box {
    height: 52vh;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.my-friend {
    cursor: pointer;
}

.same-height{
    max-height: 52vh;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.same-height{
    margin-bottom: 48px;
}
