body {
  font-family:
    "Noto Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif,
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol";
  background-color: #f0f2f5;
  min-height: 100vh;
}

main {
  max-width: 95%;
  margin: 0 auto;
}

nav {
  display: flex;
  margin-left: auto;
}

menu a:has(img) {
  background-color: transparent;
  display: inline;
}

menu img {
  height: 2em;
}

menu a,
button[type="submit"],
.filter-btn,
.new-request-btn {
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95em;
}

menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #007bff;
  color: white;
  border: none;
  text-decoration: none;
}

input,
select {
  padding: 10px 12px;
  border: 2px solid #a4daf5;
  border-radius: 8px;
  font-size: 1rem;
  width: 200px;
}

input {
  margin: 2px;
}

label {
  font-weight: bold;
}

fieldset {
  display: inline;
  border: none;
  margin: 0;
  padding: 2px;
}

fieldset input,
fieldset select,
fieldset textarea {
  display: block;
}

fieldset:has(textarea) {
  width: 100%;
}

textarea {
  width: 100%;
}

input:focus {
  border-color: #007bff;
  outline: none;
}

button[type="submit"] {
  background-color: #5cb8e7;
  color: white;
  border: none;
  display: inline;
  transition: background-color 0.2s;
}

button:hover {
  filter: brightness(0.7);
}

section {
  margin: 20px auto;
  background-color: #ffffff;
  border-radius: 8px;
  border: darkgray 1px solid;
  padding: 20px;
}

header {
  display: flex;
  align-items: center;
}

header h1 {
  font-size: 1.5em;
  font-weight: 600;
  color: #333;
  margin: 0;
}

header time {
  margin-left: 10px;
}

header cite {
  margin-left: auto;
}

menu nav {
  float: right;
  gap: 10px;
  align-items: center;
}

a.subtle {
  color: inherit;
}

.filter-btn {
  background-color: #fff;
  border: 1px solid #ddd;
  color: #555;
}

.new-request-btn {
  background-color: #007bff;
  color: white;
  border: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
  table-layout: fixed;
  background: #fff;
}

table tr + tr {
  border-top: 1px solid #eee;
}

table th,
table td {
  padding: 12px;
  text-align: left;
  border-bottom: none;
}

table th {
  font-weight: 500;
  color: #666;
  background-color: #f9f9f9;
}

table a {
  color: #06c;
  text-decoration: none;
}

table a:hover {
  text-decoration: underline;
}

table tr:hover {
  background-color: #f5f5f5;
}

/* <mark> is used for tags/badges */
mark {
  display: inline-block;
  font-size: 0.75rem;
  padding: 3px 8px;
  margin: 2px 2px 0 0;
  border-radius: 6px;
  text-align: center;
  background-color: #eee;
  color: #333;
  border: none;
  font-weight: 500;
}

mark form {
  display: inline-block;
  visibility: hidden;
}

mark:hover form {
  visibility: visible;
}

mark button[type="submit"] {
  padding: 3px;
  margin-left: 1em;
  display: inline;
  color: inherit;
  border: none;
  cursor: pointer;
  font-size: inherit;
  font-weight: inherit;
  gap: 0;
  transition: none;
  background-color: inherit;
  backdrop-filter: brightness(1.5);
}

mark div {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #ddd;
}

time {
  font-size: smaller;
  color: #666;
}

.priority-low {
  background-color: #444;
  color: #fff;
}

.priority-medium {
  background-color: #e77;
  color: #fff;
}

.priority-high {
  background-color: #f0ad4e;
  color: #fff1e0;
}

.priority-critical {
  background-color: #d9534f;
  color: #ffe1e0;
}

.priority-unknown {
  background-color: #ccc;
  color: #000;
}

.col-id {
  width: 5%;
}

.col-author {
  width: 10%;
}

.col-priority {
  width: 8%;
}

.col-status {
  width: 8%;
}

.col-assignee {
  width: 10%;
}

.col-created {
  width: 8%;
}

.logo-container img {
  margin-bottom: 30px;
  max-width: 100%;
  height: auto;
}

.form-group {
  text-align: left;
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.9rem;
  color: #555;
  font-weight: 500;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
  background-color: #eaf4ff;
  color: #333;
  appearance: none;
}

article {
  border: 1px solid #c2e0ff;
  border-radius: 6px;
  background-color: white;
  padding: 6px;
  min-height: 40px;
  margin-top: 1em;
}

article header {
  position: relative;
  left: 0.5em;
  top: -1em;
  margin-bottom: 0px;
  background-color: white;
  max-width: fit-content;
  padding-left: 0.5em;
  padding-right: 0.5em;
}

article.message {
  display: grid;
  grid-template-columns: 3em 1fr;
  gap: 0 12px;
  padding: 16px;
  background-color: #f4f7fc;
}

article.message > mark {
  grid-row: span 2;
  width: 2.5em;
  height: 2.5em;
  font-size: 1rem;
  line-height: 2.5em;
  border-radius: 50%;
  background-color: #9b59b6;
  color: white;
}

article.message > header {
  position: static;
  padding: 0;
  display: flex;
  max-width: none;
  left: 0;
  background-color: #f4f7fc;
  top: 0;
}

article.message > header cite {
  margin-left: 1em;
  font-style: normal;
}

article.message > div {
  margin-left: 1em;
}

article.message > header time {
  margin-left: auto;
}

.error-message {
  border: 1px solid #e74c3c;
  background-color: #fdecea;
  color: #e74c3c;
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.error-message header {
  background-color: #fdecea;
  top: auto;
}

.stats-section {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  margin: 0 auto;
  position: relative;
}

.stat-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s;
  min-width: 200px;
  border: none;
}

figure {
  margin-top: 0.3em;
  margin-bottom: 0.3em;
}

.stat-card:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 5px;
  border-radius: 8px 0 0 8px;
}

.card-total::before {
  background-color: #007bff;
}

.card-open::before {
  background-color: #dc3545;
}

.card-progress::before {
  background-color: #ffc107;
}

.card-resolved::before {
  background-color: #28a745;
}

.stat-label {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #343a40;
  line-height: 1;
}

.stat-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
}

.icon-blue {
  border: 2px solid #007bff;
}

.icon-red {
  border: 2px solid #dc3545;
}

.icon-yellow {
  border: 2px solid #ffc107;
}

.icon-green {
  border: 2px solid #28a745;
}

footer {
  background-color: #192a56;
  color: white;
  width: 100%;
  margin-top: -100px;
  position: relative;
  z-index: -1;
  padding: 140px 0 40px 0;

  background-image:
    radial-gradient(ellipse at center, rgba(30, 60, 90, 0.4) 0%, rgba(25, 42, 86, 0) 70%),
    linear-gradient(to top, rgba(25, 42, 86, 0.2) 0%, rgba(25, 42, 86, 1) 100%);
  background-size: cover;
  background-position: center;
}
