@font-face {
  font-family: 'NeoSansBold';
  src: url('NeoSansStd-Bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}

/* Endast rubriken */
h1 {
  font-family: 'NeoSansBold', Arial, sans-serif;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #003DA5 0%, #ffffff 100%);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

#app {
  width: 100%;
  max-width: 900px;
  background: white;
  padding: 20px;
  margin: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

header img {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 80px;
}

.filter-bar, .add-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-bar select, .filter-bar input,
.add-bar select, .add-bar input {
  padding: 6px;
}

.item {
  border: 1px solid #ddd;
  padding: 8px;
  margin-bottom: 8px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f9f9f9; /* ljusgrå bakgrund */
  transition: background-color 0.2s ease;
  gap: 10px;
}

.item:hover {
  background-color: #e6f0ff; /* ljus blå vid hover */
}

.item button {
  margin-left: 5px;
}

button {
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Knappar med gradient */
button.primary, #addBtn {
  background: linear-gradient(to bottom, #003DA5, #002a73);
  color: white;
}

#resetBtn {
  background: linear-gradient(to bottom, #eee, #ddd);
  color: #333;
}

#resetBtn:hover {
  background: linear-gradient(to bottom, #ddd, #ccc);
}

button.danger {
  background: linear-gradient(to bottom, #d9534f, #c9302c);
  color: white;
}

button.danger:hover {
  background: linear-gradient(to bottom, #c9302c, #b52b27);
}

button.book {
  background: linear-gradient(to bottom, #eee, #ddd);
  color: #333;
}

button.book:hover {
  background: linear-gradient(to bottom, #ddd, #ccc);
}

@media (max-width: 600px) {
  .filter-bar, .add-bar {
    flex-direction: column;
  }
  header img { width: 60px; }
}

#resultCount {
  align-self: center;
  font-size: 14px;
  color: #333;
}

.logged-in-info {
  font-size: 14px;
  margin-top: -10px;
  margin-bottom: 10px;
}
.logged-in-info strong {
  font-weight: bold;
}

/* Interaktiv Logga ut */
#logoutLink {
  color: #003DA5;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
}

#logoutLink:hover {
  transform: scale(1.1);        /* växer lite */
  text-decoration: underline;
  color: #001e66;               /* lite mörkare blå */
}

.item.bokad {
  background-color: #ffdddd !important;
}

/* Logga som bakgrund */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('logga.png') no-repeat;
  background-size: 160%; /* minskad från 160% */
  background-position: -200px -100px;
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

.button-group {
  display: flex;
  gap: 8px;
  align-items: center;
}
