/* Default (light theme) */
:root {
  --bg-color: white;
  --hover-bg-color: rgb(235, 235, 235);
  --text-color: black;
  --box-shadow-color: rgba(0,0,0,0.15);
}

/* Dark theme */
:root.dark {
  --bg-color: #121212;
  --hover-bg-color: #333333;
  --text-color: #eee;
  --box-shadow-color: rgba(255, 255, 255, 0.1);
}


.sidebar {
  position: fixed;
  left: 0;
  bottom: 0;
  top: 55px;
  background-color: white;
  width: 72px;
  z-index: 200;
  padding-top: 5px;
}

/* Dark mode sidebar background */
.dark .sidebar {
  background-color: #212121;
}

.sidebar-link {
  height: 74px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  cursor: pointer;
  text-align: center; 
  padding: 2px 0;    
}

.sidebar-icon {
  width: 24px;
  height: 24px;
  margin-right: -2px;
   margin-bottom: 6px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.sidebar-link.up-arrow {
  margin-top: 5px; /* adjust as needed */
}


.dark .sidebar-icon {
  color: skyblue;
}

.vine-icon {
  object-fit: contain;
}


.bulb-icon {
  object-fit: contain;
}

.sidebar-link:hover {
  background-color: rgb(235, 235, 235);
}

/* Dark mode hover */
.dark .sidebar-link:hover {
  background-color: #333;
}

.sidebar-link img {
  height: 24px;
  margin-bottom: 4px;
}

.sidebar-link div {
  font-size: 10px;
}


/* Dark mode text color */
.dark .sidebar-link div {
  color: #ccc;
}

/* Expanded section inside existing sidebar */
.expanded-sidebar {
  position: fixed;
  top: 55px;
  left: 0;
  width: 240px;
  height: calc(100% - 55px);
  background-color: white;
  z-index: 300;
  padding: 16px 0;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}



/* Dark mode expanded sidebar background and shadow */
.dark .expanded-sidebar {
  background-color: #212121;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.7);
}

.expanded-sidebar.show {
  transform: translateX(0);
}

.sidebar-section {
  padding: 8px 16px;
    color: skyblue
  
}

/* Dark mode text color */
.dark .sidebar-section {
  color: #ccc;
}

#explore {
  font-size: 1.2rem;
  font-weight: bold;
}

.dark #explore {
  font-size: 1.2rem;
  font-weight: bold;
  color: green;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  cursor: pointer;
  
  color: black;
}


.sidebar-item i {
  width: 24px;
  text-align: center;
  color: skyblue;
}


.dark .sidebar-item {
  color: #ddd;
}


.expanded-sidebar .sidebar-item img {
  height: 24px;
  width: 24px;
}

.sidebar-item:hover {
  background-color: #880808;
  color: skyblue;
}



.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
   margin-left: 16px;
  margin-bottom: 8px;
    color: skyblue;
}

/* Dark mode header color */
.dark .sidebar-header {
  color: green;
}

.user-img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: auto;
}

.status-dot.online {
  background-color: green;
}

.status-dot.offline {
  background-color: red;
}

.view-more-btn {
  margin: 8px 0 0;
  background: none;
  border: none;
  color: skyblue;
  cursor: pointer;
  font-size: 14px;
}

/* Dark mode view-more button color */
.dark .view-more-btn {
  color: green;
}


.hidden {
  display: none;
}



/* Uniform spacing under each group */
.expanded-sidebar hr {
  border: none;
  border-top: 1px solid rgb(247, 5, 5);
  margin: 12px 0;
}


.sidebar-footer {
  font-size: 12px;
  color: #aaa;
  padding: 12px 16px;
  margin-top: 12px;
}


.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 8px;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  color: skyblue;
  margin-top: 4px;
}