<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="ko">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, user-scalable=no">

    <%
        response.setHeader("Cache-Control","no-store");
        response.setHeader("Pragma","no-cache");
        response.setDateHeader("Expires",0);
        if (request.getProtocol().equals("HTTP/1.1"))
            response.setHeader("Cache-Control", "no-cache");
    %>

    <title>XIT - 페이지를 찾을 수 없습니다</title>

    <!-- Font & Icon -->
    <link rel="stylesheet" href="<c:url value='/resources/plugins/fontawesome-free/css/all.min.css' />">

    <!-- Main Style -->
    <link rel="stylesheet" href="<c:url value='/resources/css/style.min.css' />" id="main-css">
    <link rel="stylesheet" href="<c:url value='/resources/css/style_new.css' />">

    <style>
        .error-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100vh;
            text-align: center;
            padding: 20px;
        }

        .error-image {
            max-width: 300px;
            margin-bottom: 30px;
        }

        .error-title {
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 15px;
            color: #d9534f;
        }

        .error-message {
            font-size: 16px;
            margin-bottom: 20px;
            color: #333;
        }

        .error-details {
            background-color: #f8f9fa;
            border: 1px solid #e9ecef;
            border-radius: 5px;
            padding: 15px;
            margin-bottom: 20px;
            text-align: left;
            max-width: 600px;
            width: 100%;
        }

        .error-details pre {
            white-space: pre-wrap;
            word-wrap: break-word;
            margin: 0;
            font-size: 14px;
        }

        .home-button {
            background-color: #007bff;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            text-decoration: none;
            transition: background-color 0.3s;
        }

        .home-button:hover {
            background-color: #0056b3;
            color: white;
        }
    </style>
</head>
<body>
    <div class="error-container">
        <img src="<c:url value='/resources/img/404.svg' />" alt="페이지를 찾을 수 없습니다" class="error-image">

        <div class="error-title">
            페이지를 찾을 수 없습니다
        </div>

        <div class="error-message">
            요청하신 페이지가 존재하지 않거나 이동되었을 수 있습니다.<br>
            URL을 다시 확인하시거나, 아래 버튼을 클릭하여 홈페이지로 이동하세요.
        </div>

        <a href="<c:url value='/' />" class="home-button">
            <i class="fas fa-home"></i> 홈으로 돌아가기
        </a>
    </div>
</body>
</html>