/* sidebar */
.sidebar {
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    background-color: #343a40;
    color: white;
    padding-top: 60px;
}

.nav-main,
.nav-link {
    color: white;
    margin: 5px 0;
}

.nav-item .nav-main:hover,
.nav-item .nav-link:hover {
    background-color: white;
    color: black !important;
}

.active {
    border-left: 5px solid #ebdece !important;
    color: white !important;
    background-color: #1e1e1e !important;
}

.shop-name,
title {
    font-family: "Anton", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    color: white;
}
.content {
    margin-top: 85px;
    margin-left: 250px;
    padding: 20px;
    width: calc(100% - 250px);
    place-items: center;
}

/* Announcement Bar */
.announcement {
  position: fixed;
  top: 56px;
  left: 0;
  width: 100%;
  overflow: hidden;
  background: transparent;
  color: white;
  z-index: 1029;
  padding: 6px 0;
  white-space: nowrap;
}

.scrolling-text {
  display: inline-block;
  padding-left: 100%; /* start outside right edge */
  color: #d1d1d1; /* cool silver */
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.2),
    0 0 20px rgba(255, 255, 255, 0.15),
    0 0 30px rgba(192, 192, 192, 0.3),
    0 0 40px rgba(192, 192, 192, 0.25);
  animation: scroll-left 20s linear infinite, smokeGlow 4s ease-in-out infinite alternate;
}

/* continues marquee */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* text smoke effect */
@keyframes smokeGlow {
  0% {
    text-shadow:
      0 0 8px rgba(255, 255, 255, 0.15),
      0 0 15px rgba(255, 255, 255, 0.1),
      0 0 25px rgba(192, 192, 192, 0.3);
    opacity: 0.9;
  }
  100% {
    text-shadow:
      0 0 15px rgba(255, 255, 255, 0.3),
      0 0 30px rgba(255, 255, 255, 0.25),
      0 0 50px rgba(192, 192, 192, 0.4);
    opacity: 1;
  }
}

.smoke-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05), transparent 50%);
  filter: blur(8px);
  animation: drift 10s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift {
  from { transform: translateX(0); opacity: 0.5; }
  to { transform: translateX(-20px); opacity: 0.2; }
}

/* responsive adjustments */

@media (max-width: 576px) {
    .content {
        margin-left: 0;
        margin-top: 85px;
        width: 100%;
    }

    .username {
        font-size: 8px;
    }
    .username img {
        width: 25px;
        height: 25px;
    }

    .announcement {
        top: calc(var(--navbar-height, 56px) + env(safe-area-inset-top, 0px)); /* fallback if --navbar-height not set */
    }

    .scrolling-text {
        animation-duration: 15s;
    }
}
