/* Dasboard Layout */
.sidebar {
    display: flex;
    flex-direction: row;
    padding-top: 56px; /* Push content below navbar */
    height: calc(100vh - 56px); /* Full height minus navbar */
}

#main-panel {
    margin-top: 0;
    padding-top: 20px;
}

body, html {
    margin: 0;
    padding: 0;
}
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 56px;
    z-index: 1000;
}
.sidebar {
    width: 250px;
    background-color: #222831; /* Your custom color */
    color: #fff;
    height: 100%; /* Takes full height inside dashboard-layout */
    flex-shrink: 0;
}

#main-panel {
    flex-grow: 1;
    padding: 20px; /* Gap between sidebar and content */
    background: #f5f6f8;
}
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: #393e46;
    color: #00adb5;
}
.sidebar {
    position: fixed;
    top: 56px; /* Just below the navbar */
    left: 0;
    width: 250px;
    height: calc(100vh - 56px); /* Fill rest of screen */
    background-color: #222831;
    color: #fff;
    overflow-y: auto; /* Sidebar content scrolls internally */
    padding: 20px; /* Adds spacing inside sidebar */
    box-sizing: border-box;
    z-index: 999;
}
#main-panel {
    margin-left: 250px; /* Must match sidebar width */
    padding: 20px;
    background: #f5f6f8;
    min-height: 100vh;
    box-sizing: border-box;
}
/* Sidebar nav links */
.sidebar .nav-link {
    font-weight: 500;
    color: #ccc;
    padding: 12px 20px;
    display: block;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

#main-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 600px;
}

.inbox-wrapper {
    display: flex;
    flex-grow: 1;
    height: 100%;
    width: 100%;
}

.inbox-sidebar {
    width: 280px;
    background: #f7f7f7;
    border-right: 1px solid #ddd;
    overflow-y: auto;
}

.inbox-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.inbox-chat-header {
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.inbox-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #fdfdfd;
}

.inbox-chat-message {
    margin-bottom: 15px;
}

.inbox-chat-message .bubble {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 15px;
    display: inline-block;
}

.inbox-chat-message.incoming .bubble {
    background-color: #eee;
    align-self: flex-start;
}

.inbox-chat-message.outgoing .bubble {
    background-color: #d4f8cc;
    align-self: flex-end;
}

.inbox-chat-footer {
    border-top: 1px solid #ddd;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.inbox-chat-footer input {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 8px 15px;
}

.inbox-user {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.inbox-user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

