:root {
    /* Color variables */
    --primary-color: #579f0d;
    --primary-hover: #ACF760;
    --secondary-color: #ACF760;
    --text-color: #2D2D2D;
    --bg-color: #FFFFFF;
    --nav-color: #4E614D;
    --border-color: #ACF65F;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --disabled-color: #818181;
    --card-color: rgba(255, 255, 255, 0.1);
    /* Spacing variables */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

@font-face {
    font-family: Poppins;
    font-style: normal;
    font-weight: 200 700;
    font-display: swap;
    src: url("/Fonts/Poppins-Medium.ttf") format("truetype");
}
.navbar{
    margin-bottom:0 !important;
}
/* Chat Styles to Match Site Theme */
.chat-container {
    display: flex;
    height: 92vh;
    overflow: hidden;

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sidebar {
    height: 100%;
    width: 250px;
    position: relative;
    z-index: 1050;
    transition: all 0.3s ease;
    left: 0;
    top: 0;
    bottom: 0;
    background-color: var(--nav-color) !important;
    color:white;
}

.sidebar .nav-item{
    max-width:100%;
}
    
        
    h5{
        color:white;
    }



.sidebar-header {

    padding: 15px;
    border-bottom: 1px solid #ACF65F;
    background-color: #579f0d;
    color: white;
}

.users-list {
    flex: 1;
    overflow-y: auto;
}

.user {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s linear;
    
}



.user-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%; /* Ensures it doesn't overflow its parent */
}

    .user:hover {
        background-color: #579f0d;

    }

.user-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
}

.user-info {
    width: 100%; /* Makes sure it takes up available space */
    overflow: hidden; /* Contains the overflowing text */
}

.online .user-status {
    background-color: #28a745;
}

.offline .user-status {
    background-color: #dc3545;
}

.unread-badge {
    position: absolute;
    right: 15px;
    background-color: #579f0d;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    text-align: center;
    font-size: 12px;
    line-height: 20px;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    padding: 15px;
    border-bottom: 1px solid #ACF65F;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    color:var(--text-color);
}


    .chat-header h2 {
        margin: 0;
        margin-right: 10px;
        color: var(--text-color);
        font-family: 'Poppins', Arial, sans-serif;
    }

.online-status {
    font-size: 12px;
    color: #28a745;
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-color);
}

.messages-list {
    flex: 1;
    overflow-y: auto;
}

.message {
    max-width: 50%;
    padding: 10px 15px;
    border-radius: 18px;
    margin-bottom: 10px;
    position: relative;
    word-wrap: break-word;
    font-family: 'Poppins', Arial, sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

    .message.sent {
        background-color: #ADF760;
        color: black;
        margin-left: auto;
        border-bottom-right-radius: 5px;
    }

    .message.received {
        background-color: var(--card-color);
        color: var(--text-color);
        margin-right: auto;
        border-bottom-left-radius: 5px;
        border: 1px solid #ACF65F;
    }

.message-time {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-top: 5px;
    text-align: right;
}

.read-receipt {
    font-size: 0.7rem;
    opacity: 0.8;
    text-align: right;
    margin-top: 2px;
}

.typing-indicator {
    padding: 10px;
    font-style: italic;
    color: #4D634D;
}

.chat-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid #ACF65F;
    background-color: var(--card-color);
}

#messageInput {
    flex: 1;
    padding: 10px;
    border: 1px solid #ACF65F;
    border-radius: 20px;
    margin-right: 10px;
    font-family: 'Poppins', Arial, sans-serif;
    color: #2D2D2D;
}

    #messageInput:focus {
        border-color: #579f0d;
        box-shadow: 0 0 0 0.1rem #FFFFFF, 0 0 0 0.25rem #ACF65F;
        outline: none;
    }

#sendButton {
    padding: 10px 20px;
    background-color: #579f0d;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Poppins', Arial, sans-serif;
}

    #sendButton:hover {
        background-color: #ACF760;
        color: black;
    }

    #sendButton:focus {
        box-shadow: 0 0 0 0.1rem #FFFFFF, 0 0 0 0.25rem #ACF65F;
        outline: none;
    }

.date-divider {
    text-align: center;
    color: #4D634D;
    font-size: 12px;
    margin: 15px 0;
    position: relative;
    font-family: 'Poppins', Arial, sans-serif;
}

    .date-divider::before, .date-divider::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 42%;
        height: 1px;
        background-color: #ACF65F;
    }

    .date-divider::before {
        left: 0;
    }

    .date-divider::after {
        right: 0;
    }
.pb-3 {
    padding-bottom:0px !important;
    padding-right:0px !important;
}


/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        --bg-color: #1E1E1E;
        --text-color: #e0e0e0;
        --shadow-color: rgba(0, 0, 0, 0.3);
        --card-color: #2A2A2A;
        --text-color: #ffffff;
        
    }


    
}
