
body { background: rgba(0,0,0,0.85); color: #fff; font-family:'Poppins',sans-serif; margin:0; padding:12px; }
body.light-mode { background: rgba(255,255,255,0.95); color: #000; }

/* Container premium glass look */
.container {
  background: rgba(255,255,255,0.04);
  padding:20px;
  border-radius:16px;
  backdrop-filter:blur(8px);
  box-shadow:0 10px 30px rgba(0,0,0,0.45);
  transition: background 0.3s,color 0.3s;
  width:340px;
  box-sizing:border-box;
}

/* Header & icons */
.header { display:flex; justify-content:space-between; align-items:center; }
h2 {
  font-size:1.2rem;
  font-weight:700;
  background:linear-gradient(90deg,#ff6cab,#7366ff);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  padding-bottom:4px;
  margin:0;
}
.icons span { font-size:18px; cursor:pointer; margin-left:8px; transition:0.2s; }
.icons span:hover { color:#ffd54f; }

/* Controls: View + Chart Toggle */
.controls {
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:12px;
}
.controls label {
  font-size:12px;
  font-weight:600;
}
.controls select {
  padding:6px 8px;
  border-radius:8px;
  border:none;
  background:rgba(255,255,255,0.06);
  color:inherit;
  font-weight:600;
}

/* Chart toggle button (now inline, not absolute) */
#chartToggleBtn {
  padding:6px 12px;
  border-radius:16px;
  border:none;
  background:linear-gradient(90deg,#6a11cb,#2575fc);
  color:#fff;
  font-weight:600;
  cursor:pointer;
  transition:0.2s;
  font-size:12px;
}
#chartToggleBtn:hover { transform:scale(1.03); }

/* Stats */
.stats {
  text-align:center;
  margin:12px 0 18px;
  font-size:14px;
  font-weight:600;
}

/* Chart container */
.chart-container {
  width:100%;
  height:220px;
  margin:auto;
  position:relative;
}
.chart-container canvas {
  width:100%!important;
  height:100%!important;
}
canvas {
  background:rgba(255,255,255,0.03);
  border-radius:12px;
  box-shadow:0 6px 18px rgba(0,0,0,0.22);
  padding:6px;
  transition:background 0.3s;
}

/* Lists */
.animated-list { margin-top:12px; display:flex; flex-direction:column; gap:8px; }
.app-item {
  background:rgba(255,255,255,0.03);
  padding:10px 12px;
  border-radius:10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  backdrop-filter:blur(4px);
  transition:0.2s;
  font-size:13px;
}
.app-item:hover { background:rgba(255,255,255,0.06); transform:translateY(-2px); }
.app-item img {
  width:26px;
  height:26px;
  border-radius:4px;
  object-fit:cover;
}
.app-left { display:flex; gap:8px; align-items:center; }

/* Show All button */
#showAllBtn {
  margin-top:10px;
  width:100%;
  padding:10px;
  border-radius:20px;
  border:none;
  background:linear-gradient(90deg,#6a11cb,#2575fc);
  color:#fff;
  font-weight:600;
  cursor:pointer;
  transition:0.2s;
}
#showAllBtn:hover { transform:scale(1.02); }

/* Scroll */
#appList {
  max-height:220px;
  overflow-y:auto;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,0.3) transparent;
}
#appList::-webkit-scrollbar { width:6px; }
#appList::-webkit-scrollbar-track { background:transparent; }
#appList::-webkit-scrollbar-thumb {
  background-color:rgba(255,255,255,0.3);
  border-radius:3px;
}

/* Sparkle loader */
#sparkleLoader {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  position: absolute;
  top: 12px;
  right: 12px;
  background: radial-gradient(circle, #ffffffaa 0%, #ffffff11 70%);
  filter: blur(2px);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
  z-index: 999;
}
.icons span#settingsBtn {
    font-size: 18px;
    cursor: pointer;
    margin-left: 8px;
    transition: 0.2s;
}

.icons span#settingsBtn:hover {
    color: #ffd54f; /* same hover effect */
}
.settings-section {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    backdrop-filter: blur(4px);
    font-size: 13px;
}

.settings-section h3 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
}

.settings-section button {
    margin-top: 5px;
    padding: 6px 12px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(90deg,#6a11cb,#2575fc);
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    margin-right: 5px;
    transition: 0.2s;
}

.settings-section button:hover {
    transform: scale(1.03);
}

.settings-footer {
    margin-top: 20px;
    font-size: 11px;
    text-align: center;
}

.settings-footer a {
    color: #00BFFF;
    text-decoration: none;
}

.settings-footer a:hover {
    text-decoration: underline;
}
