/* ============================================================
   startmenu.css — the two-column Luna Start menu
   ============================================================ */

#startmenu {
  position: fixed;
  bottom: var(--taskbar-h);
  left: 0;
  width: 340px;
  z-index: var(--z-startmenu);
  border: 1px solid #0831a5;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  box-shadow: 4px 0 14px rgba(0,0,0,.5);
  font-size: 11px;
  animation: sm-in .12s ease-out;
}
@keyframes sm-in { from { transform: translateY(12px); opacity: .4; } to { transform: none; opacity: 1; } }

/* header (user) */
.sm-header {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0,0,0,.5);
  background: linear-gradient(#1868e8 0%, #2a7ff0 45%, #1258cf 100%);
  border-bottom: 2px solid #d67b1c;
}
.sm-header .avatar {
  width: 38px; height: 38px; border-radius: 3px;
  border: 2px solid #fff; background: #cfe0ff;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.sm-header .avatar img { width: 100%; height: 100%; }

/* body: two columns */
.sm-body { display: flex; }
.sm-left {
  width: 55%;
  background: #fff;
  padding: 6px 4px;
}
.sm-right {
  width: 45%;
  background: linear-gradient(#d3e5fa, #cfe0f8);
  padding: 6px 4px;
  border-left: 1px solid #a9c6ec;
}

.sm-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 2px;
  cursor: default;
  color: #00157f;
}
.sm-right .sm-item { color: #0a2f6b; font-weight: bold; }
.sm-item .ico { width: 24px; height: 24px; flex: 0 0 auto; }
.sm-right .sm-item .ico { width: 22px; height: 22px; }
.sm-item .txt { line-height: 1.15; }
.sm-item .txt small { display: block; font-weight: normal; color: #555; font-size: 10px; }
.sm-item:hover { background: #2f71d8; color: #fff; }
.sm-item:hover .txt small { color: #dbe7fb; }

.sm-sep { height: 1px; background: #c3d3ea; margin: 4px 8px; }
.sm-left .sm-sep { background: #e2751e; opacity: .5; }

.sm-allprograms {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 6px; font-weight: bold; color: #00157f;
  padding: 6px 10px; margin-top: 2px;
}
.sm-allprograms:hover { color: #fff; background: #2f71d8; border-radius: 2px; }
.sm-allprograms .arrow {
  width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  border-left: 6px solid #2b6b1e;
}

/* footer: log off / shut down */
.sm-footer {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  padding: 6px 12px;
  background: linear-gradient(#2a7ff0, #1258cf);
  border-top: 2px solid #d67b1c;
}
.sm-footer .sm-power {
  display: flex; align-items: center; gap: 6px;
  color: #fff; text-shadow: 1px 1px 1px rgba(0,0,0,.4);
  padding: 4px 6px; border-radius: 3px;
}
.sm-footer .sm-power:hover { background: rgba(255,255,255,.18); }
.sm-footer .sm-power .ico {
  width: 22px; height: 22px; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: bold; color: #fff;
}
.sm-footer .lo .ico { background: linear-gradient(#4aa72e,#2f8016); }
.sm-footer .sd .ico { background: linear-gradient(#e06a2b,#c0431a); }

/* submenu (All Programs) */
.sm-submenu {
  position: fixed;
  z-index: var(--z-startmenu);
  background: #fff;
  border: 1px solid #8aa4cf;
  box-shadow: 3px 3px 10px rgba(0,0,0,.4);
  padding: 3px;
  min-width: 190px;
}
.sm-submenu .sm-item { color: #000; font-weight: normal; }
