﻿        /* Reset cơ bản & Box Sizing */
        *, *::before, *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Krub', sans-serif;
            background-color: #1a1a1a; /* Tương đương bg-dark hoặc gray-900/zinc-900 */
            color: #d1d5db; /* gray-300 */
            line-height: 1.6;
            height: 100vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

       

        /* Container */
        .container-custom { /* Thay thế cho Tailwind 'container mx-auto' */
            width: 100%;
            padding-right: 1rem; /* px-4 */
            padding-left: 1rem;  /* px-4 */
            margin-right: auto;
            margin-left: auto;
            flex: 1;
            display: flex;
            flex-direction: column;
            min-height: 0;
            padding-bottom: 1rem;

        }
        @media (min-width: 640px) { .container-custom { max-width: 640px; } }
        @media (min-width: 768px) { .container-custom { max-width: 768px; } }
        @media (min-width: 1024px) { .container-custom { max-width: 1024px; } }
        @media (min-width: 1280px) { .container-custom { max-width: 1280px; } }

        /* Layout chính */
        .main-content-wrapper { /* Thay thế cho 'flex flex-col md:flex-row gap-8' */
            display: flex;
            flex-direction: column;
            gap: 1rem;
            flex: 1;
            min-height: 0;
            overflow: hidden;
            padding-top: 1.5rem;
            margin-top: 0;
            --guides-sidebar-pct: 28%;
        }
        @media (min-width: 768px) { /* md breakpoint */
            .main-content-wrapper {
                flex-direction: row;
                gap: 0;
                min-width: 768px;
            }
        }

        @media (max-width: 767px) {
            .sidebar-custom,
            .content-area-custom {
                flex: 1 1 0;
                min-height: 0;
            }
        }

        .guides-sidebar-header {
            flex-shrink: 0;
            padding-bottom: 1rem;
        }

        .guides-sidebar-toolbar {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            margin-bottom: 0.3rem;
            min-height: auto;
        }

        .guides-sidebar-search {
            margin-bottom: 0.25rem;
        }

        .guides-search-row {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .guides-search-input {
            flex: 1;
            min-width: 150px;
            padding: 0.5rem;
            border-radius: 0.25rem;
            background-color: #374151;
            color: white;
            border: 1px solid #4b5563;
        }

        .guides-search-button {
            padding: 0.5rem 1rem;
            background-color: #3b82f6;
            color: white;
            border-radius: 0.25rem;
            cursor: pointer;
            border: none;
        }

        .guides-sidebar-scroll {
            flex: 1;
            min-height: 0;
            overflow-y: auto;
        }

        /* Sidebar (Aside) */
        .sidebar-custom { /* Thay thế cho 'w-full md:w-1/3 lg:w-1/4 bg-gray-900 p-6 rounded-lg shadow-xl' */
            width: 100%;
            background-color: #232323; /* bg-gray-900 */
            padding: 1.5rem; /* p-6 */
            border-radius: 0.5rem; /* rounded-lg */
            box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); /* shadow-xl */
            min-height: 0;
            max-height: 100%;
            position: relative;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        @media (min-width: 768px) { /* md breakpoint */
            .sidebar-custom {
                flex: 0 0 var(--guides-sidebar-pct);
                width: auto;
                max-width: 50%;
                min-width: 12rem;
            }
        }

        /* Thêm style cho thanh cuộn */
        .guides-sidebar-scroll::-webkit-scrollbar,
        .content-area-custom::-webkit-scrollbar {
            width: 8px;
        }

        .guides-sidebar-scroll::-webkit-scrollbar-track,
        .content-area-custom::-webkit-scrollbar-track {
            background: #1a1a1a;
            border-radius: 4px;
        }

        .guides-sidebar-scroll::-webkit-scrollbar-thumb,
        .content-area-custom::-webkit-scrollbar-thumb {
            background: #4b5563;
            border-radius: 4px;
        }

        .guides-sidebar-scroll::-webkit-scrollbar-thumb:hover,
        .content-area-custom::-webkit-scrollbar-thumb:hover {
            background: #6b7280;
        }

        /* Content Area (Section) */
        .content-area-custom { /* Thay thế cho 'w-full md:w-2/3 lg:w-3/4 bg-gray-900 p-6 rounded-lg shadow-xl' */
            width: 100%;
            background-color: #232323; /* bg-gray-900 */
            padding: 1.5rem; /* p-6 */
            border-radius: 0.5rem; /* rounded-lg */
            box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); /* shadow-xl */
            min-height: 0;
            max-height: 100%;
            overflow-y: auto;
        }
        @media (min-width: 768px) { /* md breakpoint */
            .content-area-custom {
                flex: 1 1 0;
                width: auto;
                min-width: 0;
            }
        }

        .guides-column-resizer {
            display: none;
        }

        @media (min-width: 768px) {
            .guides-column-resizer {
                display: block;
                flex: 0 0 10px;
                width: 10px;
                margin: 0 -2px;
                position: relative;
                cursor: col-resize;
                align-self: stretch;
                z-index: 2;
                opacity: 0;
                transition: opacity 0.15s ease;
            }

            .guides-column-resizer::before {
                content: "";
                position: absolute;
                top: 0;
                bottom: 0;
                left: 50%;
                width: 4px;
                margin-left: -2px;
                border-radius: 2px;
                background-color: #6b7280;
            }

            .main-content-wrapper:hover .guides-column-resizer,
            .guides-column-resizer:hover,
            .guides-column-resizer:focus-visible {
                opacity: 1;
            }

            .guides-column-resizer.is-dragging,
            .main-content-wrapper.is-resizing .guides-column-resizer {
                opacity: 1;
            }

            .main-content-wrapper.is-resizing {
                user-select: none;
                cursor: col-resize;
            }
        }

        /* Style cho content section */
        .content-section {
            background-color: #1a1a1a;
            border-radius: 0.5rem;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        }

        /* Style cho bullet list và numbered list */
        .content-section ul,
        .editor-area ul,
        #guideContent ul,
        .content-area-custom ul {
            list-style: none !important;
            margin-left: 1rem !important;
            margin-bottom: 1rem !important;
            padding-left: 1rem !important;
        }

        .content-section ul li,
        .editor-area ul li,
        #guideContent ul li,
        .content-area-custom ul li {
            margin-bottom: 0.5rem !important;
            color: #e5e7eb !important;
            display: list-item !important;
            position: relative !important;
            padding-left: 1rem !important;
        }

        .content-section ul li::before,
        .editor-area ul li::before,
        #guideContent ul li::before,
        .content-area-custom ul li::before {
            content: "•" !important;
            color: #9ca3af !important;
            position: absolute !important;
            left: 0 !important;
            top: 0 !important;
        }

        .content-section ol,
        .editor-area ol,
        #guideContent ol,
        .content-area-custom ol {
            list-style: none !important;
            margin-left: 1rem !important;
            margin-bottom: 1rem !important;
            padding-left: 2rem !important;
            counter-reset: list-counter !important;
        }

        .content-section ol li,
        .editor-area ol li,
        #guideContent ol li,
        .content-area-custom ol li {
            margin-bottom: 0.5rem !important;
            color: #e5e7eb !important;
            display: list-item !important;
            position: relative !important;
            padding-left: 1.5rem !important;
            counter-increment: list-counter !important;
        }

        .content-section ol li::before,
        .editor-area ol li::before,
        #guideContent ol li::before,
        .content-area-custom ol li::before {
            content: counter(list-counter) "." !important;
            color: #9ca3af !important;
            position: absolute !important;
            left: 0 !important;
            top: 0 !important;
        }

        /* Đảm bảo style được áp dụng cho tất cả các phần tử con */
        .content-area-custom *,
        .editor-area *,
        #guideContent * {
            box-sizing: border-box !important;
        }

        /* Style cho content-area-custom */
        .content-area-custom {
            padding: 1.5rem;
            background-color: #1a1a1a;
            border-radius: 0.5rem;
            color: #e5e7eb;
        }

        .content-area-custom p {
            margin-bottom: 1rem;
        }

        /* Tiêu đề */
        .main-title { /* text-3xl font-bold text-white mb-8 */
            font-size: 1.875rem; /* 30px */
            line-height: 2.25rem; /* 36px */
            font-weight: 700;
            color: #ffffff;
            margin-bottom: 2rem;
        }
        .sidebar-title { /* text-xl font-semibold text-white mb-4 */
            font-size: 1.25rem; /* 20px */
            line-height: 1.75rem; /* 28px */
            font-weight: 600;
            color: #ffffff;
            margin-bottom: 1rem;
        }
        .content-title { /* text-2xl font-semibold text-white mb-6 border-b border-gray-700 pb-3 */
            font-size: 1.5rem; /* 24px */
            line-height: 2rem; /* 32px */
            font-weight: 600;
            color: #ffffff;
            margin-bottom: 1.5rem;
            border-bottom: 1px solid #374151; /* border-gray-700 */
            padding-bottom: 0.75rem;
        }
        
        /* Treeview styles - giữ nguyên từ trước */
        .tree-item {
            cursor: pointer;
            padding: 8px 12px;
            border-radius: 6px;
            transition: background-color 0.2s ease, color 0.2s ease;
            color: #9ca3af; /* gray-400 */
            display: flex; /* Thêm để items-center hoạt động */
            align-items: center; /* Thêm để items-center hoạt động */
            margin-bottom: 0.25rem; /* Thêm margin bottom */
        }
        .tree-item:hover {
            background-color: #374151; /* gray-700 */
            color: #f3f4f6; /* gray-100 */
        }
        .tree-item.active {
            background-color: #7e22ce; /* Màu tím đã chọn trước đó */
            color: #ffffff; /* white */
            font-weight: 600;
        }
        .tree-item .tree-link {
            color: inherit;
            text-decoration: none;
            flex: 1;
        }
        .tree-item.active .tree-link {
            color: #ffffff;
        }
        .tree-children {
            padding-left: 20px;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-out;
            margin-bottom: 0.5rem;
        }
        .tree-children.open {
            max-height: none;
            transition: max-height 0.5s ease-in;
        }
        .caret {
            display: inline-block;
            margin-right: 8px;
            transition: transform 0.3s ease;
        }
        .caret.open {
            transform: rotate(90deg);
            color: #a855f7; /* Màu tím đã chọn */
        }
        .content-placeholder {
            padding: 20px;
            border: 1px dashed #4b5563; /* gray-600 */
            border-radius: 8px;
            margin-top: 10px;
            min-height: 200px;
            background-color: #374151; /* gray-700 */
        }

        /* Prose (Typography) - giữ nguyên từ trước, đảm bảo màu link */
        .prose-custom {
            height: 100%;
            overflow-y: auto;
            padding-right: 1rem; /* Thêm padding để tránh scrollbar che nội dung */
        }
        .prose-custom p { margin-bottom: 1em; }
        .prose-custom ul { 
            list-style: none !important; 
            margin-bottom: 1em; 
            padding-left: 1rem !important;
        }
        .prose-custom ul li { 
            margin-bottom: 0.5em; 
            position: relative !important;
            padding-left: 1rem !important;
        }
        .prose-custom ul li::before {
            content: "•" !important;
            color: #9ca3af !important;
            position: absolute !important;
            left: 0 !important;
            top: 0 !important;
        }
        .prose-custom ol { 
            list-style: none !important; 
            margin-bottom: 1em; 
            padding-left: 2rem !important;
            counter-reset: list-counter !important;
        }
        .prose-custom ol li { 
            margin-bottom: 0.5em; 
            position: relative !important;
            padding-left: 1.5rem !important;
            counter-increment: list-counter !important;
        }
        .prose-custom ol li::before {
            content: counter(list-counter) "." !important;
            color: #9ca3af !important;
            position: absolute !important;
            left: 0 !important;
            top: 0 !important;
        }
        .prose-custom strong { font-weight: 700; color: #ffffff; }
        .prose-custom a {
            color: #818cf8; /* Màu link đã chọn */
            text-decoration: none;
        }
        .prose-custom a:hover {
            color: #a7a1fb; 
            text-decoration: underline;
        }
        .prose-custom img {
            max-width: 100%;
            height: auto;
            display: block;
            margin: 0.75rem auto;
            border-radius: 0.5rem;
        }
        .prose-custom iframe,
        .prose-custom video {
            max-width: 100%;
            width: 100%;
            border: 0;
            border-radius: 0.5rem;
        }
        .prose-custom pre,
        .prose-custom table {
            max-width: 100%;
            overflow-x: auto;
            display: block;
        }
        /* Biến prose-invert gốc để tham khảo, chúng ta sẽ định nghĩa trực tiếp các thành phần cần thiết */
        /* .prose-invert { 
            --tw-prose-body: #d1d5db;
            --tw-prose-headings: #ffffff;
            --tw-prose-links: #818cf8;
            --tw-prose-bold: #ffffff;
            --tw-prose-counters: #9ca3af;
            --tw-prose-bullets: #6b7280;
            --tw-prose-hr: #4b5563;
            --tw-prose-quotes: #f3f4f6;
            --tw-prose-quote-borders: #4b5563;
            --tw-prose-captions: #9ca3af;
            --tw-prose-code: #ffffff;
            --tw-prose-pre-code: #e5e7eb;
            --tw-prose-pre-bg: #1f2937;
            --tw-prose-th-borders: #4b5563;
            --tw-prose-td-borders: #374151;
        } */

        /* Helper classes (một vài ví dụ, có thể cần thêm) */
        .flex { display: flex; }
        .items-center { align-items: center; }
        .ml-4 { margin-left: 1rem; } /* Tailwind ml-4 */
        .text-center { text-align: center; }
        .py-8 { padding-top: 2rem; padding-bottom: 2rem; }
        .text-red-400 { color: #f87171; } /* Màu cho thông báo lỗi */

  /* Navigation */
  .bg-light-dark {
            background-color: #1a1a1a
        }

  .nav-container {
            max-width: 80rem;
            margin-left: auto;
            margin-right: auto;
            padding-left: 1rem;
            padding-right: 1rem;
        }

        .nav-flex {
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-height: 4rem;
            height: auto;
            padding: 0.5rem 0;
        }

        .nav-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .nav-buttons {
            display: flex;
            align-items: center;
            gap: 1rem;
            flex-wrap: wrap;
        }

        .nav-buttons a,
        .nav-buttons button {
            text-decoration: none;
            transition: all 0.3s ease;
            white-space: nowrap;
        }

        /* Responsive adjustments */
        @media (max-width: 640px) {
            .nav-flex {
                padding: 0.5rem 0;
            }

            .nav-content {
                gap: 0.5rem;
            }

            .nav-buttons {
                gap: 0.5rem;
            }

            .nav-buttons a,
            .nav-buttons button {
                font-size: 0.875rem;
                padding: 0.5rem 0.75rem;
            }
        }

        /* Mobile Menu Styles */
        #mobileMenu {
            transition: all 0.3s ease-in-out;
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            display: none;
        }

        #mobileMenu.show {
            max-height: 500px;
            opacity: 1;
            display: block;
        }

        #mobileMenu a,
        #mobileMenu button {
            transition: all 0.2s ease;
            border-radius: 0.375rem;
        }

        #mobileMenu a:hover,
        #mobileMenu button:hover {
            background-color: rgba(255, 255, 255, 0.1);
            transform: translateX(5px);
        }

        /* Mobile menu button animation */
        .mobile-menu-button {
            transition: all 0.2s ease;
            background: transparent !important;
            border: none !important;
            outline: none !important;
        }

        .mobile-menu-button:hover {
            transform: scale(1.05);
            background: transparent !important;
            border: none !important;
        }

        .mobile-menu-button:focus {
            outline: none !important;
            box-shadow: none !important;
        }

        /* Force responsive behavior */
        @media (max-width: 1023px) {
            /* Hide all desktop navigation buttons */
            .nav-buttons.hidden.lg\\:flex {
                display: none !important;
                visibility: hidden !important;
                opacity: 0 !important;
                position: absolute !important;
                left: -9999px !important;
            }
            
            /* Hide any other navigation buttons that might be visible */
            .nav-buttons:not(.mobile-menu-container) {
                display: none !important;
                visibility: hidden !important;
                opacity: 0 !important;
            }
            
            /* Show mobile elements */
            .lg\\:hidden {
                display: block !important;
                visibility: visible !important;
                opacity: 1 !important;
            }
            
            /* Hide any navigation links that might be showing */
            .nav-content > a,
            .nav-content > button {
                display: none !important;
            }
            
            /* Hide all navigation buttons except mobile menu */
            .nav-buttons {
                display: none !important;
            }
            
            /* Only show mobile menu container */
            .nav-content > .mobile-menu-container,
            .mobile-menu-container {
                display: flex !important;
            }
            
            /* Hide all other navigation elements */
            .nav-content > *:not(.mobile-menu-container) {
                display: none !important;
            }
            
            /* Ensure mobile menu button is visible */
            .mobile-menu-container {
                display: flex !important;
                width: 100% !important;
                justify-content: center !important;
                visibility: visible !important;
                opacity: 1 !important;
                flex: 1 !important;
            }
            
            /* Make mobile menu button take full width */
            .mobile-menu-container button {
                width: 90% !important;
                max-width: 90% !important;
                background: transparent !important;
                border: none !important;
                outline: none !important;
            }
        }

        @media (min-width: 1024px) {
            /* Hide mobile elements on desktop */
            .lg\\:hidden {
                display: none !important;
                visibility: hidden !important;
                opacity: 0 !important;
            }
            
            /* Show desktop navigation */
            .nav-buttons.hidden.lg\\:flex {
                display: flex !important;
                visibility: visible !important;
                opacity: 1 !important;
                position: static !important;
                left: auto !important;
            }
            
            /* Hide mobile menu button on desktop */
            .mobile-menu-container {
                display: none !important;
                visibility: hidden !important;
                opacity: 0 !important;
            }
        }

        @media (min-width: 641px) {
            .nav-flex {
                padding: 0.75rem 0;
            }

            .nav-content {
                gap: 0.75rem;
            }

            .nav-buttons {
                gap: 0.75rem;
            }

            .nav-buttons a,
            .nav-buttons button {
                font-size: 0.875rem;
                padding: 0.5rem 1rem;
            }
        }

        .vip-button {
            background-color: #7c3aed;
            transition: all 0.3s ease;
        }

        .vip-button:hover {
            background-color: #6d28d9;
            transform: translateY(-2px);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        }

      

      

      

        .py-2 {
            padding-top: 0.5rem;
            padding-bottom: 0.5rem;
        }

        /* Thêm style cho các nút quản lý */
        .admin-buttons {
            display: none; /* Mặc định ẩn */
            gap: 0.5rem;
            margin-left: 1rem;
        }

        .admin-button {
            padding: 0.25rem;
            border-radius: 0.25rem;
            font-size: 0.875rem;
            cursor: pointer;
            transition: all 0.2s;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .delete-button {
            background-color: #ef4444;
            color: white;
        }

        .delete-button:hover {
            background-color: #dc2626;
        }

        .add-button {
            background-color: #10b981;
            color: white;
        }

        .add-button:hover {
            background-color: #059669;
        }

        .edit-button {
            background-color: #3b82f6;
            color: white;
        }

        .edit-button:hover {
            background-color: #2563eb;
        }

        /* Style cho modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            overflow-y: auto; /* Cho phép cuộn dọc */
            padding: 20px; /* Thêm padding để tránh nội dung sát viền */
        }

        .modal-content {
            position: relative;
            background-color: #1f2937;
            margin: 20px auto; /* Thay đổi margin để tránh bị che khuất */
            padding: 1.5rem;
            width: 90%;
            max-width: 800px;
            border-radius: 0.5rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            max-height: calc(100vh - 40px); /* Giới hạn chiều cao tối đa */
            overflow-y: auto; /* Cho phép cuộn nếu nội dung dài */
        }

        .modal-header {
            position: sticky;
            top: 0;
            background-color: #1f2937;
            z-index: 1;
            padding-bottom: 1rem;
            margin-bottom: 1rem;
            border-bottom: 1px solid #374151;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-title {
            font-size: 1.25rem;
            font-weight: 600;
            color: white;
        }

        .close-button {
            background: none;
            border: none;
            color: #9ca3af;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0.25rem;
            line-height: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 32px;
            height: 32px;
            border-radius: 4px;
            transition: all 0.2s;
        }

        .close-button:hover {
            color: white;
            background-color: rgba(255, 255, 255, 0.1);
        }

        .form-group {
            margin-bottom: 1rem;
        }

        .form-label {
            display: block;
            margin-bottom: 0.5rem;
            color: #d1d5db;
        }

        .form-input {
            width: 100%;
            padding: 0.5rem;
            border: 1px solid #4b5563;
            border-radius: 0.25rem;
            background-color: #374151;
            color: white;
        }

        .form-textarea {
            width: 100%;
            padding: 0.5rem;
            border: 1px solid #4b5563;
            border-radius: 0.25rem;
            background-color: #374151;
            color: white;
            min-height: 150px;
            resize: vertical;
        }

        .modal-footer {
            position: sticky; /* Giữ footer cố định khi cuộn */
            bottom: 0;
            background-color: #1f2937;
            z-index: 1;
            padding-top: 1rem;
            margin-top: 1rem;
            border-top: 1px solid #374151;
        }

        .modal-button {
            padding: 0.5rem 1rem;
            border-radius: 0.25rem;
            font-size: 0.875rem;
            cursor: pointer;
            transition: all 0.2s;
        }

        .cancel-button {
            background-color: #4b5563;
            color: white;
        }

        .cancel-button:hover {
            background-color: #374151;
        }

        .save-button {
            background-color: #3b82f6;
            color: white;
        }

        .save-button:hover {
            background-color: #2563eb;
        }

        /* Style cho trình soạn thảo */
        .editor-toolbar {
            display: flex;
            gap: 8px;
            padding: 8px;
            background: #1a1a1a;
            border: 1px solid #4b5563;
            border-radius: 4px 4px 0 0;
            flex-wrap: wrap;
            align-items: center;
        }

        .editor-toolbar button {
            padding: 6px 10px;
            background: #4b5563;
            border: none;
            border-radius: 4px;
            color: white;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 14px;
            min-width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .editor-toolbar button:hover {
            background: #6b7280;
        }

        .editor-toolbar select {
            padding: 6px 10px;
            background: #4b5563;
            border: none;
            border-radius: 4px;
            color: white;
            cursor: pointer;
            font-size: 14px;
            height: 36px;
            min-width: 120px;
        }

        .editor-toolbar input[type="color"] {
            width: 40px;
            height: 40px;
            padding: 2px;
            border: 1px solid #4b5563;
            border-radius: 4px;
            cursor: pointer;
            background: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 9999;
        }

        .editor-toolbar input[type="color"]::-webkit-color-swatch-wrapper {
            padding: 0;
        }

        .editor-toolbar input[type="color"]::-webkit-color-swatch {
            border: none;
            border-radius: 2px;
        }

        .editor-toolbar input[type="color"]::-moz-color-swatch {
            border: none;
            border-radius: 2px;
        }

        .editor-area {
            min-height: 300px;
            height: auto;
            overflow-y: auto;
            padding: 20px;
            background: #1a1a1a;
            border: 1px solid #4b5563;
            border-top: none;
            border-radius: 0 0 4px 4px;
            color: white;
            outline: none;
            font-size: 16px;
            line-height: 1.6;
        }

        .editor-area:focus {
            border-color: #6b7280;
        }

        .youtube-video-container,
        .video-embed-container {
            position: relative;
            padding-bottom: 56.25%;
            height: 0;
            overflow: hidden;
            max-width: 100%;
            margin: 1rem 0;
            background: #000;
            border-radius: 8px;
            isolation: isolate;
            transition: box-shadow 0.15s ease;
        }
        .editor-area .video-embed-block {
            position: relative;
            margin: 1.2rem 0 1rem;
        }
        .editor-area .video-embed-actions {
            position: absolute;
            top: -14px;
            left: 0;
            z-index: 20;
        }
        .editor-area .video-embed-block .video-embed-container,
        .editor-area .video-embed-block .youtube-video-container {
            margin-top: 10px;
        }
        .editor-area .video-embed-block:hover .video-embed-container,
        .editor-area .video-embed-block:hover .youtube-video-container,
        .editor-area .video-embed-block.is-selected .video-embed-container,
        .editor-area .video-embed-block.is-selected .youtube-video-container {
            box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.35);
        }

        .youtube-video-container iframe,
        .video-embed-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
            z-index: 1;
        }

        .editor-area ul {
            list-style-type: disc;
            margin-left: 20px;
            margin-bottom: 10px;
        }

        .editor-area ol {
            list-style-type: decimal;
            margin-left: 20px;
            margin-bottom: 10px;
        }

        .editor-area li {
            margin-bottom: 5px;
        }

        /* Style cho nút xóa video */
        .delete-video {
            cursor: pointer;
            transition: all 0.2s;
            width: 34px;
            height: 34px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 9999px;
            background-color: #ef4444;
            color: #fff;
        }
        .editor-area .video-embed-actions .delete-video {
            display: inline-flex !important;
            visibility: visible !important;
            opacity: 1 !important;
        }

        .delete-video:hover {
            transform: scale(1.1);
            background-color: #dc2626;
        }

        /* Ẩn nút xóa trong content area */
        .content-area-custom .prose-custom .delete-video {
            display: none;
        }
