/* ==========================================================
   COMMUNITY HUB - B2B ENTERPRISE DRAWER (FULL WIDTH)
   ========================================================== */
.community-drawer {
    position: absolute; /* Mengunci ke dinding ruangan main-area */
    top: 0; bottom: 0; left: 0; right: 0;
    width: 100%; /* Memaksa melar penuh dari sidebar kiri sampai mentok kanan */
    height: 100%;
    background: #020617; 
    border-left: 1px solid #1e293b;
    z-index: 10000; 
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
    transform: translateX(100%); /* Sembunyi ke kanan luar layar */
}
.community-drawer.open { transform: translateX(0); } /* Meluncur pas dibuka */

/* MOBILE: Tetap Menggunakan Layar Penuh Kaca HP */
@media (max-width: 768px) { 
    .community-drawer { 
        position: fixed !important; 
        top: 0 !important; 
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        height: 100dvh !important; /* Anti-tenggelam dari URL bar HP */
        width: 100vw !important;
    } 
}

/* Desain Chat Professional */
.chat-message { padding: 20px 25px; border-bottom: 1px solid #1e293b; transition: background 0.2s; position: relative; }
.chat-message:hover { background: #0f172a; }
.chat-header-info { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.chat-avatar { width: 35px; height: 35px; border-radius: 6px; background: #1e293b; border: 1px solid #334155; display: flex; align-items: center; justify-content: center; color: #64748b; font-size: 0.85rem; }
.chat-name { font-weight: 600; color: #e2e8f0; font-size: 0.9rem; }
.chat-time { color: #64748b; font-size: 0.65rem; font-family: 'JetBrains Mono', monospace; }
.chat-body { color: #cbd5e1; font-size: 0.85rem; line-height: 1.6; margin-left: 47px; }

/* Tombol Balas & Reaksi (Sembunyi sebelum di-hover) */
.chat-actions { display: flex; gap: 10px; margin-left: 47px; margin-top: 10px; opacity: 0; transition: opacity 0.2s, transform 0.2s; transform: translateY(5px); }
.chat-message:hover .chat-actions { opacity: 1; transform: translateY(0); }
.chat-btn { background: transparent; border: 1px solid #334155; color: #94a3b8; padding: 5px 10px; border-radius: 4px; font-size: 0.7rem; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: 0.2s; }
.chat-btn:hover { background: #334155; color: #f8fafc; }

/* Area Input Bawah */
.chat-input-area { padding: 25px; background: #0b1120; border-top: 1px solid #1e293b; }
.chat-input-wrapper { display: flex; flex-direction: column; background: #020617; border: 1px solid #334155; border-radius: 8px; transition: 0.2s; }
.chat-input-wrapper:focus-within { border-color: #64748b; box-shadow: 0 0 0 3px rgba(100,116,139,0.2); }
.chat-input-wrapper textarea { background: transparent; border: none; color: #f8fafc; resize: none; outline: none; font-size: 0.85rem; padding: 15px; min-height: 60px; }
.chat-input-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 8px 15px; border-top: 1px solid #1e293b; background: rgba(0,0,0,0.3); border-radius: 0 0 8px 8px; }