/* styles.css - fælles styling til admin og frontend */

body, header, footer {
  background-color: #000; /* sort baggrund */
  color: #ddd;
  margin: 0;
  padding: 0;
  font-family: Tahoma, sans-serif;
}

header, footer {
  text-align: center;
  padding: 15px 10px;
  color: #888;
}

header .header-container,
footer .footer-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 10px;
}

.logo {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

.container {
  max-width: 1600px;
  margin: 20px auto 40px;
  padding: 0 10px;
}

h1, h2 {
  color: #aaa;
}

h1 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.categories-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  align-items: start;
}

.category-column, .category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-title {
  font-size: 1.3em;
  margin-bottom: 1rem;
  width: 100%;
  text-align: center;
  word-break: break-word;
}

.card, .link-card {
  width: 180px;
  background: #1a1a1a;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 10px 6px;
  box-shadow: 0 0 8px #555;
  margin-bottom: 12px;
  text-align: center;
  color: #ddd;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover, .link-card:hover {
  box-shadow: 0 0 12px #888;
  transform: translateY(-4px);
}

.favicon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  margin-bottom: 6px;
}

.card-title {
  font-size: 0.85em;
  font-weight: 600;
}

.logout-link {
  color: #aaa;
  text-decoration: none;
  margin-bottom: 1rem;
  display: inline-block;
}

.logout-link:hover {
  text-decoration: underline;
}

button, input[type="submit"] {
  background: #555;
  border: none;
  color: #ddd;
  font-weight: bold;
  font-size: 1em;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
  padding: 0.6rem 1.2rem;
  margin-top: 1rem;
}

button:hover, input[type="submit"]:hover {
  background-color: #777;
  color: #fff;
}

input[type="text"], input[type="password"] {
  background: #222;
  color: #ddd;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-size: 0.9em;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.6rem;
}

.message {
  color: #8a8a8a;
  margin-bottom: 1rem;
  width: 100%;
}

.error {
  color: #f44;
  margin-top: 1em;
  font-weight: bold;
}

.move-buttons button {
  background: #555;
  color: #ddd;
  border: none;
  padding: 2px 6px;
  margin-right: 4px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9em;
  line-height: 1;
  user-select: none;
}

.move-buttons button:hover {
  background: #777;
  color: #fff;
}
