<!DOCTYPE html>
<html lang="pt-br">
<head>
    <meta charset="UTF-8">
    <title>SOV - Sistema de Ordem de Viagens</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Bootstrap Icons -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css" rel="stylesheet">
    <style>
        body {
            overflow-x: hidden;
        }
        #sidebar {
            min-height: 100vh;
            background-color: #343a40;
        }
        #sidebar a {
            color: #fff;
            text-decoration: none;
            display: block;
            padding: 10px 20px;
        }
        #sidebar a:hover {
            background-color: #495057;
        }
        .navbar-brand {
            font-weight: bold;
            font-size: 1.4rem;
        }
        .content {
            padding: 20px;
        }
    </style>
</head>
<body>
    <nav class="navbar navbar-dark bg-dark px-3">
        <a class="navbar-brand" href="#">SOV - Sistema de Ordem de Viagens</a>
        <?= isset($_SESSION['usuario_nome']) ? $_SESSION['usuario_nome'] : ''; ?>
    </nav>
    <div class="container-fluid">
        <div class="row">
            <nav id="sidebar" class="col-md-3 col-lg-2 d-md-block bg-dark sidebar collapse">
                <div class="position-sticky pt-3">
                    <ul class="nav flex-column">
                        <!-- Exemplo de item de menu -->
                        <li class="nav-item">
                            <a class="nav-link" href="<?= URL ?>/paginas/index">
                                <i class="bi bi-house-door"></i> Home
                            </a>
                        </li>
                        <!-- Adicione outros itens de menu conforme necessário -->
                    </ul>
                </div>
            </nav>
            <main class="col-md-9 ms-sm-auto col-lg-10 px-md-4 content">
