* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.sidebar {
  background-color: #133C55;
  color: #fff;
  width: 250px;
  transition: width 0.3s ease;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow: hidden;
  z-index: 1000;
}

.sidebar.closed {
  width: 40px;
}

.sidebar-toggle {
  padding: 10px;
  cursor: pointer;
  background-color: #0f2f46;
  text-align: right;
  user-select: none;
}

.toggle-icon {
  width: 24px;
  height: 24px;
}

.sidebar-nav {
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar-nav ul {
  list-style: none;
  flex: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  transition: background 0.3s ease;
}

.sidebar-link:hover {
  background-color: #1b4d6e;
}

.sidebar-icon {
  width: 24px;
  height: 24px;
  margin-right: 12px;
}

.sidebar.closed .sidebar-link span {
  display: none;
}

.sidebar.closed .sidebar-link {
  justify-content: center;
}

.sidebar.closed .sidebar-icon {
  margin-right: 0;
}

.sidebar-toggle img,
.sidebar-link img {
  filter: invert(1);
}

.profile-item {
  margin-top: auto;
}

@media (max-width: 768px) {
  .sidebar {
    width: 40px;
  }

  .sidebar.open {
    width: 250px;
  }

  .sidebar.open .sidebar-link span {
    display: inline;
  }

  .sidebar-link span {
    display: none;
  }

  .sidebar-link {
    justify-content: center;
  }

  .sidebar-icon {
    margin-right: 0;
  }

  .sidebar-toggle {
    display: none;
  }

  .sidebar.open .sidebar-toggle {
    display: block;
  }
}
