
 
        
         h2 {
            text-align: center;
            margin-bottom: 30px;
        }
        .input-section, .output-section {
            padding: 20px;
        }
        /* بداية الأنماط الجديدة والمعدلة للقائمة المنسدلة وحقول الإدخال */
        .code-editor-container { /* استبدال .input-fields بهذا الاسم لتجنب التعارض */
            margin-bottom: 20px;
        }

        .code-editor-container label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
        }

        .code-editor-container select {
            width: 100%;
            padding: 10px;
            margin-bottom: 20px;
            border-radius: 6px;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%204%205%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M2%200L0%202h4zm0%205L0%203h4z%22%2F%3E%3C%2Fsvg%3E');
            background-repeat: no-repeat;
            background-position: left 15px center; /* السهم لليسار في RTL */
            background-size: 8px 10px;
            cursor: pointer;
            text-align: right; /* لمحاذاة النص داخل السيلكت في RTL */
            padding-right: 30px; /* لترك مسافة للسهم */

        }

        .input-field-container {
            margin-top: 15px; /* مسافة بين الـ select والحقل الظاهر */
            transition: opacity 0.3s ease, height 0.3s ease;
            overflow: hidden; /* لإخفاء المحتوى عند تقلص الارتفاع */
        }

        .input-field-container.hidden {
            opacity: 0;
            height: 0;
            margin-top: 0; /* إزالة المسافة عند الإخفاء */
            pointer-events: none; /* لمنع التفاعل مع العناصر المخفية */
        }
        /* نهاية الأنماط الجديدة والمعدلة */

        textarea {
            width: 100%;
            height: 180px;
            padding: 12px;
            border-radius: 6px;
            font-family: 'Consolas', 'Monaco', monospace;
            resize: vertical;
            box-sizing: border-box;
        }
        textarea:focus {
            outline: none;
        }

        .output-section pre {
            padding: 20px;
            border-radius: 5px;
            overflow-x: auto;
            font-size: 0.95em;
        }

        .copy-message {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            background-color: #28a745;
            color: white;
            padding: 12px 25px;
            border-radius: 8px;
            font-size: 1.1em;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
            z-index: 1000;
        }
        .copy-message.show {
            opacity: 1;
            visibility: visible;
        }
       .language-html {
         direction: ltr; /* لضمان عرض الأكواد من اليسار لليمين */
}
    .clear-fields-button {
    transition: background-color 0.3s ease;
    }

    .clear-fields-button:hover {
    background-color: #c82333;
    }

.copy-output-button::before {
  content:"نسخ الكود";
  font-family: "cairo";
  position: absolute;
  top: 47px;
  right:-20px;
  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-button:hover:before {
    padding: 5px;
    opacity: 1;
    visibility: visible;
    font-size: 12px;
}
.copy-output-button:active {
  width: 28px;
}
.copy-output-button:active::before {
  top: 57px;
}
