        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 10px;
        }

        .header {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            padding: 20px;
            margin: 20px auto;
            max-width: 1200px;
            border-radius: 15px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .header h1 {
            color: #333;
            text-align: left;
            margin: 0;
            transition: all 0.3s ease;
        }

        .hamburger-menu {
            background: none;
            border: none;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            gap: 4px;
            padding: 8px;
            border-radius: 4px;
            transition: all 0.3s ease;
        }

        .hamburger-menu:hover {
            background: rgba(102, 126, 234, 0.1);
        }

        .hamburger-line {
            width: 25px;
            height: 3px;
            background: #333;
            transition: all 0.3s ease;
            border-radius: 2px;
        }

        .mobile-nav {
            position: fixed;
            top: 0;
            left: -100%;
            width: 300px;
            height: 100vh;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            z-index: 1000;
            transition: left 0.3s ease;
            box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
        }

        .mobile-nav.active {
            left: 0;
        }

        .mobile-nav-header {
            padding: 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .mobile-nav-header h3 {
            color: white;
            margin: 0;
        }

        .mobile-nav-close {
            background: none;
            border: none;
            color: white;
            font-size: 1.5em;
            cursor: pointer;
            padding: 5px 10px;
            border-radius: 5px;
            transition: background 0.3s ease;
        }

        .mobile-nav-close:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .mobile-nav-content {
            padding: 20px 0;
        }

        .mobile-nav-item {
            display: block;
            color: white;
            text-decoration: none;
            padding: 15px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            transition: background 0.3s ease;
        }

        .mobile-nav-item:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .nav-buttons {
            display: flex;
            gap: 10px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .nav-btn {
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            border: none;
            padding: 10px 16px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: bold;
            text-decoration: none;
            transition: all 0.3s ease;
            font-size: 0.9em;
        }

        .nav-btn:hover {
            background: linear-gradient(45deg, #5a6fd8, #6a4190);
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        .admin-tabs {
            display: flex;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            padding: 8px;
            margin-bottom: 20px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            flex-wrap: wrap;
            gap: 5px;
        }

        .tab-btn {
            flex: 1;
            min-width: 120px;
            background: transparent;
            border: none;
            padding: 12px 15px;
            border-radius: 10px;
            cursor: pointer;
            font-weight: bold;
            font-size: 1em;
            transition: all 0.3s ease;
            color: #666;
            white-space: nowrap;
        }

        .tab-btn.active {
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .tab-content {
            display: none;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 15px;
            padding: 20px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
        }

        .tab-content.active {
            display: block;
        }

        .section-header {
            display: flex;
            flex-direction: column;
            gap: 15px;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid #eee;
            text-align: center;
        }

        .section-header h2 {
            color: #333;
            font-size: 1.6em;
        }

        .btn {
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s ease;
            font-size: 0.9em;
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
        }

        .btn-danger {
            background: linear-gradient(45deg, #dc3545, #c82333);
        }

        .btn-success {
            background: linear-gradient(45deg, #28a745, #20c997);
        }

        .btn-questions {
            background: linear-gradient(45deg, #007bff, #0056b3);
            color: white;
        }

        .btn-questions:hover {
            background: linear-gradient(45deg, #0056b3, #004085);
        }

        .items-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 15px;
            margin-top: 20px;
        }

        .item-card {
            background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
            border: 1px solid #e3e6ea;
            border-radius: 12px;
            padding: 18px;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            position: relative;
            overflow: hidden;
        }

        .item-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, #667eea, #764ba2);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .item-card:hover::before {
            transform: scaleX(1);
        }

        .item-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
            border-color: #667eea;
        }

        .item-card h3 {
            color: #2c3e50;
            margin-bottom: 12px;
            font-size: 1.25em;
            line-height: 1.3;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .item-card p {
            color: #5a6c7d;
            margin-bottom: 10px;
            line-height: 1.5;
            font-size: 0.9em;
        }

        .item-card p:last-of-type {
            margin-bottom: 15px;
        }

        .item-actions {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
            gap: 8px;
            margin-top: 15px;
        }

        .btn-small {
            padding: 8px 12px;
            font-size: 0.8em;
            border-radius: 6px;
            border: none;
            font-weight: 500;
            transition: all 0.2s ease;
            cursor: pointer;
            white-space: nowrap;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
        }

        .btn-small:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
        }

        .modal-content {
            background-color: white;
            margin: 5% auto;
            padding: 30px;
            border-radius: 15px;
            width: 90%;
            max-width: 600px;
            max-height: 80vh;
            overflow-y: auto;
        }

        .close {
            color: #aaa;
            float: left;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
        }

        .close:hover {
            color: black;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
            color: #333;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 1em;
            transition: all 0.3s ease;
        }

        .form-group textarea {
            min-height: 100px;
            resize: vertical;
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
        }

        .loading {
            text-align: center;
            padding: 40px;
            color: #666;
        }

        .spinner {
            border: 3px solid #f3f3f3;
            border-top: 3px solid #667eea;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .error-message {
            background: #f8d7da;
            color: #721c24;
            padding: 15px;
            border-radius: 8px;
            margin: 20px 0;
            border: 1px solid #f5c6cb;
        }

        .success-message {
            background: #d4edda;
            color: #155724;
            padding: 15px;
            border-radius: 8px;
            margin: 20px 0;
            border: 1px solid #c3e6cb;
        }

        @media (max-width: 768px) {
            body {
                padding: 5px;
            }

            .header {
                padding: 10px;
                margin-bottom: 15px;
            }

            .header h1 {
                font-size: 1.4em;
            }

            .nav-btn {
                padding: 8px 12px;
                font-size: 0.8em;
            }

            .container {
                padding: 0;
            }

            .admin-tabs {
                flex-direction: column;
                padding: 5px;
                margin-bottom: 15px;
                gap: 3px;
            }

            .tab-btn {
                padding: 10px 12px;
                font-size: 0.9em;
                margin-bottom: 2px;
            }

            .tab-content {
                padding: 15px;
                border-radius: 10px;
            }

            .section-header {
                margin-bottom: 15px;
                padding-bottom: 10px;
            }

            .section-header h2 {
                font-size: 1.3em;
            }

            .btn {
                padding: 8px 16px;
                font-size: 0.85em;
                width: 100%;
            }

            .items-grid {
                grid-template-columns: 1fr;
                gap: 12px;
                margin-top: 15px;
            }

            .item-card {
                padding: 16px;
                border-radius: 10px;
                margin-bottom: 4px;
            }

            .item-card h3 {
                font-size: 1.1em;
                margin-bottom: 10px;
                line-height: 1.2;
            }

            .item-card p {
                font-size: 0.85em;
                margin-bottom: 8px;
                line-height: 1.4;
            }

            .item-actions {
                grid-template-columns: 1fr;
                gap: 8px;
                margin-top: 12px;
            }

            .btn-small {
                width: 100%;
                padding: 10px 12px;
                font-size: 0.85em;
                justify-content: center;
                min-height: 40px;
            }

            /* פילטרים מותאמים למובייל */
            .filter-section {
                flex-direction: column !important;
                gap: 10px !important;
                padding: 10px !important;
            }

            .filter-section>div {
                width: 100% !important;
            }

            .filter-section select {
                width: 100% !important;
                padding: 10px !important;
                font-size: 16px !important;
                /* מונע זום במובייל */
            }

            .filter-section button {
                width: 100% !important;
                padding: 10px !important;
                margin: 5px 0 !important;
            }

            .modal-content {
                width: 95%;
                margin: 5% auto;
                padding: 15px;
                max-height: 90vh;
                overflow-y: auto;
            }

            .form-group input,
            .form-group select,
            .form-group textarea {
                font-size: 16px !important;
                /* מונע זום במובייל */
                padding: 12px !important;
            }

            /* עורכי הטקסט העשירים */
            .ql-container {
                font-size: 14px;
            }

            .ql-toolbar {
                border-top: 1px solid #ccc;
                border-left: 1px solid #ccc;
                border-right: 1px solid #ccc;
            }

            .ql-editor {
                min-height: 150px !important;
                font-size: 14px;
                direction: rtl !important;
                text-align: right !important;
            }

            /* תיקון רשימות במובייל בינוני */
            .ql-editor ol, .ql-editor ul {
                padding-right: 2em !important;
                padding-left: 0 !important;
            }
            
            .ql-editor ol li::before {
                right: -2em !important;
                width: 1.5em !important;
                text-align: center !important;
            }
            
            .ql-editor ul li::before {
                right: -1.5em !important;
                width: 1em !important;
                text-align: center !important;
            }

            /* הודעות טעינה */
            .loading {
                padding: 15px;
            }

            .loading p {
                font-size: 0.9em;
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 3px;
            }

            .header {
                padding: 8px;
                margin-bottom: 10px;
            }

            .header h1 {
                font-size: 1.2em;
                line-height: 1.1;
            }

            .tab-btn {
                font-size: 0.8em;
                padding: 8px 10px;
                border-radius: 8px;
            }

            .tab-content {
                padding: 12px;
                border-radius: 8px;
            }

            .section-header h2 {
                font-size: 1.1em;
            }

            .items-grid {
                gap: 10px;
            }

            .item-card {
                padding: 14px;
                border-radius: 8px;
            }

            .item-card h3 {
                font-size: 1em;
                margin-bottom: 8px;
            }

            .item-card p {
                font-size: 0.8em;
                margin-bottom: 6px;
                line-height: 1.3;
            }

            .item-actions {
                gap: 6px;
                margin-top: 10px;
            }

            .btn-small {
                font-size: 0.75em;
                padding: 8px 10px;
                min-height: 36px;
                border-radius: 5px;
            }

            /* פילטרים קטנים יותר */
            .filter-section {
                padding: 8px !important;
                border-radius: 6px !important;
            }

            .filter-section select {
                padding: 8px !important;
            }

            .filter-section button {
                padding: 8px !important;
            }

            /* עורך טקסט במובייל קטן */
            .ql-editor {
                direction: rtl !important;
                text-align: right !important;
            }

            /* תיקון רשימות במובייל */
            .ql-editor ol, .ql-editor ul {
                padding-right: 2em !important;
                padding-left: 0 !important;
            }
            
            .ql-editor ol li::before {
                right: -2em !important;
                width: 1.5em !important;
                text-align: center !important;
            }
            
            .ql-editor ul li::before {
                right: -1.5em !important;
                width: 1em !important;
                text-align: center !important;
            }
        }

        /* תמיכה בטאבלטים */
        @media (min-width: 769px) and (max-width: 1024px) {
            .items-grid {
                grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
                gap: 16px;
            }

            .item-card {
                padding: 20px;
            }

            .item-card h3 {
                font-size: 1.2em;
            }

            .item-actions {
                grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
                gap: 10px;
            }

            .header {
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
                padding: 18px;
            }

            .section-header {
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
            }

            .admin-tabs {
                flex-direction: row;
            }
        }

        /* מסכים גדולים */
        @media (min-width: 1025px) {
            .items-grid {
                grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
                gap: 20px;
            }

            .item-card {
                padding: 22px;
            }

            .item-card h3 {
                font-size: 1.3em;
            }

            .item-actions {
                grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
                gap: 12px;
            }

            .tab-content {
                padding: 30px;
            }

            .header {
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
                padding: 20px;
            }

            .section-header {
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
            }

            .btn {
                width: auto;
            }
        }

        /* Quill.js RTL תמיכה */
        .ql-editor {
            direction: rtl !important;
            text-align: right !important;
            /* הסרת text-align: right !important כדי לאפשר שינוי יישור */
        }

        /* יישור ימינה כברירת מחדל לכל פסקה חדשה */
        .ql-editor p {
            text-align: right !important;
        }

        /* יישור ימינה לכל התוכן ברירת מחדל */
        .ql-editor > * {
            text-align: right !important;
        }

        /* תמיכה בכפתורי יישור Quill - יעקוף את ברירת המחדל */
        .ql-editor .ql-align-left {
            text-align: left !important;
        }
        .ql-editor .ql-align-center {
            text-align: center !important;
        }
        .ql-editor .ql-align-right {
            text-align: right !important;
        }
        .ql-editor .ql-align-justify {
            text-align: justify !important;
        }

        /* תיקון יישור מספור ותבליטים בעורך הטקסט */
        .ql-editor ol, .ql-editor ul {
            padding-right: 2em !important;
            padding-left: 0 !important;
            margin-right: 0 !important;
            margin-left: 0 !important;
        }
        
        .ql-editor ol li, .ql-editor ul li {
            list-style: none !important;
            position: relative !important;
            padding-right: 0 !important;
            padding-left: 0 !important;
            margin-right: 0 !important;
            margin-left: 0 !important;
        }
        
        /* תיקון מיקום המספרים ברשימות מספרות */
        .ql-editor ol li::before {
            position: absolute !important;
            right: -2em !important;
            width: 1.5em !important;
            text-align: center !important;
            direction: rtl !important;
        }
        
        /* תיקון מיקום התבליטים ברשימות נקודות */
        .ql-editor ul li::before {
            position: absolute !important;
            right: -1.5em !important;
            width: 1em !important;
            text-align: center !important;
            direction: rtl !important;
        }
        
        /* תיקון רשימות עם יישור שמאל */
        .ql-editor .ql-align-left ol,
        .ql-editor .ql-align-left ul {
            padding-left: 2em !important;
            padding-right: 0 !important;
            direction: ltr !important;
        }
        
        .ql-editor .ql-align-left ol li::before {
            right: auto !important;
            left: -2em !important;
        }
        
        .ql-editor .ql-align-left ul li::before {
            right: auto !important;
            left: -1.5em !important;
        }
        
        /* תיקון רשימות עם יישור מרכז */
        .ql-editor .ql-align-center ol,
        .ql-editor .ql-align-center ul {
            padding-right: 2em !important;
            padding-left: 2em !important;
        }
        
        /* תיקון indent ברשימות RTL */
        .ql-editor .ql-indent-1:not(.ql-direction-rtl) {
            padding-left: 3em !important;
            padding-right: 0 !important;
        }
        
        .ql-editor .ql-indent-1.ql-direction-rtl,
        .ql-editor .ql-indent-1 {
            padding-right: 5em !important;
            padding-left: 0 !important;
        }
        
        /* תיקון עמקים נוספים */
        .ql-editor .ql-indent-2 {
            padding-right: 7em !important;
            padding-left: 0 !important;
        }
        
        .ql-editor .ql-indent-3 {
            padding-right: 9em !important;
            padding-left: 0 !important;
        }

        .ql-toolbar {
            border-top: 1px solid #ccc;
            border-left: 1px solid #ccc;
            border-right: 1px solid #ccc;
            border-radius: 5px 5px 0 0;
        }

        .ql-container {
            border-bottom: 1px solid #ccc;
            border-left: 1px solid #ccc;
            border-right: 1px solid #ccc;
            border-radius: 0 0 5px 5px;
        }

        /* CSS לתמונות בעורכי Quill */
        .ql-editor img {
            max-width: 100%;
            height: auto;
            display: block;
            margin: 10px auto;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            cursor: pointer;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        .ql-editor img:hover {
            transform: scale(1.02);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        /* יישור תמונות לפי classes */
        .ql-editor img.image-left {
            margin: 10px 0 10px auto !important;
            float: left !important;
            clear: left !important;
        }

        .ql-editor img.image-center {
            margin: 10px auto !important;
            display: block !important;
            float: none !important;
            clear: both !important;
        }

        .ql-editor img.image-right {
            margin: 10px auto 10px 0 !important;
            float: right !important;
            clear: right !important;
        }

        /* רוחב תמונה מותאם */
        .ql-editor img.image-small {
            max-width: 30% !important;
            width: 30% !important;
        }

        /* סרגל עיצוב טקסט לטקסטיירים */
        .text-toolbar {
            display: flex;
            gap: 5px;
            margin-top: 8px;
            padding: 8px;
            background: #f8f9fa;
            border: 1px solid #ddd;
            border-radius: 5px;
            flex-wrap: wrap;
        }

        .text-toolbar button {
            background: #fff;
            border: 1px solid #ccc;
            border-radius: 3px;
            padding: 4px 8px;
            cursor: pointer;
            font-size: 12px;
            transition: all 0.2s ease;
            min-width: 30px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .text-toolbar button:hover {
            background: #e9ecef;
            border-color: #adb5bd;
        }

        .text-toolbar button:active {
            background: #dee2e6;
            transform: translateY(1px);
        }

        .text-toolbar button[title] {
            position: relative;
        }

        .ql-editor img.image-medium {
            max-width: 60% !important;
            width: 60% !important;
        }

        .ql-editor img.image-large {
            max-width: 90% !important;
            width: 90% !important;
        }

        .ql-editor img.image-full {
            max-width: 100% !important;
            width: 100% !important;
        }

        /* עיצוב למודל עריכת תמונה */
        #image-modal .modal-content {
            animation: slideInFromTop 0.3s ease-out;
        }

        @keyframes slideInFromTop {
            from {
                transform: translateY(-50px);
                opacity: 0;
            }

            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        #image-preview {
            transition: all 0.3s ease;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        input[type="range"] {
            appearance: none;
            height: 6px;
            border-radius: 3px;
            background: linear-gradient(90deg, #667eea, #764ba2);
            outline: none;
            margin: 10px 0;
        }

        input[type="range"]::-webkit-slider-thumb {
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #667eea;
            cursor: pointer;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        input[type="range"]::-moz-range-thumb {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #667eea;
            cursor: pointer;
            border: none;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .btn.active {
            background: linear-gradient(45deg, #28a745, #20c997) !important;
            transform: scale(1.05);
        }

        /* עיצוב CKEditor */
        .ck-editor__editable {
            min-height: 300px;
            max-height: 500px;
            direction: rtl;
            text-align: right;
        }

        .ck-editor__editable table {
            border-collapse: collapse;
            margin: 10px 0;
        }

        .ck-editor__editable table td,
        .ck-editor__editable table th {
            border: 1px solid #ddd;
            padding: 8px;
        }
