/* GLOBAL RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  font-family: Arial, sans-serif;
  background: #f7f7f7;
  color: #222;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

/* DARK MODE */
body.dark {
  background: #1e1e1e;
  color: #f1f1f1;
}

body.dark .container {
  background: #2a2a2a;
  color: #f1f1f1;
}

body.dark nav {
  background: #333;
}

body.dark footer {
  background: #333;
  border-top-color: #555;
}

body.dark pre {
  background: #1e1e1e;
  border-color: #555;
}

body.dark textarea {
  background: #2a2a2a;
  color: #fff;
  border-color: #555;
}

/* CONTAINER */
.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: background 0.3s, color 0.3s;
}

/* HEADERS */
h1 {
  font-size: 32px;
  color: #007bff;
  text-align: center;
  margin-bottom: 20px;
}

h2 {
  font-size: 24px;
  color: #007bff;
  margin-top: 30px;
  margin-bottom: 10px;
}

/* PARAGRAPHS & LISTS */
p, li {
  font-size: 18px;
  margin-bottom: 12px;
}

/* NAVIGATION BAR */
nav {
  background: #007bff;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  transition: background 0.3s;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}

nav a:hover {
  opacity: 0.8;
}

/* FOOTER */
footer {
  background: #f1f1f1;
  padding: 30px 20px;
  text-align: center;
  margin-top: 40px;
  border-top: 1px solid #ddd;
  transition: background 0.3s, color 0.3s;
}

footer a {
  color: #007bff;
  margin: 0 10px;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* BUTTONS */
button, .btn {
  display: inline-block;
  background: #007bff;
  color: white;
  padding: 14px 20px;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  transition: background 0.3s, transform 0.1s;
}

button:hover, .btn:hover {
  background: #0056d6;
}

button:active, .btn:active {
  transform: scale(0.97);
}

button:disabled {
  background: #7fa8e6;
  cursor: not-allowed;
}

/* TEXTAREA */
textarea {
  width: 100%;
  padding: 15px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fafafa;
  resize: vertical;
  transition: background 0.3s, color 0.3s;
}

/* OUTPUT BOX */
.output-box {
  margin-top: 40px;
  padding: 20px;
  background: #fafafa;
  border-radius: 8px;
  border: 1px solid #ddd;
  transition: background 0.3s, color 0.3s;
}

.output-box pre {
  background: #fff;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
  white-space: pre-wrap;
  font-size: 15px;
  transition: background 0.3s, color 0.3s;
}

/* 404 PAGE */
.error-box {
  text-align: center;
  padding: 60px 20px;
}

.error-box h1 {
  font-size: 60px;
  margin-bottom: 20px;
}

.error-box p {
  font-size: 20px;
  margin-bottom: 30px;
}

/* MAINTENANCE PAGE */
.maintenance-box {
  text-align: center;
  padding: 60px 20px;
}

.maintenance-box h1 {
  font-size: 40px;
  margin-bottom: 20px;
}

/* MOBILE */
@media (max-width: 600px) {
  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
  p, li { font-size: 16px; }
  nav a { font-size: 16px; }
  button, .btn { font-size: 16px; }
}
