/* reset بسيط */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* خلفية كاملة بتدرّج أزرق */
body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7fb7ff, #a98fff);
}

/* حاوية الكرت */
.auth-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 24px;
}

/* الكرت الأساسي */
.auth-card {
    background-color: #ffffff;
    border-radius: 26px;
    padding: 32px 30px 26px;
    box-shadow: 0 18px 40px rgba(19, 41, 104, 0.18);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* الشعار */
.card-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.card-logo img {
    height: 60px;
    object-fit: contain;
}

/* عنوان صفحة التسجيل */
.card-title {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
    color: #1c2340;
}

.portal-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111827;
}
/* الليبلز */
label {
    font-size: 13px;
    color: #222b45;
    margin-top: 6px;
}

/* المدخلات */
input,
select {
    width: 100%;
    margin-top: 4px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #d7dce8;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    background-color: #f8f9fd;
}

input:focus,
select:focus {
    border-color: #2f59ff;
    box-shadow: 0 0 0 1px rgba(47, 89, 255, 0.15);
    background-color: #ffffff;
}

/* زر أساسي */
.primary-btn {
    width: 100%;
    margin-top: 16px;
    padding: 10px 12px;
    border-radius: 999px;
    border: none;
    background: #2041ff;
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}

.primary-btn:hover {
    background: #1632d1;
    box-shadow: 0 10px 22px rgba(20, 40, 160, 0.35);
    transform: translateY(-1px);
}

.primary-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* النص تحت الأزرار */
.switch-text {
    margin-top: 10px;
    font-size: 13px;
    text-align: center;
    color: #555b78;
}

/* زر لينك نصي */
.link-btn {
    background: none;
    border: none;
    padding: 0;
    margin-left: 4px;
    font-size: 13px;
    color: #1d3bff;
    cursor: pointer;
    font-weight: 600;
}

/* رسائل الخطأ/النجاح */
.message {
    margin-top: 6px;
    font-size: 13px;
    min-height: 16px;
    text-align: center;
    color: #d33b3b;
}

.message.success {
    color: #1f9c4b;
}

/* إخفاء كرت التسجيل */
.hidden {
    display: none;
}

/* استجابة للجوال */
@media (max-width: 480px) {
    .auth-wrapper {
        padding: 16px;
    }

    .auth-card {
        padding: 24px 20px 20px;
        border-radius: 20px;
    }

    .card-logo img {
        height: 52px;
    }
}

/* ===========================
   Sectors page (projects.html)
   =========================== */

.sectors-wrapper {
  min-height: 100vh;
  padding: 40px 16px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  background: linear-gradient(135deg, #7fb7ff, #a98fff);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* الهيدر اللي فوق الكروت */
.sectors-header-top {
  text-align: center;
  margin-bottom: 32px;
}

.sectors-logo-big {
  height: 60px;
  margin-bottom: 10px;
}

.sectors-title {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px;
}

.sectors-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: #1f2937;
  text-align: center !important;
  font-style: normal !important;
}

/* شبكة الكروت */
.sectors-grid {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .sectors-grid {
    grid-template-columns: 1fr;
  }
}
  

/* الكرت نفسه */
.sector-card {
  background: #f9fafb;
  border-radius: 24px;
  padding: 18px 18px 20px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  border: 3px solid transparent;
  display: flex;
  flex-direction: column;
}

/* المستطيل العلوي الملون */
.sector-image {
  border-radius: 18px;
  height: 80px;
  margin-bottom: 14px;
}

/* محتوى الكرت */
.sector-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sector-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.sector-summary {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #4b5563;
  margin: 0 0 12px;
}

.sector-link {
  align-self: flex-start;
  display: inline-flex;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: #1d4ed8;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.sector-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.35);
  opacity: 0.95;
}

/* =========================================
   ألوان الكروت (الأسماء يجب أن تطابق الـ HTML)
   ========================================= */

.sector-card--blue {
  border-color: #ffee00ce;
}
.sector-card--blue .sector-image {
  background: #ffee00ce;
}

.sector-card--green {
  border-color: #22c55e;
}
.sector-card--green .sector-image {
  background: #22c55e;
}

.sector-card--orange {
  border-color: #1d2eff;
}
.sector-card--orange .sector-image {
  background: #1d2eff;
}

.sector-card--purple {
  border-color: #f97316;
}
.sector-card--purple .sector-image {
  background: #f97316;
}

/* الكرت الكحلي (المستقبل) */
.sector-card--blue2 {
  border-color: #a855f7;
}
.sector-card--blue2 .sector-image {
  background: #a855f7;
}

/* موبايل */
@media (max-width: 640px) {
  .sectors-wrapper {
    padding: 24px 12px 40px;
  }
  .sectors-title {
    font-size: 1.6rem;
  }
}


/* ===========================
   Projects page (track.html)
   =========================== */

.projects-wrapper {
  min-height: 100vh;
  padding: 40px 16px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  background: linear-gradient(135deg, #7fb7ff, #a98fff);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* هيدر المشاريع */
.projects-header {
  text-align: center;
  margin-bottom: 32px;
}

.projects-logo {
  height: 56px;
  margin-bottom: 10px;
}

.projects-title {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px;
}

.projects-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: #1f2937;
}

/* شبكة المشاريع */
.projects-grid {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

/* كرت المشروع */
.project-card {
  background: #f9fafb;
  border-radius: 24px;
  padding: 18px 20px 20px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.5);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* شريط اللون العلوي لكل قطاع */
.project-card[data-sector="rd"] {
  border-top: 4px solid #ffee00ce;
}

.project-card[data-sector="health"] {
  border-top: 4px solid #2563eb;
}

.project-card[data-sector="sustainability"] {
  border-top: 4px solid #22c55e;
}

.project-card[data-sector="energy"] {
  border-top: 4px solid #f97316;
}

.project-card[data-sector="future"] {
  border-top: 4px solid #a855f7;
}

/* نصوص الكرت */
.project-sector-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #374151;
  margin: 0 0 4px;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px;
}

.project-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #4b5563;
  margin: 0 0 6px;
}

.project-card p {
  margin: 0;
  font-size: 0.85rem;
  color: #4b5563;
}

/* موبايل */
@media (max-width: 640px) {
  .projects-wrapper {
    padding: 24px 12px 40px;
  }

  .projects-title {
    font-size: 1.6rem;
  }
}


.apply-btn {
    display: inline-block;
    background-color: #1c3cff;
    color: white;
    padding: 8px 18px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 23px;
    cursor: pointer;
    margin-top: 10px;

    /* نفس محاذاة زر View projects */
    align-self: flex-start;
}

.apply-btn:hover {
    background-color: #162fcc;
}

/* ===========================
   Train Dashboard
   =========================== */

.dashboard-wrapper {
  min-height: 100vh;
  padding: 32px 16px 48px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: linear-gradient(135deg, #7fb7ff, #a98fff);
}

/* الهيدر */
.dashboard-header {
  background: #ffffff;
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.dashboard-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard-logo {
  height: 48px;
  object-fit: contain;
}

.dashboard-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #111827;
}

.dashboard-subtitle {
  margin: 2px 0 0;
  font-size: 0.9rem;
  color: #4b5563;
}

.dashboard-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-user-name {
  font-size: 0.9rem;
  color: #1f2937;
  font-weight: 500;
}

.dashboard-logout-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: #111827;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.dashboard-logout-btn:hover {
  background: #020617;
  transform: translateY(-1px);
}

/* أزرار التابات */
.dashboard-tabs {
  display: flex;
  gap: 8px;
  background: rgba(15, 23, 42, 0.08);
  padding: 4px;
  border-radius: 999px;
}

.dashboard-tab-btn {
  flex: 1;
  padding: 8px 10px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-tab-btn.active {
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
}

/* محتوى كل تاب */
.dashboard-section {
  background: #ffffff;
  border-radius: 20px;
  padding: 20px 20px 24px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.2);
}

.dashboard-section-title {
  margin: 0 0 14px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #111827;
}

/* Profile grid */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 18px;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.field-label {
  font-size: 0.8rem;
  color: #6b7280;
}

.field-value {
  font-size: 0.95rem;
  color: #111827;
  font-weight: 500;
}

.profile-link {
  font-size: 0.9rem;
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 500;
}

.profile-link:hover {
  text-decoration: underline;
}

/* جدول الطلبات */
.applications-table-wrapper {
  margin-top: 10px;
  overflow-x: auto;
}

.applications-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.applications-table th,
.applications-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
}

.applications-table th {
  background: #f3f4f6;
  font-weight: 600;
  color: #111827;
}

.applications-table tr:nth-child(even) td {
  background: #f9fafb;
}

/* بطاقة الستاتس */
.status-card {
  margin-top: 6px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.status-text {
  margin: 0;
  font-size: 0.95rem;
  color: #1e3a8a;
}

/* موبايل */
@media (max-width: 640px) {
  .dashboard-wrapper {
    padding: 20px 12px 32px;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-tabs {
    flex-direction: row;
  }
}

/* ===========================
   Apply Page
   =========================== */
.apply-wrapper {
  min-height: 100vh;
  padding: 40px 16px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #7fb7ff, #a98fff);
}

.apply-header {
  text-align: center;
  margin-bottom: 22px;
}

.apply-logo {
  height: 55px;
  margin-bottom: 10px;
}

.apply-title {
  font-size: 1.9rem;
  margin-bottom: 4px;
  font-weight: 700;
  color: #111827;
}

.apply-subtitle {
  font-size: 0.95rem;
  color: #374151;
}

.apply-card {
  width: 100%;
  max-width: 650px;
  background: #ffffff;
  padding: 26px 30px;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.apply-project-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 6px;
}

.apply-desc {
  margin: 10px 0 18px;
  line-height: 1.6;
  color: #4b5563;
}

.apply-label {
  margin-top: 6px;
  margin-bottom: 4px;
  font-size: 0.9rem;
  color: #111827;
}

/* ===========================
   Principal Investigator Portal
   =========================== */

.pi-wrapper {
  min-height: 100vh;
  padding: 32px 16px 48px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #e0f2fe 0, #eef2ff 40%, #f9fafb 100%);
}

.pi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.pi-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pi-logo {
  height: 52px;
}

.pi-title {
  margin: 0 0 4px;
  font-size: 1.7rem;
  font-weight: 700;
  color: #111827;
}

.pi-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: #4b5563;
}

.pi-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.pi-user-name {
  font-weight: 600;
  color: #111827;
}

.pi-user-role {
  font-size: 0.85rem;
  color: #6b7280;
}

/* summary cards */

.pi-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.pi-summary-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  border: 1px solid #e5e7eb;
}

.pi-summary-card h3 {
  margin: 0 0 8px;
  font-size: 0.98rem;
  color: #374151;
}

.pi-summary-number {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1d4ed8;
}

.pi-summary-note {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: #6b7280;
}

/* tabs */

.pi-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  border-bottom: 1px solid #e5e7eb;
}

.pi-tab-btn {
  border: none;
  background: transparent;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  color: #4b5563;
  border-radius: 999px 999px 0 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.pi-tab-btn.active {
  background: #1d4ed8;
  color: #ffffff;
}

/* sections */

.pi-section {
  margin-top: 8px;
}

.pi-section-hidden {
  display: none;
}

.pi-section-title {
  margin: 0 0 4px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #111827;
}

.pi-section-note {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: #6b7280;
}

/* tracks grid */

.pi-tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}

.pi-track-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 16px 18px 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pi-track-title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
}

.pi-track-meta {
  margin: 0;
  font-size: 0.87rem;
  color: #4b5563;
}

.pi-track-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.pi-primary-btn,
.pi-secondary-btn {
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.pi-primary-btn {
  background: #1d4ed8;
  color: #ffffff;
}

.pi-secondary-btn {
  background: #e5e7eb;
  color: #111827;
}

/* table */

.pi-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.pi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.pi-table thead {
  background: #f3f4f6;
}

.pi-table th,
.pi-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.pi-table th {
  font-weight: 600;
  color: #374151;
}

.pi-table td {
  color: #4b5563;
}


/* mobile */

@media (max-width: 640px) {
  .pi-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .pi-header-right {
    align-items: flex-start;
  }

  .pi-wrapper {
    padding: 24px 12px 36px;
  }
}

/* ================================
   Applicants Status (New Section)
================================ */

.pi-applicant-status-box {
  background: #ffffff;
  border-radius: 20px;
  padding: 20px 22px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 10px;
}

.pi-applicant-status-box h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
}

.pi-status-desc {
  margin: 0 0 4px;
  font-size: 0.88rem;
  color: #6b7280;
}

.pi-status-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pi-status-list li {
  padding: 10px 0;
  border-bottom: 1px dashed #d1d5db;
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.45;
}

.pi-status-list li:last-child {
  border-bottom: none;
}

/* ايميلات المتقدمين */
.pi-email {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 0.82rem;
  color: #1d4ed8;
}

/* موبايل */
@media (max-width: 640px) {
  .pi-applicant-status-box {
    padding: 16px 14px;
  }

  .pi-status-list li {
    font-size: 0.83rem;
  }
}
/* ===========================
   Admin Portal
   =========================== */

.admin-wrapper {
  min-height: 100vh;
  padding: 32px 16px 48px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #dbeafe 0, #eef2ff 40%, #f9fafb 100%);
}

/* الهيدر */

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.admin-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-logo {
  height: 52px;
}

.admin-title {
  margin: 0 0 4px;
  font-size: 1.7rem;
  font-weight: 700;
  color: #111827;
}

.admin-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: #4b5563;
}

.admin-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.admin-user-name {
  font-weight: 600;
  color: #111827;
}

.admin-user-role {
  font-size: 0.85rem;
  color: #6b7280;
}

/* الكروت العلوية */

.admin-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.admin-summary-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  border: 1px solid #e5e7eb;
}

.admin-summary-card h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: #374151;
}

.admin-summary-number {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1d4ed8;
}

.admin-summary-note {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: #6b7280;
}

/* التابات */

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  border-bottom: 1px solid #e5e7eb;
  flex-wrap: wrap;
}

.admin-tab-btn {
  border: none;
  background: transparent;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  color: #4b5563;
  border-radius: 999px 999px 0 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-tab-btn.active {
  background: #1d4ed8;
  color: #ffffff;
}

/* السكاشن */

.admin-section {
  margin-top: 8px;
}

.admin-section-hidden {
  display: none;
}

.admin-section-title {
  margin: 0 0 4px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #111827;
}

.admin-section-note {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: #6b7280;
}

/* overview cards */

.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.admin-overview-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.admin-overview-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #111827;
}

.admin-status-list {
  list-style: none;
  margin: 4px 0 0;
  padding-left: 0;
  font-size: 0.88rem;
  color: #4b5563;
}

.admin-status-list li {
  margin-bottom: 4px;
}

.admin-notes-list {
  margin: 4px 0 0;
  padding-left: 18px;
  font-size: 0.88rem;
  color: #4b5563;
}

.admin-overview-wide {
  grid-column: 1 / -1;
}

/* نقاط الحالة */

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  margin-right: 6px;
}

.dot-pending {
  background: #f97316;
}

.dot-interview {
  background: #0ea5e9;
}

.dot-accepted {
  background: #22c55e;
}

.dot-rejected {
  background: #ef4444;
}

/* الفلاتر */

.admin-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.admin-filter-select {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  font-size: 0.85rem;
  background: #ffffff;
}

/* الجداول */

.admin-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.admin-table thead {
  background: #f3f4f6;
}

.admin-table th,
.admin-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.admin-table th {
  font-weight: 600;
  color: #374151;
}

.admin-table td {
  color: #4b5563;
}

/* موبايل */

@media (max-width: 640px) {
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-header-right {
    align-items: flex-start;
  }

  .admin-wrapper {
    padding: 24px 12px 36px;
  }
}

/* ============= FIXED NAVBAR ============= */

.main-nav {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;

  max-width: 1150px;
  width: calc(100% - 40px);
  padding: 10px 20px;

  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  height: 30px;
}

.nav-program-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  color: #4b5563;
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
  background: #e5e7eb;
  color: #111827;
}

.nav-link-active {
  background: #1d4ed8;
  color: #ffffff;
}
body {
    padding-top: 110px; /* غيري الرقم حسب ارتفاع الشريط */
}

/* موبايل */
@media (max-width: 640px) {
  .main-nav {
    top: 8px;
    width: calc(100% - 20px);
    padding: 8px 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    justify-content: flex-start;
  }
}
.sectors-wrapper,
.projects-wrapper,
.dashboard-wrapper,
.researcher-wrapper,
.admin-wrapper,
.apply-wrapper,
.track-wrapper {
  padding-top: 110px; 
}
/* =============== SUPPORT PAGE =============== */

.support-wrapper {
  min-height: 100vh;
  padding: 120px 16px 48px;
  background: linear-gradient(135deg, #7fb7ff, #a98fff);
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.support-card {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  padding: 24px 24px 26px;
  box-sizing: border-box;
}

.support-card-single {
  width: 100%;
  max-width: 520px;
}

.support-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: #111827;
}

.support-small {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #4b5563;
}

.support-card-form {
  display: flex;
  flex-direction: column;
}

.support-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #4b5563;
  margin-top: 10px;
}

.support-input,
.support-textarea {
  width: 100%;
  margin-top: 4px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  padding: 8px 10px;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.support-input:focus,
.support-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.4);
}

.support-textarea {
  min-height: 150px;
  resize: vertical;
}

/* موبايل */

@media (max-width: 640px) {
  .support-wrapper {
    padding: 110px 12px 32px;
  }
}

/*ستايل تعديل خانة المعدل */
.gpa-scale-options {
  display: flex;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.gpa-option {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gpa-input-group {
  margin-bottom: 12px;
}

/* لو ما عندك كلاس hidden من قبل */
.hidden {
  display: none;
}
/* =========================
   Training Type Page
========================= */

/* Global font (same as Sectors) */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Same background as Sectors */
.bg-app {
  min-height: 100vh;
  background: linear-gradient(135deg, #7fb7ff, #a98fff);
}

/* Page wrapper */
.training-type-page {
  width: min(1150px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 115px;
  padding-bottom: 60px;
}

/* Header */
.training-type-header {
  text-align: center;
  margin-bottom: 32px;
}

.training-type-title {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 6px;
}

.training-type-subtitle {
  margin: 0 auto;
  max-width: 720px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1f2937;
}

/* Grid */
.training-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* Card */
.training-type-card {
  background: #f9fafb;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  border: 3px solid transparent;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  min-height: 330px;
}

/* Top colored bar inside card */
.tt-topbar {
  height: 80px;
}

.topbar-blue {
  background: linear-gradient(90deg, #0b56ff, #0d43cc);
}

.topbar-gray {
  background: linear-gradient(90deg, #6b7280, #4b5563);
}

/* Badge */
.tt-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
}

.badge-blue {
  color: #083b9b;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.badge-gray {
  color: rgba(17, 24, 39, 0.75);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

/* Content */
.tt-content {
  padding: 40px 22px 8px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tt-card-title {
  margin: 0 0 14px;
  font-size: 1.25rem;
  font-weight: 888;
  color: #111827;
}

.tt-card-desc {
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #4b5563;
}

/* Tags */
.tt-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.tt-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.75);
}

/* Actions (button area) */
.tt-actions {
  padding: 0 22px 22px 22px;
  margin-top: auto;
  display: flex;
  justify-content: center;
}

.tt-btn {
  width: 100%;
  height: 44px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Button style same vibe as Sectors button */
.tt-btn-primary {
  color: #fff;
  background: #1d4ed8;
  box-shadow: 0 10px 20px rgba(29, 78, 216, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.tt-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(29, 78, 216, 0.42);
  opacity: 0.95;
  background: #1e40af;
}

.tt-btn-disabled {
  width: 80%;
  height: 44px;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(90deg, #6b7280, #4b5563);
  opacity: 0.92;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 900px) {
  .training-type-grid {
    grid-template-columns: 1fr;
  }

  .training-type-page {
    padding-top: 105px;
  }

  .training-type-card {
    min-height: 320px;
  }
}

/* ===================== PI Team Section (NEW) ===================== */
.pi-team-section {
  margin-top: 18px;
}

.pi-section-head {
  margin: 10px 0 12px;
}

.pi-section-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.pi-section-subtitle {
  margin: 6px 0 0;
  opacity: 0.85;
  font-size: 13px;
}

.pi-team-card {
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
  backdrop-filter: blur(10px);
}

.pi-team-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.pi-team-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(0,0,0,0.06);
}

.pi-team-filter-label {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.85;
  margin-right: 8px;
}

.pi-team-filter {
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.12);
  outline: none;
  background: rgba(255,255,255,0.8);
}

.pi-team-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
}

.pi-team-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.pi-team-table thead th {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.2px;
  padding: 12px 12px;
  background: rgba(0,0,0,0.06);
  white-space: nowrap;
}

.pi-team-table tbody td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  vertical-align: top;
  font-size: 13px;
}

.pi-team-table tbody tr:hover {
  background: rgba(255,255,255,0.55);
}

.pi-email {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12.5px;
  opacity: 0.9;
}

/* Status pills */
.pi-status {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.65);
}

.pi-status.working { background: rgba(46, 204, 113, 0.18); }
.pi-status.ontrack { background: rgba(52, 152, 219, 0.18); }
.pi-status.stalled { background: rgba(241, 196, 15, 0.20); }
.pi-status.paused  { background: rgba(231, 76, 60, 0.18); }
