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

body {
  font-family: system-ui, sans-serif;
  background: #f5f5f5;
  color: #000;
}

header {
  background: white;
  padding: 10px 0;
  text-align: center;
  border-bottom: 1px solid #ccc;
}

header img {
  height: 50px;
}

.user-bar {
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem;
  font-size: 0.95rem;
  border-bottom: 1px solid #ddd;
  color: #444;
}

.user-bar img.avatar {
  border-radius: 50%;
  height: 36px;
  width: 36px;
}

.user-bar a {
  text-decoration: none;
  color: #d00000;
  font-weight: bold;
  margin-left: 0.5rem;
}

nav {
  overflow-x: auto;
  background: #fff;
  border-bottom: 1px solid #ccc;
}

.nav-inner {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  padding: 12px 18px;
  white-space: nowrap;
  min-width: 100%;
}

nav::-webkit-scrollbar {
  display: none;
}

nav a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
  font-size: 1rem;
  transition: color 0.2s;
}

nav a:hover {
  color: #b30000;
}

main {
  padding: 20px;
  max-width: 900px;
  margin: auto;
}

.tool-link {
  background: white;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.tool-link a {
  text-decoration: none;
  color: #b30000;
  font-weight: bold;
}

/* Extra Styles for article.php */
.container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}

h1 {
  color: #c00;
  text-align: center;
  margin-bottom: 30px;
}

a.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: #c00;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
}

a.back-link:hover {
  text-decoration: underline;
}

form {
  background: #fff;
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

form h3 {
  margin-top: 0;
  color: #c00;
}

input[type="url"],
input[type="text"],
textarea {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

button {
  background-color: #c00;
  color: white;
  padding: 10px 18px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #900;
}

.message {
  padding: 15px;
  margin-bottom: 25px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1.05em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.article-title {
  background: #fff;
  padding: 15px 20px;
  border-radius: 6px;
  margin-bottom: 15px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.article-title a {
  font-weight: bold;
  font-size: 1.1em;
  color: #c00;
  text-decoration: none;
}

.article-title a:hover {
  text-decoration: underline;
}

.article-title small {
  color: #666;
  display: block;
  margin-top: 5px;
}
