body {
    background-color: #111;
    color: #fff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
}

h1 {
    text-align: center;
    color: white;
}

.input-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

input {
    width: 60%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    background: #e8f0fe;
}

button {
    padding: 10px 15px;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
}

.section {
    background: #1c1c1c;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.readme-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.readme-display {
    background: #222;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
}

pre code {
    display: block;
    background: #161b22;
    color: #c9d1d9;
    padding: 12px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid #30363d;
    white-space: pre;
}



code {
    color: #9cdcfe;
}
/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ff4444;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(20px);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}


/* Style for the disabled button state */
button:disabled {
  background: #555;
  cursor: not-allowed;
  opacity: 0.7;
}

/* simple spinner animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Class for the inline spinner in the button */
.spinner {
  display: inline-block;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  width: 1em;
  height: 1em;
  animation: spin 1s linear infinite;
  margin-right: 8px;
  vertical-align: middle; /* Aligns spinner + text */
}

/* Container for the README loading message */
.loader-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 200px; 
  font-size: 1.2em;
  color: #888;
}


/* --- README Content Formatting --- */
/* This targets headers ONLY inside the readme display area */

#readme h1 {
  font-size: 2em;
  border-bottom: 2px solid #444;
  padding-bottom: 0.3em;
  margin-bottom: 0.8em;
}

#readme h2 {
  font-size: 1.6em;
  border-bottom: 1px solid #333;
  padding-bottom: 0.2em;
  margin-top: 1.5em;
  margin-bottom: 0.8em;
}

#readme h3 {
  font-size: 1.3em;
  margin-top: 1.2em;
  margin-bottom: 0.6em;
}

#readme p {
  line-height: 1.6;
}

/* Style for inline code */
#readme code {
  background-color: #161b22;
  color: #c9d1d9;
  padding: 0.2em 0.4em;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.9em;
}

/* Style for code blocks */
#readme pre > code {
  display: block;
  padding: 1em;
  border-radius: 8px;
  border: 1px solid #30363d;
  white-space: pre;
  font-size: 0.9em;
}

#readme ul, #readme ol {
  padding-left: 2em;
}

#readme li {
  margin-bottom: 0.5em;
}

/* --- Footer Styles --- */

footer {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  color: #888;
  border-top: 1px solid #333;
}

footer a {
  color: #58a6ff; 
  font-weight: bold; 
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #fff; 
  text-decoration: underline;
}