aside.sidebar {
  position: fixed;
  top: 0;
  width: var(--nav-width);
  height: 100vh;
  background: #134e4a;
  border-right: none;
  box-shadow: 4px 0 28px rgba(0, 0, 0, 0.14);
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;

  .logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2dd4bf 0%, #0d9488 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  }

  .nav-fab {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2dd4bf 0%, #0d9488 100%);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(13, 148, 136, 0.6);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
  }
  .nav-fab .material-icons { font-size: 24px; }
  .nav-fab:hover {
    transform: scale(1.12) translateY(-1px);
    box-shadow: 0 7px 26px rgba(13, 148, 136, 0.75);
    color: #fff;
  }

  nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
  }

  .nav-item {
    width: 56px;
    padding: 6px 4px 5px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition:
      background 0.15s ease,
      border-color 0.15s ease,
      transform 0.08s ease;
  }

  .icon {
    width: 30px;
    height: 30px;
    margin: 0 auto 4px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  }

  .label {
    font-size: 10px;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 500;
  }

  .nav-item.active {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.12);
  }

  .active .label {
    color: rgba(255, 255, 255, 0.85);
  }

  .active .icon {
    background: #0d9488;
    color: #fff;
    box-shadow: 0 2px 10px rgba(13, 148, 136, 0.55);
  }

  .nav-item:hover:not(.active) {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-1px);
  }

  .nav-item:hover:not(.active) .icon {
    color: rgba(255, 255, 255, 0.8);
  }

  .spacer {
    flex: 1 1 auto;
  }

  .footer {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.25);
    text-align: center;
  }
}

@media (max-width: 768px) {
  aside.sidebar {
    padding: 10px 4px;
  }
}

@media (max-width: 580px) {
  aside.sidebar {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    border-right: none;
    border-bottom: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
    padding: 8px 10px;

    .logo {
      margin-bottom: 0;
    }

    .nav {
      flex-direction: row;
      justify-content: center;
    }

    .spacer,
    .footer {
      display: none;
    }
  }
}
