<?php
include_once '../../controllers/EstudianteController.php';
$estudianteController = new EstudianteController();
$estudiante = null; // Inicializar variable

if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    if (isset($_POST['buscar'])) {
        $ci = trim($_POST['ci']); // Eliminar espacios en blanco
        if (!empty($ci)) {
            $estudiante = $estudianteController->buscarEstudiantePorCI($ci);
            if (!$estudiante) {
                echo "<script>alert('No se encontró ningún estudiante con ese CI.');</script>";
            }
        } else {
            echo "<script>alert('Por favor, ingrese un CI válido.');</script>";
        }
    } elseif (isset($_POST['actualizar'])) {
        // Inicializar campos
        $balance = $_POST['balance'] ?? '';
        $fees = $_POST['fees'] ?? '';
        $sucursal_varchar = $_POST['sucursal_varchar'] ?? '';
        $username = $_POST['username'] ?? '';
        $delete_status = $_POST['delete_status'] ?? '';

        $resultado = $estudianteController->actualizarEstudiante(
            $_POST['Cod_Estu'],
            $_POST['ci'],
            $_POST['emailid'],
            $_POST['sname'],
            $_POST['about'],
            $_POST['contact'],
            $fees,
            $_POST['branch'],
            $balance,
            $_POST['carrera'],
            $_POST['curso'],
            $_POST['turno'],
            $_POST['modalidad'],
            $sucursal_varchar,
            $username,
            $delete_status
        );
        if ($resultado) {
            echo "<script>alert('Estudiante actualizado correctamente.'); window.location.href = 'gestion_estudiantes.php';</script>";
        } else {
            echo "<script>alert('Error al actualizar estudiante.');</script>";
        }
    }
}
?>


<!DOCTYPE html>
<html lang="es">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Buscar Estudiante</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" rel="stylesheet">
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: {
                            50: '#f0f9ff',
                            100: '#e0f2fe',
                            200: '#bae6fd',
                            300: '#7dd3fc',
                            400: '#38bdf8',
                            500: '#0ea5e9',
                            600: '#0284c7',
                            700: '#0369a1',
                            800: '#075985',
                            900: '#0c4a6e',
                        },
                        secondary: {
                            50: '#f5f3ff',
                            100: '#ede9fe',
                            200: '#ddd6fe',
                            300: '#c4b5fd',
                            400: '#a78bfa',
                            500: '#8b5cf6',
                            600: '#7c3aed',
                            700: '#6d28d9',
                            800: '#5b21b6',
                            900: '#4c1d95',
                        }
                    },
                    boxShadow: {
                        'card': '0 0 0 1px rgba(0, 0, 0, 0.05), 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)',
                        'card-hover': '0 0 0 1px rgba(0, 0, 0, 0.05), 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)',
                    }
                }
            }
        }
    </script>
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');
        
        body {
            font-family: 'Inter', sans-serif;
        }
        
        h1, h2, h3, h4, h5, h6 {
            font-family: 'Poppins', sans-serif;
        }
        
        .form-input {
            transition: all 0.3s ease;
        }
        
        .form-input:focus {
            transform: translateY(-1px);
            box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
        }
        
        .btn {
            transition: all 0.3s ease;
        }
        
        .btn:hover {
            transform: translateY(-2px);
        }
        
        .btn:active {
            transform: translateY(0);
        }
        
        .card {
            transition: all 0.3s ease;
        }
        
        .card:hover {
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }
        
        .custom-scrollbar::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }
        
        .custom-scrollbar::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }
        
        .custom-scrollbar::-webkit-scrollbar-thumb {
            background: #0ea5e9;
            border-radius: 10px;
        }
        
        .custom-scrollbar::-webkit-scrollbar-thumb:hover {
            background: #0284c7;
        }
        
        .input-animated {
            transition: all 0.3s ease;
        }
        
        .input-animated:focus {
            transform: translateY(-2px);
        }
        
        .input-animated:disabled {
            opacity: 0.7;
            cursor: not-allowed;
        }
        
        .input-animated:not(:disabled):hover {
            border-color: #0ea5e9;
        }
    </style>
    <script>
        function habilitarEdicion() {
            const form = document.getElementById('form-editar-estudiante');
            const inputs = form.querySelectorAll('input, textarea, select');
            inputs.forEach(input => input.removeAttribute('disabled'));
        }
    </script>
</head>

<body class="bg-gray-50 min-h-screen custom-scrollbar">
    <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-10">
        <!-- Header con navegación -->
        <header class="mb-10">
            <div class="flex flex-col md:flex-row justify-between items-center">
                <div class="flex items-center mb-4 md:mb-0">
                    <a href="gestion_estudiantes.php" class="mr-4 text-primary-600 hover:text-primary-800 transition-colors duration-200">
                        <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 19l-7-7m0 0l7-7m-7 7h18" />
                        </svg>
                    </a>
                    <h1 class="text-3xl font-bold text-gray-900">Búsqueda de Estudiantes</h1>
                </div>
                
                <div>
                    <img src="../../public/images/logo.png" alt="Logo de la Institución" class="h-16 w-auto">
                </div>
            </div>
        </header>

        <!-- Formulario de búsqueda -->
        <div class="mb-10">
            <div class="bg-white rounded-xl shadow-lg overflow-hidden">
                <div class="bg-gradient-to-r from-primary-600 to-primary-800 px-6 py-4">
                    <h2 class="text-xl font-semibold text-white">Buscar Estudiante</h2>
                    <p class="text-primary-100 text-sm">Ingrese el CI del estudiante para buscar sus datos</p>
                </div>
                
                <form action="buscar_estudiante.php" method="post" class="p-6">
                    <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
                        <div class="md:col-span-2 relative">
                            <label for="ci" class="block text-sm font-medium text-gray-700 mb-1">CI del Estudiante:</label>
                            <div class="relative">
                                <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
                                    <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-gray-400" viewBox="0 0 20 20" fill="currentColor">
                                        <path fill-rule="evenodd" d="M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z" clip-rule="evenodd" />
                                    </svg>
                                </div>
                                <input 
                                    type="text" 
                                    id="ci" 
                                    name="ci" 
                                    required 
                                    placeholder="Ingrese el CI sin extensión"
                                    class="input-animated pl-10 block w-full px-4 py-3 bg-gray-50 border border-gray-300 rounded-lg text-gray-900 focus:ring-primary-500 focus:border-primary-500">
                            </div>
                        </div>
                        
                        <div class="flex items-end">
                            <button 
                                type="submit" 
                                name="buscar" 
                                class="btn w-full bg-primary-600 text-white py-3 px-4 rounded-lg hover:bg-primary-700 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2 flex items-center justify-center">
                                <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" viewBox="0 0 20 20" fill="currentColor">
                                    <path fill-rule="evenodd" d="M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z" clip-rule="evenodd" />
                                </svg>
                                Buscar Estudiante
                            </button>
                        </div>
                    </div>
                </form>
            </div>
        </div>

        <!-- Resultados de la búsqueda -->
        <?php if (isset($estudiante) && $estudiante): ?>
            <div>
                <div class="bg-white rounded-xl shadow-lg overflow-hidden">
                    <div class="bg-gradient-to-r from-secondary-600 to-secondary-800 px-6 py-4 flex justify-between items-center">
                        <div>
                            <h2 class="text-xl font-semibold text-white">Información del Estudiante</h2>
                            <p class="text-secondary-100 text-sm">Datos personales y académicos</p>
                        </div>
                        <div class="flex space-x-2">
                            <button 
                                onclick="habilitarEdicion()" 
                                class="btn bg-yellow-500 text-white py-2 px-4 rounded-lg hover:bg-yellow-600 focus:outline-none focus:ring-2 focus:ring-yellow-500 focus:ring-offset-2 flex items-center">
                                <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-1" viewBox="0 0 20 20" fill="currentColor">
                                    <path d="M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z" />
                                </svg>
                                Editar
                            </button>
                        </div>
                    </div>
                    
                    <form id="form-editar-estudiante" action="buscar_estudiante.php" method="post" class="p-6">
                        <input type="hidden" name="Cod_Estu" value="<?php echo $estudiante['Cod_Estu']; ?>">
                        <input type="hidden" name="branch" value="<?php echo $estudiante['branch']; ?>">
                        <input type="hidden" name="carrera" value="<?php echo $estudiante['carrera']; ?>">
                        <input type="hidden" name="curso" value="<?php echo $estudiante['curso']; ?>">
                        <input type="hidden" name="turno" value="<?php echo $estudiante['turno']; ?>">
                        <input type="hidden" name="modalidad" value="<?php echo $estudiante['modalidad']; ?>">
                        
                        <div class="grid grid-cols-1 md:grid-cols-2 gap-x-6 gap-y-8">
                            <!-- Información Personal -->
                            <div class="md:col-span-2">
                                <h3 class="text-lg font-semibold text-gray-900 mb-4 flex items-center">
                                    <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2 text-primary-600" viewBox="0 0 20 20" fill="currentColor">
                                        <path fill-rule="evenodd" d="M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z" clip-rule="evenodd" />
                                    </svg>
                                    Información Personal
                                </h3>
                                <div class="bg-gray-50 p-4 rounded-lg">
                                    <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
                                        <div class="relative">
                                            <label for="sname" class="block text-sm font-medium text-gray-700 mb-1">Nombre Completo:</label>
                                            <input 
                                                type="text" 
                                                id="sname" 
                                                name="sname" 
                                                value="<?php echo $estudiante['sname']; ?>" 
                                                required 
                                                disabled
                                                class="input-animated block w-full px-4 py-3 bg-white border border-gray-300 rounded-lg text-gray-900 focus:ring-primary-500 focus:border-primary-500">
                                        </div>
                                        
                                        <div class="relative">
                                            <label for="ci" class="block text-sm font-medium text-gray-700 mb-1">CI:</label>
                                            <input 
                                                type="text" 
                                                id="ci" 
                                                name="ci" 
                                                value="<?php echo $estudiante['ci']; ?>" 
                                                required 
                                                disabled
                                                class="input-animated block w-full px-4 py-3 bg-white border border-gray-300 rounded-lg text-gray-900 focus:ring-primary-500 focus:border-primary-500">
                                        </div>
                                        
                                        <div class="relative">
                                            <label for="exp_ci" class="block text-sm font-medium text-gray-700 mb-1">Expedido en:</label>
                                            <input 
                                                type="text" 
                                                id="exp_ci" 
                                                name="exp_ci" 
                                                value="<?php echo $estudiante['exp_ci']; ?>" 
                                                required 
                                                disabled
                                                class="input-animated block w-full px-4 py-3 bg-white border border-gray-300 rounded-lg text-gray-900 focus:ring-primary-500 focus:border-primary-500">
                                        </div>
                                    </div>
                                </div>
                            </div>
                            
                            <!-- Información de Contacto -->
                            <div class="space-y-4">
                                <h3 class="text-lg font-semibold text-gray-900 mb-4 flex items-center">
                                    <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2 text-primary-600" viewBox="0 0 20 20" fill="currentColor">
                                        <path d="M2 3a1 1 0 011-1h2.153a1 1 0 01.986.836l.74 4.435a1 1 0 01-.54 1.06l-1.548.773a11.037 11.037 0 006.105 6.105l.774-1.548a1 1 0 011.059-.54l4.435.74a1 1 0 01.836.986V17a1 1 0 01-1 1h-2C7.82 18 2 12.18 2 5V3z" />
                                    </svg>
                                    Información de Contacto
                                </h3>
                                <div class="bg-gray-50 p-4 rounded-lg">
                                    <div class="space-y-4">
                                        <div class="relative">
                                            <label for="emailid" class="block text-sm font-medium text-gray-700 mb-1">Correo Electrónico:</label>
                                            <div class="relative">
                                                <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
                                                    <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-gray-400" viewBox="0 0 20 20" fill="currentColor">
                                                        <path d="M2.003 5.884L10 9.882l7.997-3.998A2 2 0 0016 4H4a2 2 0 00-1.997 1.884z" />
                                                        <path d="M18 8.118l-8 4-8-4V14a2 2 0 002 2h12a2 2 0 002-2V8.118z" />
                                                    </svg>
                                                </div>
                                                <input 
                                                    type="email" 
                                                    id="emailid" 
                                                    name="emailid" 
                                                    value="<?php echo $estudiante['emailid']; ?>" 
                                                    required 
                                                    disabled
                                                    class="input-animated pl-10 block w-full px-4 py-3 bg-white border border-gray-300 rounded-lg text-gray-900 focus:ring-primary-500 focus:border-primary-500">
                                            </div>
                                        </div>
                                        
                                        <div class="relative">
                                            <label for="contact" class="block text-sm font-medium text-gray-700 mb-1">Teléfono de Contacto:</label>
                                            <div class="relative">
                                                <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
                                                    <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-gray-400" viewBox="0 0 20 20" fill="currentColor">
                                                        <path d="M2 3a1 1 0 011-1h2.153a1 1 0 01.986.836l.74 4.435a1 1 0 01-.54 1.06l-1.548.773a11.037 11.037 0 006.105 6.105l.774-1.548a1 1 0 011.059-.54l4.435.74a1 1 0 01.836.986V17a1 1 0 01-1 1h-2C7.82 18 2 12.18 2 5V3z" />
                                                    </svg>
                                                </div>
                                                <input 
                                                    type="text" 
                                                    id="contact" 
                                                    name="contact" 
                                                    value="<?php echo $estudiante['contact']; ?>" 
                                                    required 
                                                    disabled
                                                    class="input-animated pl-10 block w-full px-4 py-3 bg-white border border-gray-300 rounded-lg text-gray-900 focus:ring-primary-500 focus:border-primary-500">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            
                            <!-- Información Financiera -->
                            <div class="space-y-4">
                                <h3 class="text-lg font-semibold text-gray-900 mb-4 flex items-center">
                                    <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2 text-primary-600" viewBox="0 0 20 20" fill="currentColor">
                                        <path d="M8.433 7.418c.155-.103.346-.196.567-.267v1.698a2.305 2.305 0 01-.567-.267C8.07 8.34 8 8.114 8 8c0-.114.07-.34.433-.582zM11 12.849v-1.698c.22.071.412.164.567.267.364.243.433.468.433.582 0 .114-.07.34-.433.582a2.305 2.305 0 01-.567.267z" />
                                        <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm1-13a1 1 0 10-2 0v.092a4.535 4.535 0 00-1.676.662C6.602 6.234 6 7.009 6 8c0 .99.602 1.765 1.324 2.246.48.32 1.054.545 1.676.662v1.941c-.391-.127-.68-.317-.843-.504a1 1 0 10-1.51 1.31c.562.649 1.413 1.076 2.353 1.253V15a1 1 0 102 0v-.092a4.535 4.535 0 001.676-.662C13.398 13.766 14 12.991 14 12c0-.99-.602-1.765-1.324-2.246A4.535 4.535 0 0011 9.092V7.151c.391.127.68.317.843.504a1 1 0 101.511-1.31c-.563-.649-1.413-1.076-2.354-1.253V5z" clip-rule="evenodd" />
                                    </svg>
                                    Información Financiera
                                </h3>
                                <div class="bg-gray-50 p-4 rounded-lg">
                                    <div class="space-y-4">
                                        <div class="relative">
                                            <label for="fees" class="block text-sm font-medium text-gray-700 mb-1">Costo Total:</label>
                                            <div class="relative">
                                                <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
                                                    <span class="text-gray-500">Bs.</span>
                                                </div>
                                                <input 
                                                    type="number" 
                                                    id="fees" 
                                                    name="fees" 
                                                    value="<?php echo $estudiante['fees']; ?>" 
                                                    required 
                                                    disabled
                                                    class="input-animated pl-12 block w-full px-4 py-3 bg-white border border-gray-300 rounded-lg text-gray-900 focus:ring-primary-500 focus:border-primary-500">
                                            </div>
                                        </div>
                                        
                                        <div class="relative">
                                            <label for="balance" class="block text-sm font-medium text-gray-700 mb-1">Saldo Pendiente:</label>
                                            <div class="relative">
                                                <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
                                                    <span class="text-gray-500">Bs.</span>
                                                </div>
                                                <input 
                                                    type="number" 
                                                    id="balance" 
                                                    name="balance" 
                                                    value="<?php echo $estudiante['balance']; ?>" 
                                                    required 
                                                    disabled
                                                    class="input-animated pl-12 block w-full px-4 py-3 bg-white border border-gray-300 rounded-lg text-gray-900 focus:ring-primary-500 focus:border-primary-500">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            
                            <!-- Información Adicional -->
                            <div class="md:col-span-2">
                                <h3 class="text-lg font-semibold text-gray-900 mb-4 flex items-center">
                                    <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2 text-primary-600" viewBox="0 0 20 20" fill="currentColor">
                                        <path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z" clip-rule="evenodd" />
                                    </svg>
                                    Información Adicional
                                </h3>
                                <div class="bg-gray-50 p-4 rounded-lg">
                                    <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
                                        <div class="md:col-span-3">
                                            <label for="about" class="block text-sm font-medium text-gray-700 mb-1">Acerca del Estudiante:</label>
                                            <textarea 
                                                id="about" 
                                                name="about" 
                                                rows="3" 
                                                required 
                                                disabled
                                                class="input-animated block w-full px-4 py-3 bg-white border border-gray-300 rounded-lg text-gray-900 focus:ring-primary-500 focus:border-primary-500"><?php echo $estudiante['about']; ?></textarea>
                                        </div>
                                        
                                        <div class="relative">
                                            <label for="sucursal_varchar" class="block text-sm font-medium text-gray-700 mb-1">Sucursal:</label>
                                            <input 
                                                type="text" 
                                                id="sucursal_varchar" 
                                                name="sucursal_varchar" 
                                                value="<?php echo $estudiante['sucursal_varchar']; ?>" 
                                                required 
                                                disabled
                                                class="input-animated block w-full px-4 py-3 bg-white border border-gray-300 rounded-lg text-gray-900 focus:ring-primary-500 focus:border-primary-500">
                                        </div>
                                        
                                        <div class="relative">
                                            <label for="username" class="block text-sm font-medium text-gray-700 mb-1">Nombre de Usuario:</label>
                                            <input 
                                                type="text" 
                                                id="username" 
                                                name="username" 
                                                value="<?php echo $estudiante['username']; ?>" 
                                                required 
                                                disabled
                                                class="input-animated block w-full px-4 py-3 bg-white border border-gray-300 rounded-lg text-gray-900 focus:ring-primary-500 focus:border-primary-500">
                                        </div>
                                        
                                        <div class="relative">
                                            <label for="delete_status" class="block text-sm font-medium text-gray-700 mb-1">Estado:</label>
                                            <select 
                                                id="delete_status" 
                                                name="delete_status" 
                                                disabled
                                                class="input-animated block w-full px-4 py-3 bg-white border border-gray-300 rounded-lg text-gray-900 focus:ring-primary-500 focus:border-primary-500">
                                                <option value="0" <?php echo ($estudiante['delete_status'] == 0) ? 'selected' : ''; ?>>Activo</option>
                                                <option value="1" <?php echo ($estudiante['delete_status'] == 1) ? 'selected' : ''; ?>>Inactivo</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="mt-8 flex justify-end space-x-4">
                            <a 
                                href="gestion_estudiantes.php" 
                                class="btn bg-gray-500 text-white py-2 px-6 rounded-lg hover:bg-gray-600 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2">
                                Cancelar
                            </a>
                            <button 
                                type="submit" 
                                name="actualizar" 
                                class="btn bg-green-600 text-white py-2 px-6 rounded-lg hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-green-500 focus:ring-offset-2 flex items-center">
                                <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2" viewBox="0 0 20 20" fill="currentColor">
                                    <path fill-rule="evenodd" d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z" clip-rule="evenodd" />
                                </svg>
                                Guardar Cambios
                            </button>
                        </div>
                    </form>
                </div>
            </div>
        <?php elseif (isset($estudiante) && !$estudiante): ?>
            <div>
                <div class="bg-white rounded-xl shadow-lg p-8 text-center">
                    <div class="flex flex-col items-center">
                        <div class="bg-yellow-100 p-4 rounded-full mb-4">
                            <svg xmlns="http://www.w3.org/2000/svg" class="h-12 w-12 text-yellow-600" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" />
                            </svg>
                        </div>
                        <h3 class="text-xl font-semibold text-gray-900 mb-2">No se encontró el estudiante</h3>
                        <p class="text-gray-600 mb-6">No se encontró ningún estudiante con el CI proporcionado. Por favor, verifique el número e intente nuevamente.</p>
                        <a href="buscar_estudiante.php" class="btn bg-primary-600 text-white py-2 px-6 rounded-lg hover:bg-primary-700 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2">
                            Intentar Nuevamente
                        </a>
                    </div>
                </div>
            </div>
        <?php endif; ?>
        
       
    </div>
</body>

</html>