* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #202025;
  color: #d5d6da;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10pt;
  line-height: 20px;
}

.ph {
  width: 1.25em;
  display: inline-block;
  text-align: center;
  font-size: 10pt;
  vertical-align: middle;
  color: inherit;
}

b,
strong {
  color: #999;
}

i,
em {
  color: #999;
}

small {
  opacity: 0.7;
}

/* Link styling */
a {
  text-decoration: none;
  color: #fff;
  transition: background-color 0.1s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

a:hover {
  color: #dadada;
}

a:active {
  transform: translateY(2px);
}

/* Ensures that when hovering over a <a> tag, its child elements (e.g., <i> icons) inherit the hover color. */
a>*,
a:hover>* {
  color: inherit;
}

/* Pagination links */
.pagination {
  margin-top: 20px;
  text-align: center;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 5px 10px;
  margin: 0 5px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255, 0.1);
  border-radius: 3px;
  background-color: rgba(0,0,0, 0.5);
  color: #fff;
}

.pagination a:hover {
  background-color: rgba(0,0,0, 0.8);
}

.pagination .current {
  background-color: rgba(255,255,255, 0.1);
  color: #fff;
}

/* Styling for input and textarea elements */
input,
textarea,
select {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  color: #fff;
  border-radius: 5px;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 5px;
}

.form-group label:before {
  content: "\E13A";
  font-family: "Phosphor";
  font-size: 10pt;
  vertical-align: middle;
  margin-right: 5px;
}

.form-group label:has(input[type="checkbox"]):before {
  content: none;
}

#password-strength-message {
  margin-top: 5px;
}

fieldset.settings-group {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
}

fieldset.settings-group legend {
  font-weight: bold;
  padding: 0 10px;
}

.letter-filter a {
  padding: 5px;
  border-radius: 10px;
}

.letter-filter a.all {
  padding: 5px 10px;
}

.letter-filter a.active {
  font-weight: bold;
  background: rgba(255, 255, 255, 0.1);
}

/* Button styling */
button {
  padding: 8px 16px;
  border: 1px solid #6e79ac;
  background-color: #555e85;
  color: #fff;
  cursor: pointer;
  text-align: center;
  display: inline-block;
  border-radius: 5px;
  transition: background-color 0.1s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

button:hover {
  filter: brightness(1.1);
}

button:active {
  transform: translateY(2px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
  background-color: rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

th:first-child {
  border-top-left-radius: 10px;
}

th:last-child {
  border-top-right-radius: 10px;
}

tr:nth-child(odd) {
  background-color: rgba(0, 0, 0, 0.2);
}

tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.1);
}

tr:hover {
  background-color: rgba(0, 0, 0, 0.35);
  transition: background-color 0.2s;
}

.actions {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
  align-items: center;
}

.actions a {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 8pt;
  font-weight: bold;
  text-transform: uppercase;
}

/* Lists */
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  padding: 10px 15px;
  margin-bottom: 8px;
  border-radius: 5px;
  color: #fff;
  transition: background-color 0.2s, transform 0.1s;
}

li:before {
  content: "\E13A";
  font-family: "Phosphor";
  font-size: 10pt;
  vertical-align: middle;
  margin-right: 5px;
}

li:hover {
  background-color: rgba(0, 0, 0, 0.35);
  transform: translateX(3px);
}

li:nth-child(odd) {
  background-color: rgba(0, 0, 0, 0.25);
}

li:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.15);
}

/* Flex helper */
.flex {
  display: flex;
  align-items: flex-start;
}

.flex>div {
  flex: 1;
}

/* Ensures text fields have consistent font styles across browsers. */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
}

h1 {
  font-size: 10pt;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

h1:not(:first-child) {
  margin-top: 25px;
}

.box {
  background: rgba(0, 0, 0, 0.5);
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 10px;
}

.dashboard-pending {
  background: rgba(0, 0, 0, 0.2);
  padding: 15px;
  border-radius: 10px;
  width: 50%;
  margin: 0 auto 10px auto;
}

.dashboard-pending h1 {
  border: 0;
  text-align: center;
}

.dashboard-pending li {
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-pending li:before {
  content: "\E13A";
  font-family: "Phosphor";
  font-size: 10pt;
  vertical-align: middle;
  margin-right: 5px;
}

.form {
  width: 90%;
  margin: 0 auto;
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  margin-bottom: 10px;
  border-radius: 10px;
}

.form button.large {
  width: 50%;
  min-width: 200px;
  margin: 0 auto;
  display: block;
}

.messages {
  background: rgba(0, 0, 0, 0.5);
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 10px;
  color: #fff;
}

.messages.success {
  background: #3e7454;
}

.messages.error {
  background: #a84c4c;
}

/* LAYOUT CSS STARTS HERE */

#container {
  margin: 0 auto;
  max-width: 960px;
  display: flex;
  flex-wrap: wrap;
}

#footer {
  font-size: 8pt;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 10px;
  text-align: center;
  width: 100%;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
}

#topbar {
  background: #7988cc;
  color: #fff;
  padding: 20px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topmenu {
  background: #5b6697;
  color: #fff;
  padding: 10px 20px;
  text-align: center;
  width: 100%;
  display: flex;
  gap: 5px;
}

.topmenu a {
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 10px;
  border-radius: 5px;
}

.topmenu a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

#logo {
  display: flex;
  flex-direction: column;
}

#logo .name {
  font-size: 12pt;
  font-weight: bold;
}

#logo .slogan {
  font-size: 9pt;
}

#content {
  background: #18181d;
  padding: 20px;
  flex: 1;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  padding: 10px;
  margin-bottom: 25px;
}

.dashboard a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 3px solid rgba(255, 255, 255, 0.09);
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
  text-align: center;
}

.dashboard a i {
  margin-right: 10px;
}

.dashboard a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Responsive CSS (phones and tablets) */
@media (max-width: 768px) {
  #container {
    padding: 10px;
    flex-direction: column;
  }

  #sidebar {
    width: 100%;
    order: 2;
    padding: 15px;
  }

  #header {
    padding: 15px;
  }

  #footer {
    padding: 15px;
    order: 3;
  }

  #content {
    padding: 15px;
    order: 1;
  }
}