<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Role Permissions</title>
  <style>
    body {
      font-family: Arial, sans-serif;
      margin: 20px;
    }
    .category-section {
      margin-bottom: 20px;
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 5px;
      background-color: #f9f9f9;
    }
    .category-section h3 {
      margin: 0 0 10px;
      font-size: 1.2em;
      color: #333;
    }


    .permissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Adjust the min width as needed */
  gap: 10px;
  margin: 0;
  padding: 0;
 
}

.permissions-grid div {
  display: flex;
  align-items: center;
}

.permissions-grid input[type="checkbox"] {
  margin-right: 10px;
}


    .permissions-list {
      list-style-type: none;
      padding: 0;
      margin: 0;
    }
    .permissions-list li {
      margin: 5px 0;
      display: flex;
      align-items: center;
    }
    .permissions-list label {
      margin-left: 10px;
      font-size: 0.95em;
    }
    #save-permissions {
      padding: 10px 20px;
      font-size: 1em;
      color: white;
      background-color: #007bff;
      border: none;
      border-radius: 5px;
      cursor: pointer;
    }
    #save-permissions:hover {
      background-color: #0056b3;
    }
  </style>
</head>
<body>
  <h1>Role Permissions</h1>
  <div id="permissions-container">
    <!-- Permissions will be dynamically populated here -->
  </div>
  <button id="save-permissions">Save Permissions</button>

  <script src="./js/permission.js"></script>
</body>
</html>
