/* Base styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  color: #333;
}
body.dark {
  background: #1e1e1e;
  color: #ddd;
}
.container {
  display: flex;
  height: calc(100vh - 60px);
}
.sidebar {
  flex: 0 0 250px;
  background: #e0e0e0;
  padding: 1rem;
  overflow-y: auto;
}
body.dark .sidebar {
  background: #2b2b2b;
}
main {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}
.item-group {
  margin-bottom: 2rem;
}
.item {
  display: flex;
  align-items: center;
  background: white;
  margin-bottom: 1rem;
  border-radius: 6px;
  padding: 0.5rem;
}
body.dark .item {
  background: #2b2b2b;
}
.item img {
  width: 40px;
  height: 40px;
  margin-right: 1rem;
}
.item-details {
  flex: 1;
}
.countdown {
  font-weight: bold;
}
.rarity-box {
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: white;
  font-size: 0.8rem;
}
.rarity-rare { background: #3498db; }
.rarity-legendary { background: #8e44ad; }
.rarity-mythical { background: #1abc9c; }
.rarity-divine { background: #f39c12; }
.rarity-prismatic {
  background: linear-gradient(45deg,#e74c3c,#e67e22,#f1c40f,#2ecc71,#3498db,#9b59b6);
}
/* Marquee */
#marquee-container {
  display: none;
  align-items: center;
  gap: 10px;
  background: #111;
  color: #fff;
  padding: 10px 20px;
  font-weight: bold;
  overflow: hidden;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 9999;
}
#alert-marquee {
  display: inline-block;
  animation: scroll-left 15s linear infinite;
}
#close-marquee {
  background: transparent;
  color: white;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  margin-left: auto;
}
@keyframes scroll-left {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
/* Loading overlay */
#loading-container {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}
#loading-bar-wrapper {
  width: 300px;
  background: #ccc;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 1rem;
}
#loading-text{
  color: #000
}

#loading-bar {
  width: 0%;
  height: 20px;
  background: #4caf50;
  transition: width 0.3s ease;
}
/* Responsive */
@media (max-width: 768px) {
  .container { flex-direction: column; }
  .sidebar { width: 100%; height: auto; }
}