body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: white;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  max-width: none;
}

h1 {
  margin-bottom: 10px;
}

.card {
  width: 100%;
  background: #fff;
  border-radius: 1.2em;
  box-shadow: 0 2px 8px #e0e7ef;
  padding: 1.5em 1.2em 1.2em 1.2em;
  margin-bottom: 2em;
  /* Remove max-width and margin-left/right if present */
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.card h2 {
  margin-top: 0;
  margin-bottom: 0.5em;
  font-size: 1.4em;
}
a.button {
  display: inline-block;
  background: tomato;
  color: white;
  padding: 10px 14px;
  border-radius: 6px;
  text-decoration: none;
}
input, textarea {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ddd;
  border-radius: 6px;
}
textarea {
  min-height: 250px;
  width: 100%;
  font-size: 1em;
  padding: 0.8em;
  border-radius: 1em;
  border: 1.5px solid #b3e0ff;
  background: #f8fafc;
  resize: vertical;
}
button {
  width: 104%;
  padding: 12px;
  background: tomato;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
}
ul { padding-left: 20px; }
.delete-btn {
  background: #ffeaea;
  color: #d32f2f;
  border: none;
  border-radius: 1.2em;
  padding: 0.4em 1.1em;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
  margin-right: 0.2em;
  display: inline-block;
  vertical-align: middle;
}
.delete-btn:hover,
.delete-btn:focus {
  background: #ffd6d6;
  outline: none;
}
.tags {
  margin: 0.5em 0;
  margin-bottom: 0.7em;
}
.tag {
  display: inline-block;
  background: #e0f0ff;
  color: #2176bd;
  border-radius: 1em;
  padding: 0.2em 0.8em;
  font-size: 0.95em;
  margin-right: 0.3em;
  text-decoration: none;
  transition: background 0.2s;
}
.tag:hover {
  background: #b3e0ff;
}
.create-btn {
  display: inline-block;
  background: #4a90e2;
  color: #fff;
  padding: 0.75em 1.5em;
  border-radius: 2em;
  font-size: 1.1em;
  text-decoration: none;
  margin: 1em 0;
  box-shadow: 0 2px 8px rgba(74,144,226,0.08);
  transition: background 0.2s;
}
.create-btn:hover,
.create-btn:focus {
  background: #357ab8;
  color: #fff;
}
.site-header {
  display: flex;
  align-items: center;
  background: #f8fafc;
  padding: 1.2em 1em 1em 1em;
  border-bottom: 2px solid #e0e7ef;
  border-radius: 0 0 1.5em 1.5em;
  box-shadow: 0 2px 8px rgba(74,144,226,0.06);
  margin-bottom: 1.5em;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 0.7em;
}

.site-title {
  font-size: xxx-large;
  font-weight: 600;
  color: #2c3e50;
  text-decoration: none;
  margin: 0;
  display: inline-flex;
  align-items: center;
}

/* Beta flag styling */
.beta-flag {
  font-size: 0.4em;
  color: #3498db;
  font-weight: 400;
  text-transform: lowercase;
  vertical-align: middle;
  margin-left: 8px;
  opacity: 0.8;
  line-height: 1;
}

.logo {
  height: 1em;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

.category-label {
  display: inline-block;
  background: #ffe0b2;
  color: #b26a00;
  border-radius: 1em;
  padding: 0.2em 0.8em;
  font-size: 0.95em;
  margin-right: 0.5em;
  margin-bottom: 0.3em;
}

select[name="category"] {
  background: #f0f6ff;
  color: #2176bd;
  border: 1.5px solid #b3e0ff;
  border-radius: 1.5em;
  padding: 0.6em 1.2em;
  font-size: 1em;
  margin: 0.5em 0 1em 0;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px #e0e7ef;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

select[name="category"]:focus {
  border: 1.5px solid #4a90e2;
  box-shadow: 0 0 0 2px #b3e0ff;
  background: #e6f2ff;
}

.back-link {
  display: inline-block;
  margin-top: 2em;
  color: #4a90e2;
  background: #eaf4ff;
  padding: 0.6em 1.2em;
  border-radius: 1.5em;
  text-decoration: none;
  font-weight: 500;
  font-size: 1em;
  box-shadow: 0 1px 4px #e0e7ef;
  transition: background 0.2s, color 0.2s;
}
.back-link:hover,
.back-link:focus {
  background: #4a90e2;
  color: #fff;
}
.tags-input-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4em;
  background: #f0f6ff;
  border: 1.5px solid #b3e0ff;
  border-radius: 1.5em;
  padding: 0.4em 0.8em;
  margin-bottom: 1em;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  background: #e0f0ff;
  color: #2176bd;
  border-radius: 1em;
  padding: 0.2em 0.8em;
  font-size: 0.95em;
  margin-right: 0.1em;
  margin-bottom: 0.1em;
}

.tag-chip .remove-tag {
  margin-left: 0.4em;
  cursor: pointer;
  font-weight: bold;
  color: #2176bd;
  transition: color 0.2s;
}

.tag-chip .remove-tag:hover {
  color: #d32f2f;
}

#tag-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 1em;
  min-width: 80px;
  flex: 1;
  padding: 0.3em 0;
}

.card-image {
  width: 100%;
  text-align: center;
  margin-bottom: 1em;
}
.card-image img {
  max-width: 100%;
  max-height: 180px;
  border-radius: 1em;
  object-fit: cover;
  box-shadow: 0 2px 8px #e0e7ef;
}

.register-link {
  text-align: center;
  margin-top: 2em;
  font-size: 1.07em;
  color: #4a90e2;
}

.register-link a {
  color: #fff;
  background: #4a90e2;
  padding: 0.6em 1.2em;
  border-radius: 1.5em;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}
.register-link a:hover,
.register-link a:focus {
  background: #357ab8;
  color: #fff;
}
.instructions-list {
  margin: 1em 0 2em 1.5em;
  padding: 0;
  font-size: 1.08em;
}
.instructions-list li {
  margin-bottom: 0.7em;
  line-height: 1.6;
}
.public-badge {
  display: inline-block;
  background: #e0ffe0;
  color: #219a00;
  font-size: 0.95em;
  border-radius: 1em;
  padding: 0.18em 0.8em 0.18em 0.6em;
  margin-left: 0.5em;
  vertical-align: middle;
  font-weight: 500;
}
.public-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin: 1em 0 1.5em 0;
  color: #219a00;
  background: #f0fff0;
  border-radius: 1.5em;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border: 1.5px solid #b3e0ff;
}

.public-checkbox-label input[type="checkbox"] {
  accent-color: #219a00;
  width: 1.2em;
  height: 1.2em;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .main-container {
    padding: 15px;
  }
}

@media (max-width: 1024px) {
  .main-container {
    padding: 10px;
  }
}

@media (max-width: 768px) {
  .site-title {
    font-size: xx-large;
  }

  .logo {
    height: 1em;
  }
}
