/*KODE: 9U7H7Y6T5RR*/
/* ==========================================================
   1. OBAT PENAWAR BUG BROWSER PC (ANTI-TERPOTONG DI ATAS)
   ========================================================== */
body {
    align-items: flex-start !important; /* Mencegah seluruh aplikasi terdorong/terjepit ke atas oleh browser */
}
.app-wrapper {
    height: 100dvh !important; /* Dynamic Viewport: Deteksi otomatis apakah ini PWA atau Browser biasa */
}

/* ==========================================================
   2. COMMUNITY HUB - B2B ENTERPRISE DRAWER (FULL SCREEN)
   ========================================================== */
.community-drawer {
    position: absolute; 
    top: 0; /* Mengunci langsung dari ujung paling atas */
    left: 0; right: 0; bottom: 0;
    width: 100%; 
    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%); 
}

/* Mengunci Kepala Laci & Area Ketik agar anti-penyok */
.community-drawer > div:first-child { flex-shrink: 0 !important; }
.chat-input-area { flex-shrink: 0 !important; }

.community-drawer.open { transform: translateX(0); }

/* 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; 
        width: 100vw !important;
    } 
}

/* Desain Chat Professional (Monokrom) */
.chat-message { padding: 20px 25px; border-bottom: 1px solid #d4d4d8; transition: background 0.2s; position: relative; background: #ffffff; }
.chat-message:hover { background: #f4f4f5; }
.chat-header-info { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.chat-avatar { width: 35px; height: 35px; border-radius: 6px; background: #f4f4f5; border: 1px solid #a1a1aa; display: flex; align-items: center; justify-content: center; color: #000000; font-size: 0.85rem; }
.chat-name { font-weight: 800; color: #000000; font-size: 0.9rem; }
.chat-time { color: #52525b; font-size: 0.65rem; font-family: 'JetBrains Mono', monospace; font-weight: bold; }
.chat-body { color: #000000; font-size: 0.85rem; line-height: 1.6; margin-left: 47px; font-weight: 500; }

/* Tombol Balas & Reaksi */
.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: #ffffff; border: 1px solid #a1a1aa; color: #000000; padding: 5px 10px; border-radius: 4px; font-size: 0.7rem; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: 0.2s; font-weight: bold; }
.chat-btn:hover { background: #e4e4e7; }

/* Area Input Bawah (Super Tegas) */
.chat-input-area { padding: 25px; background: #f4f4f5; border-top: 2px solid #a1a1aa; }
.chat-input-wrapper { display: flex; flex-direction: column; background: #ffffff; border: 2px solid #52525b; border-radius: 8px; transition: 0.2s; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.chat-input-wrapper:focus-within { border-color: #000000; }
.chat-input-wrapper textarea { background: transparent; border: none; color: #000000; resize: none; outline: none; font-size: 0.85rem; padding: 15px; min-height: 60px; font-weight: bold; }
.chat-input-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 8px 15px; border-top: 1px solid #d4d4d8; background: #f4f4f5; border-radius: 0 0 8px 8px; }