body > header {
    padding: 0;
}
  
textarea {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    resize: none; /* Disable manual resizing */
}

ul.entry-list {
    list-style-type: none;
    padding: 0;
}

ul.entry-list li {
    margin-bottom: 0.5rem;
}

.hidden {
    display: none;
}

pre {
    white-space: pre-wrap;
}

button.delete {
    background-color: #C70039;
    border-color:  #C70039;
}

button.delete:hover {
    background-color:  #900C3F;
    border-color:   #900C3F;
}

@media (prefers-color-scheme: dark) {
    button.delete {
        background-color: red;
        border-color:  red;
    }

    button.delete:hover {
        background-color:  crimson;
        border-color:   crimson;
    }
}

.button-group {
    display: flex;
    justify-content: space-between;
}

.entry {
    padding: 0 1.5rem;
    background: var(--accent-bg);
    border: 2px solid var(--border);
    border-radius: 8px;
    margin: 2rem 0;
    font-family: var(--mono-font);
}

span.disabled {
    opacity: 0.3;
}

.inline {
    display: flex;
    gap: 20px; /* Adds spacing between mood and tags */
    align-items: flex-start;
    width: 100%; /* Ensures the full width is used */
    padding-bottom: 1rem;
}

.inline div {
    display: flex;
    flex-direction: column; /* Stacks label and input/select vertically */
    flex: 1; /* Allows the divs to grow */
}

.inline select {
    flex: 0 1 auto; /* Keeps dropdown at its natural width */
}

.inline input {
    flex: 1; /* Takes up remaining space */
    min-width: 150px; /* Ensures it doesn't shrink too much */
    width: 100%; /* Ensures it expands within the div */
}

hr {
    margin: 3rem auto 4rem auto;
    max-width: 80%;
}

h2 {
    font-size: 2rem;
}

.tag-cloud a {
    font-size: 1.25rem !important;
    margin: 5px;
    display: inline-block;
}

.tag-cloud a::before {
    content: "#";
}

.delete-container {
    display: flex;
    justify-content: flex-end;
}

ul.third-count {
  list-style-type: none;
  padding: 0;
  text-align: center;
}

ul.third-count li {
  display: inline-block;
  margin: 0.5rem 0.25rem;
  padding: 8px;
  border: 1px solid var(--text);
  border-radius: var(--standard-border-radius);
  background: var(--accent-bg);
}

ul.third-count li span {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: var(--accent);
  border-radius: var(--standard-border-radius);
  color: var(--bg);
}

.center {
    text-align: center;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.stats-grid > .card {
  display: flex;
  flex: 1 1 150px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.stats-grid > .card.third {
  flex: 0 1 calc(33.333% - 1rem);
  max-width: calc(33.333% - 1rem);
  box-sizing: border-box;
}

.stats-grid > .card.half {
  flex: 0 1 calc(50% - 1rem);
  max-width: calc(50% - 1rem);
  box-sizing: border-box;
}

@media (max-width:640px) {
  .stats-grid {
    display: block;
  }
  .stats-grid > .card {
    margin: 1rem auto;
  }
  .stats-grid > .card.third,
  .stats-grid > .card.half {
    max-width: 100%;
    flex: 1 1 100%;
  }
}

.card {
    padding: 1rem;
    background: var(--accent-bg);
    border: 1px solid var(--border);
    border-radius: var(--standard-border-radius);
}

.card h3 {
    margin: 0 0 0.25rem 0;
}

h3.stats-tags {
    font-size: 1.6rem;
    margin: 1.5rem 0 -1rem 0;
}

.card p {
    margin: 0;
}

ul.counter {
  list-style-type: none;
  padding: 0;
}

ul.counter li {
  display: inline-block;
  margin: 0.5rem 0.25rem;
  padding: 6px 4px;
  border: 1px solid var(--border);
  border-radius: var(--standard-border-radius);
  background: var(--accent-bg);
}

ul.counter li span {
  padding: 2px 6px;
  background: var(--accent);
  border-radius: var(--standard-border-radius);
  color: var(--bg);
}

input[name="q"] {
  width: 100%;
}