.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;
    padding-bottom: 0px;
}
.editor-form-container h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #005a9a;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
}
.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{
    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;
}

/* Wrapper */
.post-featured-wrapper {
    margin-bottom: 20px;
}

/* Khung vuông hiển thị */
.post-featured-box {
    width: 200px;
    height: 200px;
    border: 2px dashed #cdd4dc;
    border-radius: 14px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: .25s;
    position: relative;
    margin-bottom: 20px;
}

/* Hover đẹp */
.post-featured-box:hover {
    border-color: #2271b1;
    background: #f0f7ff;
}

/* Placeholder khi chưa có ảnh */
.upload-placeholder {
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.upload-placeholder .upload-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 6px;
}

/* Ảnh hiển thị bên trong */
.post-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

/* ==============================
   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 30px 0 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: 60%;
}

.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;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 5px;
    padding: 10px 15px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    margin-left: 0em !important;
}

.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: #0078c1;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.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;
    font-size: 14px;
	margin-top: 10px;
}
.preview-link:hover {
    text-decoration: underline;
}
@media (max-width: 768px) {
    .button-item {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 7px;
        width: 100%;
    }
}
/* Container nút */
.editor-profile p input{
    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"],.editor-profile input[name="publish_selected_products"] {
    background-color: #1e90ff !important;
    color: #fff;
}

.editor-profile input[name="publish_selected"]:hover,.editor-profile input[name="publish_selected_products"]:hover {
    background-color: #0d6efd !important;
}

/* Nút Xóa */
.editor-profile input[name="delete_selected"],.editor-profile input[name="delete_selected_products"] {
    background-color: #ff4d4f;
    color: #fff;
}

.editor-profile input[name="delete_selected"]:hover,.editor-profile input[name="delete_selected_products"]:hover {
    background-color: #d9363e;
}

/* Responsive cho mobile */
@media (max-width: 480px) {
    .editor-profile p input{
        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: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;
}

/* ============================================
   FORM PRODUCT EDITOR – GIAO DIỆN ĐẸP (Scoped to .editor-product-form)
   ============================================ */
form.product-search-form{
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.editor-product-form {
    max-width: 850px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.06);
    border: 1px solid #e6e6e6;
    font-family: Arial, sans-serif;
    padding-bottom: 0px;
}

/* Tiêu đề */
.editor-product-form h2 {
    text-align: center;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #123c74;
    text-transform: uppercase;
}

/* Label và input */
.editor-product-form p {
    margin-bottom: 18px;
}

.editor-product-form label {
    font-weight: 600;
    color: #2271b1;
    display: block;
    margin: 10px 0px;
    font-size: 16.5px;
    border-top: 2px solid;
}

.product-toolbar input[type="text"],
.editor-product-form input[type="text"],
.editor-product-form input[type="number"],
.editor-product-form input[type="date"],
.editor-product-form textarea,
.editor-product-form select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fafafa;
}

.editor-product-form input:focus,
.editor-product-form textarea:focus,
.editor-product-form select:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34,113,177,0.25);
    background: #fff;
    outline: none;
}

/* Button chọn ảnh */
.editor-product-form .button.select-featured-image,
.editor-product-form .button.select-gallery-images {
    background: #2271b1;
    color: #fff;
    border-radius: 6px;
    padding: 8px 14px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.25s ease;
}

.editor-product-form .button.select-featured-image:hover,
.editor-product-form .button.select-gallery-images:hover {
    background: #195a8a;
}

/* Preview ảnh */
.editor-product-form .featured-preview img {
    border-radius: 10px;
    border: 1px solid #ddd;
    max-width: 180px;
    display: block;
}

.editor-product-form .gallery-preview img {
    border-radius: 10px;
    border: 1px solid #ddd;
    max-width: 120px;
    margin-right: 10px;
    transition: transform 0.2s ease;
}

.editor-product-form .gallery-preview img:hover {
    transform: scale(1.05);
}

/* Nút submit */
.editor-product-form input[type="submit"],.product-toolbar button[type=submit] {
    background: #2271b1 !important;
    color: #fff;
    border-radius: 8px;
    padding: 12px 18px;
    border: none;
    font-size: 16px;
    display: block;
    width: 100%;
    margin-top: 15px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.editor-product-form input[type="submit"]:hover {
    background: #083e6b;
}

/* Tooltip nhỏ */
.editor-product-form small {
    color: #666;
    font-size: 13px;
}

/* Gallery container */
.editor-product-form .gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Form spacing chung */
.editor-product-form p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .editor-product-form {
        padding: 20px;
    }

    .editor-product-form input[type="submit"] {
        font-size: 15px;
        padding: 10px 16px;
    }
}

/* ================ TAB MENU ================ */

.editor-tabs {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 25px;
}

.editor-tab-btn {
    padding: 10px 18px;
    background: #f1f1f1;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: .25s;
}

.editor-tab-btn:hover {
    background: #e6e6e6;
}

.editor-tab-btn.active {
    background: #2271b1;
    color: #fff;
    border-color: #1c5a8a;
}
.editor-tab-content { display:none; }
.editor-tab-content.active { display:block; }


/* ================ TAB CONTENT ================ */

.editor-tab-content {
    display: none;
}

.editor-tab-content.active {
    display: block;
}
/* ================ img product, post tag ================ */
.product-thumb img, .post-thumb img{
    width: 75px;
    height: 75px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.product-thumb .no-img {
    width: 75px;
    height: 75px;
    background: #f3f3f3;
    border: 1px dashed #bbb;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    text-align: center;
}
/* Responsive cho mobile */
@media (max-width: 768px) {
    .product-thumb,.post-thumb {
    width: 100%;
    }
    .product-thumb img, .post-thumb img{
    width: 100%;
    height: 100%;
    }
    .post-title {
    text-align: center;
    margin: 0 auto;
    }
}

/* Custom Select */
/* ==========================
   SELECT BOX CHUNG CHO TOÀN FORM
   ========================== */

.al-select-box {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    min-height: 42px;
    appearance: none;
    outline: none;
    transition: .25s ease;
}

/* Select có multiple */
.al-select-box[multiple] {
    min-height: 140px;
    padding: 10px;
}

/* Hover & Focus */
.al-select-box:hover {
    border-color: #2271b1;
}

.al-select-box:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34,113,177,0.25);
}

/* Items */
.al-select-box option {
    padding: 6px 10px;
    border-radius: 5px;
    margin: 2px 0;
}

/* Hover */
.al-select-box option:hover {
    background: #eaf3ff;
}

/* Selected */
.al-select-box option:checked {
    background: #2271b1 !important;
    color: #fff;
}

/* ===========================
   ẢNH ĐẠI DIỆN PRODUCT – CARD UI
   =========================== */
.featured-product-box {
    width: 200px;
    height: 200px;
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: .25s;
    margin-bottom: 10px;
}

.featured-product-box:hover {
    border-color: #2271b1;
    background: #f0f7ff;
}

.featured-product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-placeholder {
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.upload-placeholder .upload-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 6px;
}
/* Gallery Upload Box */
.gallery-upload-box {
    width: 100%;
    min-height: 250px;
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    padding: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    cursor: pointer;
    transition: .25s;
}

.gallery-upload-box:hover {
    border-color: #2271b1;
    background: #f0f7ff;
}

.upload-placeholder {
    width: 100%;
    text-align: center;
    color: #64748b;
    padding: 40px 0;
}
.upload-placeholder .upload-icon {
    font-size: 42px;
    display: block;
    margin-bottom: 6px;
}

.gallery-upload-box .gallery-item {
    width: 100px;
    height: 100px;
    padding: 0;
    border-radius: 9px;
}

.gallery-upload-box .gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-gallery {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    width: 22px;
    height: 22px;
    text-align: center;
    line-height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
}


/* TAG INPUT UI */
.tag-input-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    min-height: 48px;
    background: #fff;
    cursor: text;
    flex-direction: column;
}
.danh-sach-tag {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}
.tag-item {
    background: #2271b1;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    flex-direction: column;
}

.tag-item .remove-tag {
    cursor: pointer;
    font-weight: bold;
    background: red;
    border-radius: 7px;
    height: fit-content;
    width: 100%;
    text-align: center;
}

#tag-input {
    border: none;
    outline: none;
    flex: 1;
    min-width: 120px;
}

/* Suggested tags */
.suggested-tags {
    margin-bottom: 8px;
}

.suggested-tag {
    background: #f1f5f9;
    padding: 5px 10px;
    border-radius: 6px;
    margin-right: 6px;
    cursor: pointer;
    display: inline-block;
    color: #334155;
    margin-bottom: 6px;
}

.suggested-tag:hover {
    background: #e2e8f0;
}
.add-tag {
    display: flex;
    gap: 5px;
}
.tag-add-btn {
    background: #2271b1;
    color: #fff;
    border-radius: 6px;
    text-transform: capitalize;
    font-size: 13px;
    height: fit-content;
}

.tag-add-btn:hover {
    background: #195a8a;
}

.upload-icon img,.wellcome-icon img,.list-icon img{
    height: 30px;
    width: 30px;
}
.edit-icon img{
    height: 20px;
    width: 20px;
}