/* --------- صفحة الداشبورد الرئيسية --------- */
body.page-template-template-masjid-dashboard {
  background: #f3f4f6;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.dashboard-container {
    padding-top: 150px;
    padding-bottom: 150px;
}
/* --------- الشريط الجانبي --------- */
.dashboard-sidebar {
  width: 250px;
  background-color: #1f2937;
  padding: 30px 20px;
  color: #fff;
  position: sticky;
  top: 100px;
  height: 80vh;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.03);
}

.dashboard-sidebar h3 {
  font-size: 20px;
  color: #f1f5f9;
  margin-bottom: 30px;
  text-align: center;
}

.dashboard-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dashboard-sidebar ul li {
  margin-bottom: 15px;
}

.dashboard-sidebar ul li a {
  color: #cbd5e1;
  display: block;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 15px;
  transition: 0.3s;
}

.dashboard-sidebar ul li a.active,
.dashboard-sidebar ul li a:hover {
  background-color: #3b82f6;
  color: #fff;
}

/* --------- محتوى الداشبورد --------- */
.dashboard-content {
  flex: 1;
  padding: 50px;
  background-color: #f9fafb;
}

.dashboard-content h2 {
  font-size: 28px;
  font-weight: bold;
  color: #1e293b;
  margin-bottom: 30px;
}


.acf-field {
  margin-bottom: 25px;
}


.acf-field input[type="text"],
.acf-field input[type="email"],
.acf-field input[type="number"],
.acf-field input[type="url"],
.acf-field input[type="date"],
.acf-field textarea,
.acf-field select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: #fff;
  font-size: 14px;
  transition: all 0.2s;
}

.acf-field input:focus,
.acf-field textarea:focus,
.acf-field select:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

/* --------- زر الحفظ --------- */
.acf-form input[type="submit"] {
  background-color: #3b82f6;
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.acf-form input[type="submit"]:hover {
  background-color: #2563eb;
}

/* --------- الحقول المكررة (repeater) --------- */
.acf-repeater .acf-row {
  border: 1px solid #e5e7eb;
  padding: 20px;
  border-radius: 10px;
  background-color: #f9fafb;
  margin-bottom: 20px;
}

/* --------- استجابة الشاشات الصغيرة --------- */
@media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
  }

  .dashboard-sidebar {
    width: 100%;
    height: auto;
    margin-bottom: 30px;
  }

  .dashboard-content {
    padding: 30px 20px;
  }

  .acf-form-fields {
    padding: 20px;
  }
}


/* ✅ التشيك بوكس بجانب الليبل */
.acf-input ul.acf-checkbox-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.acf-input ul.acf-checkbox-list li input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #3b82f6;
}

/* ✅ أزرار Add Row */
.acf-button.button.add-row {
  background-color: #facc15;
  color: #1e293b;
  font-weight: bold;
  border-radius: 5px;
  padding: 5px 15px;
  margin-top: 10px;
  border: none;
  transition: 0.2s;
}

.acf-button.button.add-row:hover {
  background-color: #eab308;
  color: #000;
}

/* ✅ زر حفظ Sticky */
.acf-form .acf-form-submit {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 15px 0;
  z-index: 10;
  border-top: 1px solid #e5e7eb;
  text-align: right;
}

.acf-form .acf-form-submit input[type="submit"] {
  font-size: 16px;
  font-weight: 600;
  background-color: #10b981;
  color: #fff;
  padding: 12px 28px;
  border: none;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: 0.3s;
  width: max-content;
}

.acf-form .acf-form-submit input[type="submit"]:hover {
  background-color: #059669;
}

/* ✅ تحسين ترتيب الحقول وتوحيد الشكل */

.acf-field input[type="text"],
.acf-field input[type="email"],
.acf-field input[type="url"],
.acf-field input[type="number"],
.acf-field textarea,
.acf-field select {
  padding: 10px 14px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background-color: #fff;
  transition: border 0.3s;
}

.acf-field input:focus,
.acf-field textarea:focus,
.acf-field select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
  outline: none;
}

/* Tabs Navigation */
.dashboard-tabs-nav {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  border-bottom: 2px solid #e5e7eb;
}

.tab-button {
  background: none;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.tab-button.active {
  color: #1f2937;
  border-color: #3b82f6;
  background-color: #f1f5f9;
  border-radius: 8px 8px 0 0;
}

/* Tabs Content */
.dashboard-tabs-content .tab-pane {
  display: none;
}

.dashboard-tabs-content .tab-pane.active {
  display: block;
}
.acf-form-fields > .acf-field > .acf-label label {
    font-weight: 500 !important;
    border-left: 4px solid var(--orange-bg);
    padding-left: 10px !important;
    font-size: 22px;
    margin-bottom: 15px !important;
}

.acf-field {
    margin: 40px 0 0 0 !important;
}


/* Lessons */
.lessons-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.button-add-lesson {
  background-color: #3b82f6;
  color: #fff;
  padding: 10px 18px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.lesson-cards {
  list-style: none;
  padding: 0;
}

.lesson-card {
  background: #fff;
  padding: 15px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lesson-actions a {
  margin-left: 10px;
  color: #2563eb;
  text-decoration: none;
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  width: 90%;
  max-width: 700px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 26px;
  font-weight: bold;
  color: #000;
  cursor: pointer;
}
.lesson-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lesson-modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  width: 80%;
  max-width: 700px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 22px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

.tab-button:hover {
    border-color: #ccc #bbb #aaa;
}
.lesson-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.lesson-modal-content {
  background: #fff;
  padding: 2rem;
  width: 90%;
  max-width: 700px;
  border-radius: 10px;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.25);
  position: relative;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  font-size: 20px;
}

.button-add-lesson {
  padding: 10px 20px;
  background: #2a66ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.button-add-lesson:hover {
  background: #1e4cc9;
}
.category-tabs {
  margin-top: 40px;
}
.tabs-nav {
  display: flex;
  gap: 10px;
  list-style: none;
  margin-bottom: 20px;
  padding: 0;
}
.tab-nav-item {
  padding: 8px 16px;
  background-color: #f5f5f5;
  border-radius: 4px;
  cursor: pointer;
}
.tab-nav-item.active {
  background-color: #0073aa;
  color: white;
}
.tabs-content .tab-content-item {
  display: none;
}
.tabs-content .tab-content-item.active {
  display: block;
}

