<?php
?>
<?php
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Error</title>
    <style>
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f2f4f8;
            color: #333;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
        }
        .container {
            max-width: 500px;
            padding: 30px;
            border-radius: 8px;
            background-color: #fff;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            text-align: center;
        }
        h1 {
            color: #d32f2f;
            font-size: 24px;
            margin-bottom: 20px;
        }
        p {
            font-size: 16px;
            margin-bottom: 20px;
            color: #555;
        }
	.err-message-title {
	    margin-bottom: 20px;
	}
        a {
            display: inline-block;
            padding: 10px 20px;
            color: #fff;
            text-decoration: none;
            font-size: 16px;
            transition: background-color 0.3s;
        }
            .wrapper {
            display: none !important;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1 class="err-message-title">Configuration Error</h1>
        <p><?php echo isset($data['errorMessage']) ? $data['errorMessage'] : 'The configuration file is missing or incorrect. Please check the setup and try again.'; ?></p>
        <a href="./zabbix.php?action=dashboard.view&dashboardid=1">Return to Dashboard</a>
    </div>
</body>
</html>
