body {
    background:#000;
    color:#0f0;
    font-family: monospace;
    margin:0; padding:2rem;
    line-height:1.4;
}
nav {
    margin-bottom: 0rem;
    display: flex;
    gap: 1rem; /* space between links */
    align-items: flexstart; /* align top of ASCII blocks */
}

nav a {
    color:rgb(166, 0, 255);
    text-decoration:none;
}

nav a:hover { 
    color:#ff0; 
    /* border:1px solid #ff0;  */
}

#dynamic-header {
  display: block;
  margin-top: 2rem;
  margin-bottom: 2rem;
  width: 100%;
  text-align: center;
  color: #0f0; 
  /* text-shadow: rgb(255, 255, 255) 0 0 10px; */
  /* font-weight: bold; */
  font-family: monospace;
  /* animation: flicker 1s infinite; */
}

section {
    margin-top:0rem;
    padding:1rem;
    border:2px double #0f0;
    background:#010101;
    position:relative;
}

article {
    border:1px dashed #ff0;
    padding:0.5rem;
    margin-bottom:1rem;
    background:#020202;
}



#global-ascii-header {
    padding: 1rem;
    border-bottom: 2px dashed rgb(255, 255, 255);
}

.ascii-section-title {
  font-family: monospace;
  white-space: pre;
  color: #0ff; /* cyan for example */
  text-align: center;
  margin: 1rem 0;
  font-size: xx-small;
}

.ascii-section-link {
  text-decoration: none;
  white-space: pre;
  font-size: smaller;
}

.ascii-frame {
    border:1px dashed #ff0;
    padding:0.5rem;
    margin-bottom:0.5rem;
    white-space: pre-wrap;
}

.request {
  display: flex;
  justify-content: space-between; /* titre à gauche, date à droite */
  align-items: flex-start;
  border: 1px dashed #0f0;
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-family: monospace;
  white-space: pre-wrap;
  background: #000; /* style terminal */
}

.request.pending {
  color: #ff0;
  border-color: #ff0;
}

.request.added {
  color: #0f0;
  border-color: #0f0;
}

.request-left {
  flex: 1; /* occupe tout l'espace sauf la date */
}

.request-date {
  flex-shrink: 0;
  text-align: right;
  color: #888; /* légèrement gris pour ne pas voler le focus */
}

/* Formulaire en mode terminal ASCII */
#request-form {
  border: 1px dashed #0f0;
  text-align: center;
  padding: 1rem;
  margin-bottom: 1rem;
  font-family: monospace;
  background: #000;
  color: rgb(255, 255, 255);
  white-space: pre-wrap;
}

/* Inputs et select */
#request-form input,
#request-form select {
  text-align: left;
  font-size: 1rem;
  background: #000;
  color: rgb(255, 255, 255);
  border: 1px solid rgb(255, 255, 255);
  padding: 0.3rem;
  margin: 0.2rem 0.5rem 0.2rem 0;
  font-family: monospace;
}

#stats-section {
  font-family: monospace;
  color: #0f0;
  background: #000;
  padding: 1rem;
}

#stats-section h2 {
  margin-top: 2rem;
  border-bottom: 1px dashed #0f0;
}

#stats-section div {
  margin-top: 0.5rem;
}

.stat-item {
  font-family: monospace;
  border-bottom: 1px dotted #0f0;
  padding: 0.2rem 0;
  white-space: pre;
  color: #0f0;
}

.stat-item span.bar {
  color: #ff0; /* empty part of the bar */
}



/* Boutons */
#request-form button,
.request button {
  background: #000;
  color: #0f0;
  border: 1px dashed #0f0;
  padding: 0.3rem 0.8rem;
  font-family: monospace;
  cursor: pointer;
  margin-left: 0.5rem;
  white-space: nowrap;
}

#request-form button:hover,
.request button:hover {
  color: #ff0;
  border-color: #ff0;
}

@keyframes flicker {
    0% {opacity:0.;}
    50% {opacity:1;}
    100% {opacity:0.5;}
}
