:root {
    --bg-cream: #FAF3E1;
    --teal: #006F7A;
    --teal-dark: #004d55;
    --white: #ffffff;
    --accent-yellow: #FFC107;
    --text-dark: #333;
}

body {
    background-color: var(--bg-cream);
    font-family: "Segoe UI", sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Filter Kategori Pill --- */
.category-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    background: #fff;
    color: #111;
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid #111;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.2s;
    box-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}
.category-pill:hover {
    transform: translateY(-2px);
    box-shadow: 3px 3px 0px var(--teal);
}
.category-pill.active {
    background-color: var(--teal);
    color: white;
    border-color: #111;
    box-shadow: 3px 3px 0px #111;
}

/* --- Item Metadata Topik --- */
.stat-item {
    font-size: 0.8rem;
    font-weight: 700;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f8f9fa;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* --- Sidebar Trending --- */
.trending-item {
    display: block;
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 2px dashed #ccc;
    transition: all 0.2s;
}
.trending-item:last-child {
    border-bottom: none;
}
.trending-item:hover {
    padding-left: 8px;
    background-color: rgba(0, 111, 122, 0.05);
    border-radius: 8px;
}
.trending-title {
    font-size: 0.95rem;
    font-weight: 900;
    color: #111;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}
.trending-meta {
    font-size: 0.75rem;
    font-weight: 700;
    color: #777;
    text-transform: uppercase;
}

/* tombol */
.btn-pamaweko-primary {
    background-color: var(--teal) !important;
    color: #ffffff !important;
    border: 3px solid #111 !important;
    border-radius: 50px !important;
    font-weight: 900 !important;
    padding: 8px 24px !important;
    box-shadow: 3px 3px 0px #111 !important;
    display: inline-flex !important;
    align-items: center;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.btn-pamaweko-primary:hover {
    transform: translateY(-2px);
    box-shadow: 5px 5px 0px #111 !important;
    color: #ffffff !important;
}

.btn-pamaweko-primary i {
    color: #ffffff !important;
    font-weight: 900 !important;
}

/* mobile */
@media (max-width: 991px) {
    /* Header Ruang Diskusi */
    .comic-panel.py-3.px-4.mb-4 {
        align-items: flex-start !important;
        padding: 15px !important;
    }
    .comic-panel.py-3.px-4.mb-4 .d-flex {
        align-items: flex-start !important;
    }
    
    .btn-create-topic {
        width: 100%;
        margin-top: 15px;
        text-align: center;
        justify-content: center;
    }

    /* Filter Kategori */
    .category-pill {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    /* Thread Item */
    .thread-avatar {
        width: 35px !important;
        height: 35px !important;
    }
    
    .stat-item {
        font-size: 0.7rem;
        padding: 2px 6px;
    }

    .btn-pamaweko-primary {
        width: 100% !important;
        justify-content: center !important;
        margin-top: 15px;
    }

    /* Tombol Hapus Admin */
    .btn-delete-thread {
        position: relative !important;
        top: 0 !important;
        end: 0 !important;
        margin-top: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 10px;
        align-self: flex-end;
    }

    /* Merubah posisi header card di HP agar tombol delete admin terlihat */
    .thread-card-wrapper {
        display: flex;
        flex-direction: column-reverse; 
    }
}