@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #111;
    color: #ededed;
    margin: 0;
    padding: 0;
}

#messageContainer {
    max-height: 500px; /* Adjust this value according to your needs */
    overflow-y: auto;
}

.shrink {
    transform: scale(0.9);
}

#loadingBar {
    height: 2px;
    background-color: #d9534d;
    position: fixed;
    top: 0;
    left: 0;
    opacity: 1;
    transition: opacity 0.3s ease, width 0.1s ease;
}
.drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    transition: transform 0.3s;
    transform: translateY(100%);
    z-index: 2;
}

.drawer.open {
    transform: translateY(0);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
    z-index: 1;
    display: none;
}

.overlay.active {
    display: block;
}

.sidebar-section ul a,
.sidebar a:hover .text-primary,
.sidebar a:hover .text-fade,
.sidebar a:hover .text-sidebar-unfocused {
    color: #ededed;
}

.sidebar-section ul a:hover,
.sidebar a:hover .icon-tabler {
    color: #fff;
}

body.no-scroll {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
}

.embed {
    border-left: 4px solid #2c2d31;
    background-color: #2c2d31;
    padding: 10px;
    margin-left: 60px;
    border-radius: 5px;
    max-width: 400px;
    position: relative;
}
.embed-thumbnail {
    position: absolute;
    top: 0;
    right: 0;
    margin: 10px;
}
.embed-thumbnail img {
    width: 80px;
    height: 80px;
    border-radius: 5px;
}
.embed-content {
    margin-right: 100px; /* Adjust margin to accommodate thumbnail */
}
.content {
    margin-left: 59px; /* Adjust margin to accommodate thumbnail */
}
.embed-author {
    color: #b9bbbe;
    font-size: 12px;
    margin-bottom: 5px;
    margin-top: 3px;
    display: flex;
    align-items: center;
}
.authorInput {
    margin-right: 5px;
}
.authorIconURL {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 5px;
}
.title {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 3px;
    margin-top: 8px;
    word-wrap: break-word;
}
.discription {
    font-size: 14px;
    margin-bottom: 5px;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.footerSection {
    display: flex;
    align-items: center; /* This will vertically align the items in the center */
}

.fields {
    margin-bottom: 10px;
}
.slide-up {
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.embed-field {
    color: #b9bbbe;
    font-size: 12px;
    margin-bottom: 5px;
    word-wrap: break-word;
}
.footer {
    color: #b9bbbe;
    font-size: 12px;
    display: flex;
    align-items: center;
}
.footerURL {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 5px;
}

.content {
    display: block;
    margin-right: 5px;
    margin-bottom: 5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 60%; /* Adjust this value as needed */
}

.field-element {
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.message-content .content {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.navbar {
    position: sticky;
    top: 0;
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid #2d2d2d;
    background-color: #0a0a0a;
    z-index: 30;
}

.sidebar {
    position: fixed;
    width: 64px;
    top: 64px;
    bottom: 0;
    overflow-y: auto;
    background-color: #0a0a0a;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 20;
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 20;
    display: none;
    overflow: hidden;
}
.overlay.active {
    display: block;
}
.overlay-active-body {
    overflow: hidden;
}
.loading-spinner,
.dropdown-menu,
.dropdown-toggle,
.checkmark,
.checkmark-icon,
.icon-switch,
#select-modal.fade-out {
    transition: transform 0.15s ease-in-out, opacity 0.15s ease-in-out;
}

#logout-modal.fade-out {
    transition: transform 0.15s ease-in-out, opacity 0.15s ease-in-out;
}

.dropdown-menu {
    border: 1px solid #2d2d2d;
}

.loading-spinner {
    width: 25px;
    height: 25px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 0.3s linear infinite;
}

.dropdown-menu,
.dropdown-menu-user,
.checkmark-icon {
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    overflow: hidden;
}

.dropdown-menu.show,
.dropdown-menu-user.show {
    transform: scaleY(1);
    opacity: 1;
}

.dropdown-toggle,
.dropdown-toggle-user {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.dropdown-toggle .icon-chevron-down,
.dropdown-toggle-user .icon-chevron-down {
    transition: transform 0.15s ease-in-out;
}

.dropdown-toggle.open .icon-chevron-down,
.dropdown-toggle-user.open .icon-chevron-down {
    transform: rotate(180deg);
}

.checkmark {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
    opacity: 0;
    animation: fadeIn 0.05s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.5);
    }
}

.text-fade,
.image-fade {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-toggle:hover .text-fade,
.dropdown-toggle:hover .image-fade {
    opacity: 0;
    transform: translateX(20px);
}

.checkmark-icon {
    position: absolute;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.checkmark-icon.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    bottom: 10%;
    left: 48%;
}

.dropdown-toggle:hover + .dropdown-menu svg {
    opacity: 1;
    transform: translateX(0);
}

.icon-switch {
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-10%);
    opacity: 0;
    transition: opacity 0.8s ease, left 0.7s ease;
}

.dropdown-toggle:hover .icon-switch {
    left: 40%;
    opacity: 1;
}

#select-modal.fade-out {
    animation: fadeOut 0.1s forwards;
}

#logout-modal.fade-out {
    animation: fadeOut 0.1s forwards;
}

@keyframes fadeOutOverlay {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
.lg\:ml-64 {
    position: relative;
    /* other styles */
}

.option {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    flex-wrap: nowrap;
}

.checkmark {
    position: absolute;
    right: 1rem; /* Adjust as needed */
    top: 50%;
    transform: translateY(-50%);
    display: inline-block; /* Ensure the checkmark is inline with the text */
}

.text-card-subtitle {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overlay,
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    display: none;
    overflow: hidden;
}

.overlay.active {
    display: block;
}

.overlay-active-body {
    overflow: hidden;
}

#modal-overlay {
    background-color: rgba(0, 0, 0, 0.8); /* Change the color and opacity as needed */
}


#secondary-modal-overlay {
    background-color: rgba(0, 0, 0, 0.8); /* Change the color and opacity as needed */
}

.selected-option {
    background-color: #1f1f1f;
    color: #fff;
}

.loading-overlay {
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    backdrop-filter: blur(10px); /* Apply blur effect */
    -webkit-backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    z-index: 11; /* Ensure the overlay is under the navbar and sidebar */
}

.glassmorphic-box {
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    backdrop-filter: blur(10px); /* Apply blur effect */
    -webkit-backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    z-index: 11; /* Ensure the overlay is under the navbar and sidebar */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.bg-search-bg-primary {
    position: relative;
    /* other styles */
}

#secondary-modal-overlay.fade-out,
#modal-overlay.fade-out,
.overlay.fade-out {
    animation: fadeOutOverlay 0.3s forwards;
}

@keyframes scaleUpFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/*noinspection CssUnusedSymbol*/
.fade-in {
    animation: scaleUpFadeIn 0.2s forwards;
}

/* Add this to your CSS */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    z-index: 20;
}
#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Change the color and opacity as needed */
    z-index: 50; /* Make sure this is above all other elements' z-index */
    display: none;
    overflow: hidden;
}

#secondary-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Change the color and opacity as needed */
    z-index: 51; /* Make sure this is above all other elements' z-index */
    display: none;
    overflow: hidden;
}
#save-changes {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden; /* Ensure content does not overflow */
    transform-origin: top center; /* Set the transform origin to the top center */
    bottom: -5px;
    cursor: pointer;
}
#save-changes:hover {
    backdrop-filter: blur(10px);
    transform: translateY(-8%);
    box-shadow: 50px 50px 60px 50px rgb(36, 36, 36, 0.6);
}
.fade-slide-up {
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

#messageArea .fade-slide-up {
    animation: slideUpFadeIn 0.3s forwards;
}
.fade-slide-up.out {
    opacity: 0;
    transform: translateY(-20px);
}
#save-changes .save-banner-spinner {
    position: absolute;
    left: 45%; /* Default to mobile */
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    width: 25px;
    height: 25px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: spin 0.3s linear infinite;
}
/* PC and larger screens */
@media (min-width: 768px) {
    #save-changes .save-banner-spinner {
        left: 39%;
    }
    .checkmark-icon,
    .checkmark-icon.show {
        left: 40%;
    }
}
#save-changes .save-banner-spinner.show {
    bottom: 35%;
    opacity: 1;
}
/* CSS for the hidden state of the spinner with animation */
#save-changes .save-banner-spinner.hide {
    animation: slideUpFadeOut 0.3s forwards; /* Apply slide up and fade out animation */
}

.slide-up-fade-out {
    animation: slideUpFadeOut 0.2s ease-out forwards;
}

@keyframes slideUpFadeOut {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}


@keyframes slideDownFadeOut {
    0% {
        transform: translateY(0%);
        opacity: 1;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}



.username {
    padding-left: 9px; /* Adjust this value as needed */
    padding-right: 9px; /* Adjust this value as needed */

    font-size: 15px;
    font-weight: 500;
}
.embed-icon {
    float: left;
    margin-right: 10px; /* Adjust this value as needed */
    margin-top: -17px; /* Move the icon a bit higher up */
    width: 40px; /* Increase the size of the icon */
    height: 40px; /* Increase the size of the icon */
    border-radius: 50%; /* Make the icon rounded */
}
.username-timestamp {
    display: flex;
    font-size: 12px;
    margin-left: 50px;
}

.timestamp {
    margin-top: 3px; /* Adjust this value as needed */
}

.slide-up-fade-in {
    animation: slideUpFadeIn 0.3s forwards;
}

@keyframes slideUpFadeIn {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0%);
        opacity: 1;
    }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
#save-changes .icon-tabler {
    position: relative;
}
#save-changes .icon-tabler::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 50%;
    border: 2px solid #2ecc71; /* Greenish color */
    opacity: 0;
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}
#save-changes:hover::before {
    width: 100%;
    height: 100%;
    opacity: 1;
}
#save-changes .inline-flex {
    background: rgba(26, 26, 26, 0.52);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
}
#save-changes:hover .icon-tabler::before {
    width: 100%;
    height: 100%;
    opacity: 1;
}
#save-changes.closed {
    animation: slideDownFadeOut 0.3s forwards; /* Apply slide down and fade out animation */
}
/* width */
::-webkit-scrollbar {
    width: 5px;
}
/* Handle */
::-webkit-scrollbar-thumb {
    background: #6b6b6b;
}

@keyframes scaleDownFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

@keyframes scaleUpFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#beta-modal.fade-in {
    animation: scaleUpFadeIn 0.2s forwards;
}

#beta-modal.fade-out {
    animation: scaleDownFadeOut 0.1s forwards;
}

#erlc-modal.fade-out {
    animation: scaleDownFadeOut 0.1s forwards;
}

#edit-modal.fade-in {
    animation: scaleUpFadeIn 0.2s forwards;
}

#edit-modal.fade-out {
    animation: scaleDownFadeOut 0.1s forwards;
}
