/* === BASE RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #0e0e0e;
  color: #f5f5f5;
  font-family: 'Courier New', monospace;
  padding: 40px 20px;
}

/* === CONTAINER === */
.container {
  max-width: 960px;
  margin: auto;
  background: #1a1a1a;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.05);
  border: 1px solid #333;
}

/* === HEADINGS === */
h1, h2 {
text-align: center;
  color: #ff3c3c;
  margin-bottom: 20px;
  text-shadow: 1px 1px 0 #000;
}

/* === FORM ELEMENTS === */
input[type="text"],
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 15px;
  font-family: inherit;
  background: #121212;
  color: #ffffff;
  border: 1px solid #ff3c3c;
  border-radius: 6px;
  transition: border 0.3s ease, background 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  background: #1e1e1e;
  border-color: #00ffff;
  outline: none;
}

/* === CODE BLOCKS === */
.code-block {
  background: #151515;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
  border-left: 5px solid #00ffff;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.2);
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

textarea.code {
  min-height: 140px;
  font-family: 'Fira Code', monospace;
  font-size: 14px;
  background: #0a0a0a;
  color: #00ff99;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 12px;
}

/* === BUTTON STYLES === */
button {
  font-size: 14px;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

#addBlockBtn {
  background: linear-gradient(45deg, #00ffff, #007bff);
  color: #0e0e0e;
  box-shadow: 0 0 10px #00ffff;
}

button[type="submit"] {
  background: linear-gradient(45deg, #ff3c3c, #ff0000);
  color: #fff;
  box-shadow: 0 0 12px #ff3c3c;
}

.paste-btn {
  background: #333;
  color: #00ffff;
  border: 1px solid #00ffff;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}

button:active {
  transform: scale(0.97);
}

/* === SNIPPET LIST === */
#snippetList {
  list-style: none;
  margin-top: 30px;
  padding-left: 0;
}

#snippetList li {
  margin-bottom: 12px;
}

#snippetList a {
  text-decoration: none;
  color: #00ffff;
  font-weight: bold;
  border-bottom: 1px dashed #00ffff;
  transition: color 0.2s;
}

#snippetList a:hover {
  color: #ff3c3c;
}
/* === SECTION TITLE === */
.section-title {
  font-size: 22px;
  color: #00ffff;
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid #00ffff;
  padding-bottom: 6px;
  display: inline-block;
  text-shadow: 1px 1px 2px #000;
}

/* === ARTICLE LIST CONTAINER === */
.snippet-wrapper {
  background: #121212;
  border: 1px solid #00ffff44;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}

/* === LIST STYLE === */
.snippet-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.snippet-list li {
  margin-bottom: 12px;
  padding: 12px 16px;
  background: #1b1b1b;
  border-left: 4px solid #00ffff;
  border-radius: 4px;
  transition: background 0.3s, transform 0.2s;
}

.snippet-list li:hover {
  background: #222;
  transform: translateX(5px);
}

/* === LINK STYLING === */
.snippet-list a {
  color: #00ffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s ease;
}

.snippet-list a:hover {
  color: #ff3c3c;
}
.floating-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(45deg, #00ffff, #007bff);
  color: white;
  border-radius: 20%;
  padding: 10px 10px;
  text-align: center;
  font-size: 14px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  text-decoration: none;
  transition: background-color 0.3s ease;
  z-index: 1000;
}

.floating-button:hover {
  background-color: #0056b3;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .code-header {
    flex-direction: column;
    align-items: stretch;
  }

  button,
  select {
    width: 100%;
  }

  #addBlockBtn,
  button[type="submit"] {
    margin-top: 10px;
  }
}
