<!DOCTYPE html>
<html lang="es">
<head>
  <meta charset="UTF-8">
  <!-- MUY IMPORTANTE para responsividad -->
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Registro de Ingreso</title>

  <!-- Bootstrap CSS -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-table@1.22.1/dist/bootstrap-table.min.css">

  <!-- Bootstrap Icons -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css">

  <!-- Estilos -->
  <style>
    body {
      background-color: #062385ff;
      color: white;
      font-size: 1.2rem;
    }
    .card {
      background-color: #fff;
      color: #000;
      border-radius: 12px;
      padding: 20px;
    }
    .form-control-lg, .btn-lg {
      font-size: 1.5rem;
      padding: 10px;
    }
    .logo {
      max-width: 150px;
      margin-bottom: 20px;
    }
    button{
      margin: 2px;
    }
     #spinnerOverlay {
      /*display: none !important;*/
    }

    #nombre_sede{

      font-size: 40px;
      font-weight: bold;
      color: #000;
    }

      #reader {
      width: 100%;
      max-width: 600px;
      margin: auto;
      border: 2px solid #28a745;
      border-radius: 8px;
      position: relative;
    }
    /* Marco guía */
    #scan-area {
      border: 3px solid red;
      width: 250px;
      height: 100px;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      pointer-events: none;
    }
   

  </style>
</head>

<body class="d-flex flex-column align-items-center justify-content-start min-vh-100">

  <!-- Logo -->
  <!--div class="text-center mt-3">
    <img src="./assets/img/Poder_Judicial_del_Peru.png" alt="Logo" class="logo img-fluid">
  </div>

  <h2 class="text-center mt-3">Sistema de Registro de Ingresantes</h2-->

  <nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top shadow">
  <div class="container-fluid">
    <!-- Logo -->
    <a class="navbar-brand d-flex align-items-center" href="#">
  <img src="<?=base_url()?>assets/img/Poder_Judicial_del_Peru.png" alt="Logo" width="50" class="me-2">
  <span class="fs-8 d-none d-md-block">Sistema de Registro de Ingresantes</span>
</a>
    <!-- Botón hamburguesa -->
    <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
      <span class="navbar-toggler-icon"></span>
    </button>
    <!-- Links -->
    <div class="collapse navbar-collapse" id="navbarNav">
      <ul class="navbar-nav ms-auto">
        <li class="nav-item"><a class="nav-link active" href="<?=base_url('/')?>">Inicio</a></li>
        <?php if(session()->get('nivel')==1){ ?>
        <li class="nav-item"><a class="nav-link" href="<?=base_url('admin/usuarios')?>">Usuarios</a></li>
        <?php } ?>
        <li class="nav-item"><a class="nav-link" href="<?=base_url('registro')?>">Registro</a></li>
        <li class="nav-item"><a class="nav-link" href="<?=base_url('busqueda')?>">Búsqueda</a></li>
        <li class="nav-item"><a class="nav-link" href="<?=base_url('salir')?>">Salir</a></li>
      </ul>
    </div>
  </div>
</nav>
