@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@600;700&display=swap');

/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

body {
  background: #181825;
  color: #e0e0e0;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
}

.container {
  max-width: 700px;
  margin: 3em auto;
  background: #232336;
  border-radius: 1.2em;
  box-shadow: 0 2px 16px #0008;
  padding: 3em 3em 3em 3em;
}

h1 {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 1.5em;
  letter-spacing: 0.01em;
  color: #f5f5fa;
  text-align: center;
}

h2 {
  font-size: 1.3em;
  font-weight: 600;
  margin-top: 2em;
  margin-bottom: 0.8em;
  color: #b4b4e0;
}

section {
  border-left: 4px solid #36365a;
  padding-left: 1.5em;
  margin-bottom: 3em;
}

ul {
  list-style: none;
  padding: 0;
}

li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-areas: "title status actions" "desc desc actions";
  align-items: center;
  gap: 0.8em 1.2em;
  margin-bottom: 1em;
  background: #232336;
  border-radius: 0.8em;
  padding: 1em 1.3em;
  padding-bottom: 3em;
  box-shadow: 0 1px 4px #0004;
  min-height: 3.5em;
  position: relative;
}
li .badges {
  position: absolute;
  bottom: 0.8em;
  left: 0.8em;
  display: flex;
  gap: 0.5em;
  align-items: center;
}
li .item-title {
  grid-area: title;
  font-weight: 600;
  font-size: 1.08em;
}
li .item-desc {
  grid-area: desc;
  color: #8888a0;
  font-size: 0.97em;
  margin-top: -0.1em;
  margin-bottom: 0.2em;
}
li .item-status {
  grid-area: status;
  text-align: right;
  font-size: 0.98em;
  min-width: 6em;
}
li .item-actions {
  grid-area: actions;
  display: flex;
  gap: 0.7em;
  align-items: center;
  justify-content: flex-end;
}
li .item-link {
  display: block;
  margin-top: 0.3em;
  font-size: 0.9em;
}

a {
  color: #7dd3fc;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover {
  color: #38bdf8;
}

span[style*="background"] {
  /* badge styles, keep pastel from inline, but tweak text for dark mode */
  color: #232336 !important;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Progress and status */
span[style*="color: green"] {
  color: #4ade80 !important;
}
span[style*="color: #c00"] {
  color: #f87171 !important;
}
span[style*="color: #555"] {
  color: #a3a3b3 !important;
}

h1, h2 {
  font-family: 'Fredoka', 'Inter', 'Segoe UI', Arial, sans-serif;
}

::-webkit-scrollbar {
  width: 8px;
  background: #232336;
}
::-webkit-scrollbar-thumb {
  background: #36365a;
  border-radius: 4px;
}

input, select, textarea {
  border: 1px solid #36365a;
  border-radius: 0.5em;
  background: #232336;
  color: #e0e0e0;
  font-size: 1.1em;
  padding: 0.8em 1.2em;
  outline: none;
  transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
  border-color: #8B5CF6;
}
