/* ===============================
   RESET
=============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===============================
   BODY
=============================== */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont;
    background: #f0f2f5;
    color: #111;
}

/* ===============================
   FLEX LAYOUT
=============================== */
.layout {
    display: flex;
    height: calc(100vh - 56px); /* adjust if header changes */
}

/* ===============================
   SIDEBAR
=============================== */
.sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid #ddd;
    padding: 16px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
}

.profile {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ccc;
}

.name strong {
    display: block;
    font-weight: 600;
}

.name span {
    font-size: 12px;
    color: #666;
}

.menu a {
    display: block;
    padding: 10px;
    border-radius: 6px;
    color: #111;
    text-decoration: none;
    margin-bottom: 4px;
}

.menu a:hover {
    background: #f0f2f5;
}

.list-group-item.active {
    background: #0d6efd;
    color: #fff;
    font-weight: 600;
}

/* ===============================
   MAIN CONTENT
=============================== */
.content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* ===============================
   CARD / STATUS BOX
=============================== */
.card-ui {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 15px;
    margin-bottom: 15px;
}

.status-box {
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.status-box textarea {
    width: 100%;
    height: 80px;
    border: 1px solid #ccc;
    padding: 8px;
    resize: none;
    border-radius: 6px;
}

.status-box button {
    margin-top: 8px;
    padding: 6px 14px;
    background: #1877f2;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* ===============================
   HEADER / TOPBAR
=============================== */
.topbar {
    height: 56px;
    background: #fff;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.logo {
    font-weight: 700;
    font-size: 18px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar input {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.logout {
    color: #e41e3f;
    text-decoration: none;
    font-weight: 600;
}

/* ===============================
   LOGIN CARD
=============================== */
.card {
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 14px;
    box-shadow:
        0 20px 40px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.6);
}

.card h3 {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ===============================
   BUTTONS
=============================== */
.btn-primary {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    border: none;
    color: #fff;
    border-radius: 6px;
    padding: 6px 14px;
    cursor: pointer;
}

.btn-primary:hover {
    opacity: 0.95;
}

/* ===============================
   CHAT CONTAINER
=============================== */
.chat-container {
    height: 450px;
    overflow-y: auto;
    padding: 10px;
    border-radius: 8px;
    background: #f8f9fa;
}

.chat-message.self {
    text-align: right;
}

.chat-message.other {
    text-align: left;
}

.chat-message .bg-primary {
    background-color: #0d6efd !important;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
}

.chat-message .bg-light {
    background-color: #e9ecef !important;
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
}
