/* =========================
   ADMIN WRAPPER
========================= */
.admin-wrapper {
    max-width: 720px;
    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: 18px;
    font-weight: 600;
}

/* =========================
   CREATE BOX (FACEBOOK STYLE)
========================= */
.story-box {
    background: #fff;
    border-radius: 14px;
    padding: 14px;

    border: 1px solid #eee;
    margin-bottom: 16px;

    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.story-box textarea {
    width: 100%;
    border: none;
    resize: none;
    font-size: 15px;
    outline: none;
    min-height: 80px;
    font-family: inherit;
}

.story-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.story-actions-bar select {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.story-actions-bar button {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
}

.story-actions-bar button:hover {
    background: #1d4ed8;
}

/* =========================
   STORY LIST
========================= */
.story-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

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

    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

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

/* =========================
   HEADER (TIME + MENU)
========================= */
.story-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.story-time {
    font-size: 12px;
    color: #888;
}

/* =========================
   CONTENT (FULL HIỂN THỊ)
========================= */
.story-content {
    margin-top: 8px;
    line-height: 1.7;
    font-size: 15px;
    color: #222;

    white-space: pre-line;
    word-break: break-word;
}

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

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

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

/* =========================
   3 DOT MENU
========================= */
.story-menu {
    position: relative;
    cursor: pointer;
    font-size: 18px;
    padding: 4px 6px;
}

.story-menu:hover {
    background: #f3f4f6;
    border-radius: 6px;
}

.dropdown {
    position: absolute;
    right: 0;
    top: 28px;

    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;

    display: none;
    min-width: 130px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.story-menu:hover .dropdown {
    display: block;
}

.dropdown a {
    display: block;
    padding: 10px 12px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
}

.dropdown a:hover {
    background: #f3f4f6;
}

.dropdown .delete {
    color: #dc2626;
}

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

/* =========================
   PAGINATION
========================= */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    margin: 4px;
    padding: 6px 12px;

    border-radius: 8px;
    border: 1px solid #ddd;

    font-size: 13px;
    color: #333;

    transition: 0.2s;
}

.pagination a:hover {
    background: #111;
    color: #fff;
}

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

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {

    .admin-wrapper {
        padding: 0 10px;
    }

    .story-box {
        border-radius: 10px;
    }

    .story-item {
        border-radius: 10px;
    }
}

/* =========================
   FOOTER (TIME RIGHT)
========================= */
.story-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}

.story-time {
    font-size: 12px;
    color: #9ca3af;
}