* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #202025;
  color: #000;
  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: #4c85a9;
}

a:hover {
  color: #dadada;
}

/* Styling for input and textarea elements */
input,
textarea,
select {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.4);
  width: 100%;
  color: #000;
  border-radius: 5px;
}

h1 {
  font-size: 24px;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 5px;
  margin-bottom: 10px;
   font-family: "alagambe";
    color: #000;
    text-transform: lowercase;
    margin-left: 5px;
}

h1:not(:first-child) {
  margin-top: 25px;
}


h2 {
    font-size: 13px;
    background: #d1c791;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    color: #fff;
    text-transform: uppercase;
}

#container {
  margin: 0 auto;
  max-width: 960px;
  display: flex;
  flex-wrap: wrap;
}

#footer {
  font-size: 12px;
  background-image: url('../img/footer.png');
  background-repeat: no-repeat;
  color: #000;
  padding: 10px;
  text-align: center;
  width: 100%;
  height: 100px;
}
#content {
  padding: 20px;
  flex: 1;
}

/* Minimal CSS for proper display of lists and other elements.
   Keeps things readable without adding heavy styling. */

small {
  opacity: 0.7;
}

/* Link styling */
a {
  transition: background-color 0.1s ease, transform 0.1s ease;
}

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.8);
  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 {
  width: 100%;
}

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 #000;
  padding: 15px;
  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: #fff;
  color: #000;
  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(255, 255, 255, 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: #000;
  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(255, 255, 255, 0.35);
  transform: translateX(3px);
}

li:nth-child(odd) {
  background-color: rgba(255, 255, 255, 0.4);
}

li:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.1);
}

/* Flex helper */
.flex {
  display: flex;
  align-items: flex-start;
}

.flex>div {
  flex: 1;
}

img {
  max-width: 100%;
}

/* Ensures text fields have consistent font styles across browsers. */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
}


.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: url('../img/box.png');
  margin-bottom: 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;
}

.affiliates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, auto));
  gap: 20px;
}

.affiliates .affiliate {
   background: url('../img/box.png');
  border: 1px solid #000;
  padding: 10px;
  border-radius: 3px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.affiliates img {
  display: block;
  min-width: 88px;
  min-height: 31px;
  max-width: 88px;
  max-height: 31px;
  object-fit: contain;
}

.codes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal {
  background: url('../img/box.png');
  backdrop-filter: blur(50px);
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  border: 1px solid #000;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close-button {
  background: none;
  border: none;
  font-size: 15pt;
  cursor: pointer;
}

#container {
  margin: 0 auto;
  max-width: 960px;
  display: flex;
  flex-wrap: wrap;
}

.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);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin: 15px 0;
}

.category-grid .grid-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 5px;
  border-radius: 3px;
}

.category-grid .grid-item img {
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  height: auto;
  display: block;
  margin-bottom: 5px;
  border-radius: 5px;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.tabs a {
  padding: 5px 10px;
  text-decoration: none;
  color: #d3d3d3;
  ;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 5px;
}

.tabs a.active {
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.category.active>a {
  font-weight: bold;
}

/* 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;
  }
}