/* ============================================================
   SidaOS — Ubuntu Desktop Shell
   ============================================================ */

/* --- Desktop Background --- */
body {
  background: linear-gradient(160deg, #300a24 0%, #2c001e 40%, #44204a 70%, #e95420 100%);
}

/* --- Top Panel --- */
#top-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 9000;
  color: #fff;
  font-size: 12px;
}

#panel-left {
  display: flex;
  align-items: center;
}

#panel-center {
  display: flex;
  align-items: center;
}

#panel-right {
  display: flex;
  align-items: center;
}

#activities-btn {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: inherit;
}

#activities-btn:hover,
#activities-btn.active {
  background: rgba(255, 255, 255, 0.15);
}

/* --- Activities Menu --- */
.panel-menu {
  position: fixed;
  top: 28px;
  left: 72px;
  min-width: 180px;
  background: rgba(30, 30, 30, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 8px 8px;
  padding: 6px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 10000;
  font-family: 'JetBrains Mono', monospace;
}

.panel-menu.hidden {
  display: none;
}

.panel-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
}

.panel-menu-backdrop.hidden {
  display: none;
}

.panel-menu-item {
  padding: 6px 16px;
  color: #ddd;
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
}

.panel-menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.panel-menu-sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px 8px;
}

.panel-menu-label {
  padding: 4px 16px 2px;
  color: #888;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tray-icon {
  padding: 0 4px;
  opacity: 0.8;
  cursor: default;
}

/* --- Desktop Area --- */
#desktop {
  position: fixed;
  top: 28px;
  left: 68px;           /* room for left dock */
  right: 0;
  bottom: 0;
  overflow: hidden;
}

/* --- Dock (Left Side — Ubuntu Default) --- */
#dock {
  position: fixed;
  top: 28px;             /* below top panel */
  left: 0;
  bottom: 0;
  width: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  gap: 4px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 9000;
}

.dock-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s;
  font-size: 24px;
  position: relative;
}

.dock-icon:hover {
  transform: scale(1.15);
}

/* Active indicator dot on the right edge (Ubuntu style) */
.dock-icon.active::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
}

.dock-icon-inner {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* --- Dock Icon Variants --- */
.dock-icon-inner.terminal-icon {
  background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
  color: #00ff41;
}

.dock-icon-inner.files-icon {
  background: linear-gradient(135deg, #3d6098, #2d4a7a);
  color: #fff;
}

.dock-icon-inner.viewer-icon {
  background: linear-gradient(135deg, #e95420, #c34113);
  color: #fff;
}

/* --- Dock Separator --- */
.dock-separator {
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  margin: 4px 0;
}

/* --- Mobile Bottom Nav (hidden on desktop) --- */
#mobile-nav {
  display: none;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
  #top-panel {
    display: none;
  }

  #dock {
    display: none;
  }

  #desktop {
    top: 0;
    left: 0;
    bottom: 52px;  /* leave room for mobile nav */
  }

  #mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 52px;
    display: flex;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 11px;
    gap: 2px;
    border: none;
    background: none;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.15s;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-nav-tab.active {
    color: var(--fg, #fff);
  }

  .mobile-nav-icon {
    font-size: 20px;
    line-height: 1;
  }
}
