/* Reset Dasar */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding-top: 60px; /* Ruang untuk navbar fixed */
    color: #050505;
}

/* 1. Navbar (Header Atas) */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    height: 56px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
}

.logo {
    color: #1877f2; /* Biru FB */
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
}

.nav-right a {
    text-decoration: none;
    color: #050505;
    font-weight: 600;
    margin-left: 10px;
    padding: 8px 12px;
    background: #e4e6eb;
    border-radius: 50px;
    font-size: 14px;
}

/* 2. Layout Grid 3 Kolom */
.layout-container {
    display: flex;
    justify-content: center; /* Pusatkan */
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 20px;
    gap: 20px;
}

/* Sidebar Kiri & Kanan */
.sidebar {
    width: 280px; /* Lebar Sidebar */
    height: calc(100vh - 70px);
    position: sticky;
    top: 70px;
    overflow-y: auto;
}

.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { 
    padding: 10px; 
    border-radius: 8px; 
    cursor: pointer; 
    font-weight: 600; 
    display: flex; 
    align-items: center;
    color: #050505; 
}
.sidebar li:hover { background-color: #e4e6eb; }
.sidebar i { margin-right: 12px; color: #1877f2; font-size: 20px; width: 25px; text-align: center; }

/* Kolom Tengah (Newsfeed) */
.main-feed {
    flex: 1;
    max-width: 680px; /* Lebar maksimal feed */
    min-width: 400px;
}

/* Card Style (Kotak Putih) */
.card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    padding: 15px;
}

/* Form Posting */
.create-post textarea {
    width: 100%;
    border: none;
    background: #f0f2f5;
    padding: 12px;
    border-radius: 20px;
    font-size: 16px;
    resize: none;
    outline: none;
    box-sizing: border-box;
    font-family: inherit;
}
.create-post textarea:focus { background: #e4e6eb; }

.btn-post {
    background: #1877f2;
    color: white;
    border: none;
    width: 100%;
    padding: 8px;
    margin-top: 10px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 15px;
}
.btn-post:hover { background: #166fe5; }

/* Tampilan Postingan */
.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}
.avatar-circle {
    width: 40px;
    height: 40px;
    background: #e4e6eb;
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #050505;
}
.username { font-weight: 600; color: #050505; font-size: 15px; }
.timestamp { font-size: 13px; color: #65676b; }
.post-content { font-size: 15px; line-height: 1.5; color: #050505; margin-bottom: 10px;}

/* Responsif untuk HP */
@media (max-width: 900px) {
    .sidebar { display: none; } /* Hilangkan sidebar di HP */
    .layout-container { display: block; padding: 10px; }
    .main-feed { width: 100%; max-width: 100%; }
    .navbar { padding: 0 10px; }
}