/* Minimal CSS for proper display of lists and other elements.
   Keeps things readable without adding heavy styling.
   Can also be used as a reference if you want to style all existing elements. */

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

.pagination a:hover {}

.pagination .current {}

/* 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 {
  padding: 15px;
}

fieldset.settings-group legend {
  font-weight: bold;
  padding: 0 10px;
}

.letter-filter a {
  padding: 5px;
}

.letter-filter a.all {
  padding: 5px 10px;
}

.letter-filter a.active {
  font-weight: bold;
}

/* Button styling */
button {
  padding: 8px 16px;
  cursor: pointer;
  text-align: center;
  display: inline-block;
  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);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px;
  text-align: left;
}

th {
  font-weight: bold;
}

th:first-child {
  border-top-left-radius: 10px;
}

th:last-child {
  border-top-right-radius: 10px;
}

tr:nth-child(odd) {}

tr:nth-child(even) {}

tr:hover {
  transition: background-color 0.2s;
}

.actions {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
  align-items: center;
}

.actions a {
  padding: 5px 10px;
  font-size: 8pt;
  font-weight: bold;
  text-transform: uppercase;
}

/* Lists */
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  padding: 5px 10px;
  margin-bottom: 8px;
  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 {
  transform: translateX(3px);
}

li:nth-child(odd) {}

li:nth-child(even) {}

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

.box {
  padding: 15px;
  margin-bottom: 10px;
}

.dashboard-pending {
  padding: 15px;
  width: 50%;
  margin: 0 auto 10px auto;
}

.dashboard-pending h1 {
  border: 0;
  text-align: center;
}

.dashboard-pending li {}

.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;
  margin-bottom: 10px;
}

.form button.large {
  width: 50%;
  min-width: 200px;
  margin: 0 auto;
  display: block;
}

.messages {
  padding: 15px;
  margin-bottom: 10px;
}

.messages.success {}

.messages.error {}

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

.affiliates .affiliate {
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.affiliates img {
  display: block;
  min-width: 88px;
  min-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-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(50px);
  padding: 20px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.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;
  text-decoration: none;
  transition: background 0.3s;
  text-align: center;
}

.dashboard a i {
  margin-right: 10px;
}

.dashboard a:hover {}

.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;
  padding: 5px;
}

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

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

.tabs a {
  padding: 5px 10px;
  text-decoration: none;
}

.tabs a.active {
  font-weight: bold;
}

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