:root {
        --accent-color: #2f2f2f;
        --header-height: 60px;
        --bg-color: #111;
        --card-bg: #1e1e1e;
        --success-color: #10b981;
        --warning-color: #f59e0b;
        --error-color: #ef4444;
        --info-color: #3b82f6;
        --editor-bg: #000000;
    }

    

    
    @keyframes rotate {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    
    .feature-icon {
        font-size: 48px;
        margin-bottom: 15px;
        position: relative;
        z-index: 2;
        animation: float 3s ease-in-out infinite;
    }
    
    @keyframes float {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-10px); }
    }
    
    .feature-title {
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 10px;
        position: relative;
        z-index: 2;
    }
    
    .feature-description {
        font-size: 14px;
        margin-bottom: 15px;
        position: relative;
        z-index: 2;
        line-height: 1.5;
    }
    
    .feature-button {
        background: rgba(255,255,255,0.2);
        border: 2px solid rgba(255,255,255,0.5);
        color: white;
        padding: 8px 20px;
        border-radius: 25px;
        text-decoration: none;
        font-size: 14px;
        transition: all 0.3s ease;
        position: relative;
        z-index: 2;
        display: inline-block;
    }
    
    .feature-button:hover {
        background: rgba(255,255,255,0.3);
        transform: translateY(-2px);
    }
    
    .sidebar::-webkit-scrollbar {
        width: 6px;
    }
    
    .sidebar::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }
    
    .sidebar::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 10px;
    }
    
    .sidebar::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.3);
    }
    
    .sidebar-title {
        font-size: 18px;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: #000000;
        font-weight: bold;
    }
    
    .sidebar-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .sidebar-list li {
        margin-bottom: 10px;
        background-color: var(--card-bg);
        border-radius: 2px;
        overflow: hidden;
        transition: transform 0.2s ease;
    }
    
    .sidebar-list li:hover {
        transform: translateX(-3px);
    }
    
    .sidebar-list a {
        display: block;
        padding: 12px 15px;
        
        text-decoration: none;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .sidebar-list a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        padding-right: 20px;
    }
    
    .sidebar-list a::before {
        content: "›";
        position: absolute;
        left: 15px;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .sidebar-list a:hover::before {
        opacity: 1;
    }
    
    .main-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 20px;
        min-width: 0;
    }
    
    footer {
        position: relative !important;
        z-index: 50 !important;
        margin-top: auto;
        background-color: var(--footer-bg);
        padding: 20px 0;
        width: 100%;
    }
    
.publish-container {
    background-color: #1e1e1e0d;
    border-radius: 0px;
     padding: 5px; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}
    
    .section-title {
        font-size: 23px;
        margin-bottom: 20px;
        
        display: flex;
        align-items: center;
        gap: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 16px;
}
    
.form-control {
    width: 100%;
    padding: 12px 15px;
    background-color: #ffb300;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    color: #fff;
}
    
    .form-control:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(239, 117, 64, 0.1);
    }
    
    .form-control::placeholder {
        color: rgba(255, 255, 255, 0.5);
    }
    
    .publish-options {
        background-color: rgba(0, 0, 0, 0.3);
        border-radius: 8px;
        padding: 20px;
        margin-bottom: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .publish-options-title {
        font-size: 18px;
        
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .options-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }
    
.option-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background-color: rgb(32 32 32 / 97%);
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}
    
    .option-item:hover {
    background-color: rgb(32 32 32 / 97%);
        transform: translateY(-2px);
    }
    
    .option-item input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
    }
    
    .option-icon {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        color: white;
    }
    
    .option-icon.telegram {
        background: linear-gradient(135deg, #0088cc, #24a1dd);
    }
    
    .option-icon.facebook {
        background: linear-gradient(135deg, #1877f2, #3b5998);
    }
    
    .option-icon.google {
        background: linear-gradient(135deg, #4285f4, #34a853);
    }
    
    .option-text {
        flex: 1;
    }
    
    .option-title {
        font-weight: 600;
        
        margin-bottom: 3px;
    }
    
    .option-desc {
        font-size: 13px;
        color: var(--text-secondary);
    }
    
    .publish-actions {
        display: flex;
        gap: 15px;
        margin-top: 30px;
        flex-wrap: wrap;
    }
    
    .publish-btn {
        flex: 1;
        min-width: 200px;
        padding: 15px 25px;
        border: none;
        border-radius: 8px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        transition: all 0.3s ease;
    }
    
    .publish-btn.primary {
        background: linear-gradient(135deg, var(--primary-color), #d84315);
        color: white;
    }
    
    .publish-btn.primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(239, 117, 64, 0.3);
    }
    
.publish-btn.secondary {
    background-color: rgb(179 179 179 / 98%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
    
    .publish-btn.secondary:hover {
    background-color: rgb(179 179 179 / 98%);
        transform: translateY(-2px);
    }
    
    .image-preview-container {
        margin-bottom: 20px;
    }
    
.image-preview {
    width: 100%;
    max-width: 400px;
    height: 200px;
    background-color: #d9d9d9;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 10px;
    position: relative;
    border: 2px dashed rgba(255, 255, 255, 0.2);
}
    
    .image-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .image-preview-placeholder {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--text-secondary);
        text-align: center;
        padding: 20px;
    }
    
    .image-preview-placeholder i {
        font-size: 48px;
        margin-bottom: 15px;
        opacity: 0.5;
    }
    
    .text-stats {
        display: flex;
        gap: 15px;
        margin-top: 10px;
        flex-wrap: wrap;
    }
    
.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #ffffff;
    padding: 5px 10px;
    background-color: rgb(255 186 0);
    border-radius: 4px;
}
    
    .stat-item.good {
        color: var(--success-color);
    }
    
.stat-item.warning {
    color: #ffffff;
}
    
.upload-area {
    border: 2px dashed rgb(255 186 0);
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}
    
    .upload-area:hover {
        border-color: var(--primary-color);
        background-color: rgba(239, 117, 64, 0.05);
    }
    
    .upload-area.dragover {
        border-color: var(--success-color);
        background-color: rgba(16, 185, 129, 0.1);
        transform: scale(1.02);
    }
    
    .upload-icon {
        font-size: 48px;
        margin-bottom: 15px;
        color: var(--primary-color);
    }
    
.upload-text {
    font-size: 16px;
    margin-bottom: 10px;
}
    
    .upload-hint {
        font-size: 14px;
        color: var(--text-secondary);
        margin-bottom: 15px;
    }
    
    .upload-btn {
        display: inline-block;
        padding: 10px 20px;
        background-color: var(--primary-color);
        color: white;
        border-radius: 6px;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    .upload-btn:hover {
        background-color: #d84315;
        transform: translateY(-2px);
    }
    
    .loading-indicator {
        display: none;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        padding: 40px;
        text-align: center;
    }
    
    .loading-spinner {
        width: 50px;
        height: 50px;
        border: 4px solid rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        border-top-color: var(--primary-color);
        animation: spin 1s linear infinite;
        margin-bottom: 20px;
    }
    
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    
.result-container {
    display: none;
    background-color: rgb(215 215 215 / 30%);
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
    border-left: 4px solid var(--success-color);
}
    
    .result-container.error {
        border-left-color: var(--error-color);
    }
    
    .result-title {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 15px;
        
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .result-details {
        font-size: 14px;
        color: var(--text-secondary);
        line-height: 1.6;
    }
    
    .result-link {
        display: inline-block;
        margin-top: 15px;
        padding: 10px 20px;
        background-color: var(--primary-color);
        color: white;
        border-radius: 6px;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    .result-link:hover {
        background-color: #d84315;
        transform: translateY(-2px);
    }
    
.tox-tinymce {
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    background-color: #ffffff !important; /* خلفية فاتحة */
}

.tox .tox-toolbar,
.tox .tox-toolbar__primary,
.tox .tox-toolbar__overflow {
    background-color: #f5f5f5 !important; /* شريط أدوات فاتح */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.tox .tox-tbtn {
    color: #333 !important;
    fill: #333 !important;
}

.tox .tox-tbtn:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

.tox .tox-tbtn--enabled {
    background-color: rgba(0, 110, 255, 0.15) !important; /* لون زر نشط */
    color: #006eff !important;
}

.tox .tox-edit-area {
    background-color: #ffffff !important; /* منطقة التحرير فاتحة */
}

.tox .tox-edit-area__iframe {
    background-color: #ffffff !important; /* داخل iframe */
}

    
    .tabaddsadd {
        display: flex;
        gap: 5px;
        margin-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 0;
    }
    
.tabadd {
    padding: 12px 25px;
    background-color: #dbdbdbe6;
    border: none;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 6px 6px 0 0;
}
    
    .tabadd:hover {
        
    background-color: #060606e6;
    }
    
.tabadd.active {
   background-color: rgb(211 211 211 / 55%);
}
    
    .tabadd.active::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 0;
        right: 0;
        height: 3px;
        background-color: var(--primary-color);
        border-radius: 2px 2px 0 0;
    }
    
    .tabadd-content {
        display: none;
    }
    
    .tabadd-content.active {
        display: block;
        animation: fadeIn 0.5s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .word-count-warning {
        color: var(--warning-color);
        font-weight: 600;
    }
    
    .word-count-success {
        color: var(--success-color);
        font-weight: 600;
    }
    
    .tooltip {
        position: relative;
        display: inline-block;
    }
    
    .tooltip .tooltip-text {
        visibility: hidden;
        width: 200px;
        background-color: #333;
        color: #fff;
        text-align: center;
        border-radius: 6px;
        padding: 10px;
        position: absolute;
        z-index: 1000;
        bottom: 125%;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0;
        transition: opacity 0.3s;
        font-size: 13px;
    }
    
    .tooltip:hover .tooltip-text {
        visibility: visible;
        opacity: 1;
    }
    
    @keyframes pulse {
        0% { transform: scale(1); }
        50% { transform: scale(1.05); }
        100% { transform: scale(1); }
    }
    
    .pulse-animation {
        animation: pulse 2s infinite;
    }
    
    @media (max-width: 1024px) {
        .sidebar-container {
            width: 220px;
        }
        
        .sidebar {
            width: 220px;
        }
    }
    
    @media (max-width: 768px) {
        .main-content-wrapper {
            flex-direction: column;
        }
        
        .sidebar-container {
            width: 100%;
            position: static;
            height: auto;
            order: 2;
        }
        
        .sidebar {
            position: static;
            width: 100%;
            max-height: none;
            margin-bottom: 20px;
        }
        
        .sidebar-icon {
            display: none;
        }
        
        .main-content {
            order: 1;
        }
        
        .options-grid {
            grid-template-columns: 1fr;
        }
        
        .publish-actions {
            flex-direction: column;
        }
        
        .publish-btn {
            min-width: 100%;
        }
        
        .tabaddsadd {
            flex-wrap: wrap;
        }
        
        .tabadd {
            flex: 1;
            text-align: center;
            padding: 10px 15px;
        }
    }
    
    @media (max-width: 480px) {
        .publish-container {
            padding: 15px;
        }
        
        .section-title {
            font-size: 20px;
        }
        
        .text-stats {
            flex-direction: column;
            gap: 10px;
        }
        
        .stat-item {
            width: 100%;
            justify-content: center;
        }
    }
    
    @media (max-height: 700px) {
        .sidebar {
            max-height: calc(100vh - 200px);
        }
    }
    
    @media (max-height: 600px) {
        .sidebar {
            max-height: calc(100vh - 180px);
        }
        
        .sidebar-list li {
            margin-bottom: 8px;
        }
        
        .sidebar-list a {
            padding: 8px 12px;
        }
    }
    
    .editor-container {
        min-height: 400px;
        margin-bottom: 20px;
    }
    
    .quick-actions {
        display: flex;
        gap: 10px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }
    
.quick-action-btn {
    padding: 8px 15px;
    background-color: rgb(255 239 211);
    border: 1px solid rgb(183 180 180 / 94%);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}
    
    .quick-action-btn:hover {
    background-color: rgb(52 47 58);
        transform: translateY(-2px);
    }
    
    .quick-action-btn.active {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }
    
    .editor-tools {
        display: flex;
        gap: 10px;
        margin-bottom: 10px;
        flex-wrap: wrap;
    }
    
.editor-tool-btn {
    padding: 6px 12px;
    background-color: rgb(255 239 211);
    border: 1px solid rgb(183 180 180 / 94%);
    
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}
    
    .editor-tool-btn:hover {
    background-color: rgb(203 203 203);
    }
    
    .article-category {
        margin-bottom: 20px;
    }
    
    .category-select {
        width: 100%;
        padding: 12px 15px;
        background-color: #d7d7d7;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 6px;
        
        font-size: 15px;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: left 15px center;
        background-size: 12px;
        padding-left: 40px;
    }
    
    .progress-bar {
        width: 100%;
        height: 8px;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        overflow: hidden;
        margin-top: 5px;
    }
    
    .progress-fill {
        height: 100%;
        background: linear-gradient(90deg, var(--primary-color), #d84315);
        border-radius: 4px;
        transition: width 0.3s ease;
    }
    
    .color-palette {
        display: flex;
        gap: 5px;
        margin-top: 10px;
        flex-wrap: wrap;
    }
    
    .color-item {
        width: 30px;
        height: 30px;
        border-radius: 4px;
        cursor: pointer;
        border: 2px solid transparent;
        transition: all 0.3s ease;
    }
    
    .color-item:hover {
        transform: scale(1.1);
        border-color: white;
    }
    
    .color-item.active {
        border-color: var(--primary-color);
        transform: scale(1.1);
    }