.editor-form-container {
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.08);
    font-family: 'Segoe UI', sans-serif;
}
.editor-form-container h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}
.editor-form-container label {
    font-weight: bold;
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    color: #444;
}
.editor-form-container input[type="text"],
.editor-form-container textarea,
.editor-form-container select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    background: #f9f9f9;
    height: 50px;
}
.editor-form-container input[type="file"] {
    padding: 8px 0;
}
.poster-settings input.editor-btn.primary, .editor-profile p input[type="submit"]{
    background: #0073aa;
    color: #fff;
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}
.editor-form-container input[type="submit"]:hover {
    background: #005b8d;
}
/* ==============================
   CSS: Hồ sơ Biên tập viên + Form đăng nhập (Responsive)
   File: editor-profile.css
   ============================== */

/* --- Giao diện trang hồ sơ --- */
.editor-profile {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    font-family: 'Segoe UI', sans-serif;
    color: #333;
    line-height: 1.6;
}

.editor-card {
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.editor-avatar-box {
    flex-shrink: 0;
}

.editor-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 4px #e0e0e0;
}

.editor-info h2 {
    font-size: 26px;
    margin: 0 0 8px 0;
    color: #222;
}

.editor-actions a.editor-btn {
    display: inline-block;
    padding: 8px 16px;
    margin-right: 10px;
    font-size: 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.editor-btn.primary {
    background-color: #0073aa !important;
    color: #fff;
}

.editor-btn.primary:hover {
    background-color: #005177;
}

.editor-btn.danger {
    background-color: #e74c3c;
    color: #fff;
}

.editor-btn.danger:hover {
    background-color: #c0392b;
}

.post-title {
    width: 70%;
}

.post-list-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #444;
}

.post-list {
    list-style: none;
    padding: 0;
}

.post-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    transition: background 0.3s;
}

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

.post-title strong {
    font-weight: 600;
    color: #222;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.status {
    font-size: 13px;
    color: #888;
}

.status-publish { color: green; }
.status-pending { color: orange; }
.status-draft   { color: gray; }

.edit-link {
    font-size: 14px;
    color: #0073aa;
    text-decoration: none;
    margin-top: 10px;
}

.edit-link:hover {
    text-decoration: underline;
}

/* --- Giao diện form đăng nhập --- */
.editor-login-form {
    max-width: 450px;
    margin: 60px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', sans-serif;
    text-align: center;
}

.editor-login-form h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 25px;
}

.editor-login-form form {
    text-align: left;
}

.editor-login-form label {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
    color: #444;
}

.editor-login-form input[type="text"],
.editor-login-form input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #f9f9f9;
    font-size: 15px;
}

.editor-login-form input[type="submit"] {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 16px;
}

.editor-login-form input[type="submit"]:hover {
    background: #005177;
}

.login-error {
    background: #ffe6e6;
    color: #d8000c;
    padding: 10px 15px;
    border: 1px solid #d8000c;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* --- Responsive --- */
@media screen and (max-width: 600px) {
    .editor-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .editor-avatar {
        width: 80px;
        height: 80px;
    }

    .editor-info h2 {
        font-size: 22px;
    }

    .editor-actions a.editor-btn {
        display: block;
        margin-bottom: 10px;
    }

    .post-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .edit-link {
        margin-left: 0;
    }

    .editor-login-form {
        padding: 20px;
        margin: 40px 20px;
    }

    .editor-login-form h2 {
        font-size: 20px;
    }
}
.preview-link {
    color: #3498db;
    text-decoration: none;
    margin-left: 10px;
    font-size: 14px;
	margin-top: 10px;
}
.preview-link:hover {
    text-decoration: underline;
}
/* Container nút */
.editor-profile p input[type="submit"]{
    padding: 10px 20px;
    margin-right: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Nút Publish */
.editor-profile input[name="publish_selected"] {
    background-color: #1e90ff;
    color: #fff;
}

.editor-profile input[name="publish_selected"]:hover {
    background-color: #0d6efd;
}

/* Nút Xóa */
.editor-profile input[name="delete_selected"] {
    background-color: #ff4d4f;
    color: #fff;
}

.editor-profile input[name="delete_selected"]:hover {
    background-color: #d9363e;
}

/* Responsive cho mobile */
@media (max-width: 480px) {
    .editor-profile p input[type="submit"] {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }
}
/* Thông báo thành công */
.notice.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 6px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    animation: fadeInNotice 0.5s ease-in-out;
    transition: opacity 0.5s ease, box-shadow 0.2s ease;
}

.notice.success:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Tự ẩn thông báo */
.notice.fade-out {
    opacity: 0;
}

/* Hover từng dòng bài viết */
.post-item {
    padding: 10px 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s ease;
	margin-left: 0em !important;
}

.post-item:hover {
    background-color: #f5f5f5;
}

/* Checkbox tùy chỉnh */
.select-post-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #4CAF50;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.select-post-checkbox:hover {
    transform: scale(1.2);
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

.select-post-checkbox:checked {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.select-post-checkbox:checked::after {
    content: "✔";
    color: #fff;
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Chọn cả dòng khi checkbox được tích */
.post-item:has(input.select-post-checkbox:checked) {
    background-color: #e0f7e9;
}

/* Hiệu ứng fade-in thông báo */
@keyframes fadeInNotice {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive cho mobile */
@media (max-width: 768px) {
    .select-post-checkbox {
        width: 24px;
        height: 24px;
    }
    .select-post-checkbox:checked::after {
        font-size: 16px;
    }
}


.custom-posters .poster-left,
.custom-posters .poster-right {
            position: fixed;
            top: 100px;
            z-index: 9999;
            display: none;
        }
@media (min-width: 1024px) {
            .custom-posters .poster-left,
            .custom-posters .poster-right { display: block; }
            .custom-posters .poster-left { left: 10px; }
            .custom-posters .poster-right { right: 10px; }
            .custom-posters img { max-width: 120px; height: auto; }
}

.main-floating-posters {
    position: relative;
    z-index: 99;
}

.main-floating-posters .poster-left,
.main-floating-posters .poster-right {
    position: absolute;
    top: 150px; /* chỉnh khoảng cách từ header */
}

.main-floating-posters .poster-left {
    left: 10px;
}
.main-floating-posters .poster-right {
    right: 10px;
}

.main-floating-posters img {
    max-width: 160px;
    height: auto;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border-radius: 8px;
}
