<?php if (session_status() === PHP_SESSION_NONE) session_start(); ?>
<!doctype html>
<html lang="ar" dir="rtl">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>القبول والتسجيل | الجامعة الوطنية - السودان</title>

  <!-- Bootstrap 5 CSS -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
  <!-- Font Awesome 6 -->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
  <!-- Google Fonts - Cairo as fallback for Arabic -->
  <link href="https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">

  <style>
    /* ============================================
       NATIONAL UNIVERSITY VISUAL IDENTITY
      遵照 Visual Identity Guide - Sudan
       Primary Colors | Clean | Professional | No text shadows
       ============================================ */

    :root {
      /* PRIMARY PALETTE - Official National University Colors */
      --nu-blue: #0056B3;      /* Primary Blue - Main brand color */
      --nu-blue-dark: #003366;  /* Dark Blue for depth */
      --nu-blue-light: #2596be; /* Light Blue for accents */
      --nu-gold: #FFC107;       /* Pantone 123 - Yellow/Gold accent */
      --nu-gold-dark: #E6A800;  /* Darker gold for hover */
      
      /* SECONDARY PALETTE - Accent colors only */
      --nu-green: #2E7D32;
      --nu-red: #C62828;
      --nu-teal: #00796B;
      --nu-orange: #F57C00;
      --nu-cyan: #0097A7;
      --nu-purple: #6A1B9A;
      
      /* Neutral palette */
      --nu-white: #FFFFFF;
      --nu-light-bg: #F5F7FA;
      --nu-gray-light: #E0E0E0;
      --nu-gray: #9E9E9E;
      --nu-gray-dark: #616161;
      --nu-text-primary: #212121;
      --nu-text-secondary: #757575;
      
      /* Shadows - minimal, no text shadows per brand guide */
      --nu-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
      --nu-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
      
      /* Transitions */
      --nu-transition: all 0.2s ease;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Cairo', 'Noor', -apple-system, BlinkMacSystemFont, sans-serif;
      color: var(--nu-text-primary);
      background: var(--nu-light-bg);
      line-height: 1.5;
      direction: rtl;
    }

    /* Headings - Bold weight per brand */
    h1, h2, h3, h4, h5, h6 {
      font-weight: 700;
      color: var(--nu-blue-dark);
      margin-bottom: 0.5rem;
    }

    /* Top accent bar - Gold (Pantone 123) */
    .nu-top-accent {
      height: 4px;
      background: var(--nu-gold);
      width: 100%;
    }

    /* ===== HEADER / NAVBAR ===== */
    .nu-navbar {
      background: var(--nu-white);
      border-bottom: 1px solid var(--nu-gray-light);
      padding: 1.5rem 0;
      box-shadow: var(--nu-shadow-sm);
    }

    .nu-brand {
      text-align: center;
    }

    .nu-ministry {
      font-size: 0.85rem;
      color: var(--nu-text-secondary);
      letter-spacing: 0.5px;
      margin-bottom: 0.5rem;
    }

    .nu-university-name {
      font-size: 2rem;
      font-weight: 700;
      color: var(--nu-blue);
      margin: 0;
      line-height: 1.2;
    }

    .nu-university-sub {
      font-size: 0.9rem;
      color: var(--nu-text-secondary);
      margin-top: 0.25rem;
    }

    .nu-tagline {
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--nu-gold-dark);
      margin-top: 0.5rem;
      border-top: 1px solid var(--nu-gray-light);
      display: inline-block;
      padding-top: 0.5rem;
    }

    /* ===== META BAR / ACTIONS ===== */
    .nu-meta-bar {
      background: var(--nu-white);
      border-bottom: 1px solid var(--nu-gray-light);
      padding: 0.75rem 0;
      box-shadow: var(--nu-shadow-sm);
    }

    /* ===== BUTTONS - Clean, flat design ===== */
    .nu-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      padding: 0.5rem 1rem;
      font-size: 0.875rem;
      font-weight: 600;
      font-family: inherit;
      text-decoration: none;
      border-radius: 6px;
      transition: var(--nu-transition);
      border: 1px solid transparent;
      cursor: pointer;
    }

    .nu-btn-primary {
      background: var(--nu-blue);
      color: var(--nu-white);
      border-color: var(--nu-blue);
    }

    .nu-btn-primary:hover {
      background: var(--nu-blue-dark);
      border-color: var(--nu-blue-dark);
      transform: translateY(-1px);
    }

    .nu-btn-outline {
      background: transparent;
      color: var(--nu-blue);
      border-color: var(--nu-blue);
    }

    .nu-btn-outline:hover {
      background: var(--nu-blue);
      color: var(--nu-white);
    }

    .nu-btn-outline-secondary {
      background: transparent;
      color: var(--nu-text-secondary);
      border-color: var(--nu-gray-light);
    }

    .nu-btn-outline-secondary:hover {
      background: var(--nu-gray-light);
      color: var(--nu-blue);
      border-color: var(--nu-blue);
    }

    .nu-btn-gold {
      background: var(--nu-gold);
      color: var(--nu-blue-dark);
      border-color: var(--nu-gold);
    }

    .nu-btn-gold:hover {
      background: var(--nu-gold-dark);
      transform: translateY(-1px);
    }

    .nu-btn-danger {
      background: transparent;
      color: var(--nu-red);
      border-color: var(--nu-red);
    }

    .nu-btn-danger:hover {
      background: var(--nu-red);
      color: var(--nu-white);
    }

    /* Color variants for role buttons */
    .nu-btn-green {
      background: transparent;
      color: var(--nu-green);
      border-color: var(--nu-green);
    }
    .nu-btn-green:hover {
      background: var(--nu-green);
      color: white;
    }

    .nu-btn-teal {
      background: transparent;
      color: var(--nu-teal);
      border-color: var(--nu-teal);
    }
    .nu-btn-teal:hover {
      background: var(--nu-teal);
      color: white;
    }

    .nu-btn-orange {
      background: transparent;
      color: var(--nu-orange);
      border-color: var(--nu-orange);
    }
    .nu-btn-orange:hover {
      background: var(--nu-orange);
      color: white;
    }

    .nu-btn-cyan {
      background: transparent;
      color: var(--nu-cyan);
      border-color: var(--nu-cyan);
    }
    .nu-btn-cyan:hover {
      background: var(--nu-cyan);
      color: white;
    }

    /* ===== USER BADGE ===== */
    .nu-user-badge {
      background: var(--nu-light-bg);
      border: 1px solid var(--nu-gray-light);
      border-radius: 8px;
      padding: 0.4rem 0.8rem;
      font-size: 0.8rem;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
    }

    .nu-user-badge i {
      color: var(--nu-gold);
    }

    /* ===== FORM ELEMENTS ===== */
    .nu-form-control,
    .nu-form-select {
      width: 100%;
      padding: 0.6rem 0.75rem;
      font-size: 0.875rem;
      font-family: inherit;
      border: 1px solid var(--nu-gray-light);
      border-radius: 8px;
      transition: var(--nu-transition);
      background: var(--nu-white);
    }

    .nu-form-control:focus,
    .nu-form-select:focus {
      outline: none;
      border-color: var(--nu-blue);
      box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
    }

    /* ===== CARDS ===== */
    .nu-card {
      background: var(--nu-white);
      border: 1px solid var(--nu-gray-light);
      border-radius: 12px;
      padding: 1.5rem;
      margin-bottom: 1.5rem;
      box-shadow: var(--nu-shadow-sm);
    }

    .nu-card-header {
      border-bottom: 2px solid var(--nu-gold);
      padding-bottom: 0.75rem;
      margin-bottom: 1.25rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .nu-card-header i {
      color: var(--nu-blue);
      font-size: 1.25rem;
    }

    .nu-card-header h3 {
      font-size: 1.1rem;
      margin: 0;
      color: var(--nu-blue-dark);
    }

    /* ===== TABLES ===== */
    .nu-table {
      width: 100%;
      border-collapse: collapse;
    }

    .nu-table th {
      background: var(--nu-light-bg);
      color: var(--nu-text-primary);
      font-weight: 600;
      padding: 0.75rem;
      border-bottom: 2px solid var(--nu-gold);
      text-align: right;
    }

    .nu-table td {
      padding: 0.75rem;
      border-bottom: 1px solid var(--nu-gray-light);
      color: var(--nu-text-secondary);
    }

    .nu-table tr:hover td {
      background: rgba(0, 86, 179, 0.02);
    }

    /* ===== BADGES ===== */
    .nu-badge {
      display: inline-flex;
      align-items: center;
      padding: 0.25rem 0.6rem;
      font-size: 0.7rem;
      font-weight: 600;
      border-radius: 20px;
    }

    .nu-badge-primary { background: var(--nu-blue); color: white; }
    .nu-badge-success { background: var(--nu-green); color: white; }
    .nu-badge-warning { background: var(--nu-gold); color: var(--nu-blue-dark); }
    .nu-badge-danger { background: var(--nu-red); color: white; }
    .nu-badge-info { background: var(--nu-cyan); color: white; }

    /* ===== FOOTER ===== */
    .nu-footer {
      background: var(--nu-white);
      border-top: 1px solid var(--nu-gray-light);
      padding: 1.5rem 0;
      margin-top: 2rem;
      text-align: center;
      font-size: 0.75rem;
      color: var(--nu-text-secondary);
    }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 768px) {
      .nu-university-name { font-size: 1.4rem; }
      .nu-tagline { font-size: 0.9rem; }
      .nu-card { padding: 1rem; }
      .nu-btn { padding: 0.4rem 0.8rem; font-size: 0.75rem; }
    }
  </style>
</head>
<body>

<!-- Top accent bar - Gold Pantone 123 -->
<div class="nu-top-accent"></div>

<!-- Main Header -->
<nav class="nu-navbar">
  <div class="container text-center">
    <div class="nu-brand">
      <div class="nu-ministry">جمهورية السودان</div>
      <div class="nu-ministry" style="margin-bottom: 0.75rem;">وزارة التعليم العالي والبحث العلمي</div>
      <h1 class="nu-university-name">الجامعة الوطنية - السودان</h1>
      <div class="nu-university-sub">National University - Sudan</div>
      <div class="nu-tagline">بوابة التحول الرقمي</div>
    </div>
  </div>
</nav>

 
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>

</body>
</html>
