:root {
    --sidebar-bg: #09233D; /* Indigo Dye */
    --active-bg: #213950;
    --background-color: #e9ebee; /* Pale Lavender */
    --button-bg: #4A90E2; /* Vivid Blue */
    --button-text: #FFFFFF; /* White */
    --accent-text: #B0C4DE; /* Light Steel Blue */
    --accent-color: #5AA832; /* Light Green */
}

.title-text {
    color: white !important;
}

body {
    background-color: var(--background-color);
    font-family: 'Roboto', sans-serif;
    display: flex;
    width: 100%;
    min-height: 100vh;
    color: #fff;
}

.login-form {
    color: #000;
}

.overflow-hidden {
    overflow: hidden;
}

.main-container {
    padding: 0;
}

#sidebarMenu {
    top: 0;
    left: 0;
    width: 200px;
    background-color: var(--sidebar-bg) !important;
    color: white;
    min-height: 100vh;
}

.custom-bg {
    background-color: var(--sidebar-bg);
    color: white;
}

.nav-item .nav-link {
    color: white;
    padding: 10px 15px 10px 25px;
    border-radius: 0;
    transition: background-color 0.3s ease;
}
.nav-item .nav-link:hover, .nav-item .nav-link.active {
    background-color: var(--active-bg);
}
.navbar-toggler {
    border: none;
}
.navbar-toggler-icon {
    height: 1.5em;
    width: 1.5em;
}
.card-text {
    word-wrap: break-word;

}

button, .button, .btn {
    background-color: var(--button-bg);
    color: var(--button-text);
    padding: 10px 15px;
    border: none;
    transition: background-color 0.3s ease;
}

.btn {
    opacity: 1;
}


button:hover, .button:hover {
    background-color: darken(var(--button-bg), 10%);
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
  }

.container-fluid.h-100 {
    min-height: 100vh;
}

.main-bg {
    background-image: url(../images/bg.jpg);
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.logo {
    position: relative;
}

.logo img {
    max-width: 250px;
    border-radius: 0 16px 16px 0;
}

.nav-footer img {
    max-width: 100%;
}

.c-button {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--accent-color);
    color: var(--button-text);
    font-weight: 600;
    padding: 10px 15px;
    border: none;
    transition: background-color 0.3s ease;
    text-align: center;
    text-decoration: none;
    border-radius: 20px;
    width: fit-content;
    cursor: pointer;
}

.c-button:hover,
.c-button.active {
    background-color: var(--button-text);
    color: var(--accent-color);
}

.button-bottom {
    padding-bottom: 44px;
}

.button-bottom .c-button {
    margin: auto;
    position: absolute;
    bottom: -22px;
    left: 0;
    right: 0;
    min-width: 80%;
}

.page-title {
    margin: 15px 0;
    text-align: center;
    font-weight: bold;
    font-family: "Titillium Web", sans-serif;
}

.edit-form .edit-fields {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.edit-form .form-group,
.password-form .form-group {
    margin: 10px;
}

.edit-form .submit-button,
.password-form .submit-button {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.password-form .password-fields {
    margin-bottom: 30px;
}

.edit-form .edit-fields .form-group {
    min-width: calc(50% - 30px);
}

@media (max-width: 991px) {
    .edit-form .edit-fields .form-group {
        width: 100%;
    }
}

@media (min-height: 500px) and (min-width: 768px) {
    .main-container {
        padding-left: 200px;
        padding-right: 0;
    }

    #sidebarMenu {
        position: fixed;
        height: 100%;
    }

    #sidebarMenu .nav {
        display: block;
        overflow: auto;
    }

    #chat-container.chat-container {
        margin-top: 70px;
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .logo {
        display: none !important;
    }

    #sidebarMenu {
        position: fixed;
        height: 100%;
    }

    #sidebarMenu .nav {
        display: block;
        overflow: auto;
    }
}

@media (min-width: 768px) {
    .page-title {
        margin: 30px 0;
    }

    .main-bg {
        padding-left: 100px;
    }

    .edit-user-wrap,
    .home-wrap,
    .chat-wrapper {
        padding-right: 100px;
    }

    #sidebarMenu a.d-flex.align-items-center.mb-3.mb-md-0.me-md-auto.text-white.text-decoration-none {
        justify-content: center; /* Center horizontally in the flex container */
        width: 100%; /* Ensure the a tag spans the full width of its container */
    }
    .p-4 {
        padding: 0.5rem !important;
    }
}

/* New Description Area Style */
.description-area {
    background-color: white;
    border-radius: 8px;
    color: #333;
    margin-top: 20px;
}
