/* Kompakt Sidebar-meny som fäller ut från vänster */

.sidebar-menu {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100vh;
  background: rgb(0, 0, 0);
  z-index: 9999;
  transition: left 0.3s ease;
  box-shadow: 2px 0 10px rgba(0,0,0,0.3);
}

.sidebar-menu.active {
  left: 0;
}

.sidebar-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #333;
}

.sidebar-header img {
  height: 40px;
}

.sidebar-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-close:hover {
  color: #ccc;
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
  padding-bottom: 0; /* Ta bort padding-bottom för att ge mer plats */
}

.sidebar-link {
  display: block;
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  font-size: 18px;
  font-weight: 400;
  transition: background-color 0.2s ease;
}

.sidebar-link:hover {
  background-color: #333;
  color: white;
  text-decoration: none;
}

.sidebar-link:active,
.sidebar-link:focus {
  color: white;
  text-decoration: none;
}

.sidebar-language {
  padding: 1.5rem 1.5rem 3rem 1.5rem; /* Öka bottom padding för att lyfta upp från botten */
  border-top: 1px solid #333;
  margin-top: auto; /* Tryck ner till botten men inte helt */
}

.language-switch {
  color: #ccc;
  text-decoration: none;
  font-size: 16px;
}

.language-switch:hover {
  color: white;
  text-decoration: none;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Responsiv design för mindre skärmar */
@media (max-width: 600px) {
  .sidebar-menu {
    width: 280px;
    left: -280px;
  }
  
  .sidebar-link {
    font-size: 18px;
    padding: 0.7rem 1.2rem;
  }
}
