/* شاشات قبول الدراسات العليا */

button, input, select, textarea { font-family: inherit; }

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.page-head h1 {
  margin: 0 0 4px;
  color: var(--purple-deep);
  font-size: 1.45rem;
}

.page-head-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.count-pill {
  background: var(--purple-soft);
  color: var(--purple-dark);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

.channel-banner {
  border: 1px solid #e4d7ef;
  border-radius: 14px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #fbf8fd, #fff);
  margin-bottom: 14px;
}

.channel-banner span { display: block; font-size: 12px; color: var(--muted); }
.channel-banner strong { color: var(--purple-deep); }

.table-wrap { overflow-x: auto; }

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-field { margin-bottom: 12px; }

.form-field label {
  display: block;
  font-weight: 700;
  color: var(--purple-deep);
  margin-bottom: 6px;
  font-size: 14px;
}

.ticket-form input,
.ticket-form select,
.ticket-form textarea,
.filters-form input,
.filters-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}

.btn-outline-ju {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--purple);
  color: var(--purple-dark);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.btn-ju { cursor: pointer; border: none; }
.btn-lg { min-height: 48px; padding-inline: 22px; font-size: 15px; }

.flash {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  font-weight: 700;
}

.flash-ok { background: #ecfdf3; color: #067647; border: 1px solid #abefc6; }
.flash-err { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }

.chip-ok { background: #ecfdf3; color: #067647; }
.chip-warn { background: #fffaeb; color: #b54708; }
.chip-muted { background: #f3f4f6; color: #4b5563; }

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

a.metric { text-decoration: none; color: inherit; }

.metric small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 4px;
}

.notice-body,
.sms-card,
.preference-submit {
  background: #fbf8fd;
  border: 1px solid #e4d7ef;
  border-radius: 12px;
  padding: 14px 16px;
  line-height: 1.9;
  margin-bottom: 12px;
}

.notice-body span,
.sms-card span,
.preference-submit span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--purple);
}

.sms-card { background: #f4fbf7; border-color: #abefc6; }
.preference-submit strong { display: block; color: var(--purple-deep); font-size: 1.15rem; }
.preference-submit p { margin: 0 0 10px; color: var(--muted); }

.kv-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 12px;
}

.kv-grid span { color: var(--muted); }

.auth-page {
  display: grid;
  justify-content: center;
}

.auth-card { max-width: 460px; width: 100%; }
.auth-card h1 { margin: 0 0 6px; color: var(--purple-deep); }

.sidebar-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  min-width: 44px;
  min-height: 44px;
  font-size: 20px;
  cursor: pointer;
}

.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 10, 30, 0.45);
  z-index: 50;
}

.readonly-value {
  background: #faf7fc;
  border: 1px dashed #e4d7ef;
  border-radius: 10px;
  padding: 10px 12px;
}

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .app-shell.nav-open .mobile-nav-backdrop { display: block; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    right: 0;
    left: auto;
    z-index: 60;
    transform: translateX(105%);
    transition: transform .2s ease;
    width: min(86vw, 300px);
    overflow-y: auto;
  }
  html[dir="rtl"] .sidebar { transform: translateX(105%); }
  .app-shell.nav-open .sidebar { transform: translateX(0); }
  .grid-4, .kv-grid { grid-template-columns: 1fr; }
}
