<?php
// includes/head.php
$pageTitle = $pageTitle ?? 'Painel';
$panelTitle = 'Painel Admin';
if (isset($conn)) {
    $resHead = $conn->query("SELECT panel_title FROM config WHERE theme_id = 1 LIMIT 1");
    if ($resHead && $rowHead = $resHead->fetch_assoc()) {
        if (!empty($rowHead['panel_title'])) {
            $panelTitle = $rowHead['panel_title'];
        }
    }
}
?>
<!DOCTYPE html>
<html lang="pt-BR">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title><?php echo htmlspecialchars($pageTitle); ?> — <?php echo htmlspecialchars($panelTitle); ?></title>
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
    <link rel="stylesheet" href="assets/css/admin.css">
</head>
<body class="app-body">
