



/* التعديل هنا: تطبيق الأنماط على sulaiman-wrapper الذي أصبح الحاوية المرئية */
.sulaiman-wrapper {
    padding: 10px;
    border-radius: 8px;
    outline: none; /* إزالة الحدود عند التركيز */
    overflow-y: auto; /* لجعل المحرر قابلاً للتمرير إذا زاد المحتوى */
}

/* التعديل هنا: تطبيق هذه الأنماط على وسم <p> نفسه */
.editor-s {
    line-height: 1.6;
    /* إزالة الحدود والخلفية والحد الأدنى للارتفاع لأنهما الآن على sulaiman-wrapper */
    height: 180px; /* اجعل الفقرة تأخذ كامل ارتفاع الحاوية */
    box-sizing: border-box; /* لضمان أن البادينغ لا يتسبب في تجاوز الحجم */
    outline: none;
    margin: 0px !important;
}

/* Placeholder for contenteditable p */
/* تم تعديل محدد الـ CSS ليعمل على <p> بدلاً من <div> */
.sulaiman:empty::before {
    content: attr(data-placeholder);
    color: #aaa;
}

.editor-controls {
    margin-bottom: 20px;
    justify-content: center;
    border-bottom: 1px solid #ffffff5d;
    padding-bottom: 15px;
}

.color-palette {
    margin-bottom: 15px;
}

.color-btn:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
/* كلاس الخط العريض */
.font-bold {
    font-weight: 700;
}

/* كلاس الخط المائل */
.font-italic {
    font-style: italic;
}

/* كلاس التسطير الجديد */
.text-underline {
    border-bottom: 2px solid red;
    padding-bottom: 3px;
}

/* نمط أزرار التنسيق العامة */
.format-btn {
    font-family: "cairo";
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.2s ease, transform 0.2s ease;
    min-width: 40px;
}

.format-btn:hover {
    transform: translateY(-2px);
}

.format-btn.active {
    background-color: #27ae60;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}


/* قسم معاينة الكود */


#codeOutput {
    white-space: pre-wrap; /* للحفاظ على تنسيق المسافات والأسطر الجديدة */
    word-wrap: break-word; /* لكسر الكلمات الطويلة */
    font-family: 'Fira Code', 'Cascadia Code', monospace; /* خط أحادي المسافة للكود */
    font-size: 0.95em;
    padding-bottom: 15px;
    border-bottom: 1px dashed #444;
    margin-bottom: 15px;
}

/* أنماط الإشعار الجديد */
.notification {
    position: fixed; /* لتثبيت الإشعار في مكانه حتى مع التمرير */
    top: 20px; /* المسافة من أعلى الصفحة */
    left: 50%; /* لتوسيط الإشعار أفقيًا */
    transform: translateX(-50%); /* إزاحة لليسار بنصف عرض العنصر لتوسيعه تمامًا */
    background-color: #2ecc71; /* لون خلفية جذاب (أخضر للنجاح) */
    color: white; /* لون النص */
    padding: 12px 25px; /* مسافات داخلية */
    border-radius: 8px; /* حواف دائرية */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* ظل لجعلها بارزة */
    z-index: 1000; /* للتأكد من أنها تظهر فوق جميع العناصر الأخرى */
    opacity: 0; /* مخفي افتراضيًا */
    visibility: hidden; /* مخفي افتراضيًا */
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out; /* انتقال سلس للظهور والاختفاء */
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    min-width: 200px; /* لتحديد عرض أدنى للإشعار */
}

.notification.show {
    opacity: 1; /* إظهار الإشعار */
    visibility: visible; /* إظهار الإشعار */
}
#clearContentBtn {
    transition: all 0.3s ease-in-out;
}
.copy-output-button2::before {
  content:"نسخ الكود";
  font-family: "cairo";
  position: absolute;
  top: 47px;
  left:-21px;
  width: 70px;
  color: white;
  background-color: #666666;
  border-radius: 5px;
  font-size: 7px;
  opacity: 0;
  visibility: hidden;
  z-index: 99;
  transition: all 200ms ease-in-out;
}
.copy-output-button2:hover:before {
    padding: 5px;
    opacity: 1;
    visibility: visible;
    font-size: 12px;
}
.copy-output-button2:active {
  width: 28px;
}
.copy-output-button2:active::before {
  top: 57px;
}