body {
  margin: 0;
  font-family: "Segoe UI", "Roboto", Arial, sans-serif;
  background: #181c23;
  color: #e1e3ea;
}

.sidebar {
  width: 270px;
  height: 100vh;
  background: #21232b;
  position: fixed;
  top: 0;
  left: 0;
  padding-bottom: 24px;
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.20);
}

.logo {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  padding: 30px 24px;
}

.brand-accent {
  color: #fed5ce;
  font-weight: 900;
}

.nav-items a {
  display: flex;
  align-items: center;
  font-size: 17px;
  color: #bfc3d0;
  padding: 13px 20px 13px 10px;
  border-radius: 8px;
  margin: 3px 14px;
  text-decoration: none;
}

.nav-items a.active,
.nav-items a:hover {
  background: #282c36;
  color: #fed5ce;
}

.nav-items a .material-icons {
  font-size: 22px;
  margin-right: 16px;
}

.main {
  margin-left: 270px;
  padding: 38px 44px;
}

h1 {
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.role-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.role-table th,
.role-table td {
  border-bottom: 1px solid #2c3045;
  padding: 12px 8px;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  vertical-align: middle;
}

.role-table th {
  color: #aaa;
  text-transform: uppercase;
  font-size: 13px;
  background: #21232b;
  position: sticky;
  top: 0;
  z-index: 2;
}

.role-table tr:hover {
  background: #282c36;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

button {
  background: #fed5ce;
  color: #181c23;
  font-weight: 600;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  min-width: 60px;
}

#statusMsg {
  margin-top: 12px;
  font-size: 14px;
  color: #4caf50;
  display: none;
}

#addRoleForm,
#moduleControlsForm {
  margin-bottom: 30px;
  display: flex;
  gap: 10px;
}

#newRoleName,
#newModuleName,
#deleteModuleSelect {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: #282c36;
  color: #fff;
  font-size: 15px;
}

#deleteModuleSelect {
  max-width: 200px;
}

.action-col {
  min-width: 80px;
  white-space: nowrap;
}
