/* style.css */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  color: #333;
}

header {
  background-color: #4caf50;
  color: white;
  padding: 20px;
  text-align: center;
}

main {
  padding: 20px;
}

section {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: white;
}

button {
  padding: 10px 15px;
  margin: 5px;
  border: none;
  background-color: #4caf50;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: #45a049;
}

footer {
  text-align: center;
  padding: 10px;
  background-color: #4caf50;
  color: white;
  position: fixed;
  bottom: 0;
  width: 100%;
}
/* style.css */

/* إعدادات عامة */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  background-color: #f9fafb;
  color: #333;
  line-height: 1.6;
}

/* رأس الصفحة */
header {
  background: linear-gradient(90deg, #4caf50, #43a047);
  color: white;
  text-align: center;
  padding: 20px 0;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

header p {
  font-size: 1.2rem;
}

/* الحاوية الرئيسية */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 20px auto;
}

/* الأقسام */
section {
  background: black;
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

section h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #4caf50;
}

.data-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.data-grid div {
  text-align: center;
}

.data-grid h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #555;
}

.data-grid p {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

/* الأزرار */
.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 1rem;
  color: white;
  background: #4caf50;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #45a049;
}

.btn.danger {
  background: #f44336;
}

.btn.danger:hover {
  background: #e53935;
}

/* إدخال الوقت */
input[type="time"] {
  padding: 8px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-right: 10px;
}

/* التذييل */
footer {
  background: #4caf50;
  color: white;
  text-align: center;
  padding: 10px 0;
  margin-top: 20px;
  border-top: 5px solid #43a047;
}
/* تحسين شكل التقرير */
.report ul {
  list-style-type: none;
  padding: 0;
}

.report ul li {
  margin: 10px 0;
  font-size: 1rem;
}

.report h3 {
  color: #4caf50;
  margin-bottom: 10px;
}
/* محاذاة النصوص لليمين */
body,
header,
main,
footer,
section,
h1,
h2,
h3,
p,
ul,
li,
label,
button {
  text-align: right; /* جميع النصوص تكون بمحاذاة اليمين */
  direction: rtl; /* تحديد اتجاه النصوص من اليمين إلى اليسار */
}

/* تحسين المحاذاة في التقرير */
.report ul {
  text-align: right;
  padding-right: 20px; /* مساحة إضافية من اليمين */
}

.report ul li {
  text-align: right;
}

button {
  text-align: center; /* الأزرار تبقى في الوسط لتحسين التصميم */
}
/* تحسين عرض الرسم البياني والخريطة */
.chart-map {
  text-align: right;
}

#chart-container,
#map-container {
  margin-top: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #f9f9f9;
  padding: 10px;
}

/* تحسين جدول الإحصائيات */
#stats-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  text-align: right;
}

#stats-table th,
#stats-table td {
  border: 1px solid #ddd;
  padding: 10px;
}

#stats-table th {
  background-color: #4caf50;
  color: white;
  text-align: right;
}

#stats-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.charts {
  text-align: right;
  margin-top: 30px;
}

canvas {
  display: block;
  margin: 0 auto;
}

.additional-statistics {
  text-align: right;
  margin-top: 30px;
}

canvas {
  display: block;
  margin: 0 auto;
}

/* تحسين مظهر الأيقونات */
.icon {
  margin-right: 10px;
  font-size: 1.2rem;
  color: #757575; /* اللون الرمادي */
  vertical-align: middle;
}

/* تنسيق النص تحت العنوان الرئيسي */
.sub-header {
  text-align: center;
  font-size: 1rem;
  color: #555;
  margin-top: 5px;
}

.love-message {
  text-align: center;
  font-size: 1.2rem;
  color: #333;
  margin-top: 10px;
  font-weight: bold;
}

.heart {
  color: red;
  font-size: 1.5rem;
  vertical-align: middle;
}

/* إعدادات عامة */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/* لغة عربية */
body[lang="ar"] {
  direction: rtl;
  text-align: right;
}

body[lang="ar"] table {
  direction: rtl;
}

/* لغة إنجليزية */
body[lang="en"] {
  direction: ltr;
  text-align: left;
}

body[lang="en"] table {
  direction: ltr;
}

/* تنسيق الجدول */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

table th,
table td {
  border: 1px solid #ddd;
  padding: 10px;
}

table th {
  background-color: #4caf50;
  color: white;
}

/* الأزرار الخاصة بتغيير اللغة */
.language-switcher {
  text-align: center;
  margin: 10px 0;
}

.lang-btn {
  padding: 10px 20px;
  margin: 0 5px;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  background-color: #4caf50;
  color: white;
}

.lang-btn:hover {
  background-color: #45a049;
}

/* تنسيق شريط التنقل */
nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  background-color: #4caf50;
  margin: 0;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-size: 1.2rem;
  padding: 10px 20px;
  display: inline-block;
}

nav ul li a:hover {
  background-color: #45a049;
  border-radius: 5px;
}

/* تنسيق الأقسام */
section {
  padding: 20px;
  margin: 20px auto;
  max-width: 800px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #f9f9f9;
}

section h2 {
  text-align: center;
  color: #4caf50;
  margin-bottom: 20px;
}

/* تنسيق النماذج */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

form label {
  font-size: 1rem;
  color: #333;
}

form input,
form textarea,
form button {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
}

form button {
  background-color: #4caf50;
  color: white;
  cursor: pointer;
  border: none;
}

form button:hover {
  background-color: #45a049;
}

/* تنسيق المنتجات والباقات */
.product,
.package {
  border: 1px solid #ddd;
  padding: 15px;
  margin: 10px 0;
  border-radius: 5px;
  text-align: center;
}

.product h3,
.package h3 {
  color: #4caf50;
}

.product button,
.package button {
  background-color: #4caf50;
  color: white;
  padding: 10px 20px;
  margin-top: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.product button:hover,
.package button:hover {
  background-color: #45a049;
}

/* تنسيق المنتجات */
.product {
  border: 1px solid #ddd;
  padding: 15px;
  margin: 10px 0;
  border-radius: 5px;
  text-align: center;
  background-color: #fff;
}

.product h3 {
  color: #4caf50;
  margin-top: 10px;
}

.product p {
  color: #555;
  margin: 10px 0;
  font-size: 0.9rem;
}

.product button {
  background-color: #4caf50;
  color: white;
  padding: 10px 20px;
  margin-top: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.product button:hover {
  background-color: #45a049;
}

/* تنسيق الصور */
.product-image {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 10px;
}

/* تنسيق المنتجات */
.product {
  border: 1px solid #ddd;
  padding: 15px;
  margin: 10px 0;
  border-radius: 5px;
  text-align: center;
  background-color: #fff;
}

.product h3 {
  color: #4caf50;
  margin-top: 10px;
}

.product p {
  color: #555;
  margin: 10px 0;
  font-size: 0.9rem;
}

.product button {
  background-color: #4caf50;
  color: white;
  padding: 10px 20px;
  margin-top: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.product button:hover {
  background-color: #45a049;
}

/* تنسيق الصور */
.product-image {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 10px;
}

/* تنسيق شريط التنقل */
nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  background-color: #4caf50;
  margin: 0;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-size: 1.2rem;
  padding: 10px 20px;
  display: inline-block;
}

nav ul li a:hover {
  background-color: #45a049;
  border-radius: 5px;
}

/* تنسيق الأقسام */
section {
  padding: 20px;
  margin: 20px auto;
  max-width: 800px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #f9f9f9;
}

section h2 {
  text-align: center;
  color: #4caf50;
  margin-bottom: 20px;
}

/* تنسيق النماذج */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

form label {
  font-size: 1rem;
  color: #333;
}

form input,
form textarea,
form select,
form button {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
}

form button {
  background-color: #4caf50;
  color: white;
  cursor: pointer;
  border: none;
}

form button:hover {
  background-color: #45a049;
}

/* تنسيق المقالات */
article {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #fff;
}

article h3 {
  color: #4caf50;
}

/* إعدادات عامة */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  direction: rtl; /* الاتجاه من اليمين إلى اليسار */
  text-align: right; /* المحاذاة لليمين */
}

/* تنسيق شريط التنقل */
nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  background-color: #4caf50;
  margin: 0;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-size: 1.2rem;
  padding: 10px 20px;
  display: inline-block;
  text-align: center;
}

nav ul li a:hover {
  background-color: #45a049;
  border-radius: 5px;
}

/* تنسيق الأقسام */
section {
  padding: 20px;
  margin: 20px auto;
  max-width: 800px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #f9f9f9;
}

section h2 {
  color: #4caf50;
  margin-bottom: 20px;
  font-size: 1.5rem;
  text-align: right; /* العناوين لليمين */
}

/* تنسيق النماذج */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: right; /* محتوى النماذج لليمين */
}

form label {
  font-size: 1rem;
  color: #333;
}

form input,
form textarea,
form select,
form button {
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  text-align: right; /* النصوص داخل الحقول لليمين */
}

form button {
  background-color: #4caf50;
  color: white;
  cursor: pointer;
  border: none;
  text-align: center;
}

form button:hover {
  background-color: #45a049;
}

/* تنسيق المقالات */
article {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #fff;
}

article h3 {
  color: #4caf50;
  text-align: right; /* العناوين داخل المقالات لليمين */
}

/* تنسيق الجداول */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  direction: rtl; /* الاتجاه من اليمين إلى اليسار */
}

table th,
table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: right; /* محتوى الجدول لليمين */
}

table th {
  background-color: #4caf50;
  color: white;
}

/* إعدادات عامة */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  direction: rtl; /* الاتجاه من اليمين إلى اليسار */
  text-align: right; /* المحاذاة العامة لليمين */
}

/* تنسيق شريط التنقل */
nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  background-color: #4caf50;
  margin: 0;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-size: 1.2rem;
  padding: 10px 20px;
  display: inline-block;
  text-align: center;
}

nav ul li a:hover {
  background-color: #45a049;
  border-radius: 5px;
}

/* تنسيق الأقسام العامة */
section {
  padding: 20px;
  margin: 20px auto;
  max-width: 800px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #f9f9f9;
  direction: rtl; /* الاتجاه من اليمين إلى اليسار */
  text-align: right; /* محاذاة النصوص لليمين */
}

/* تنسيق العناوين داخل الأقسام */
section h2 {
  color: #4caf50;
  margin-bottom: 20px;
  font-size: 1.5rem;
  text-align: right; /* العناوين لليمين */
}

/* تنسيق النصوص داخل الأقسام */
section p,
section ul {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
}

/* تنسيق المقالات في المدونة */
article {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #fff;
  direction: rtl; /* الاتجاه من اليمين إلى اليسار */
  text-align: right; /* المحاذاة لليمين */
}

article h3 {
  color: #4caf50;
  text-align: right; /* العناوين داخل المقالات لليمين */
}

/* تنسيق النصوص داخل المقالات */
article p {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  text-align: right; /* النصوص لليمين */
}

/* تنسيق قوائم الأسئلة الشائعة */
section#faq ul {
  list-style: disc inside;
  margin-top: 10px;
}

section#faq ul li {
  margin-bottom: 10px;
}

/* تنسيق لوحة التحكم */
section#dashboard ul {
  list-style: square inside;
  margin-top: 10px;
}

section#dashboard ul li {
  margin-bottom: 10px;
}

/* تنسيق صفحة الإشعارات */
section#notifications p {
  font-size: 1.1rem;
  color: #555;
  text-align: right; /* النصوص داخل الإشعارات لليمين */
}

/* تنسيق الجداول */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  direction: rtl; /* الاتجاه من اليمين إلى اليسار */
}

table th,
table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: right; /* محتوى الجدول لليمين */
}

table th {
  background-color: #4caf50;
  color: white;
}

/* تنسيق شريط التنقل */
nav {
  background-color: #4caf50;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px; /* مسافة بين الأيقونات */
}

nav ul li {
  margin: 0;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-size: 1.2rem;
  padding: 10px;
  border-radius: 50%; /* يجعل الأيقونة دائرية */
  background-color: #45a049;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

nav ul li a:hover {
  background-color: #388e3c;
  transform: scale(1.1); /* تأثير تكبير عند التمرير */
}

/* تنسيق الأيقونات داخل شريط التنقل */
nav ul li a .icon {
  font-size: 1.5rem;
  margin: 0; /* لإزالة أي مسافات إضافية */
}

/* تنسيق المنتجات */
.product {
  border: 1px solid #ddd;
  padding: 15px;
  margin: 10px 0;
  border-radius: 5px;
  text-align: center;
  background-color: #fff;
}

.product h3 {
  color: #4caf50;
  margin-top: 10px;
}

.product p {
  color: #555;
  margin: 10px 0;
  font-size: 0.9rem;
}

.product button {
  background-color: #4caf50;
  color: white;
  padding: 10px 20px;
  margin-top: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.product button:hover {
  background-color: #45a049;
}

/* تنسيق الأيقونات داخل المنتجات */
.product .icon {
  font-size: 3rem;
  color: #4caf50;
  margin-bottom: 10px;
  display: block;
}

/* تنسيق الباقات */
.package {
  border: 1px solid #ddd;
  padding: 15px;
  margin: 10px 0;
  border-radius: 5px;
  text-align: center;
  background-color: #fff;
}

.package h3 {
  color: #4caf50;
  margin-top: 10px;
}

.package p {
  color: #555;
  margin: 10px 0;
  font-size: 0.9rem;
}

.package button {
  background-color: #4caf50;
  color: white;
  padding: 10px 20px;
  margin-top: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.package button:hover {
  background-color: #45a049;
}

/* تنسيق الأيقونات داخل الباقات */
.package .icon {
  font-size: 3rem;
  color: #fbc02d; /* اللون الذهبي */
  margin-bottom: 10px;
  display: block;
}
.package:nth-child(2) .icon {
  color: #c0c0c0; /* اللون الفضي */
}
.package:nth-child(3) .icon {
  color: #cd7f32; /* اللون البرونزي */
}

/* الأسئلة الشائعة */
#faq {
  padding: 20px;
  margin: 20px auto;
  max-width: 800px;
  background-color: #f9f9f9;
  border-radius: 10px;
  border: 1px solid #ddd;
}

#faq h2 {
  text-align: right;
  color: #4caf50;
  margin-bottom: 20px;
}

.faq-item {
  margin-bottom: 10px;
  cursor: pointer;
}

.faq-question {
  font-size: 1.1rem;
  background-color: #4caf50;
  color: white;
  padding: 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #388e3c;
}

.faq-answer {
  display: none;
  font-size: 0.9rem;
  margin-top: 5px;
  padding: 10px;
  background-color: #fff;
  border-radius: 5px;
  border: 1px solid #ddd;
}

/* شريط التنقل */
nav {
  background-color: #4caf50;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

nav ul li {
  margin: 0;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-size: 0.9rem;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  background-color: #388e3c;
  width: 100px;
  height: 60px;
}

nav ul li a:hover {
  background-color: #2e7d32;
  transform: scale(1.1);
}

nav ul li a .icon {
  font-size: 1.5rem;
}

nav ul li a span {
  display: none; /* إخفاء النص لإظهار الأيقونة فقط */
}

@media (min-width: 768px) {
  nav ul li a span {
    display: inline; /* إظهار النص بجانب الأيقونة للشاشات الأكبر */
  }
}

/* تنسيق الفوتر */
footer {
  background-color: #4caf50;
  color: white;
  text-align: center;
  padding: 10px 0;
  font-size: 0.9rem;
  position: relative;
  bottom: 0;
  width: 100%;
}

footer p {
  margin: 0;
}

footer .copyright {
  font-size: 1rem;
  margin-left: 5px;
  vertical-align: middle;
}

/* شريط التنقل */
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  background-color: #4caf50;
  padding: 10px;
}

nav ul li {
  margin: 0 10px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-size: 1rem;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

nav ul li a:hover {
  background-color: #388e3c;
}

/* الإعدادات */
#settings label {
  display: block;
  margin: 10px 0;
}

#settings button,
#settings input {
  margin: 5px 0;
}

/* المنتجات */
.product {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #ddd;
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
}

/* آلة حاسبة */
#calculator form {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

#calc-result {
  font-size: 1.2rem;
  color: #4caf50;
}

/* الفوتر */
footer {
  text-align: center;
  background-color: #4caf50;
  color: white;
  padding: 10px 0;
}

/* حاوية الرسم البياني */
#chart-container {
  width: 100%;
  height: 400px;
  margin-bottom: 20px;
}

/* حاوية الخريطة */
#map-container {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%; /* نسبة عرض إلى ارتفاع 16:9 */
  height: 0;
}

#map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid #ddd; /* إضافة حد لتحسين العرض */
  border-radius: 8px; /* جعل الزوايا مستديرة */
}

/* تحسين المظهر على الأجهزة الصغيرة */
@media (max-width: 768px) {
  #chart-container,
  #map-container {
    height: auto; /* جعلها تأخذ الحجم الطبيعي */
  }
}
/* حاوية الرسم البياني */
#chart-container {
  width: 100%;
  height: 400px;
  margin-bottom: 20px;
}

/* حاوية الخريطة */
#map-container {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%; /* نسبة عرض إلى ارتفاع 16:9 */
  height: 0;
}

#map {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid #ddd; /* إضافة حد لتحسين العرض */
  border-radius: 8px; /* جعل الزوايا مستديرة */
}

/* تحسين المظهر على الأجهزة الصغيرة */
@media (max-width: 768px) {
  #chart-container,
  #map-container {
    height: auto; /* جعلها تأخذ الحجم الطبيعي */
  }
}
