/* =========================
   ADMIN WRAPPER
========================= */
.admin-wrapper {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 14px;
}

/* =========================
   HEADER
========================= */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.admin-title {
    font-size: 20px;
    font-weight: 600;
}

/* =========================
   BUTTON ADD
========================= */
.btn-add {
    background: #111;
    color: #fff;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    text-decoration: none;
    transition: 0.2s;
}

.btn-add:hover {
    opacity: 0.85;
}

/* =========================
   FILTER
========================= */
.admin-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.admin-filter input,
.admin-filter select {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

/* =========================
   LIST
========================= */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* =========================
   ITEM
========================= */
.post-item {
    background: #fff;
    border-radius: 14px;
    padding: 14px;

    border: 1px solid #eee;
    transition: 0.2s;
}

.post-item:hover {
    background: #fafafa;
}

/* =========================
   TOP
========================= */
.post-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

/* =========================
   TITLE
========================= */
.post-title-admin {
    font-size: 15px;
    font-weight: 500;
    color: #111;
    line-height: 1.4;
}

/* =========================
   META
========================= */
.post-meta-admin {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* =========================
   ACTIONS
========================= */
.post-actions {
    text-align: right;
    white-space: nowrap;
}

/* STATUS */
.status {
    display: inline-block;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    margin-bottom: 6px;
}

.status.public {
    background: #ecfdf5;
    color: #059669;
}

.status.draft {
    background: #fef3c7;
    color: #b45309;
}

/* LINKS */
.post-actions a {
    display: inline-block;
    font-size: 12px;
    margin-left: 6px;
    text-decoration: none;
}

.post-actions .edit {
    color: #2563eb;
}

.post-actions .delete {
    color: #dc2626;
}

/* =========================
   EMPTY
========================= */
.empty {
    text-align: center;
    color: #888;
    padding: 30px 0;
}

/* =========================
   PAGINATION
========================= */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 18px;
    gap: 6px;
}

.pagination a {
    padding: 6px 10px;
    border-radius: 6px;
    background: #f3f4f6;
    cursor: pointer;
    font-size: 13px;
}

.pagination a.active {
    background: #2563eb;
    color: #fff;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
    .post-top {
        flex-direction: column;
    }

    .post-actions {
        text-align: left;
        margin-top: 8px;
    }
}