<?php
session_start();
?>

<!DOCTYPE html>
<html lang="pt-br">
<head>
  <meta charset="UTF-8">
  <title>Logout</title>
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
  <style>
    .modal-header.bg-danger {
      background: #d9534f; /* Vermelho Bootstrap 3 */
      color: #fff; /* Texto branco */
    }
    .modal-header .close {
      color: #fff; /* Ícone X em branco */
      opacity: 1;
    }
  </style>
</head>
<body style="background:#f8f8f8;">

<!-- Modal -->
<div id="confirmLogout" class="modal fade" role="dialog">
  <div class="modal-dialog modal-sm">
    <div class="modal-content">
      <div class="modal-header bg-danger">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Confirma&ccedil;&atilde;o</h4>
      </div>
      <div class="modal-body">
        <p>Voc&ecirc; tem certeza que deseja sair?</p>
      </div>
      <div class="modal-footer">
        <form method="post" action="logout-processo.php" style="display:inline;">
          <button type="submit" class="btn btn-danger">Sim, sair</button>
        </form>
        <a href="dashboard.php" class="btn btn-default">Cancelar</a>
      </div>
    </div>
  </div>
</div>

<!-- jQuery e Bootstrap JS via HTTPS -->
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>

<!-- Script para abrir modal automaticamente -->
<script>
  $(document).ready(function(){
    $("#confirmLogout").modal("show");
  });
</script>

</body>
</html>
