/*
* =========================================================
* Pustakawan - Main Stylesheet
* Optimized and Modernized CSS
* =========================================================
*/

/* --- CSS Variables for Consistency --- */
:root {
    --primary-blue: #007bff; /* Main blue for buttons, active links */
    --hover-blue: #0056b3; /* Darker blue on hover */
    --verified-blue: #1da1f2; /* Blue for verification icons */
    --light-gray-bg: #f8f8f8; /* Light background for sections/tabs */
    --medium-gray-bg: #e9ecef; /* Medium background for hover states */
	--medium-gray: #aaa;
    --dark-text: #333; /* Dark text color */
    --light-text: #666; /* Lighter text color */
    --border-color: #ddd; /* General border color */
    --soft-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* Subtle box shadow */
    --red-alert: #dc3545; /* Red for alerts/delete actions */
    --red-alert-hover: #a71d2a; /* Darker red on hover */
    --success-green: #28a745; /* Green for success messages/buttons */
    --success-green-hover: #218838; /* Darker green on hover */
}

/* --- Font Definitions --- */
@font-face {
    font-family: 'TablerIcons';
    src: url('fonts/tabler-icons.woff2') format('woff2'),
         url('fonts/tabler-icons.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* --- General Typography for Tabler Icons --- */
.ti {
    font-family: 'TablerIcons';
    font-style: normal;
    font-weight: normal;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
    flex-shrink: 0; /* Prevents icon from shrinking in flex containers */
}

.ti-small { font-size: 16px; }
.ti-smallb { font-size: 18px; }
.ti-medium { font-size: 24px; }
.ti-large { font-size: 32px; }

/* Specific verified icons for consistency */
.verified-icon, .verified-iconl, .verified-iconp, .verified-iconk {
    color: var(--verified-blue);
}
.verified-icon { font-size: 16px; margin-left: 5px; }
.verified-iconl { font-size: 16px; margin-left: 0px; }
.verified-iconp { font-size: 23px; margin-left: 0px; }
.verified-iconk { font-size: 14px; margin-left: 5px; }

/* --- Global Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.sidebar-toggle-btn {
    background-color: white;
    color: var(--light-text);
    border: 1px solid var(--light-text);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    box-shadow: var(--soft-shadow);
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 1001;
    margin: 10px auto 20px auto; /* Di bawah logo, di tengah horizontal, jarak dari bawah */
    flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
    background-color: var(--light-text);
    color: white;
    transform: scale(1.1);
}

body {
    font-family: 'Inter', sans-serif; /* Modern font */
    background-color: #fff;
    color: var(--dark-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased; /* Better font rendering */
    -moz-osx-font-smoothing: grayscale;
}

/* Overlay saat sidebar mobile terbuka */
body.sidebar-open {
    overflow: hidden; /* Mencegah scrolling konten di belakang overlay */
}

body.sidebar-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    z-index: 998; /* Di bawah sidebar tapi di atas konten utama */
}

body.sidebar-collapsed-body .layout {
    gap: 10px; /* Kurangi jarak antar sidebar dan main content */
}

/* Styling untuk kontainer umum konten DDC (jika perlu) */
#content-container {
    /* Properti yang mungkin sudah ada, atau bisa ditambahkan */
    /* Misalnya, jika kamu ingin memberi padding atau background pada area konten */
    /* padding: 15px; */
    /* background-color: #fcfcfc; */
    /* border-radius: 8px; */
}

/* --- Gaya untuk Link di dalam #content-container --- */
#content-container a {
    text-decoration: none; /* KUNCI: Hilangkan underline default */
    color: var(--light-text); /* KUNCI: Warna teks abu-abu */
    transition: color 0.2s ease, text-decoration 0.2s ease; /* Transisi halus untuk hover */
}

/* Gaya saat link di-hover */
#content-container a:hover {
    color: var(--primary-blue); /* KUNCI: Warna biru saat hover */
    text-decoration: underline; /* KUNCI: Munculkan underline saat hover */
}

section#posts { 
    background-color: #fff; /* Atau warna lain seperti #f0f2f5, #f5f5f5 */
}




/* === BARU: Mobile Header (Navbar Mobile) === */
.mobile-header {
    display: none; /* KUNCI: Sembunyikan secara default di desktop/tablet */
    background-color: #fff;
    padding: 10px 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: fixed; /* Ini akan menjadi aktif saat display flex di mobile */
    top: 0;
    left: 0;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
}

.font-utama {
    font-family: 'Inter', sans-serif !important;
}

.mobile-logo-text {
    font-family: 'Montserrat', 'Poppins', sans-serif;
    font-size: 24px; /* Ukuran logo mobile */
    font-weight: 700;
    text-decoration: none;
    color: var(--dark-text);
    white-space: nowrap;
}

/* --- Logo Teks Kustom --- */
.logo-text {
    font-family: 'Montserrat', 'Poppins', sans-serif; /* Coba salah satu atau kombinasi */
    font-size: 25px; /* Sesuaikan ukuran font */
    font-weight: 700; /* Tebal */
    text-decoration: none; /* Hilangkan garis bawah */
    color: var(--dark-text); /* Warna teks, bisa disesuaikan */
    padding: 10px 0; /* Memberi sedikit padding agar tidak terlalu mepet */
    text-align: center; /* Pusatkan teks */
    white-space: nowrap; /* Mencegah teks wrap */
}

.logo-text:hover {
    color: var(--primary-blue); /* Efek hover */
}

/* Default: Sembunyikan ikon P, tampilkan teks penuh */
.menu-icon-only {
    display: none;
}
.menu-text-full {
    display: inline;
}


/* Styling for the selected menu item (the <a> tag) */
.menu-side li a.selected-menu-item {
    color: var(--primary-blue); /* A darker blue text color (Tailwind blue-700) */
    font-weight: 600; /* Semi-bold font for the whole link */
}

/* Styling for the text inside the selected menu item */
.menu-side li a.selected-menu-item .menu-text-full {
    font-weight: 700; /* Even bolder for the text */
    color: #1e40af; /* A slightly different shade of blue for the text */
}

/* Ensure the icon also gets the selected color */
.menu-side li a.selected-menu-item i {
    color: #1d4ed8; /* Match the link text color */
}


/* --- Layout Structure --- */
.layout {
	background-color: #fff;
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    padding: 15px; /* Default padding, tidak termasuk tinggi navbar mobile */
    margin: 0 auto;
    max-width: 1500px;
    transition: padding-top 0.3s ease;
}

.main-content {
    flex: 3; /* More space for main content */
    padding: 5px; /* Keep this minimal for main content wrapper */
    min-width: 0; /* Prevents overflow in flex */
    position: relative; /* Bisa relative, tapi TANPA z-index */
    z-index: auto; /* Pastikan tidak ada z-index tinggi di sini */
}

.sidebar-left,
.sidebar-right {
    background-color: #fff;
    padding: 15px; /* Consistent padding for sidebars */
    border-radius: 8px; /* Consistent border radius */
}

.sidebar-mid {
    background-color: #fff;
    padding: 15px; /* Consistent padding for sidebars */
    border-radius: 8px; /* Consistent border radius */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* Lighter shadow */
}


.register-link {
    color: var(--hover-blue);
    text-decoration: none;
	font-weight: 500;
    font-family: system-ui;
    margin-top: 7px;
}


/* --- Sticky Profile & Login Section (Umum) --- */
/* --- Sticky Profile & Login Section --- */
.sticky-profil {
    background-color: #fff; /* Warna putih */
    border-radius: 7px; 
    position: fixed;
    bottom: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
    width: 300px; /* Sesuaikan dengan lebar sidebar */
    z-index: 1000; /* Tambahkan z-index agar berada di atas elemen lain */
}


.sidebar-left > .btn-postnew { /* Targetkan btn-postnew yang merupakan anak langsung dari sidebar-left */
    position: fixed; /* Juga menempel pada viewport */
    bottom: 90px; /* (20px bottom sticky-profil + 12px padding sticky-profil + perkiraan tinggi btn-postnew) */
    left: 15px; /* Sejajarkan dengan sticky-profil */
    width: 320px; /* Lebar yang sama */
    z-index: 9998; /* Sedikit di bawah sticky-profil */
    margin-top: 0; /* Hapus auto margin jika ada */
    margin-bottom: 0; /* Hapus margin bawah jika ada */
    transition: width 0.3s ease, left 0.3s ease, margin 0.3s ease, border-radius 0.3s ease;
}

.sidebar-left.collapsed {
  width: 80px; /* Lebar sidebar saat diciutkan (sesuaikan jika perlu) */
    flex: 0 0 80px; /* KUNCI: Ubah lebarnya */
    padding: 15px 5px; /* Sesuaikan padding */
    align-items: center; /* Pusatkan konten horizontal */
    overflow-y: auto; /* Izinkan scroll jika ikon terlalu banyak */
  overflow-x: hidden; /* Tambahkan baris ini */
}

/* Sembunyikan teks saat sidebar ciut */
.sidebar-left.collapsed .menu-text-full,
.sidebar-left.collapsed .profil-info,
.sidebar-left.collapsed .btn-popup {
    display: none;
}

/* Tampilkan ikon 'P' untuk logo saat ciut */
.sidebar-left.collapsed .logo-text .menu-text-full {
    display: none;
}
.sidebar-left.collapsed .logo-text .menu-icon-only {
    display: block;
    font-size: 28px; /* Pastikan ukuran ikon P sesuai */
}

/* Pusatkan ikon menu */
.sidebar-left.collapsed .sidebar-toggle-btn {
    /* Tombol ini sudah secara otomatis ikut menyusut dan berada di tengah karena parentnya flex dan margin: auto */
    /* Pastikan iconnya tetap terlihat di tengah */
    width: 30px; /* Ukuran tetap */
    height: 30px;
    margin: 10px auto 20px auto; /* Atur ulang margin agar tetap di tengah */
}

.sidebar-left.collapsed .menu-side li a {
    justify-content: center;
    gap: 0; /* Hapus gap antara ikon & teks yang tersembunyi */
}
.sidebar-left.collapsed .menu-side li a i {
    margin-right: 0; /* Hapus margin kanan ikon */
}

/* Tombol posting dan login saat ciut (bulat) */
.sidebar-left.collapsed .btn-postnew,
.sidebar-left.collapsed .login-btn-compact {
    width: 50px; /* Ukuran bulat lebih kecil */
    height: 50px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
    margin-left: auto; /* Pastikan tetap di tengah jika flex-start */
    margin-right: auto;
    /* margin-top: auto; * Ini sudah ada di btn-postnew global, jadi tidak perlu lagi di sini jika sudah bekerja */
    margin-bottom: 10px; /* Jarak antara tombol dan profil */
    flex-shrink: 0;
}
.sidebar-left.collapsed .btn-postnew .fa-solid,
.sidebar-left.collapsed .login-btn-compact .fa-solid {
    font-size: 24px; /* Ukuran ikon */
    margin-right: 0;
}

/* Sticky profil saat ciut (bulat) */
.sidebar-left.collapsed .sticky-profil {
    width: 50px; /* Ukuran bulat lebih kecil */
    height: 50px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
    margin-left: auto; /* Pastikan tetap di tengah jika flex-start */
    margin-right: auto;
    margin-top: 0; /* Tidak ada margin-top auto di sini */
    flex-shrink: 0;
}
.sidebar-left.collapsed .profile-picture-sticky {
    width: 50px; /* Ukuran foto profil di mode ciut */
    height: 50px;
}

.sidebar-right {
    flex: 1;
    min-width: 250px; /* Minimum width for readability */
    position: sticky; /* Membuat sidebar kanan sticky */
    top: 15px; /* Jarak dari atas */
    height: fit-content; /* Menyesuaikan tinggi dengan konten */
}

.sidebar-mid {
    flex: 1;
    min-width: 250px; /* Minimum width for readability */
    position: sticky; /* Membuat sidebar kanan sticky */
    top: 15px; /* Jarak dari atas */
    height: fit-content; /* Menyesuaikan tinggi dengan konten */
}




/* Tombol Tutup Sidebar (Mobile Only) */
.close-sidebar-btn {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--dark-text);
    cursor: pointer;
    z-index: 1001; /* Di atas konten sidebar mobile */
}
.close-sidebar-btn:hover {
    color: var(--red-alert);
}


/* --- General Container & Section Styles --- */
.container {
    width: 90%;
    margin: 0 auto;
    padding: 20px;
    max-width: 1200px;
    box-sizing: border-box;
}

.section-wrapper {
    padding: 0px 0px;
    margin: 5px auto;
    max-width: 1200px;
    border: none; /* Removed border */
    border-radius: 8px; /* Consistent border radius */
    position: relative; /* Bisa relative, tapi TANPA z-index */
    z-index: auto; /* Pastikan tidak ada z-index tinggi di sini */
}

.section-wrapperb {
    padding: 20px;
    margin: 5px auto;
    max-width: 1200px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Consistent border radius */
    box-shadow: var(--soft-shadow);
}

.section-wrapper h1 {
    font-size: 20px;
    color: var(--dark-text);
    font-weight: 600; /* Bolder heading */
}


.section-wrapper h2 {
    font-size: 18px;
    color: var(--dark-text);
    font-weight: 600; /* Bolder heading */
}

.section-wrapper p {
    font-size: 1rem;
    line-height: 1.6;
    color: #363636;
}

.section-wrapper ul li {
    content: '\2022';
    color: var(--dark-text);
    list-style-type: none;
    margin-left: 10px;
}

/* Gaya untuk bulatan notifikasi (pesan & umum) */
        .unread-indicator {
            position: relative; /* Penting untuk penempatan badge */
            display: flex; /* Menggunakan flex untuk ikon dan teks */
            align-items: center; /* Untuk vertikal alignment ikon dan teks */
            gap: 12px; /* Jarak antara ikon dan teks menu, sesuai dengan item menu lain */
            padding: 10px 15px; /* Sesuaikan padding agar sama dengan item menu lainnya */
            border-radius: 8px; /* Sudut membulat */
            text-decoration: none;
            color: #4b5563;
            font-weight: 500;
            transition: background-color 0.2s ease, color 0.2s ease;
        }

        .unread-indicator:hover {
            background-color: #e5e7eb;
            color: #1f2937;
        }

        .unread-indicator i {
            font-size: 1.25rem;
            width: 24px;
            text-align: center;
            flex-shrink: 0;
            margin-right: 0; /* Hapus margin-right di sini karena sudah ada gap */
        }

        .unread-count {
            position: absolute;
            top: 0px; /* Sesuaikan posisi vertikal, misal lebih rendah sedikit */
            right: 5px; /* Sesuaikan posisi horizontal, di dalam padding */
            background-color: red;
            color: white;
            border-radius: 50%;
            padding: 6px 6px;
            font-size: 0.7em;
            min-width: 20px; /* Pastikan bulatan cukup lebar untuk 2 digit */
            text-align: center;
            line-height: 1; /* Pastikan teks di tengah vertikal */
            box-shadow: 0 0 5px rgba(0,0,0,0.2); /* Sedikit bayangan untuk menonjolkan */
            transform: translateX(100%); /* Geser agar tidak menutupi teks */
            /* Menggunakan transform untuk posisi relatif terhadap item,
               tapi butuh penyesuaian top/right agar sesuai dengan desain */
        }

        /* Sesuaikan untuk mode sidebar menyusut */
        .sidebar-left.collapsed .unread-indicator {
            justify-content: center; /* Pusatkan ikon saat collapsed */
            padding: 10px; /* Sesuaikan padding */
            gap: 0;
        }

        .sidebar-left.collapsed .unread-indicator .menu-text-full {
            display: none;
        }

        .sidebar-left.collapsed .unread-count {
            right: -5px; /* Geser ke kanan lebih dekat ke ikon */
            top: 0; /* Sesuaikan top agar pas di pojok ikon */
            transform: translateX(0%); /* Reset transform */
        }

/* Tombol hamburger seragam */
.hamburger-menu-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0; /* Hapus padding default jika ingin ukuran pasti */
    background: transparent;
    border: none;
}

/* Titik notifikasi */
.hamburger-menu-btn .notification-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 10px;
    height: 10px;
    background-color: red;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10;
}



		
/* --- Header & Navigation --- */
header {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}

header .logo a img {
    max-width: 100%;
    height: 34px;
}

header nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    transition: background-color 0.3s ease;
}

header nav ul li a:hover {
    background-color: #555;
    text-decoration: none; /* Ensure no underline on hover */
}

nav ul li a i {
    width: 20px;
    text-align: center;
}

/* --- Form Styles --- */
form input[type="text"],
form input[type="email"],
form input[type="number"],
form input[type="password"],
form input[type="url"],
form select,
form textarea {
    width: 100%;
    padding: 12px; /* Increased padding */
    margin: 10px 0;
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Consistent border radius */
    font-size: 14px;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="number"]:focus,
form input[type="password"]:focus,
form input[type="url"]:focus,
form select:focus,
form textarea:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
    outline: none;
}

form button {
    width: 100%;
    color: white;
    border: none;
    border-radius: 8px; /* Consistent border radius */
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

form button:hover {
}

/* --- Popup Modal for Followers/Following --- */
#popup-modal {
    /* IMPORTANT: Ensure this is 'none' by default for JS to control it */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

#popup-modal > div {
    background: white;
    padding: 30px; /* More padding */
    max-height: 500px; /* Taller modal */
    overflow-y: auto;
    border-radius: 12px; /* Consistent border radius */
    min-width: 350px; /* Wider minimum */
    max-width: 500px; /* Adjusted max-width */
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

#popup-title {
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--dark-text);
    text-align: center;
}

#popup-content {
    list-style-type: none;
    padding: 0;
    margin-bottom: 20px;
}

#popup-content li {
    display: flex;
    align-items: center;
    justify-content: start;
    margin-bottom: 12px; /* More space */
    padding: 10px 12px; /* Padding for list items */
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

#popup-content li:hover {
    background-color: var(--light-gray-bg);
}

#popup-content li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--dark-text);
    font-size: 16px;
    font-weight: 500;
    width: 100%; /* Fill space */
}

#popup-content li img {
    width: 45px; /* Larger image */
    height: 45px;
    border-radius: 50%;
    margin-right: 15px; /* More space */
    object-fit: cover;
}

#popup-content li a:hover {
    color: var(--primary-blue);
}

#close-popup-btn {
    background: transparent;
    border: none;
    font-size: 14px;
    color: var(--light-text);
    cursor: pointer;
    margin-top: 10px;
    align-self: center;
    font-weight: 600;
    transition: color 0.2s ease;
}

#close-popup-btn:hover {
    color: var(--dark-text);
}

/* --- File Input Styles --- */
input[type="file"] {
    display: inline-block;
    padding: 10px 18px; /* Consistent padding */
    background-color: var(--light-gray-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Consistent border radius */
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
    width: auto; /* Allow width to adjust */
}

input[type="file"]:hover {
    background-color: var(--medium-gray-bg);
    border-color: var(--primary-blue);
}

.file-preview {
    display: block; /* Block for better layout */
    margin-top: 10px;
    font-style: italic;
    color: var(--light-text);
    font-size: 14px;
}

/* --- Notification Popup --- */
#popup-notif {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--success-green);
    color: white;
    padding: 15px 25px; /* More padding */
    border-radius: 10px; /* More rounded */
    box-shadow: 0 6px 15px rgba(0,0,0,0.3); /* Stronger shadow */
    z-index: 9999;
    font-family: 'Inter', sans-serif;
    animation: fadeOut 3s forwards;
    display: flex; /* For icon alignment if added */
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
}

@keyframes fadeOut {
    0% { opacity: 1; transform: translateY(0); }
    70% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; display: none; transform: translateY(-20px); } /* Fade out and move up */
}

/* --- Pagination --- */
.pagination {
    margin-top: 25px; /* More margin */
    text-align: center;
}
.pagination a {
    margin: 0 5px; /* More space */
    padding: 8px 14px; /* More padding */
    background: var(--light-gray-bg);
    border-radius: 8px; /* Consistent border radius */
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}
.pagination a.active {
    background: var(--primary-blue);
    color: white;
    font-weight: 700;
}
.pagination a:hover:not(.active) {
    background: var(--medium-gray-bg);
    color: var(--primary-blue);
}
.pagination .ellipsis {
    margin: 0 8px;
    color: var(--light-text);
    font-weight: bold;
}

/* --- Catalog Table & Sidebar --- */

/* 1. Kontainer Responsif untuk Tabel */
.table-responsive {
    width: 100%;
    overflow-x: auto; /* Memungkinkan scrolling horizontal jika konten tabel meluap */
    -webkit-overflow-scrolling: touch; /* Untuk scrolling yang lebih halus di perangkat sentuh */
    position: relative; /* Penting untuk konteks stacking saat menggunakan sticky */
    margin-top: 20px; /* Jarak dari elemen di atasnya */
    box-shadow: var(--soft-shadow); /* Bayangan yang konsisten */
    border-radius: 8px; /* Sudut membulat yang konsisten */
}

.catalog-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 500px; /* Lebar minimum tabel, sesuaikan jika perlu. Agar konten katalog tetap terbaca */
}

.catalog-table th, .catalog-table td {
    padding: 14px 18px;
    text-align: left;
    font-size: 13px;
    vertical-align: top; /* Pastikan konten sel rata atas */
}

.catalog-table th {
    font-size: 15px;
    background-color: var(--light-gray-bg);
    text-align: center;
    color: var(--dark-text);
    font-weight: 700;
    white-space: nowrap; /* Mencegah judul kolom wrap */
}

/* 2. Styling Kolom "Pilih" agar Sticky */
.catalog-table th:last-child, /* Kolom header terakhir (Pilih) */
.catalog-table td.select-column {  /* Kolom data terakhir (Pilih), gunakan kelas baru */
    position: sticky; /* Membuat kolom 'lengket' saat di-scroll */
    right: 0; /* Menempel di sisi kanan */
    background-color: #fff; /* Pastikan latar belakangnya putih agar tidak transparan */
    z-index: 2; /* Agar tetap di atas konten yang di-scroll */
    box-shadow: -2px 0 5px rgba(0,0,0,0.05); /* Bayangan di sisi kiri untuk efek 'lengket' */
    width: 80px; /* Sesuaikan lebar ini agar cukup untuk tombol */
    text-align: center; /* Pusat tombol di kolom pilih */
}

.catalog-table th:last-child {
    background-color: var(--light-gray-bg); /* Pertahankan latar belakang header */
    z-index: 3; /* Z-index lebih tinggi untuk header sticky */
}

/* 3. Penataan Konten di Kolom "Katalog" */
.catalog-details {
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 5px; /* Jarak antar baris informasi di dalam sel */
    min-width: 300px; /* Agar kolom katalog punya lebar minimum yang layak */
}

.catalog-details .catalog-title-author {
    font-size: 1.1em; /* Judul lebih besar */
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark-text);
}

.catalog-details .catalog-title-author .title {
    color: var(--primary-blue); /* Warna judul bisa dibedakan */
}

.catalog-details .catalog-title-author .by {
    font-weight: normal; /* "oleh" tidak terlalu tebal */
    font-style: italic;
    color: var(--light-text);
}

.catalog-details .catalog-meta {
    font-size: 0.9em;
    color: var(--light-text);
    line-height: 1.3;
}

.catalog-details .catalog-isbn,
.catalog-details .catalog-call-number,
.catalog-details .catalog-uploader {
    font-size: 0.85em;
    color: var(--dark-text);
    line-height: 1.2;
}
.catalog-details .catalog-uploader {
    font-style: italic;
    color: var(--light-text);
}


/* 4. Sesuaikan properti untuk tombol di kolom Pilih */
.catalog-table .btn-add {
    font-size: 10px; /* Sesuaikan ukuran font jika perlu */
    padding: 0; /* Pastikan padding nol */
    margin: 0; /* Pastikan margin nol */
    display: inline-flex; /* Agar ikon dan teks tetap rapi */
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: none; /* Pastikan latar belakang transparan */
    border: none; /* Pastikan tanpa border */
    color: var(--primary-blue); /* Warna ikon */
    transition: color 0.2s ease, transform 0.2s ease;
}

.catalog-table .btn-add:hover {
    color: var(--hover-blue);
    transform: scale(1.1);
}

.catalog-table .btn-add .ti {
    font-size: 24px; /* Atur ukuran ikon Tabler Icons di sini */
    margin: 0;
    padding: 0;
}

/* KUNCI PERBAIKAN KERANJANG KATALOG DI SINI */
.sidebar-rightcatalog {
    /* Mengubah flex-shrink agar tidak menyusut terlalu banyak */
    flex: 0 0 250px; /* Berikan lebar tetap 250px */
    position: sticky;
    top: 20px; /* Jarak dari atas saat sticky */
    height: fit-content; /* Tinggi menyesuaikan kontennya */
    border-left: none; /* Removed border */
    padding: 15px;
    box-sizing: border-box;
    overflow-y: auto; /* Tetap izinkan scroll jika kontennya panjang */
    font-size: 13px;
    z-index: 100;
    margin-top: 0;
    border-radius: 8px;
    box-shadow: var(--soft-shadow);
}

.sidebar-rightcatalog h2 {
    font-size: 18px; /* Larger heading */
    margin-top: 0;
    margin-bottom: 15px; /* More margin */
    text-align: center;
    font-weight: 700;
    color: var(--dark-text);
}

.sidebar-rightcatalog ul {
    padding-left: 0; /* Removed padding */
    list-style: none; /* Removed disc */
    margin: 0 0 15px 0; /* Adjusted margin */
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    border: 1px solid var(--border-color); /* Added subtle border */
}

.sidebar-rightcatalog ul li {
    padding: 10px 12px; /* More padding */
    border-bottom: 1px solid var(--light-gray-bg); /* Lighter separator */
}

.sidebar-rightcatalog ul li:nth-child(odd) {
    background-color: #fcfcfc; /* Very light background */
}

.sidebar-rightcatalog ul li:nth-child(even) {
    background-color: #f2faff; /* Very light blue for even rows */
}

.sidebar-rightcatalog ul li:last-child {
    border-bottom: none;
}

/* Menghapus border bawah untuk item terakhir jika parent ul memiliki border */
.sidebar-rightcatalog ul li:last-child.cart-item-row {
    border-bottom: none;
}

.sidebar-rightcatalog button {
    width: 100%;
    font-size: 12px;
    padding: 8px; /* More padding */
    margin-bottom: 8px;
    cursor: pointer;
    border-radius: 8px; /* Consistent border radius */
    font-weight: 600;
    transition: background-color 0.3s ease;
}


/* --- Cart Buttons (Catalog) --- */
.cart-buttons {
    display: flex;
    width: 100%;
    gap: 15px; /* Increased gap */
    margin-top: 20px;
}

.cart-buttons form {
    flex: 1; /* Make both forms take equal space */
}

/* --- Keranjang Katalog: Item Individual (Fokus pada .btn-remove-item) --- */

.cart-item-row {
    display: flex; /* Menggunakan flexbox untuk penempatan item dan tombol */
    justify-content: space-between; /* Mendorong teks ke kiri dan tombol ke kanan */
    align-items: center; /* Memusatkan item secara vertikal */
    padding: 10px 12px; /* Padding yang nyaman untuk setiap baris */
    line-height: 1.4;
    font-size: 13px; /* Ukuran font sesuai dengan daftar katalog */
    color: var(--dark-text);
    background-color: #fff; /* Latar belakang putih untuk item */
    transition: background-color 0.2s ease;
    border-bottom: 1px dashed var(--border-color); /* Garis putus-putus pemisah */
}

.cart-item-details {
    flex-grow: 1; /* Memungkinkan detail mengambil ruang yang tersedia */
    margin-right: 10px; /* Memberi jarak antara teks detail dan tombol */
    word-break: break-word; /* Memastikan teks panjang tidak meluap */
    overflow-wrap: break-word;
}

.remove-from-cart-form {
    flex-shrink: 0; /* Memastikan form tombol tidak menyusut */
    margin: 0; /* Menghilangkan margin default form */
    padding: 0; /* Menghilangkan padding default form */
}


.btn-ticket {
    /* Basic button styling */
    display: inline-flex; /* Allows icon and text to sit side-by-side */
    align-items: center; /* Vertically centers content */
    gap: 8px; /* Space between icon and text */
    padding: 12px 25px; /* Comfortable padding */
	margin: 10px 10px 10px 10px;
    border: none;
    border-radius: 8px; /* Slightly rounded corners */
    background-color: #4CAF50; /* A pleasant green */
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    overflow: hidden; /* Important for pseudo-elements */
    position: relative; /* For pseudo-elements positioning */
    z-index: 1; /* Ensures content is above pseudo-elements */
    transition: all 0.3s ease; /* Smooth transitions for hover effects */
    text-transform: uppercase; /* Makes text look more like a ticket stub */
    letter-spacing: 0.5px;
	max-width: 200px;
}

.btn-ticket:hover {
    background-color: #45a049; /* Darker green on hover */
    transform: translateY(-2px); /* Slight lift effect */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow on hover */
}

.btn-ticket:active {
    transform: translateY(0); /* Resets on click */
    box-shadow: none;
}

/* Pseudo-elements for ticket-like edges */
.btn-ticket::before,
.btn-ticket::after {
    content: '';
    position: absolute;
    background-color: white; /* Same as button background */
    width: 20px; /* Size of the 'notch' */
    height: 20px; /* Size of the 'notch' */
    z-index: -1; /* Behind the button content */
}

/* Left side notch */
.btn-ticket::before {
    left: -10px; /* Half of its width to move it outside */
    top: 50%;
    transform: translateY(-50%) rotate(45deg); /* Rotated square for diamond shape */
    border-radius: 3px; /* Slightly round the notch edges */
}

/* Right side notch */
.btn-ticket::after {
    right: -10px; /* Half of its width to move it outside */
    top: 50%;
    transform: translateY(-50%) rotate(45deg); /* Rotated square for diamond shape */
    border-radius: 3px; /* Slightly round the notch edges */
}

/* Icon specific styling (assuming ti-small is your icon class) */
.btn-ticket .ti-small {
    font-size: 20px; /* Adjust icon size as needed */
    line-height: 1; /* Ensures proper vertical alignment */
}


/* Style for the content box itself */
.content-box {
    background-color: #fff; /* White background for the content */
    padding: 30px; /* Generous padding inside the box */
    border-radius: 12px; /* Nicely rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* Soft, prominent shadow */
    max-width: 550px; /* Maximum width for better readability */
    width: 90%; /* Responsive width, takes 90% of parent's width */
    position: relative; /* For positioning the close button */
    animation: fadeInScale 0.3s ease-out forwards; /* Simple animation on appearance */
    text-align: left; /* Align text to the left */
    overflow-y: auto; /* Enable scrolling if content overflows */
    max-height: 80vh; /* Max height to prevent content from going off screen */
}

/* Header styling within the content box */
.content-box h3 {
    font-size: 28px; /* Larger heading for prominence */
    color: #333; /* Darker text for readability */
    margin-bottom: 20px; /* Space below the heading */
    text-align: center; /* Center the heading */
    font-weight: 700; /* Bolder font weight */
}

/* List styling within the content box */
.content-box ol {
    list-style: decimal; /* Standard numbered list */
    padding-left: 25px; /* Indent the list items */
    margin-bottom: 20px; /* Space below the list */
}

.content-box ol li {
    font-size: 16px; /* Readable font size for list items */
    line-height: 1.6; /* Comfortable line spacing */
    color: #555; /* Slightly lighter text for list items */
    margin-bottom: 10px; /* Space between list items */
}

.content-box ol li strong {
    color: #333; /* Make strong text stand out */
    font-weight: 600;
}

/* Close button styling */
.content-box .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px; /* Larger close icon */
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s ease;
}

.content-box .close:hover {
    color: #555; /* Darker on hover */
}



.btn-contact {
    /* Base styling for the button */
    display: flex; /* Arrange icon and text horizontally */
    align-items: center; /* Vertically center content */
    justify-content: center; /* Horizontally center content (if not enough text) */
    gap: 10px; /* Space between icon and text */
    padding: 12px 25px; /* Generous padding */
    margin-bottom: 15px; /* Space between multiple contact buttons */
    border-radius: 8px; /* Slightly rounded corners */
    text-decoration: none; /* Remove underline from link */
    font-weight: 600; /* Semi-bold text */
    font-size: 16px; /* Readable font size */
    transition: all 0.3s ease; /* Smooth transitions for hover/active */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
}

/* Specific styles for WhatsApp button */
.btn-contact:nth-child(1) { /* Targets the first .btn-contact, assuming WhatsApp is first */
    background-color: #25D366; /* WhatsApp green */
    color: white;
}

.btn-contact:nth-child(1):hover {
    background-color: #1DA851; /* Darker green on hover */
    transform: translateY(-2px); /* Slight lift effect */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

.btn-contact:nth-child(1):active {
    transform: translateY(0); /* Resets on click */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Specific styles for Chat button (or general if only two buttons) */
.btn-contact:nth-child(2) { /* Targets the second .btn-contact, assuming Chat is second */
    background-color: #007bff; /* A nice blue, common for chat/messaging */
    color: white;
}

.btn-contact:nth-child(2):hover {
    background-color: #0056b3; /* Darker blue on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-contact:nth-child(2):active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Styling for the icon within the button */
.btn-contact .ti-small {
    font-size: 20px; /* Adjust icon size */
    line-height: 1; /* Ensure proper vertical alignment */
}

/* Container for the buttons to manage layout */
.btn-kontak-admin {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px; /* Space between buttons */
    margin-top: 25px; /* Space above the buttons */
    align-items: center; /* Center buttons horizontally within their container */
}

/* Optional: Overlay background for the popup */
.pop-up-info {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black overlay */
    display: flex; /* Use flexbox to center content */
    justify-content: center; /* Horizontally center */
    align-items: center; /* Vertically center */
    z-index: 1000; /* Ensure it's on top of other content */
    /* You already have display:none in HTML, this is just for context */
}

/* Animation for the popup */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


.btn-remove-item {
    /* Gaya untuk tombol bulat berisi 'x' */
    background: none; /* Latar belakang awal transparan */
    border: 1px solid var(--border-color); /* Border tipis di sekeliling tombol */
    color: var(--light-text); /* Warna ikon 'x' default (abu-abu terang) */
    font-size: 12px; /* Ukuran ikon 'x' kecil agar pas di tombol bulat */
    cursor: pointer;
    
    width: 24px; /* Lebar tetap tombol */
    height: 24px; /* Tinggi tetap tombol */
    border-radius: 50%; /* Membuat tombol menjadi bulat sempurna */
    
    display: flex; /* Menggunakan flexbox untuk memusatkan ikon 'x' */
    align-items: center; /* Memusatkan ikon secara vertikal */
    justify-content: center; /* Memusatkan ikon secara horizontal */
    
    transition: all 0.2s ease; /* Transisi halus untuk efek hover */
}

.btn-remove-item:hover {
    color: var(--red-alert); /* Ikon berubah menjadi merah saat kursor di atasnya */
    background-color: rgba(var(--red-alert-rgb, 220, 53, 69), 0.1); /* Latar belakang merah transparan saat hover */
    border-color: var(--red-alert); /* Border berubah menjadi merah saat hover */
    transform: scale(1.1); /* Tombol sedikit membesar saat hover untuk umpan balik visual */
}

.btn-clear, .btn-download {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border: none;
    border-radius: 8px; /* Consistent border radius */
    cursor: pointer;
    color: white;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.btn-clear {
    background-color: var(--red-alert);
}

.btn-clear:hover {
    background-color: var(--red-alert-hover);
}

.btn-download {
    background-color: var(--primary-blue); /* Consistent blue */
}

.btn-download:hover {
    background-color: var(--hover-blue);
}

.btn-unduh-tur {
    background-color: #007bff;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.btn-unduh-tur:hover {
    background-color: #0056b3;
}


/* --- Tombol Buat Postingan Baru (.btn-postnew) --- */
.btn-postnew {
    /* Properti dasar tombol */
    display: flex; /* Menggunakan Flexbox untuk perataan ikon dan teks */
    align-items: center; /* Memusatkan ikon dan teks secara vertikal */
    justify-content: center; /* Memusatkan ikon dan teks secara horizontal */
    gap: 8px; /* Jarak antara ikon dan teks */
    
    width: 100%; /* Lebar penuh agar sesuai dengan sidebar */
    padding: 15px 20px; /* Padding yang nyaman */
    
    background-color: var(--primary-blue); /* Warna biru utama dari variabel */
    color: white; /* Warna teks putih */
    border: none; /* Hapus border */
    border-radius: 8px; /* Sudut membulat yang konsisten */
    
    font-size: 16px; /* Ukuran font yang mudah dibaca */
    font-weight: 600; /* Teks tebal */
    cursor: pointer; /* Kursor pointer saat di hover */
    margin: 8px 0 8px 0;
    transition: background-color 0.3s ease, transform 0.2s ease; /* Transisi halus */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Sedikit bayangan untuk kedalaman */
}

/* Efek hover untuk tombol */
.btn-postnew:hover {
    background-color: var(--hover-blue); /* Warna biru yang lebih gelap saat hover */
    transform: translateY(-2px); /* Efek mengangkat sedikit */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15); /* Bayangan sedikit lebih kuat saat hover */
}

/* Gaya untuk ikon di dalam tombol */
.btn-postnew .fa-solid {
    font-size: 18px; /* Ukuran ikon yang sedikit lebih besar */
}

/* Pastikan tabler icons juga terpengaruh jika digunakan dalam tombol ini */
.btn-postnew .ti {
    font-size: 18px; /* Ukuran ikon Tabler Icons yang konsisten */
}

/* --- Tombol Cari (Class Baru) --- */
.btn-cari {
    display: inline-flex; /* Gunakan inline-flex agar ikon dan teks sejajar */
    align-items: center;
    justify-content: center;
    gap: 8px; /* Jarak antara ikon dan teks */

    /* Properti dasar tombol */
    padding: 10px 18px; /* Padding yang nyaman */
    background-color: #6c757d; /* Contoh warna abu-abu (sesuaikan jika perlu) */
    color: white; /* Warna teks putih */
    border: none;
    border-radius: 8px; /* Sudut membulat yang konsisten */

    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
	margin-bottom: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Efek hover untuk tombol cari */
.btn-cari:hover {
    background-color: #5a6268; /* Sedikit lebih gelap saat hover */
    transform: translateY(-2px); /* Efek mengangkat sedikit */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Sedikit bayangan */
}

/* Gaya untuk ikon di dalam tombol cari jika ada */
.btn-cari .fa-solid,
.btn-cari .ti {
    font-size: 16px; /* Ukuran ikon */
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px; /* Increased padding */
    border: none;
    background-color: var(--primary-blue);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px; /* Consistent border radius */
    transition: background-color 0.3s ease;
}

.btn-submit .ti {
    font-size: 18px;
}

.btn-submit:hover {
    background-color: var(--hover-blue);
}


/* --- Area Postingan yang Di-pin --- */
#pinned-posts-area {
    background: #fff;
    border-radius: 12px; /* More rounded */
    margin-bottom: 15px; /* More space between posts */
}

#pinned-posts-area h3 {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

#pinned-posts-area h3 .fa-thumbtack {
    font-size: 1.1rem;
}

.pinned-post-item {
    background-color: #ffffff; /* Pastikan post individu di area pin tetap putih */
    margin-bottom: 10px; /* Jarak antar post di-pin */
    padding: 15px;
    border-radius: 8px;
}

.pinned-post-item:last-child {
    margin-bottom: 0; /* Hapus margin bawah post terakhir di-pin */
}

/* === Responsifitas === */
@media (max-width: 768px) {
    #pinned-posts-area {
        padding: 10px;
        margin-bottom: 15px;
    }
    #pinned-posts-area h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    .pinned-post-item {
        padding: 10px;
    }
}



/* --- Table Styles --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px; /* Default font size for tables */
}

table, th, td {
    border: 1px solid var(--border-color);
    text-align: left;
}

th, td {
    padding: 10px;
}

th {
    background-color: var(--dark-text);
    color: white;
}

/* ====================
   FOOTER MODERN MINIMALIS
   ==================== */
footer {
    background-color: #222; /* Latar belakang gelap */
    color: #ccc; /* Warna teks abu-abu terang */
    padding: 2rem 0; /* Spasi vertikal di dalam footer */
    font-size: 0.9rem;
}

.footer-container {
    max-width: 1200px; /* Lebar maksimum konten */
    margin: 0 auto; /* Pusatkan container */
    padding: 0 2rem; /* Spasi horizontal jika layar kecil */
    display: flex; /* Aktifkan Flexbox */
    justify-content: space-between; /* Posisikan item ke ujung */
    align-items: center; /* Sejajarkan item secara vertikal di tengah */
    flex-wrap: wrap; /* Izinkan item turun baris jika layar sempit */
    gap: 1rem; /* Jarak antar item jika turun baris */
}

.footer-nav ul {
    list-style: none; /* Hilangkan bullet points */
    margin: 0;
    padding: 0;
    display: flex; /* Buat item list berjajar */
    gap: 1.5rem; /* Jarak antar link */
}

.footer-nav a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease; /* Transisi halus saat hover */
}

.footer-nav a:hover {
    color: #fff; /* Warna teks menjadi putih saat disentuh mouse */
}

/* ====================
   FOOTER INFORMATIF & TERSTRUKTUR
   ==================== */
.site-footer {
    background-color: #1c1c1c;
    color: #a9a9a9;
    padding-top: 3rem;
    font-size: 1rem;
    line-height: 1.6;
}

.footer-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap; /* Izinkan kolom turun baris di layar kecil */
    justify-content: space-between;
    gap: 2rem; /* Jarak antar kolom */
}

.footer-column {
    flex: 1; /* Setiap kolom mengambil ruang yang sama */
    min-width: 250px; /* Lebar minimum sebelum turun baris */
}

.site-footer h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

/* Garis bawah dekoratif untuk judul */
.site-footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background-color: #007bff; /* Warna aksen (biru) */
}

.footer-column.about p {
    margin: 0;
}

.footer-column.links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column.links a {
    color: #a9a9a9;
    text-decoration: none;
    display: inline-block;
    padding-bottom: 5px;
    transition: all 0.3s ease;
}

.footer-column.links a:hover {
    color: #fff;
    transform: translateX(5px); /* Efek geser saat hover */
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: #007bff; /* Warna aksen saat hover */
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 2rem;
    margin-top: 2rem;
    border-top: 1px solid #333; /* Garis pemisah */
}

/* Penyesuaian untuk layar kecil (Mobile) */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column; /* Ubah arah flex menjadi kolom */
        text-align: center;
    }
}

/* --- User Profile Section --- */
.user-profile {
    display: contents; /* Keeps flow normal */
    align-items: center;
    gap: 10px;
    padding: 10px;
}

.profile-header {
    display: flex;
    align-items: center;
    padding: 0px 0px 20px 0px;
}

.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: none; /* Removed border */
    margin-right: 10%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* Subtle shadow */
}

.profile-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-info h1 {
    font-size: 24px;
    margin: 0;
    font-weight: 700;
}

.profile-info p {
    margin: 5px 0;
}

.profile-stats {
    display: flex;
    gap: 15px; /* Increased gap */
    text-align: center;
}

.link-no-style {
    color: var(--dark-text);
    text-decoration: none;
    cursor: pointer;
}

.link-no-style:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    color: var(--dark-text);
    cursor: pointer;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}

.stat-number:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

.stat-label {
    font-size: 14px;
    color: var(--light-text);
}

.btn-follow,
.btn-unfollow,
.btn-setting {
    display: inline-block;
    padding: 8px 16px; /* Adjusted padding */
    text-decoration: none;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid; /* Dynamic border */
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    height: auto; /* Allow height to adjust */
    margin-top: 5%;
}

.btn-follow {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.btn-follow:hover {
    background-color: var(--hover-blue);
    border-color: var(--hover-blue);
}

.btn-unfollow {
    background-color: white;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-unfollow:hover {
    background-color: var(--primary-blue);
    color: white;
}

.btn-setting {
    background-color: var(--light-gray-bg);
    color: var(--dark-text);
    border-color: var(--border-color);
}

.btn-setting:hover {
    background-color: var(--medium-gray-bg);
    border-color: #c9c9c9;
}

/* --- Popup & Modal Styles --- */



/* Properti umum untuk tombol yang membuka pop-up */
.open-popup-btn, .btn-post, .btn-unggahcatalog {
    display: inline-block;
    margin-top: 5%;
    width: 100%;
    padding: 12px 20px;
    background-color: var(--primary-blue);
    color: #fff;
    text-decoration: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.open-popup-btn:hover, .btn-post:hover, .btn-unggahcatalog:hover {
    background-color: var(--hover-blue);
}

/* KUNCI PERBAIKAN POP-UP TENGAH */
.popup {
    position: fixed; /* Kunci: Membuat popup keluar dari alur dan menempel di layar */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Latar belakang transparan */
    
    /* Cara termudah untuk menengahkan */
    display: flex; 
    align-items: center; /* Tengah vertikal */
    justify-content: center; /* Tengah horizontal */

    z-index: 10000;
    display: none; /* Awalnya disembunyikan */
}


/* Pastikan juga pop-up lain memiliki properti yang sama */
#uploadForm, .pop-up-info, .popup-overlay, .popup-content-hapus, #popup-modal {
    /* Pastikan ini 'none' secara default */
    display: none; 

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Sesuaikan z-index sesuai kebutuhan */
}

.popup-content h3 {
    margin-top: 0;
    font-size: 22px; /* Larger heading */
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

#popup-message-container {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
    display: block;
}

.popup-content label {
    display: block;
    margin: 15px 0 8px; /* Increased margin */
    font-weight: 600;
    color: var(--dark-text);
}

.popup-content .close {
    position: absolute; /* Absolute positioning */
    top: 15px;
    right: 15px;
    font-size: 28px; /* Larger close icon */
    cursor: pointer;
    color: var(--light-text);
    transition: color 0.2s ease;
}

.popup-content .close:hover {
    color: var(--dark-text);
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 20px;
    cursor: pointer;
}

/* --- Post Display Styles --- */
.post-header {
    position: relative;
}

.delete-form {
    position: absolute;
    right: 0;
    top: 0;
}

/* --- Tombol Tambah ke Keranjang (.btn-add) --- */
.btn-add {
    background: none; /* Tanpa latar belakang */
    border: none; /* Tanpa border */
    color: var(--primary-blue); /* Warna ikon, bisa disesuaikan */
    cursor: pointer; /* Kursor pointer */
    
    /* Properti Kunci untuk Memperkecil Ukuran Tombol */
    padding: 0; /* Hapus padding yang mungkin membuatnya besar */
    margin: 0; /* Hapus margin yang mungkin mendorongnya */
    width: auto; /* Biarkan lebar menyesuaikan konten */
    height: auto; /* Biarkan tinggi menyesuaikan konten */
    min-width: 0; /* Pastikan tidak ada lebar minimum */
    min-height: 0; /* Pastikan tidak ada tinggi minimum */
    display: inline-flex; /* Gunakan inline-flex untuk perataan ikon yang lebih baik */
    align-items: center; /* Pusat ikon secara vertikal */
    justify-content: center; /* Pusat ikon secara horizontal */
    
    transition: color 0.2s ease, transform 0.2s ease; /* Transisi halus saat hover */
}

/* Efek hover untuk tombol */
.btn-add:hover {
    color: var(--hover-blue); /* Warna berubah saat hover */
    transform: scale(1.1); /* Sedikit membesar saat hover */
}

/* Pastikan ikon Tabler Icons di dalamnya memiliki ukuran yang benar */
.btn-add .ti {
    font-size: 24px; /* Ukuran ikon Tabler Icons untuk ti-medium */
    margin: 0; /* Hapus margin default ikon jika ada */
    padding: 0; /* Hapus padding default ikon jika ada */
}


.btn-delete {
    background-color: var(--red-alert);
    color: white;
    border: none;
    padding: 8px 12px; /* Adjusted padding */
    cursor: pointer;
    font-size: 13px;
    border-radius: 6px; /* Consistent border radius */
    display: none;
    transition: background-color 0.3s ease;
}

.post:hover .btn-delete {
    display: inline-block;
}

.btn-delete:hover {
    background-color: var(--red-alert-hover);
}

.download-template {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
    margin-bottom: 1rem;
}

.download-btn {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 8px 16px;
    background-color: #007bff; /* biru khas Bootstrap */
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #0056b3; /* biru lebih gelap saat hover */
}


/* --- Tab Navigation --- */
.tab-container {
    display: flex;
    width: 100%;
}

.tab-button {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    color: var(--light-text);
    background: #fff;
    border-bottom: 3px solid var(--medium-gray);
    transition: all 0.3s ease-in-out;
}

.tab-button.active {
    background: white;
    color: var(--primary-blue);
    border-top: 3px solid var(--primary-blue); /* Highlight active tab */
    border-bottom: none;
    padding-bottom: 13px; /* Adjust padding to compensate for border */
}

.tab-button:hover {
    background: var(--medium-gray-bg);
}

/* --- Post Cards on Index/Profile --- */
.profile-picture-small {
    width: 35px; /* Slightly larger small picture */
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.post.index-post, .post {
    padding: 20px; /* More padding for post content */
    background: #fff;
    border-radius: 12px; /* More rounded */
    box-shadow: var(--soft-shadow);
    margin-bottom: 15px; /* More space between posts */
}

.post.index-post:hover, .post:hover {
    transform: ; /* Subtle lift effect */
    box-shadow: ;
}

.post-title {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 700; /* Bolder title */
    font-size: 23px; /* Larger title */
    display: block; /* Make title a block element for better spacing */
    margin-top: 5px;
    margin-bottom: 5px;
}

.post-title:hover {
    color: var(--primary-blue);
}

.post-embed iframe {
            display: block;
            width: 100%;
            height: 100%;
        }

.username.index-username {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 700; /* Bolder username */
    font-size: 15px;
}

.username.index-username:hover {
    color: var(--primary-blue);
}

.index-username {
    font-weight: bold;
    vertical-align: middle;
}

.index-post-header {
    margin-bottom: 12px; /* More space */
    display: flex;
    align-items: center;
    gap: 10px;
}

.index-post-header .index-username {
    font-weight: bold;
    margin-right: 10px;
    text-decoration: none;
    color: var(--dark-text);
}

.follow-btn-index {
    font-size: 13px; /* Slightly larger text */
    padding: 6px 14px; /* More padding */
    border-radius: 20px; /* Pill shape */
    cursor: pointer;
    transition: background-color 0.3s, border 0.3s, color 0.3s;
    font-weight: 600;
}

.follow-btn-index.follow {
    background-color: white;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

.follow-btn-index.follow:hover {
    background-color: var(--primary-blue);
    color: white;
}

.follow-btn-index.unfollow {
    background-color: white;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

.follow-btn-index.unfollow:hover {
    background-color: var(--primary-blue);
    color: white;
}

/* Sidebar Daftar Pesan (Menggantikan sidebar-right) */
.sidebar-daftarpesan {
    width: 320px; /* Lebar default untuk desktop */
    flex-shrink: 0; /* Mencegah sidebar menyusut */
    background-color: #ffffff;
    overflow-y: auto; /* Memungkinkan daftar kontak di-scroll jika isinya banyak */
    position: relative;
    z-index: 1; /* Z-index agar tidak menutupi sidebar kiri pada tampilan mobile jika bertumpuk */
}

.sidebar-daftarpesan h2 {
    font-size: 20px;
    margin: 20px 20px 20px; /* Padding samping untuk judul */
    color: #333;
    font-family: 'Poppins', sans-serif;
}

.sidebar-daftarpesan .chat-contacts-list {
    padding: 0; /* Menghilangkan padding dari .section-wrapper di dalam sidebar ini */
}

.sidebar-daftarpesan .chat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-daftarpesan .chat-list li {
    border-bottom: 1px solid #f0f0f0; /* Garis pemisah antar kontak */
}

.sidebar-daftarpesan .chat-list li:last-child {
    border-bottom: none; /* Tidak ada garis di elemen terakhir */
}

.sidebar-daftarpesan .chat-item {
    display: flex;
    align-items: center;
    padding: 12px 20px; /* Padding untuk setiap item kontak */
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s ease;
}

.sidebar-daftarpesan .chat-item:hover,
.sidebar-daftarpesan .chat-item.active-chat {
    background-color: #f0f2f5; /* Warna latar belakang saat di-hover atau aktif */
}

.sidebar-daftarpesan .chat-item .profile-pic {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
}

.sidebar-daftarpesan .chat-item .chat-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.sidebar-daftarpesan .chat-item .chat-username {
    font-weight: bold;
    font-size: 15px;
    display: flex;
    align-items: center;
}

.sidebar-daftarpesan .chat-item .badge {
    background-color: #fa5252; /* Warna merah untuk badge pesan belum dibaca */
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    margin-left: auto; /* Mendorong badge ke kanan */
    font-weight: bold;
}

/* --- Media Queries untuk Responsif --- */

/* Tablet dan Mobile Landscape (768px - 1023px) */
@media (max-width: 1023px) {
    /* Pada ukuran ini, sidebar-daftarpesan tetap terlihat di desktop/tablet kecil */
}

/* Tablet dan Mobile Landscape (768px - 1023px) */
@media (max-width: 1200px) {
    .sidebar-right {
        display: none; /* Mengambil lebar penuh pada mobile */
}
}

/* Mobile Portrait (max-width 767px) */
@media (max-width: 767px) {
    .sidebar-daftarpesan {
        width: 100%; /* Mengambil lebar penuh pada mobile */
        border-left: none; /* Hapus border kiri */
        padding-top: 0;
        box-shadow: none;
        order: 1; /* Menampilkan daftar kontak di atas konten utama pada mobile */
        /* display dikontrol oleh JavaScript di messages.php,
           yaitu show/hide berdasarkan apakah ada contact_id yang dipilih */
        padding-bottom: 20px;
    }
}

/* Penyesuaian untuk layar sangat kecil */
@media (max-width: 480px) {
    .sidebar-daftarpesan .chat-item {
        padding: 10px 15px; /* Sedikit mengurangi padding */
    }
    .sidebar-daftarpesan .chat-item .profile-pic {
        width: 40px;
        height: 40px;
    }
    .sidebar-daftarpesan h2 {
        margin: 0 15px 15px; /* Sesuaikan padding judul */
    }
}

/* --- Sidebar Left (Navigation) --- */

/* Sidebar Menu - Existing styles for context */
.menu-side {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}
.menu-side li {
    margin-bottom: 10px; /* Jarak antar item menu */
}
.menu-side li a {
    display: flex; /* Menggunakan flexbox untuk penataan ikon dan teks */
    align-items: center; /* Menyelaraskan item secara vertikal di tengah */
    padding: 0px 5px;
    border-radius: 8px;
    text-decoration: none;
    color: #4b5563; /* Tailwind gray-700 */
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.menu-side li a:hover {
    background-color: #e5e7eb; /* Tailwind gray-200 */
    color: #1f2937;
}

/* Perbaikan untuk jarak ikon dan teks, serta perataan */
.menu-side li a i {
    margin-right: 12px; /* Menambah jarak antara ikon dan teks */
    font-size: 1.25rem;
    width: 24px; /* Memberikan lebar tetap pada ikon untuk perataan vertikal yang konsisten */
    text-align: center; /* Memusatkan ikon dalam lebar tetapnya */
    flex-shrink: 0; /* Mencegah ikon menyusut */
}

.menu-side li a .menu-text-full {
    flex-grow: 1; /* Memungkinkan teks mengambil sisa ruang */
    text-align: left; /* Memastikan teks rata kiri */
    white-space: nowrap; /* Mencegah teks melipat ke baris baru */
    overflow: hidden; /* Menyembunyikan teks yang melampaui batas jika sidebar menyempit */
    text-overflow: ellipsis; /* Menambahkan elipsis jika teks terpotong */
	font-weight: 100;
}

/* Styling for the selected menu item (the <a> tag) */
.menu-side li a.selected-menu-item {
    background-color: #e0f2fe; /* A light blue background (Tailwind blue-50) */
    color: #1d4ed8; /* A darker blue text color (Tailwind blue-700) */
    font-weight: 600; /* Semi-bold font for the whole link */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Subtle shadow */
}

/* Styling for the text inside the selected menu item */
.menu-side li a.selected-menu-item .menu-text-full {
    font-weight: 700; /* Even bolder for the text */
    color: #1e40af; /* A slightly different shade of blue for the text */
}

/* Ensure the icon also gets the selected color */
.menu-side li a.selected-menu-item i {
    color: #1d4ed8; /* Match the link text color */
}

/* Perbaikan khusus untuk logo-text jika ada ikon di dalamnya */
.menu-side li a.logo-text i {
    /* Jika logo-text juga punya ikon dan ingin perataan spesifik */
    /* Sesuaikan atau tambahkan gaya di sini jika perlu */
}

.sidebar-left .menu-side {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1; /* Allows menu to take available space */
}

.sidebar-left .menu-side li {
    padding: 5px 18px; /* More padding */
    margin: 0px 0;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.sidebar-left .menu-side li:hover {
    background-color: var(--medium-gray-bg); /* Highlight on hover */
}

.sidebar-left .menu-side li a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px; /* Adjusted gap */
    width: 100%; /* Ensure link fills list item */
}

.sidebar-left .menu-side li a img {
    height: 40px;
}

.sidebar-left .menu-side li a i {
    width: 25px; /* Larger icon area */
    text-align: center;
    flex-shrink: 0;
    font-size: 20px; /* Larger icon size */
    color: var(--light-text); /* Subtle icon color */
    transition: color 0.3s ease;
}

.sidebar-left .menu-side li a:hover i {
    color: var(--primary-blue); /* Icon color changes on hover */
}

.sidebar-leftpr {
    background-color: #fff; /* Warna latar belakang putih */
    padding: 8px 10px;       /* Padding 4 piksel atas/bawah, 10 piksel kiri/kanan */
    border-radius: 8px;      /* Sudut membulat dengan radius 8 piksel */
    max-width: 425px;        /* Lebar maksimal 280 piksel */
    width: 100%;
    /* Anda mungkin juga ingin menambahkan properti lain seperti margin, atau shadow */
    /* Contoh: */
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
}

/* --- Sidebar Left (Profile Specific) --- */
.sidebar-leftp {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1;
    padding: 0px;
}

.sidebar-leftp .menu-side {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-leftp .menu-side li {
    padding: 12px 15px;
    margin: 5px 0;
    border-radius: 8px;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
}

.sidebar-leftp .menu-side li:hover {
    transform: scale(1.05);
}

.sidebar-leftp .menu-side li a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-leftp .menu-side li a img {
    height: 40px;
}

.sidebar-leftp .menu-side li a i {
    font-size: 18px;
    margin-right: 15px;
}

.sidebar-leftp h4 {
    color: var(--primary-blue);
}

.sidebar-leftp h3 {
    font-size: 18px;
    margin-top: 10px;
    margin-bottom: 10px;
    color: var(--primary-blue);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 5px;
}

.sidebar-leftp input[type="text"] {
    width: calc(100%);
    padding: 10px; /* Increased padding */
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Consistent border radius */
    font-size: 14px;
}

.sidebar-leftp button[type="button"] {
    background: var(--red-alert);
    color: white;
    padding: 10px 15px; /* Consistent button padding */
    border-radius: 8px;
    font-weight: 300;
	font-size: 14px;
}

.sidebar-leftp button[type="button"]:hover {
    background: var(--red-alert-hover);
}

.sidebar-leftp ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-leftp ul li {
    background: white;
    padding: 5px 5px;
    border-radius: 8px; /* Consistent border radius */
    transition: background 0.3s ease-in-out;
}

.sidebar-leftp ul li a {
    text-decoration: none;
    color: var(--dark-text);
    display: block;
    font-size: 14px;
}

.sidebar-leftp ul li:hover {
}

.sidebar-leftp ul li a:hover {
    color: var(--primary-blue);
}

/* --- Styling untuk Kategori DDC yang Aktif --- */
/* Targetkan elemen <li> dengan class active-category */
.sidebar-leftp ul li.active-category {
    background-color: var(--primary-blue); /* KUNCI: Warna background biru */
    border-radius: 8px; /* Sesuaikan dengan sudut membulat lainnya */
    font-weight: bold; /* Opsi: buat teks lebih tebal */
    transition: background-color 0.3s ease;
}

/* Pastikan teks di dalam kategori aktif juga berwarna putih */
.sidebar-leftp ul li.active-category a {
    color: white; /* KUNCI: Warna teks putih untuk kontras */
    text-decoration: none; /* Pastikan tidak ada underline */
}

/* Jika ada efek hover pada kategori aktif, bisa diatur juga */
.sidebar-leftp ul li.active-category a:hover {
    color: white; /* Tetap putih saat di-hover */
    background-color: var(--primary-blue); /* KUNCI: Warna background biru */
    text-decoration: none; /* Tidak ada underline saat di-hover */
}

/* Untuk kategori non-aktif, pastikan gaya hover tetap berfungsi dengan baik */
.sidebar-leftp ul li a:hover {
    color: var(--primary-blue); /* Warna teks hover */
}

/* --- Sticky Profile & Login Section --- */
/* Perbaikan di sini */
.sidebar-left {
    display: flex;
    flex-direction: column;
    flex: 0 0 320px;
    position: sticky;
    top: 15px;
    overflow-y: auto; /* GANTI DARI hidden MENJADI auto */
    transition: width 0.3s ease, padding 0.3s ease, flex-basis 0.3s ease;
    background-color: #fff; /* Pastikan properti ini ada jika hilang */
    border-radius: 8px; /* Pastikan properti ini ada jika hilang */
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* Pastikan properti ini ada jika hilang */
    padding: 15px; /* Pastikan properti ini ada jika hilang */
    z-index: 999; /* Pastikan properti ini ada jika hilang */
}

.profile-picture-sticky {
    width: 45px; /* Larger sticky picture */
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 5px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.profil-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows info to take available space */
    min-width: 0; /* Prevents overflow */
}

.profil-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-grow: 1;
    overflow: hidden;
    color: var(--dark-text);
}

.profil-link:hover {
    color: var(--primary-blue);
}

.profil-name {
    font-weight: 700;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px;
}

.profil-username {
    color: var(--light-text);
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
    margin-bottom: 15px;
}

.form-group label {
    width: 120px;
    text-align: left;
    font-weight: bold;
}

.form-group input {
    flex: 1;
    padding: 10px; /* Adjusted padding */
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Consistent border radius */
    width: 100%;
}

.form-row {
    display: flex;
    gap: 15px; /* Increased gap */
    justify-content: space-between;
    max-width: 400px;
    width: 100%;
}

.form-row div {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-row label {
    font-weight: bold;
    margin-bottom: 5px;
}

.btn-login {
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    padding: 10px 18px; /* Adjusted padding */
    border: none;
    border-radius: 8px; /* Consistent border radius */
    font-weight: 600;
    width: 120px; /* Slightly wider button */
    text-align: center;
    transition: background 0.3s ease;
}

.btn-login:hover {
    background: var(--hover-blue);
}

.open-link-button {
    display: inline-flex; /* Use inline-flex for icon alignment */
    align-items: center;
    gap: 5px;
    padding: 6px 12px; /* Adjusted padding */
    background-color: var(--primary-blue);
    font-size: 12px;
    color: white;
    border: none;
    border-radius: 8px; /* Consistent border radius */
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.open-link-button:hover {
    background-color: var(--hover-blue);
    cursor: pointer;
}

.menu-pop-dot {
    position: absolute;
    right: 0px; /* Align to the right edge of its parent */
    bottom: 60px; /* Lift slightly above sticky profile */
    background-color: white;
    border-radius: 8px; /* Consistent border radius */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); /* Stronger shadow */
    z-index: 1000;
    display: none;
    min-width: 150px;
}

.menu-pop-dot ul {
    list-style-type: none;
    padding: 5px 0; /* Padding inside menu */
    margin: 0;
}

.menu-pop-dot li {
    padding: 10px 15px; /* Padding for list items */
    transition: background-color 0.2s ease;
}

.menu-pop-dot li a {
    text-decoration: none;
    color: var(--dark-text);
    display: flex; /* For icon alignment */
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
}

.menu-pop-dot li:hover {
    background-color: var(--medium-gray-bg);
}

.menu-pop-dot li a i {
    color: var(--light-text);
}

.btn-popup {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px; /* Larger icon */
    color: var(--light-text);
    text-align: right;
    padding: 0;
    margin-left: auto; /* Pushes button to the right */
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.btn-popup:hover {
    color: var(--dark-text);
}

.tag-link {
  display: inline-block;
  background-color: #e2e8f0; /* bg-gray-200 */
  color: #4a5568; /* text-gray-700 */
  border-radius: 9999px; /* rounded-full */
  padding: 4px 12px;
  font-size: 0.75rem; /* text-xs */
  font-weight: 600; /* font-semibold */
  margin-right: 0px;
  margin-bottom: 0px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.tag-link:hover {
  background-color: #cbd5e0; /* bg-gray-300 */
}


/* --- Post Meta (Likes, Comments) --- */
.post-meta {
    display: flex;
    align-items: center;
    gap: 15px; /* Increased gap */
    margin-top: 15px; /* Space above */
    font-size: 20px;
    color: var(--light-text);
    height: 30px;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Mengatur ikon hati ❤️ */
.post-meta .fa-heart {
  font-size: 20px; 
}

/* Mengatur ikon hati retak 💔 */
.post-meta .fa-heart-crack {
  font-size: 20px;
}

/* Mengatur ikon komentar 💬 */
.post-meta .fa-comment {
  font-size: 20px;
}

/* Mengatur ikon komentar 💬 */
.post-meta .fa-eye {
  font-size: 20px;
}


.inline-form {
    background: none;
    display: flex;
    align-items: center;
}

.like-btn, .dislike-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: var(--light-text);
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.like-btn:hover, .dislike-btn:hover {
    color: var(--primary-blue);
}

/* --- Comment Section --- */
.comment-section {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 12px; /* Consistent border radius */
    box-shadow: var(--soft-shadow);
}

.comment-section h3 {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.comment-section textarea {
    width: 100%;
    height: 90px; /* Slightly taller */
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Consistent border radius */
    resize: vertical; /* Allow vertical resize only */
    font-size: 14px;
    background: var(--light-gray-bg);
    transition: all 0.3s ease-in-out;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.comment-section textarea:focus {
    border-color: var(--primary-blue);
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.comment-section button {
    margin-top: 15px;
    padding: 10px 18px; /* Consistent button padding */
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px; /* Consistent border radius */
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.comment-section button:hover {
    background: var(--hover-blue);
}

.comments-list {
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 12px; /* Consistent border radius */
    box-shadow: var(--soft-shadow);
}

.comments-list h3 {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.comment {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray-bg); /* Lighter separator */
    position: relative;
}

.comment.reply {
    margin-left: 30px; /* Increased indent for replies */
}

.comment:last-child {
    border-bottom: none;
}

.comment-profile {
    width: 30px; /* Slightly larger */
    height: 30px;
    border-radius: 50%;
    margin-right: 12px; /* More space */
    object-fit: cover;
}

.comment-content {
    flex-grow: 1;
}

.comment-content strong {
    display: block;
    font-size: 15px;
    margin-bottom: 3px;
    font-weight: 600;
}

.comment-content p {
    font-size: 14px;
    color: var(--dark-text);
    margin: 0;
    line-height: 1.5;
}

.comment-date {
    font-size: 12px;
    color: var(--light-text);
    margin-top: 5px;
}

.delete-comment-form {
    display: block;
    width: 100%;
}


.delete-comment-btn {
    color: var(--red-alert);
    border: none;
}

.delete-comment-btn:hover {
    background-color: var(--red-alert-hover);
}

.delete-comment-btn, .reply-btn {
    display: inline-block;
    padding: 7px 14px;
    font-size: 11px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    font-weight: 600;
    margin-right: 5px;
}

.reply-btn {
    color: var(--light-text);
    border: none;
}

.reply-btn:hover {
    background-color: var(--hover-blue);
}

.reply-btn:active {
    transform: scale(0.98);
}

.delete-btn {
    background-color: var(--red-alert); /* Changed to red for consistency */
    color: var(--red-alert);
    border: none;
    padding: 7px 14px; /* Adjusted padding */
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 6px; /* Consistent border radius */
    transition: background-color 0.3s ease, transform 0.2s;
}

.delete-btn:hover {
    background-color: var(--red-alert-hover);
    transform: scale(1.05);
}

.delete-btn:active {
    background-color: #a30000;
    transform: scale(0.98);
}

.delete-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* --- Chat & Message Styles --- */
.chat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chat-list li {
    padding: 8px 0;
}

.chat-row {
    display: flex;
    align-items: center;
    gap: 8px; /* jarak antar elemen */
}

.chat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px; /* More padding */
    text-decoration: none;
    color: var(--dark-text);
    transition: background 0.3s ease-in-out;
    border-radius: 8px;
}

.chat-item:hover {
    background-color: var(--medium-gray-bg);
    color: var(--primary-blue);
}

.chat-info {
    display: flex;
    align-items: left;
    flex-grow: 1;
    justify-content: space-between;
    min-width: 0; /* Prevents overflow */
}

.profile-pic {
    width: 35px; /* Slightly larger */
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px; /* More space */
}

.chat-username {
    font-size: 16px;
    vertical-align: middle;
    font-weight: 600;
    color: var(--dark-text);
}

.message-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 5px; /* More padding */
    margin: 0;
    list-style: none;
    height: 50vh;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column-reverse;
}

.message-text strong { font-weight: bold; }
.message-text em { font-style: italic; }
.message-text a { color: var(--primary-blue); text-decoration: underline; }
.message-text a:hover { color: var(--hover-blue); }
.message-text ul, .message-text ol { padding-left: 1.5em; margin: 0.5em 0; }
.message-text ul { list-style-type: disc; }
.message-text ol { list-style-type: decimal; }
.message-text li { margin-bottom: 4px; line-height: 1.5; font-size: 0.95rem; }

.message-bubble ul, .message-bubble ol {
    background-color: transparent;
    border-left: 3px solid #ccc;
    padding-left: 12px;
}

.message-item {
    display: flex;
    align-items: flex-start; /* Align to top for multi-line messages */
    gap: 10px;
    margin-bottom: 10px;
    max-width: 75%; /* Allow bubbles to be wider */
    position: relative;
}

.message-item.sent {
    margin-left: auto;
    flex-direction: row-reverse;
}

.message-item.received {
    margin-right: auto;
    flex-direction: row;
}

.received .chat-profile-pic {
    width: 38px; /* Slightly larger */
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
}

.sent .chat-profile-pic {
    display: none;
}

.message-bubble {
    padding: 12px 15px; /* More padding */
    border-radius: 18px; /* More rounded bubble */
    font-size: 14.5px;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    position: relative;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08); /* Subtle shadow on bubbles */
}

.sent .message-bubble {
    background: #e0f2fe; /* Lighter blue for sent */
    text-align: right;
    border-top-right-radius: 6px; /* Sharper corner on one side */
}

.received .message-bubble {
    background: var(--light-gray-bg);
    text-align: left;
    border-top-left-radius: 6px; /* Sharper corner on one side */
}

.timestamp {
    position: absolute;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px; /* More padding */
    border-radius: 5px; /* Consistent border radius */
    font-size: 11px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    white-space: nowrap; /* Prevent breaking */
}

.sent .timestamp {
    right: 0; /* Align to right of bubble */
    bottom: -20px; /* Below the bubble */
    transform: none; /* Reset any previous transforms */
}

.received .timestamp {
    left: 0; /* Align to left of bubble */
    bottom: -20px; /* Below the bubble */
    transform: none; /* Reset any previous transforms */
}

.message-bubble:hover .timestamp {
    visibility: visible;
    opacity: 1;
}

.badge {
    background-color: var(--red-alert);
    color: white;
    font-size: 10px; /* Slightly larger */
    font-weight: 700;
    padding: 3px 8px; /* More padding */
    border-radius: 20px;
    min-width: 22px; /* Slightly wider */
    text-align: center;
    margin-left: 10px;
}

.message-popup-btn {
    position: sticky;
    bottom: 25px; /* Slightly higher */
    right: 25px; /* Slightly more inward */
    margin-left: auto;
    display: block;
    width: 55px; /* Larger icon */
    height: 55px;
    background-color: var(--primary-blue);
    color: white;
    font-size: 26px; /* Larger icon */
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Stronger shadow */
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 1000;
}

.message-popup-btn:hover {
    background-color: var(--hover-blue);
    transform: translateY(-2px);
}

.popup-overlay {
    /* IMPORTANT: Ensure this is 'none' by default for JS to control it */
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* --- Quill Editor Styles --- */
.ql-toolbar.ql-snow {
    background: var(--light-gray-bg);
    border-radius: 8px 8px 0 0; /* Rounded top only */
    border: 1px solid var(--border-color);
    border-bottom: none; /* Remove bottom border */
    padding: 8px; /* More padding */
    display: flex !important;
    align-items: center;
}


.ql-editor {
    max-height: 350px; /* Increased max height */
    overflow-y: auto;
    padding: 15px; /* More padding inside editor */
}

.ql-toolbar.ql.snow button {
    background: none !important;
    border: none;
    box-shadow: none;
    padding: 5px; /* Adjust padding for toolbar buttons */
    border-radius: 4px; /* Slight rounding for buttons */
}

.ql-toolbar.ql.snow button:hover {
    background: rgba(0, 0, 0, 0.08); /* Subtle hover background */
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: var(--dark-text);
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: var(--red-alert);
}

/* Kontainer utama untuk input dan daftar hasil */
        .search-container {
            position: relative; /* Ini kunci agar dropdown bisa diposisikan relatif terhadap kontainer ini */
            width: 100%;
        }

/* Wrapper untuk input dan tombol agar sejajar */
        .search-input-wrapper {
            display: flex;
            align-items: center;
            gap: 8px; /* Jarak antara input dan tombol */
        }

/* --- Chat Recipient Selection --- */
.search-input-chat-who {
    width: 100%;
    padding: 12px; /* Consistent padding */
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Consistent border radius */
    margin-bottom: 15px; /* More space */
    font-size: 15px;
}

.search-input-chat-who:focus {
            outline: none;
            border-color: #3b82f6; /* Warna biru saat aktif */
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
        }

/* Daftar hasil pencarian (dropdown) */
        .receiver-list {
            position: absolute; /* Kunci agar daftar mengambang */
            top: 100%; /* Posisi tepat di bawah input wrapper */
            left: 0;
            right: 0;
            z-index: 100; /* Pastikan tampil di atas elemen lain */
            background-color: #fff;
            border: 1px solid #d1d5db;
            border-radius: 8px;
            margin-top: 6px; /* Jarak kecil dari input */
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            max-height: 250px; /* Batas tinggi, akan scroll jika lebih */
            overflow-y: auto; /* Aktifkan scroll jika daftar panjang */
            list-style: none;
            padding: 0;
            margin-block: 0;
        }

/* Item dalam daftar hasil */
        .receiver-item {
            padding: 12px 15px;
            cursor: pointer;
            border-bottom: 1px solid #f3f4f6;
            transition: background-color 0.2s;
        }
        
        .receiver-item:last-child {
            border-bottom: none;
        }

        .receiver-item:hover {
            background-color: #f9fafb;
        }
        
        .receiver-item .receiver-details {
            display: flex;
            flex-direction: column;
        }
        
        .receiver-item .receiver-username {
            font-weight: 500;
            color: #1f2937;
        }

        .receiver-item .relationship-info {
            font-size: 0.8rem;
            color: #6b7280;
            margin-top: 2px;
        }
		
		
.chat-window {
    display: flex;
    flex-direction: column; /* Mengatur anak-elemen secara vertikal */
    height: 100%; /* Membuat container mengisi tinggi induknya */
}

/* Modifikasi aturan ini */
.isi-pesan {
	position: relative;
	flex-grow: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	padding: 10px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	margin-bottom: 15px;
	overflow-y: auto;
}



#chatForm {
    flex-shrink: 0; 
}

.recipient-info {
    display: flex;
    align-items: center;
    margin: 15px 20px; /* Increased margin */
    padding-bottom: 15px; /* Space below info */
    border-bottom: 1px solid var(--border-color); /* Separator */
    position: relative;
}

.hapus-pesan-popup, .tutup-pesan-popup {
    display: contents; /* Keep this as is if they are only toggles */
}

.recipient-profile-pic {
    width: 50px; /* Larger picture */
    height: 50px;
    border-radius: 50%;
    margin-right: 15px; /* More space */
    object-fit: cover;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

.recipient-details {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.recipient-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark-text);
    text-decoration: none;
}

.recipient-name:hover {
    color: var(--primary-blue);
}

.recipient-username {
    font-size: 15px;
    color: var(--light-text);
    text-decoration: none;
}

.recipient-username:hover {
    color: var(--primary-blue);
}

/* Tambahkan atau pastikan CSS ini ada di assets/css/style.css Anda */

/* Untuk textarea di pop-up "Kirim Pesan Baru" */
.popup-content textarea {
    font-size: 16px; /* Pastikan ukuran font minimal 16px */
    line-height: 1.5; /* Opsional: untuk keterbacaan yang lebih baik */
}

/* Untuk area editor Quill di chat utama */
.quill-editor .ql-editor {
    font-size: 16px; /* Pastikan ukuran font minimal 16px */
    line-height: 1.5; /* Opsional: untuk keterbacaan yang lebih baik */
}

/* Tombol Kirim Pesan Baru (Menggantikan btn-postnew khusus untuk pesan) */
.btn-newmes {
    width: 100%; /* Lebar penuh */
    padding: 5px 15px;
    background-color: #1890ff; /* Warna biru utama */
    color: white;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin: 0 0 20px 0; 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Jarak antara ikon dan teks */
    transition: background-color 0.2s ease; /* Transisi halus saat hover */
}

.btn-newmes:hover {
    background-color: #096dd9; /* Warna biru yang lebih gelap saat hover */
}

/* Penyesuaian untuk tampilan mobile jika teks disembunyikan */
@media (max-width: 768px) {
    .sidebar-left.collapsed .btn-newmes .menu-text-full {
        display: none; /* Sembunyikan teks saat sidebar menyusut di mobile */
    }
	.sidebar-leftpr {
    width: 100%;
    max-width: 100%;
  }
    .sidebar-left.collapsed .btn-newmes .ti {
        margin: 0; /* Hapus margin ikon jika teks tidak ada */
    }
	.comment-content {
    margin-left: 7px;
}
}

/* Jika Anda ingin tombol ini memiliki gaya yang sedikit berbeda dari btn-postnew lainnya,
   misalnya jika btn-postnew di halaman lain punya style khusus yang tidak Anda inginkan di sini,
   Anda bisa menambahkan properti unik di sini. */

.btn-message {
    display: inline-block;
    padding: 8px 16px;
    background-color: white;
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 8px; /* Consistent border radius */
    border: 1px solid var(--primary-blue);
    cursor: pointer;
    margin-left: 10px;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

.btn-message:hover {
    background-color: var(--primary-blue);
    color: #fff;
}

.message-content {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.chat-profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* --- Quill Editor Styles --- */
/* ... */
.ql-snow .ql-toolbar button, 
        .ql-snow .ql-toolbar button:hover, 
        .ql-snow .ql-toolbar button.ql-active, 
        .ql-snow .ql-toolbar button.ql-active:hover {
            font-family: 'Quill Icons' !important; /* Penting: pastikan font ini yang digunakan */
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            display: inline-block;
            vertical-align: middle;
            line-height: 1;
            box-sizing: border-box;
            width: 28px; /* Atur ukuran jika perlu */
            height: 24px; /* Atur ukuran jika perlu */
        }
        
        /* Tambahan untuk memastikan ikon muncul di pseudo-elemen jika digunakan */
        .ql-snow .ql-toolbar button::before,
        .ql-snow .ql-toolbar .ql-picker-label::before {
            font-family: 'Quill Icons' !important;
        }



.ql-container.ql-snow {
    border-radius: 0 0 8px 8px;
    border: 1px solid var(--border-color);
    border-top: none;
    background-color: #fff; /* Tambahkan atau pastikan baris ini ada */
}

.sent-message {
    justify-content: flex-end;
}

.received-message {
    justify-content: flex-start;
}

.message-divider {
    text-align: center;
    color: var(--light-text);
    font-size: 14px;
    margin: 15px 0; /* More margin */
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    padding: 5px 0;
}

.social-media a {
    display: inline-block;
    padding: 8px 16px;
    background-color: white;
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 8px; /* Consistent border radius */
    border: 1px solid var(--primary-blue);
    cursor: pointer;
    margin-left: 10px;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

.social-media a:hover {
    background-color: var(--primary-blue);
    color: #fff;
}

.btn-popup-hapus-pesan {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    color: var(--light-text);
    text-align: left;
    padding: 0;
    margin: 0;
    display: inline;
    transition: color 0.2s ease;
}

.btn-popup-hapus-pesan:hover {
    color: var(--dark-text);
}

.menu-pop-dot-hapus {
    position: absolute;
    right: 0px;
    top: 45px; /* Adjusted position */
    background-color: white;
    border-radius: 8px; /* Consistent border radius */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    min-width: 120px; /* Minimum width */
}

.menu-pop-dot-hapus ul {
    list-style-type: none;
    padding: 5px 0;
    margin: 0;
}

.menu-pop-dot-hapus li {
    padding: 10px 15px;
    transition: background-color 0.2s ease;
}

.menu-pop-dot-hapus li a {
    text-decoration: none;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.menu-pop-dot-hapus li:hover {
    background-color: var(--medium-gray-bg);
}

.popup-overlay {
    display: none; /* Pastikan ini tetap 'none' secara default */
    position: fixed; /* KUNCI: Harus fixed agar menempel pada viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 10000; /* KUNCI: Tingkatkan z-index ini lebih tinggi dari elemen lain */
}

.popup-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    max-width: 500px;
    width: 90%;
    position: relative; 
    z-index: 10001;
    /* 'margin: auto' tidak lagi diperlukan karena penengah diatur oleh flexbox di .popup */
    max-height: 90vh; /* Agar bisa di-scroll jika kontennya panjang */
    overflow-y: auto;
}

.popup-content-hapus {
    /* IMPORTANT: Ensure this is 'none' by default for JS to control it */
    display: none;
    position: fixed; /* Keep fixed for overlay */
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Precise centering */
    background: #fff;
    padding: 30px; /* More padding */
    border-radius: 12px; /* Consistent border radius */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    width: 320px; /* Adjusted width */
    max-width: 90%;
    z-index: 10000;
}

.popup-content-hapus h3 {
    margin-top: 0;
    font-size: 18px; /* Larger font */
    text-align: center;
    margin-bottom: 20px;
}

.popup-content-hapus label {
    display: block;
    margin: 10px 0 5px;
}

.popup-content-hapus button {
    padding: 12px 20px; /* Consistent button padding */
    background-color: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 8px; /* Consistent border radius */
    cursor: pointer;
    font-weight: 600;
}

.popup-content-hapus button:hover {
    background-color: var(--hover-blue);
}

.popup-content-hapus .close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: var(--light-text);
    transition: color 0.2s ease;
}

.popup-content-hapus .close:hover {
    color: var(--dark-text);
}



/* --- Scroll To Top Button --- */
#scrollToTopBtn {
    position: fixed;
    bottom: 30px; /* Distance from bottom */
    right: 30px; /* Distance from right */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent */
    color: white;
    border: none;
    border-radius: 50%;
    padding: 12px 17px 12px 17px; /* Larger padding for a larger button */
    font-size: 22px; /* Larger icon */
    cursor: pointer;
    display: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 10000;
}

#scrollToTopBtn:hover {
    background-color: var(--primary-blue);
}

/* --- Comment Options Menu --- */
.comment-options {
    position: relative;
    display: inline-block;
    margin-left: auto; /* Push to the right */
}

.options-btn {
    background: none;
    color: var(--light-text);
    border: none;
    font-size: 16px; /* Larger icon */
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s ease;
}

.options-btn:hover {
    color: var(--dark-text);
}

.options-menu {
    display: none;
    position: absolute;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Consistent border radius */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    padding: 5px;
    z-index: 10;
    min-width: 100px; /* Minimum width */
}

.options-menu button { /* Selektor ini bisa menimpa */
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px;
    text-align: left;
    background: none; /* <--- Ini bisa jadi masalah! */
    border: none;
    width: 100%;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.options-menu button:hover {
    background-color: var(--medium-gray-bg);
}

/* --- Back Home Button (General) --- */
.back-home-btn {
    display: block;
    text-align: center;
    background: var(--success-green);
    color: white;
    padding: 12px; /* Consistent button padding */
    border-radius: 8px; /* Consistent border radius */
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 8px;
    transition: background 0.3s ease-in-out;
}

.back-home-btn:hover {
    background: var(--success-green-hover);
}

/* --- Recent Searches Section --- */
#recent-searches {
    margin-top: 20px; /* More margin */
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--soft-shadow);
}

#recent-searches h4 {
    font-size: 16px;
    margin-bottom: 10px; /* More margin */
    color: var(--primary-blue);
    font-weight: 600;
}

#recent-search-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 10px 12px; /* More padding */
    margin-bottom: 8px;
    border-radius: 8px; /* Consistent border radius */
    box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.05); /* Lighter shadow */
    transition: background 0.3s ease-in-out;
}

.recent-item a {
    text-decoration: none;
    flex-grow: 1;
    color: var(--dark-text);
    font-size: 14px;
}

.recent-item:hover {
    background: var(--medium-gray-bg);
}

.button-delete-r {
    color: var(--red-alert);
    font-size: 18px; /* Larger icon */
    cursor: pointer;
    padding: 0px 5px;
    display: inline-block;
    transition: color 0.3s;
}

.button-delete-r:hover {
    color: var(--red-alert-hover);
}

/* --- Load More Button (General) --- */
#load-more {
    display: block;
    width: 100%;
    max-width: 250px; /* Wider button */
    padding: 12px 20px; /* More padding */
    margin: 20px auto; /* More margin */
    background-color: var(--primary-blue);
    color: white;
    font-size: 15px;
    text-align: center;
    border: none;
    border-radius: 8px; /* Consistent border radius */
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-weight: 600;
}

#load-more:hover {
    background-color: var(--hover-blue);
    transform: translateY(-2px);
}

#load-more:active {
    transform: scale(0.98);
}

#load-more.hidden {
    display: none;
}

/* --- Relationship Info --- */
.relationship-info {
    margin-left: 10px; /* Slightly more space */
    font-style: italic;
    color: var(--light-text);
    font-size: 0.9em;
}

/* --- Buttons for Receiver List --- */
.btn-receiver-list {
    display: flex;
    align-items: center;
    gap: 10px; /* More space */
    padding: 12px 18px; /* More padding */
    margin-bottom: 15px; /* More space below */
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background-color: var(--primary-blue);
    border: none;
    border-radius: 8px; /* Consistent border radius */
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    outline: none;
}

.btn-receiver-list:hover {
    background-color: var(--hover-blue);
}

.btn-receiver-list:active {
    background-color: #004099;
    transform: scale(0.98);
}

/* --- Hidden Elements (Utility) --- */
.hidden {
    display: none;
}

/* --- Form Labels & Inputs (General) --- */
label {
    display: block;
    font-weight: 600;
    margin-top: 15px; /* More margin */
    color: var(--dark-text);
    font-size: 15px;
}

select {
    width: 100%;
    padding: 12px; /* Consistent padding */
    font-size: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Consistent border radius */
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.2s ease;
}

select:hover, select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
    outline: none;
}

input[type="text"], input[type="url"] {
    width: 100%;
    padding: 12px; /* Consistent padding */
    font-size: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px; /* Consistent border radius */
    margin-top: 8px; /* More margin */
    transition: border-color 0.3s ease, box-shadow 0.2s ease;
}

input[type="text"]:hover, input[type="url"]:hover,
input[type="text"]:focus, input[type="url"]:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
    outline: none;
}

/* Gaya highlight untuk hasil pencarian */
        .highlight { background-color: yellow; font-weight: bold; }

/* Gaya untuk tampilan 2 kolom jika diperlukan (seperti ddc-content-wrapper) */
		.ddc-display-content h2 {
            padding-bottom : 20px;
        }
        .ddc-content-wrapper {
            display: flex;
            gap: 20px;
        }
        /* Sidebar pencarian DDC */
        .ddc-search-sidebar {
            flex: 1; /* Mengambil porsi sama dengan konten */
            background-color: #fff; /* Latar putih untuk sidebar */
            padding: 15px;
            border-radius: 8px;
            box-shadow: var(--soft-shadow); /* Gunakan shadow yang konsisten */
            min-height: 200px;
            overflow-y: auto; /* Memungkinkan scroll jika konten banyak */
            max-height: calc(100vh - 150px);
        }
        /* Kontainer tampilan konten DDC */
        .ddc-display-content {
            flex: 2; /* Konten ambil lebih banyak ruang (misal 2/3) */
            background-color: #fff;
            padding: 15px;
            border-radius: 8px;
            box-shadow: var(--soft-shadow);
            min-height: 200px;
            overflow-y: auto;
            max-height: calc(100vh - 150px);
        }
        .ddc-search-sidebar h3, .ddc-display-content h2 {
            margin-top: 0;
            color: var(--dark-text); /* Warna teks header umum */
        }
        .ddc-search-sidebar ul, .ddc-display-content p, .ddc-display-content div {
            padding-left: 0;
            list-style: none;
        }
        .ddc-search-sidebar li a {
            display: block;
            padding: 8px 0;
            color: var(--dark-text);
            text-decoration: none;
            transition: color 0.2s ease;
        }
        .ddc-search-sidebar li a:hover {
            color: var(--primary-blue);
            text-decoration: underline;
        }
        /* Gaya untuk tautan "Kembali" */
        .back-link-ddc {
            display: inline-flex; align-items: center; gap: 5px; margin-bottom: 15px;
            text-decoration: none; color: var(--primary-blue); font-weight: 600;
            transition: color 0.2s ease, text-decoration 0.2s ease;
        }
        .back-link-ddc:hover { color: var(--hover-blue); text-decoration: underline; }

/* === PERUBAHAN CSS UNTUK HASIL PENCARIAN === */
        .search-results ul {
            display: flex; /* Menggunakan flexbox untuk tata letak horizontal */
            flex-wrap: wrap; /* Memungkinkan item untuk wrapping ke baris berikutnya */
            padding: 0;
            list-style: none;
        }

        .search-results li {
            margin: 0; /* Hapus margin default li */
        }

        .search-results li a.search-link {
            display: flex; /* Menggunakan flexbox untuk memusatkan teks */
            align-items: center; /* Pusatkan secara vertikal */
            justify-content: left; /* Pusatkan secara horizontal */
            width: 305px; /* Lebar tetap untuk 3 karakter + padding */
            height: auto; 
            padding: 5px 5px; /* Padding kecil */
            background-color: #e9ecef; /* Warna latar belakang default */
            color: #34495e;
            text-decoration: none;
            border-radius: 5px; /* Sudut membulat */
            font-size: 12px; /* Ukuran font lebih kecil */
            text-align: left;
            transition: background-color 0.2s ease, transform 0.2s ease;
            box-sizing: border-box; /* Pastikan padding termasuk dalam lebar/tinggi */
        }

        .search-results li a.search-link:hover {
            background-color: #d8e0e7;
        }

        /* Gaya untuk tombol pencarian yang dipilih */
        .search-results li a.search-link.active {
            background-color: #007bff; /* Warna biru untuk tombol aktif */
            color: white;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }
		
		
		.search-link.selected {
            background-color: #2563eb; /* Setara dengan 'bg-blue-600' di Tailwind */
            color: #ffffff;             /* Teks menjadi putih */
            font-weight: 700;            /* Membuat teks lebih tebal */
            box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); /* Efek bayangan */
        }

        /* * Opsional: Mencegah perubahan warna saat hover pada item yang sudah selected.
         */
        .search-link.selected:hover {
            background-color: #2563eb; /* Tetap biru saat di-hover */
        }

/* --- Responsive Adjustments --- */
@media (max-width: 1200px) { /* Sesuaikan breakpoint jika perlu */
    .sidebar-left {
        flex: 0 0 80px; /* Lebar sidebar menyusut */
        padding: 15px 5px; /* Kurangi padding horizontal */
        align-items: center; /* Pusatkan item secara horizontal */
    }
	
	/* Profil sticky menjadi hanya gambar (pastikan ini di dalam .collapsed) */
    .sidebar-left.collapsed .sticky-profil { /* <-- PERBAIKAN SELEKTOR DI SINI! */
        width: 60px;
        height: 60px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
        margin-left: auto; /* Kembalikan auto margin untuk pemusatan */
        margin-right: auto;
        margin-top: 0; /* Pastikan tidak ada margin-top auto */
        flex-shrink: 0;
    }

    .sidebar-left .menu-side li a .menu-text-full, /* Teks di dalam link menu */
    .btn-postnew .menu-text-full, /* Teks di tombol Buat Postingan */
    .sticky-profil .profil-info, /* Info profil (nama & username) */
    .sticky-profil .btn-popup, /* Tombol elipsis di profil */
    .login-btn-compact .menu-text-full /* Teks di tombol Login */
    {
        display: none; /* Sembunyikan semua teks ini */
    }

    /* Untuk logo: sembunyikan teks penuh, tampilkan ikon */
    .logo-text .menu-text-full {
        display: none;
    }
    .logo-text .menu-icon-only {
        display: block; /* Tampilkan ikon 'P' */
        font-size: 28px; /* Sesuaikan ukuran ikon */
        text-align: center;
        color: var(--primary-blue); /* Contoh warna */
    }

    /* Pastikan ikon tetap terlihat dan terpusat */
    .sidebar-left .menu-side li a {
        justify-content: center; /* Pusatkan ikon di dalam link */
        gap: 0; /* Hapus gap */
    }
    .sidebar-left .menu-side li a i {
        margin-right: 0; /* Hapus margin kanan dari ikon */
    }

    /* Tombol Buat Postingan dan Login menjadi bulat */
    .btn-postnew, .login-btn-compact {
        width: 60px; /* Contoh ukuran bulat */
        height: 60px;
        border-radius: 50%;
        padding: 0; /* Hapus padding agar pas bulat */
        justify-content: center;
        margin-bottom: 15px; /* Beri jarak yang cukup */
    }
    .btn-postnew .fa-solid, .login-btn-compact .fa-solid {
        font-size: 24px; /* Perbesar ikon */
        margin-right: 0;
    }

    /* Profil sticky menjadi hanya gambar */
    .sticky-profil {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
        margin-left: 0;
    }
    .sidebar-left.collapsed .sticky-profil .profile-picture-sticky {
        width: 100%; /* KUNCI: Isi 100% lebar induk (60px) */
        height: 100%; /* KUNCI: Isi 100% tinggi induk (60px) */
        object-fit: cover; /* KUNCI: Pastikan gambar mengisi tanpa terdistorsi, potong jika perlu */
        border-radius: 50%; /* Pertahankan bentuk bulat */
        margin-right: 0; /* Pastikan tidak ada margin yang menggeser */
        /* Anda bisa menghapus box-shadow di sini jika sticky-profil sudah punya shadow */
        box-shadow: none; /* Hapus shadow jika sticky-profil sudah punya */
    }
	.profile-picture-sticky {
        width: 60px;
        height: 60px;
	}
}

@media (max-width: 768px) {
	
	.sidebar-left .menu-side li a .menu-text-full, .btn-postnew .menu-text-full, .sticky-profil .profil-info, .sticky-profil .btn-popup, .login-btn-compact .menu-text-full {
		display: block;
	}
	
	
    .sidebar-left .btn-postnew .menu-text-full, /* Teks di tombol "Buat Postingan" */
    .sidebar-left .login-btn-compact .menu-text-full { /* Teks di tombol "Login" */
        color: white; /* Atur warna teks menjadi putih */
        display: block; /* Pastikan display-nya tetap block agar rapi */
    }
	
    /* === MOBILE HEADER (NAVBAR ATAS) === */
    .mobile-header {
        display: flex; /* KUNCI: Tampilkan mobile header di mobile */
        /* Properti lain (background, padding, fixed position, z-index) sudah diatur di luar media query */
    }

    /* === LAYOUT UTAMA === */
    .layout {
        /* Tambahkan padding-top agar konten tidak tertutup mobile-header */
        padding-left: 0; /* Hapus padding kiri layout agar konten bisa full width */
        padding-right: 0; /* Hapus padding kanan layout */
        gap: 0; /* Hapus gap antar kolom */
        flex-direction: column; /* Tata letak kolom di mobile */
    }
	
body.page-with-extra-mobile-padding .layout {
        padding-top: 70px; /* Padding-top tambahan untuk halaman yang ditargetkan di mobile */
    }

    /* === SIDEBAR KIRI (MENU DROPDOWN) === */
    .sidebar-left {
        position: fixed; /* KUNCI: Fixed untuk overlay */
        top: 0; /* Mulai dari paling atas layar (bisa disesuaikan jika ingin di bawah navbar) */
        left: -100%; /* KUNCI: Sembunyikan sepenuhnya di luar layar */
        width: 100%; /* KUNCI: Buat sidebar mengisi penuh lebar layar */
        height: 100vh; /* Tinggi penuh viewport */
        overflow-y: auto; /* Izinkan scroll jika konten menu melebihi tinggi layar */
        padding: 20px; /* Padding standar untuk konten di dalamnya */
        display: flex;
        flex-direction: column;
        align-items: stretch; /* Regangkan item horizontal agar mengisi lebar */
        z-index: 10000; /* Z-index sangat tinggi agar di atas semua */
        background-color: #fff; /* Pastikan ada background agar tidak transparan */
        box-shadow: 2px 0 10px rgba(0,0,0,0.2); /* Tambahkan bayangan untuk efek slide */
        transition: left 0.3s ease; /* Transisi untuk animasi slide */
        border-radius: 0; /* Pastikan tidak ada border-radius yang tidak diinginkan */
    }

    .sidebar-left.active {
        left: 0; /* KUNCI: Tampilkan sidebar saat aktif */
    }

    /* === TOMBOL CLOSE SIDEBAR MOBILE === */
    .close-sidebar-btn {
        display: block; /* KUNCI: Tampilkan tombol close di mobile */
        position: absolute; /* Posisikan absolut di dalam sidebar */
        top: 15px; /* Jarak dari atas sidebar */
        right: 15px; /* Jarak dari kanan sidebar */
        z-index: 10001; /* Pastikan lebih tinggi dari z-index sidebar itu sendiri */
        /* Properti lain seperti ukuran, warna, dll. sudah diatur secara umum */
    }



    /* === TOMBOL TOGGLE SIDEBAR DESKTOP/TABLET (SEMBUNYIKAN DI MOBILE) === */
    .sidebar-toggle-btn {
        display: none; /* KUNCI: Sembunyikan tombol toggle sidebar di mobile */
    }

    /* === PENYESUAIAN KONTEN DI DALAM SIDEBAR MOBILE === */

    /* Logo di dalam sidebar (sembunyikan ikon "P", tampilkan teks penuh) */
    .sidebar-left .logo-text {
        font-size: 28px; /* Kembalikan ukuran font asli */
        text-align: left; /* Rata kiri */
        padding-left: 0; /* Hapus padding tambahan jika ada dari mode ciut */
        padding-right: 0;
        margin-bottom: 10px; /* Beri jarak di bawah logo */
    }
    .sidebar-left .logo-text .menu-text-full {
        display: block; /* KUNCI: Tampilkan teks penuh logo */
		font-size: 1.5rem;
    }
    .sidebar-left .logo-text .menu-icon-only {
        display: none; /* Sembunyikan ikon "P" yang hanya untuk mode ciut */
    }

    /* Tampilkan kembali semua teks menu dan info profil dengan display: block */
    .sidebar-left .menu-text-full,
    .sidebar-left .profil-info,
    .sidebar-left .btn-popup,
    .sidebar-left .menu-text-full {
        display: block; /* KUNCI: Gunakan display: block untuk teks */
        font-size: 14px; /* Pastikan ukuran font standar */
        color: var(--dark-text); /* Pastikan warnanya kontras */
        text-align: left; /* Rata kiri teks */
    }

    /* Atur ulang item menu agar teks sejajar kiri dan rapi */
    .sidebar-left .menu-side li {
        justify-content: flex-start; /* KUNCI: Sejajarkan item ke kiri */
        padding-left: 2px; /* Pastikan padding kiri untuk teks */
        padding-right: 2px; /* Pastikan padding kanan */
        margin-bottom: 2px; /* Jarak antar item menu */
    }
    .sidebar-left .menu-side li a {
        justify-content: flex-start; /* KUNCI: Sejajarkan ikon dan teks di dalam link */
        gap: 15px; /* Kembali ke jarak standar antara ikon dan teks */
    }
    .sidebar-left .menu-side li a i {
        margin-right: 5px; /* Kembali ke margin standar untuk ikon */
    }

    /* Reset tampilan tombol posting/login ke normal (tidak bulat, penuh lebar) */
    .sidebar-left .btn-postnew,
    .sidebar-left .login-btn-compact {
        width: 100%; /* KUNCI: Lebar penuh */
        height: auto;
        border-radius: 8px; /* Kembali ke border-radius standar */
        padding: 15px 20px; /* Padding standar */
        justify-content: flex-start; /* KUNCI: Sejajarkan konten tombol ke kiri */
        margin-left: 0; /* Hapus auto margin dari mode ciut */
        margin-right: 0;
        margin-top: 20px; /* Jarak dari elemen di atasnya */
        margin-bottom: 20px; /* Jarak dari profil/bawah */
    }
    .sidebar-left .btn-postnew .fa-solid,
    .sidebar-left .login-btn-compact .fa-solid {
        font-size: 18px; /* Kembali ke ukuran standar ikon */
        margin-right: 8px; /* Kembali ke margin standar ikon */
    }

    /* Reset tampilan profil sticky ke normal (tidak bulat, penuh lebar) */
    .sidebar-left .sticky-profil {
        position: relative; /* Kunci: Agar ikut scroll dengan sidebar */
        width: 100%; /* Kunci: Lebar penuh */
        height: auto;
        border-radius: 8px; /* Kembali ke border-radius standar */
        padding: 12px;
        margin-left: 0;
        margin-right: 0;
        margin-top: 0; /* Tidak ada margin-top auto di sini */
        margin-bottom: 20px; /* Jarak dari bawah sidebar */
        justify-content: flex-start; /* Sejajarkan ke kiri */
    }
    .sidebar-left .profile-picture-sticky {
        margin-right: 5px; /* Kembalikan margin */
    }

    /* === SIDEBAR KANAN (SEMBUNYIKAN SEPENUHNYA DI MOBILE JIKA TIDAK DIGUNAKAN) === */
    .sidebar-right {
        display: none; /* KUNCI: Sembunyikan sidebar kanan di mobile */
    }

    /* === MAIN CONTENT === */
    .main-content {
        padding: 15px; /* Beri padding ke konten utama di mobile */
        border-radius: 0; /* Hapus border radius jika ingin full width */
        box-shadow: none; /* Hapus shadow jika tidak diperlukan */
        flex: unset; /* Hapus flex-basis dari desktop */
    }
    .section-wrapper {
        box-shadow: none; /* Hapus shadow jika tidak diperlukan */
        border-radius: 0; /* Hapus border radius jika ingin full width */
    }
}