:root {
    --gradient-background: linear-gradient(135deg, #16ad1c, #2575fc);
}

body {
    font-size: .875rem;
}

.feather {
    width: 16px;
    height: 16px;
    vertical-align: text-bottom;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    background-color: #fff;
    transition: all 0.3s ease;
}

.sidebar.sticky {
    position: sticky;
    top: 0;
    height: calc(100vh - 4rem);
    padding-top: 1rem;
    overflow-y: auto;
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
    padding: .75rem 1.5rem;
    display: flex;
    align-items: center;
    transition: background 0.3s ease, -webkit-text-fill-color 0.3s ease;
    user-select: none;
}


.sidebar .nav-link .feather {
    margin-right: .5rem;
    color: #727272;
}

.sidebar .nav-link i {
    min-width: 25px;
}

.sidebar .nav-link.active {
    color: #2470dc;
    background-color: var(--gradient);
    border-radius: 5px;
}

.sidebar .nav-link:hover {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar .nav-link.active .feather,
.sidebar .nav-link:hover .feather {
    color: inherit;
}

.sidebar-heading {
    font-size: .75rem;
    text-transform: uppercase;
    font-weight: 600;
    padding: .5rem 1.5rem;
    color: #888;
}

@media (max-width: 767.98px) {
    .sidebar {
        top: 5rem;
        width: 100%;
        height: 100vh;
        position: absolute;
    }

    .sidebar.sticky {
        position: fixed;
        top: 5rem;
    }

    .sidebar .nav-link {
        padding: .5rem 1rem;
    }

    .sidebar .nav-link .feather {
        margin-right: .3rem;
    }
}

.navbar-brand {
    padding-top: .75rem;
    padding-bottom: .75rem;
    font-size: 1rem;
    background-color: rgba(0, 0, 0, .25);
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

.navbar .navbar-toggler {
    top: .25rem;
    right: 1rem;
}

.navbar .form-control {
    padding: .75rem 1rem;
    border-width: 0;
    border-radius: 0;
}

.form-control-dark {
    color: #fff;
    background-color: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .1);
}

.form-control-dark:focus {
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}

#menu-sidebar {
    position: fixed;
    top: 4rem;
    left: 0;
    bottom: 0;
    z-index: 100;
    width: 250px;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    background-color: #fff;
    overflow-y: auto;
}

@media (max-width: 767.98px) {
    #menu-sidebar {
        position: absolute;
        top: 5rem;
        left: 0;
        width: 100%;
        height: calc(100vh - 5rem);
        z-index: 105;
    }
}

#menu-sidebar .position-sticky {
    position: relative;
    top: 0;
    height: 100%;
    overflow-y: auto;
}

    .chat-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        max-width: 600px;
        height: 750px;
    }

    .chat-header {
        font-size: 1.25rem;
        font-weight: bold;
        border-top-left-radius: 0.375rem;
        border-top-right-radius: 0.375rem;
    }

    .chat-body {
        flex: 1;
        overflow-y: auto;
        background-color: #f8f9fa;
        padding: 10px;
    }

    .chat-message {
        margin-bottom: 10px;
    }

    .message-content {
        font-size: 1rem;
        line-height: 1.5;
    }

    .chat-message .text-muted {
        font-size: 0.85rem;
    }

    .chat-message.text-end .message-content {
        background-color: #007bff;
        display: inline-block;
        color: white;
        border-radius: 10px;
        padding: 10px;
        max-width: 70%;
    }

    .chat-message .message-content {
        background-color: #f1f1f1;
        border-radius: 10px;
        padding: 10px;
        max-width: 70%;
    }

    .chat-footer {
        background-color: #fff;
    }

    #form-chat {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    #form-chat textarea {
        border-radius: 0.375rem;
        resize: none;
        height: 60px;
        padding: 10px;
        font-size: 1rem;
        line-height: 1.5;
        border: 1px solid #ccc;
        transition: border-color 0.3s;
    }

    #form-chat textarea:focus {
        border-color: #007bff;
        outline: none;
    }

    #form-chat button i {
        margin-right: 8px;
    }