/* base */
:root {
  --taskbar-height: 40px;
  --glass-bg: rgba(20, 30, 40, 0.4);
  --avatar-gradient: linear-gradient(
    to bottom,
    #cfeaf8 0%,
    #65aac9 45%,
    #3b90b5 45%,
    #5db3de 100%
  );
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background-color: black;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

img {
  -webkit-user-drag: none;
  pointer-events: none;
}

input,
textarea {
  user-select: text;
}

button:focus {
  outline: none;
}

.text-muted {
  color: #555;
}

/* boot */
.screen {
  height: 100vh;
  width: 100vw;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition:
    opacity 1.5s ease,
    visibility 1.5s;
}

.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Boot Screen */
#boot {
  background-color: black;
  color: white;
  z-index: 1000;
}
.boot-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.win-logo img,
.boot-text {
  opacity: 0;
  transition: opacity 2s ease;
}
.win-logo img {
  width: 250px;
  height: auto;
}
.boot-text {
  margin-top: 20px;
  font-size: 1.2rem;
}

/* Login / Welcome */
#login-screen,
#welcome-screen {
  background: url("./images/login_screen.jpg") no-repeat center center fixed;
  background-size: cover;
  z-index: 500;
}
#welcome-screen {
  cursor: none;
  z-index: 600;
}

.login-content,
.welcome-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 450px;
}
.welcome-content {
  margin-top: -5vh;
}
.welcome-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.welcome-text {
  color: white;
  font-size: 26px;
  font-weight: 300;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.busy-spinner {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Avatars */
.user-avatar,
.start-avatar {
  background: var(--avatar-gradient);
  border: 1px solid #3f3f3f;
  box-shadow:
    inset 1px 1px 1px #fff,
    0 5px 15px rgba(0, 0, 0, 0.5);
}
.user-avatar {
  padding: 8px;
  border-radius: 15px;
  margin-bottom: 20px;
}
.start-avatar {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  padding: 4px;
  border-radius: 5px;
  z-index: 10;
}
.user-avatar img,
.start-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid #3f3f3f;
  border-radius: 5px;
  box-shadow: 0 0 1px 1px #fff;
}
.user-avatar img {
  width: 120px;
  height: 120px;
}
.user-name {
  font-size: 1.6rem;
  font-weight: 400;
  color: white;
  margin-bottom: 25px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
}

/* Login Inputs & Buttons */
.login-input-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  width: 100%;
  padding-left: 44px;
}
.login-input {
  padding: 8px 12px;
  width: 190px;
  font-size: 14px;
  color: #333;
  border: 1px solid #707070;
  border-top-color: #555;
  border-radius: 2px;
  background-color: white;
  box-shadow:
    inset 1px 1px 3px rgba(0, 0, 0, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.4);
  outline: none;
  transition: all 0.2s ease;
}
.login-input:focus {
  border-color: #3d7bad;
  box-shadow:
    inset 1px 1px 2px rgba(0, 0, 0, 0.1),
    0 0 6px rgba(0, 161, 255, 0.6);
}
.login-input::placeholder {
  color: #999;
  font-style: italic;
  font-size: 13px;
}

.input-error {
  animation: shake-error 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  border-color: #ff4d4d !important;
  box-shadow: 0 0 8px rgba(255, 77, 77, 0.6) !important;
}
@keyframes shake-error {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.blue-arrow-btn {
  font-size: 25px;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 0.5px solid #5bb2e44a;
  cursor: pointer;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(
    to bottom,
    #6bafd3d4 0%,
    #88daff 45%,
    #25a4db 45%,
    #5db3de 100%
  );
  box-shadow:
    inset 1px 1px 1px #fff,
    inset 14px 0px 20px 1px rgb(107 193 255 / 68%);
}
.blue-arrow-btn::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 3px;
  right: 3px;
  height: 40%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.5) 0%,
    rgba(255, 255, 255, 0.1) 100%
  );
  border-radius: 50% 50% 20% 20%;
  pointer-events: none;
}
.blue-arrow-btn:hover {
  filter: brightness(1.1);
  box-shadow:
    0 0 15px rgba(0, 210, 255, 0.7),
    inset 0 1px 1px white;
  transition: transform 0.05s ease-in-out;
}
.blue-arrow-btn:active {
  transform: scale(0.92);
  box-shadow:
    0 0 5px rgba(0, 210, 255, 0.2),
    inset 0 3px 5px rgba(148, 225, 246, 0);
}

/* Password Hints & Easter Eggs */
#password-hint {
  color: white;
  font-size: 13px;
  margin-top: 15px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  font-style: italic;
  opacity: 0;
  transition:
    opacity 0.5s ease,
    color 0.3s ease;
  text-align: center;
  max-width: 250px;
}
#password-hint.show,
#wiki-card.show {
  opacity: 1;
}

#wiki-card {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 12px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 280px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.wiki-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #88daff;
}
.wiki-text h3 {
  margin: 0 0 4px 0;
  font-size: 15px;
  color: white;
}
.wiki-text p {
  margin: 0 0 6px 0;
  font-size: 11px;
  color: #ddd;
  line-height: 1.3;
}
.wiki-text a {
  color: #88daff;
  text-decoration: none;
  font-size: 11px;
}
.wiki-text a:hover {
  text-decoration: underline;
}

/* desktop icons */
#desktop {
  background: url("./images/wallpaper.jpg") no-repeat center center fixed;
  background-size: cover;
  transition:
    background-image 0.8s ease-in-out,
    background-color 0.8s ease-in-out;
}

.desktop-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: calc(100vh - var(--taskbar-height));
  overflow: hidden;
  transition: opacity 0.1s ease-in-out;
}
.icon {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 76px;
  padding: 5px;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: default;
}
.icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 3px;
}
.icon span {
  color: white;
  font-size: 11px;
  text-align: center;
  line-height: 1.2;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.8),
    0 1px 1px rgba(0, 0, 0, 0.8);
}
.icon:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.5);
}
.icon.dragging {
  opacity: 0.6;
  z-index: 1000 !important;
  cursor: grabbing !important;
}

/* Dynamic Icon Sizes */
.desktop-icons.large .icon {
  width: 90px;
}
.desktop-icons.large .icon img {
  width: 64px;
  height: 64px;
  margin-bottom: 5px;
}
.desktop-icons.large .icon span {
  font-size: 13px;
}
.desktop-icons.small .icon {
  width: 60px;
}
.desktop-icons.small .icon img {
  width: 32px;
  height: 32px;
  margin-bottom: 2px;
}
.desktop-icons.small .icon span {
  font-size: 10px;
}

/* window */

.window {
  position: absolute;
  display: flex;
  flex-direction: column;
  margin: 0;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.15s ease-out,
    visibility 0.15s ease-out,
    box-shadow 0.2s ease-out,
    transform 0.1s ease-out;
}
.window .title-bar {
  transition:
    background 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}
.title-bar-avatar {
  width: 15px;
}

/* Window States */
.window-closed {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.window.minimized {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(50px) scale(0.9) !important;
}
.window.dragging {
  user-select: none !important;
  transition: none !important;
}
.window.maximized {
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: calc(100vh - var(--taskbar-height)) !important;
  border-radius: 0 !important;
}

.window.maximized .window-body {
  flex-grow: 1 !important;
  height: auto !important;
}

#projects-window {
  width: 500px;
  top: 20%;
  left: 20%;
}
#computer-window {
  width: 850px;
  height: 550px;
  top: 10%;
  left: 10%;
}
#recycle-window {
  width: 800px;
  height: 500px;
  top: 15%;
  left: 20%;
}
#welcome-window {
  width: 600px;
  height: 450px;
  top: 15%;
  left: calc(50% - 300px);
  z-index: 100;
}

.standalone-body {
  margin: 0;
  padding: 15px;
}
.explorer-body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: calc(100% - 65px);
}

/* my computer */

.win7-glass-nav {
  display: flex;
  align-items: center;
  padding: 0 8px 8px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}
.win7-glass-nav .nav-buttons {
  min-width: 60px;
}

.win7-btn.round {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.3),
    rgba(39, 71, 86, 0.6) 50%,
    rgba(255, 255, 255, 0.5)
  );
  box-shadow:
    inset 0 0 2px #fff,
    0 0 2px 1px rgba(0, 0, 0, 0.5);
}
.win7-btn.round.back {
  transform: scaleX(-1);
  margin-right: 5px;
}
.win7-btn.round:active {
  background: rgba(39, 71, 86, 0.8);
}

.win7-addr {
  flex-grow: 1;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid #666;
  border-bottom-color: #ccc;
  border-right-color: #ccc;
  margin-left: 5px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  font-size: 12px;
}
.win7-search {
  width: 220px;
  height: 24px;
  margin-left: 10px;
}
.win7-search input {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid #666;
  border-bottom-color: #ccc;
  border-right-color: #ccc;
  padding-right: 20px;
  padding-left: 5px;
  background: #fff url("./images/search.svg") no-repeat 96% center;
  outline: none;
}

.win7-toolbar {
  background: linear-gradient(#fff 30%, #dce6f5 70%);
  border-bottom: 1px solid #555;
  height: 28px;
  line-height: 28px;
  font-size: 12px;
  display: flex;
}
.win7-toolbar .toolbar-item {
  padding: 0 10px;
  color: #3b5372;
  cursor: pointer;
}
.win7-toolbar .toolbar-item:hover {
  background-color: rgba(205, 224, 255, 0.4);
  border: 1px solid #bbb;
  line-height: 26px;
  border-radius: 2px;
}

/* Sidebar */
.explorer-layout {
  display: flex;
  flex: 1;
  background: #fff;
}
.explorer-sidebar {
  width: 200px;
  border-right: 1px solid #d9d9d9;
  background: #fff;
  overflow-y: auto;
  padding: 10px;
}
.sidebar-section {
  margin-bottom: 15px;
}
.sidebar-header {
  font-size: 11px;
  color: #444;
  margin-bottom: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}
.sidebar-header.active {
  color: #003399;
  font-weight: bold;
}
.explorer-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0 10px;
}
.explorer-sidebar li {
  font-size: 12px;
  padding: 4px 5px;
  cursor: pointer;
  color: #222;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
}
.explorer-sidebar li:hover {
  background-color: #e5f3fb;
  border: 1px solid #d8eaf9;
  border-radius: 3px;
}
.explorer-sidebar li img {
  width: 16px;
  height: 16px;
  display: block;
  object-fit: contain;
}

/* Hard Drives & Files */
.win7-container {
  background: #fff;
  padding: 5px 20px;
  flex-grow: 1;
  overflow-y: auto;
}
.win7-headline {
  color: #3083b7;
  display: flex;
  align-items: center;
  font-size: 13px;
  margin: 10px 0;
}
.win7-headline:after {
  content: "";
  flex: 1;
  border-top: 1px solid #a0bdea;
  margin-left: 10px;
}
.win7-devices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.win7-device {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 250px;
  height: 65px;
  padding: 5px 10px 5px 65px;
  background-repeat: no-repeat;
  background-size: 45px;
  background-position: 10px center;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 11px;
}
.win7-device:hover {
  border-color: rgb(177, 208, 244);
  background-color: rgba(177, 208, 244, 0.3);
}
.win7-device .name {
  margin-bottom: 4px;
  font-weight: bold;
}
.win7-device .storage-txt {
  color: #999;
  font-size: 11px;
  margin-top: 3px;
}

.disk-os {
  background-image: url("./images/hdd2.ico");
}
.disk-data,
.disk-usb {
  background-image: url("./images/hdd1.ico");
}
.disk-cd {
  background-image: url("./images/dvd.ico");
}

/* Storage Bars */
.storage-bar {
  height: 13px;
  border: 1px solid #999;
  border-radius: 3px;
  margin: 2px 0;
  background: #fff;
  position: relative;
}
.storage-bar > div {
  height: 100%;
  background:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.2),
      transparent 30%,
      transparent 70%,
      rgba(0, 0, 0, 0.2)
    ),
    linear-gradient(to bottom, #56cfe4 40%, #005f7f 50%, #56cfe4 99.9%);
}
.red-bar > div {
  background:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.1),
      transparent 30%,
      transparent 70%,
      rgba(0, 0, 0, 0.1)
    ),
    linear-gradient(to bottom, #ffbfbf 40%, #e50001 50%);
}

.explorer-footer {
  height: 55px;
  background: linear-gradient(to right, #b4d4f4, #e4f0fa);
  border-top: 1px solid #97b5d6;
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-size: 11px;
  color: #222;
}
.explorer-footer img {
  display: block;
  object-fit: contain;
}
.footer-details strong {
  color: #003399;
  font-size: 12px;
}

/* Grid Files (Recycle Bin) */
.win7-file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 15px;
}
.win7-file {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 5px;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
}
.win7-file:hover {
  background-color: #e5f3fb;
  border: 1px solid #d8eaf9;
}
.win7-file img {
  width: 48px;
  height: 48px;
  margin-bottom: 5px;
}
.win7-file span {
  font-size: 11px;
  color: #000;
  word-wrap: break-word;
  max-width: 100%;
}

/* welcome */
.wizard-body {
  flex: 1;
  margin: 0;
  display: flex;
}
.wizard-sidebar {
  width: 160px;
  background: linear-gradient(to bottom, #094e8c, #2270b2);
  color: white;
  padding: 20px;
  border-right: 1px solid #ccc;
}
.wizard-sidebar h2 {
  margin-top: 0;
  font-size: 22px;
  text-shadow: 1px 1px 2px #000;
}
.wizard-sidebar p {
  font-size: 12px;
  margin-top: 20px;
}
.wizard-content-area {
  flex: 1;
  padding: 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.wizard-page {
  display: none;
}
.wizard-page.active-page {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.wizard-page h3 {
  color: #003399;
  margin-top: 0;
  font-size: 16px;
  margin-bottom: 10px;
}
.wizard-page p,
.wizard-page ul {
  font-size: 13px;
}

/* Scroll Boxes */
.wizard-scroll-box {
  height: 220px;
  overflow: auto;
}
.cert-scroll {
  height: 300px;
}

/* Tabs */
.wizard-tabs {
  margin-bottom: -1px;
  z-index: 2;
}
.wizard-tab-content {
  flex: 1;
  border: 1px solid #999;
  background: #fff;
  padding: 15px;
  overflow-y: auto;
  margin-top: 10px;
}
.wizard-tab-content ul {
  padding-left: 20px;
  font-size: 12px;
  color: #333;
}
#projects-window .wizard-tab-content {
  height: 250px;
}
#welcome-window .wizard-tab-content {
  height: 190px;
}

.hook-content {
  flex: 1;
}
.finish-prompt {
  margin-top: 20px;
}
.wizard-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #dfdfdf;
  text-align: right;
}
.wizard-footer button {
  width: 75px;
  padding: 4px;
  margin-left: 5px;
}

/* taskbar */
#taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--taskbar-height);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 -1px 5px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: space-between;
  z-index: 9999;
}

.taskbar-left {
  display: flex;
  align-items: center;
  padding-left: 60px;
}
.taskbar-right {
  display: flex;
  align-items: center;
}
#app-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100%;
}

/* Start Button */
#start-button {
  position: absolute;
  bottom: -10.3px;
  left: -1.6px;
  display: block;
  width: 58px;
  height: 58px;
  z-index: 3;
  cursor: pointer;
  background-image: url("./images/start.png");
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}
#start-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  background-image: url("./images/start-hovered.png");
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
}
#start-button:hover::after {
  opacity: 0.5;
}
#start-button:active::after {
  background-image: url("./images/start-selected.png");
  opacity: 1;
  transition: none;
}

/* Taskbar Icons & Aero Peek */
.aero-taskbar-icon {
  width: 50px;
  height: var(--taskbar-height);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 3px;
  border: 1px solid transparent;
  position: relative;
  cursor: pointer;
  transition: all 0.15s ease-out;
}
.aero-taskbar-icon img {
  width: 24px;
  height: 24px;
}
.aero-taskbar-icon:hover {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.4);
}
.aero-taskbar-icon.app-active {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 -5px 15px rgba(90, 176, 235, 0.4);
}

.aero-peek {
  position: absolute;
  bottom: 50px;
  left: 80%;
  transform: translateX(-50%);
  width: 180px;
  height: 120px;
  background: rgba(20, 20, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-out;
  pointer-events: none;
}
.aero-taskbar-icon:hover .aero-peek {
  opacity: 1;
  visibility: visible;
}
.peek-thumb {
  flex-grow: 1;
  background: transparent;
  position: relative;
  overflow: hidden;
  margin-top: 2px;
  display: block;
}
.peek-thumb .window-clone {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  margin: 0 !important;
  box-shadow: none !important;
  transform-origin: center !important;
}
.window-clone .title-bar {
  flex-shrink: 0 !important;
}
.window-clone .window-body {
  flex-grow: 1 !important;
  height: auto !important;
  margin: 0 !important;
  overflow: hidden !important;
}

/* System Tray & Date */
.tray-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-right: 15px;
}
.tray-icon {
  width: 22px;
  height: 22px;
  background-repeat: no-repeat;
  background-size: 16px;
  background-position: center;
  display: inline-block;
  position: relative;
}
.tray-icon:hover {
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
}
#tray-volume._3 {
  background-image: url("./images/3.ico");
}
#tray-network.wlan1 {
  background-image: url("./images/wifi-1.ico");
}
#tray-battery {
  background-image: url("./images/charging_.png");
  background-position-x: 5px;
}
#battery-bar {
  position: absolute;
  width: 5px;
  height: 12px;
  bottom: 5px;
  left: 7.5px;
  z-index: -1;
}
#tray-battery.charging #battery-bar {
  left: 6.4px;
}
#battery-bar::before {
  content: "";
  background: white;
  width: 100%;
  height: var(--percent);
  position: absolute;
  bottom: 0;
  left: 0;
}

#datetime {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  color: white;
  font-size: 11px;
  text-shadow: 0 1px 2px black;
  padding: 0 10px;
  cursor: default;
}
#show-desktop-btn {
  width: 15px;
  height: 100%;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  margin-left: 15px;
}
#show-desktop-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Start Menu Open */
#start-menu {
  position: absolute;
  bottom: 39px;
  left: 0;
  width: 400px;
  height: 480px;
  display: flex;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px 6px 0 0;
  box-shadow:
    inset 0 0 1px 1px rgba(255, 255, 255, 0.2),
    2px -2px 10px rgba(0, 0, 0, 0.5);
  z-index: 9998;
  padding: 2px 2px 0 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.2s cubic-bezier(0.1, 0.9, 0.2, 1);
}
#start-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#start-menu hr {
  border: none;
  height: 1px;
  border-top: 1px solid rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin: 5px 10px;
}

/* Start Menu Left/Right Columns */
.start-left {
  width: 55%;
  background: #fff;
  border-radius: 3px 0 0 0;
  border: 1px solid #777;
  border-bottom: none;
  display: flex;
  flex-direction: column;
}
.start-right {
  width: 45%;
  position: relative;
  padding: 45px 5px 10px 5px;
  display: flex;
  flex-direction: column;
}

.programs-list {
  flex-grow: 1;
  padding: 5px;
}
.program-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 3px;
  margin-bottom: 1px;
}
.program-item:last-child {
  border-bottom: 1px solid transparent;
}
.program-item img {
  width: 32px;
  height: 32px;
}
.program-item span {
  font-size: 12px;
  color: #333;
}
.program-item:hover {
  background: linear-gradient(
    to bottom,
    #f2f9ff 0%,
    #e1f0fd 49%,
    #d3e7fc 50%,
    #c4e1fc 100%
  );
  border: 1px solid #7da2ce;
  box-shadow: inset 0 0 1px #fff;
}

.search-box {
  padding: 8px;
  background: linear-gradient(to bottom, #f0f4fa, #dce6f4);
  border-top: 1px solid #aebfd0;
  border-radius: 0 0 0 3px;
  margin-top: auto;
}
.search-box input {
  width: 100%;
  padding: 4px 25px 4px 10px;
  border: 1px solid #abc1d8;
  border-radius: 12px;
  font-size: 12px;
  font-style: italic;
  color: #666;
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.8);
  outline: none;
  box-sizing: border-box;
}

.system-links {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.link-item {
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 10px;
  cursor: pointer;
  border: 1px solid transparent;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}
.link-item:hover {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.05)
  );
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.5);
}

/* Shutdown Button */
.shutdown-group {
  margin-top: 235px;
  align-self: flex-end;
  display: flex;
  margin-bottom: 10px;
  margin-right: 18px;
  box-shadow: 0px 0px 4px 1px rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}
.shutdown-btn {
  color: #fff;
  font-size: 12px;
  padding: 5px 16px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0) 45%,
    rgba(0, 0, 0, 0.15) 50%,
    rgba(0, 0, 0, 0.25) 100%
  );
  border: 1px solid rgba(0, 0, 0, 0.7);
  border-right: none;
  border-radius: 4px 0 0 4px;
  cursor: pointer;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.shutdown-arrow {
  color: #fff;
  font-size: 9px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0) 45%,
    rgba(0, 0, 0, 0.15) 50%,
    rgba(0, 0, 0, 0.25) 100%
  );
  border: 1px solid rgba(0, 0, 0, 0.7);
  border-left: 1px solid rgba(0, 0, 0, 0.9);
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  box-shadow: inset 1px 1px 1px rgba(255, 255, 255, 0.3);
}
.shutdown-btn:hover,
.shutdown-arrow:hover {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.3) 0%,
    rgba(255, 255, 255, 0.1) 45%,
    rgba(0, 0, 0, 0.05) 50%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

/* context menu */
#context-menu,
#icon-context-menu {
  position: absolute !important;
  z-index: 99999 !important;
  margin: 0;
}
#icon-context-menu {
  display: none;
}
#menu-hack,
#menu-hack a {
  pointer-events: auto !important;
}

#computer-window,
#projects-window,
#recycle-window {
  display: flex !important;
  flex-direction: column !important;
}

#computer-window.maximized .window-body,
#projects-window.maximized .window-body,
#recycle-window.maximized .window-body {
  flex-grow: 1 !important;
  height: auto !important;
}

#projects-window {
  display: flex !important;
  flex-direction: column !important;
}

#projects-window.maximized .window-body {
  flex-grow: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  height: auto !important;
}

#projects-window.maximized .wizard-tab-content {
  flex-grow: 1 !important;
  height: auto !important;
}

/* cmd */

#cmd-window {
  display: flex !important;
  flex-direction: column !important;
}

.cmd-body {
  background-color: #0c0c0c !important;
  color: #cccccc;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 14px;
  overflow-y: auto;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 100% !important;
  margin: 0 !important;
}

#cmd-window.maximized .cmd-body {
  flex: 1 1 auto !important;
  height: auto !important;
}

/* notepad */
#notepad-window {
  display: flex !important;
  flex-direction: column !important;
}

.notepad-menu {
  background-color: #f5f6f7;
  padding: 2px 5px;
  border-bottom: 1px solid #d9d9d9;
  font-size: 12px;
  display: flex;
  gap: 10px;
  color: #000;
}

.notepad-menu span {
  padding: 2px 5px;
  cursor: default;
}

.notepad-menu span:hover {
  background-color: #e5f3fb;
  border: 1px solid #d8eaf9;
  margin: -1px;
}

.notepad-body {
  flex-grow: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  background: #fff;
}

#notepad-text-area {
  flex-grow: 1;
  width: 100%;
  border: none;
  resize: none;
  outline: none;
  font-family: "Consolas", "Lucida Console", monospace;
  font-size: 14px;
  padding: 5px;
  background-color: #fff;
  color: #000;
}

/* system prop */
#sysprop-window {
  display: flex !important;
  flex-direction: column !important;
}

.sysprop-body {
  flex-grow: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  background-color: #f0f4f9;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

.sysprop-sidebar {
  width: 200px;
  background: linear-gradient(to bottom, #f0f4fa, #dce6f4);
  padding: 20px 15px;
  border-right: 1px solid #c2d6eb;
}

.sysprop-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #003399;
  padding: 5px 0;
  cursor: pointer;
}

.sysprop-link:hover {
  text-decoration: underline;
}

.sysprop-content {
  flex-grow: 1;
  background-color: #fff;
  padding: 20px 30px;
  overflow-y: auto;
}

.sysprop-header {
  font-size: 15px;
  color: #003399;
  margin-bottom: 20px;
}

.sysprop-section {
  border-bottom: 1px solid #d9d9d9;
  padding-bottom: 15px;
  margin-bottom: 15px;
  font-size: 12px;
  color: #333;
}

.sysprop-h3 {
  color: #003399;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 10px 0;
}

.sysprop-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  row-gap: 6px;
}

.sysprop-grid .label {
  color: #555;
}

.rating-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wei-container {
  border-top: 1px solid #d9d9d9;
  border-bottom: 1px solid #d9d9d9;
  padding: 10px 0;
  margin-bottom: 15px;
}

.wei-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: #333;
}

.wei-table th {
  text-align: left;
  font-weight: normal;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e5e5;
  color: #555;
}

.wei-table td {
  padding: 12px 5px;
  vertical-align: middle;
}

.wei-table .subscore {
  text-align: center;
  font-size: 14px;
}

.highlighted-score {
  background-color: #e5f3fb;
  border: 1px solid #c2d6eb;
}

.base-score-cell {
  vertical-align: top;
  padding-top: 15px !important;
}

.base-score-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.base-score-box {
  background: linear-gradient(to bottom, #5b9bd5, #225c8f);
  border-radius: 4px;
  width: 75px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 2px solid #fff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.base-score-box .big-number {
  color: white;
  font-size: 44px;
  font-weight: bold;
  font-family: "Segoe UI", Tahoma, sans-serif;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.base-score-box .wei-watermark {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: bold;
  z-index: 1;
}

.base-label {
  font-size: 11px;
  text-align: center;
  margin-top: 8px;
  color: #333;
}

.wei-footer-links {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wei-link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.help-icon {
  background: linear-gradient(to bottom, #4f81bd, #244061);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 11px;
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.kamui-effect {
  animation: kamuiSuck 1.2s forwards cubic-bezier(0.55, 0.085, 0.68, 0.53);
  transform-origin: center center;
  pointer-events: none;
}

@keyframes kamuiSuck {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
    filter: blur(0px);
  }
  50% {
    transform: scale(0.4) rotate(180deg);
    opacity: 0.8;
    filter: blur(3px);
  }
  100% {
    transform: scale(0) rotate(720deg);
    opacity: 0;
    filter: blur(15px);
  }
}
