/* 1. Register the custom properties so the browser knows how to animate them. */
@property --taskbar-height {
  syntax: '<length>';
  initial-value: 45px;
  inherits: false; /* or true, depending on needs */
}

@property --window-header-height {
  syntax: '<length>';
  initial-value: 32px;
  inherits: false;
}

@property --taskbar-pos {
  syntax: '<percentage>';
  initial-value: -50%;
  inherits: false;
}

@property --taskbar-scale {
  syntax: '<number>';
  initial-value: 1.0;
  inherits: false;
}

:root {
  /* 2. Define the transition on the variables themselves */
  transition: --taskbar-height 0.5s ease-in-out,
              --window-header-height 0.5s ease-in-out,
              --taskbar-pos 0.5s ease-in-out,
              --taskbar-scale 0.5s ease-in-out;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
}

#desktop {
  width: 100vw;
  height: 100vh; 
  background-image: url("./backgrounds/borealis2.png") ;
  background-size: cover;
  background-position: center;
  
  position: relative;
}

#desktop .inactive {
  display:none;
}

.efi {
  width: 100%;
  height: 100%;
  background-color: black;
  color: green;
}
.wt4-loader {
  display: flex;
  width: 100%;
  height: 100%;
  background-color: black;
  color: white;
  position: fixed;
  bottom: 0vh;
  filter: opacity(100%);
  text-align: center;
  justify-content: center;
  align-items: center;
}

progress {
  width: 80%;
  height: 10px;
  border-radius: 2px;
}

progress::-webkit-progress-bar {
  background-color: #111;
  border-radius: 2px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) inset;
}

progress::-webkit-progress-value {
  background-color: #c51d4d;
  border-radius: 2px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) inset;
}

#taskbar {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(var(--taskbar-pos)) scale(var(--taskbar-scale));
  height: 72px;
  padding: 0 18px;
  background: rgba(50, 50, 50, 0.24);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 1000;
  backdrop-filter: url(#glass-distortion);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}


/* dock icons */
#taskbar button svg,
#taskbar img {
  width: 48px;
  height: 48px;
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1),
              filter 0.2s ease;
  cursor: pointer;
}

#taskbar button svg:hover,
#taskbar img:hover {
  transform: scale(1.35) translateY(-4px); /* dock zoom + lift */
  filter: brightness(1.15);
}

/* optional bounce on click */
#taskbar button svg:active,
#taskbar img:active {
  transform: scale(1.1) translateY(-2px);
}

/* search box blends into dock */

   .search-container {
            position: relative;
            display: inline-block;
            
        }
        .searchbar-container {
            overflow: hidden;
        }
 .search {
            /* clip the content */
            overflow: hidden;
            width: 300px;
            height: 40px;
            border: 1px solid #ccc;
            border-radius: 20px;
            font-size: 16px;
            text-align: left;
            line-height: 40px;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: rgb(67, 67, 67);
            padding-left: 10px;
            transition: all 0.3s ease ;
        }
       .bios {
        z-index: 99999999;
  background-color: black;
  height: 100vh; /* Use viewport height for full screen */
  width: 100%;
  display: flex; /* Make the parent a flex container */
  align-items: center; /* Center children vertically */
  justify-content: center; /* Center children horizontally */
}

@font-face {
  font-family: BIOS;
  src: url(dos.ttf);
}
.bootselector {
  width: 50%;
  font-family: BIOS;
  padding: 10px;
  z-index: 999999999999999999999;
  /* `height` is no longer needed here as the content will define it. */
  background-color: #0800ff;
  border: 2px solid white; /* Set the border width, style, and color */
  color: white;
  text-align: center;
}

.bios-selected{

background-color: black;

}

        .search:focus {
            outline: none;
            border-color: #0078D7;
            background-color: #1e1e1e;
            color: white;
            box-shadow: 0 0 5px rgba(0, 120, 215, 0.5);
            width: 350px;
            padding-left: 40px;
            transition: all 0.3s ease ;
        }
        .search-icon {
            position: absolute;
            left: 5px;
            top: 50%;
            transform: translateY(-50%) translateX(-30px) scale(0);
            width: 30px;
            height: 30px;
            opacity: 0;
            transition: opacity 0.3s, transform 0.3s;
            pointer-events: none;
        }
        .search:focus ~ .search-icon {
            opacity: 1;
            transform: translateY(-50%) translateX(0) scale(0.7);
        }
#search-button {
  width: 90px;
  height: 40px;
  border: none;
  outline: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#search-button:hover {
  transform: scale(1.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

#search-button:active {
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) inset;
}
.vertical-divider {
  width: 1px; /* Adjust thickness as needed */
  background-color: #ccc; /* Set desired color */
  height: 100%; /* Set desired height, or use a percentage */
  margin: 0 10px; /* Add horizontal spacing */
}
.logger {
  bottom: 100px;
  left: 10px;
  width: 300px;
  max-height: 200px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.7);
  color: #0f0;
  font-family: monospace;
  font-size: 12px;
  padding: 10px;
  border-radius: 8px;
  z-index: 1002;
}
/* keep tray items grouped with dock icons */
#system-tray {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  font-size: 12px;
  text-align: right;
}



#clock {
  font-size: 14px;
  text-align: center;
}

#settings {
  display: flex;
  align-items: center;

  color: #fff;
  width: 80px;
  height: 40px;
  cursor: pointer;
  border: none;
  outline: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#settings:hover {
  background: rgba(255, 255, 255, 0.1);
}

#start-button {
  display:none;
}

#task-list {
  display: flex;
  align-items: center;
  gap: 6px;
}

#task-list button {
  width: 90px;
  height: 40px;
  border: none;
  outline: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#task-list button img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  pointer-events: none;
}
.battery-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.battery-icon i {
  font-size: 32px;
}

#batt-full i {
  color: #04ff00; /* green */
}

#batt-3quart i {
  color: #fbff00; /* yellow */
}

#batt-half i {
  color: #ff9500; /* orange */
}

#batt-quarter i {
  color: #ff0000; /* red */
}

#battery-text {
  color: white;
  font-weight: bold;
}

#task-list button:hover {
  transform: scale(1.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

#task-list button:active {
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) inset;
}


.window {
  position: absolute;
  min-width: 300px;
  min-height: 32px;
  background: rgba(40, 40, 40, 0.60);
  backdrop-filter: blur(10px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  border-radius: 12px 12px 0 0;
    animation: windowPopup 0.3s ease-out;
    backdrop-filter: url(#glass-distortion);
}

.window-header {
  height: var(--window-header-height);
  display: flex;
  align-items: center;
  background: rgba(50, 50, 50, 0.9);
  border-bottom: var(--window-border);
  cursor: move;
  border-radius: 12px 12px 0 0;
}

.window-title {
  flex: 1;
  color: #fff;
  font-size: 14px;
  padding: 5px;
  text-align: center;
}

.window-controls {
  display: flex;
}

.window-button {
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin: 4px;
}

.window-button img {
  width: 16px;
  height: 16px;
}

.window-icon {
  width: 26px;
  height: 26px;
}

.window-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.window-content {
  flex: 1;
  padding: 0 0;
  overflow: auto;
  color: #fff;
  width: 100%;
  height: 100%;
}

.window.closing {
    animation: windowClose 0.3s ease-in forwards;
}
@keyframes windowClose {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.8);
        opacity: 0;
    }
}


@keyframes windowPopup {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
.window-header {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    align-items: center;
}

.wt4-sign-in {
  flex: 1;
      width: 100vw;
    height: 100vh;
    position: fixed; 
    background-image: url("./backgrounds/borealis2.png") ;
  background-size: cover;
  background-position: center;
  color: white;
  justify-content: center;
  text-align: center;
  z-index: 99999;
}

.wt4-sign-in button {
      margin: 0 auto;
  background: rgba(0, 0, 0, 0.247);
  backdrop-filter: blur(10px);
  width: 150px;
  height: 50px;
  border: 10px;

   color: #fff;
  cursor: pointer;
  border-radius: 4px;
  align-items: center;
  gap: 5px;
    transform: scale(1);
  transition: all 0.2s ease-in-out;
}
.wt4-sign-in button:active {
  transform: scale(0.8);
  transition: all 0.2s ease-in-out;
}

#start-menu {
  position: fixed;
  bottom: var(--taskbar-height);
  left: 10px;
  width: 300px;
  background: rgba(40, 40, 40, 0.95);
  backdrop-filter: blur(10px);
  border: var(--window-border);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  padding: 10px;
  z-index: 1001;
  animation: Popup 0.3s ease-in-out;
}
#option-menu {
  position: fixed;
  bottom: var(--taskbar-height);
  right: 10px;
  width: 300px;
  background: rgba(40, 40, 40, 0.95);
  backdrop-filter: blur(10px);
  border: var(--window-border);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  padding: 10px;
  z-index: 1001;
}


#str {
  transform: scale(1);
  transition: all 0.2s ease-in-out;}
#str:active {
  transform: scale(0.95);
  transition: all 0.2s ease-in-out;
}
.hidden {
  display: none;
}

.menu-section {
  margin-bottom: 10px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
}

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

.menu-footer {
  border-top: 1px solid #444;
  padding-top: 10px;
}

.task-button {
  height:10px;
  width: 20px;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease-in-out;
}

.task-button:hover {
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease-in-out;
}

.task-button.active {
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease-in-out;
}


#desktop-icons {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.desktop-icon {
  width: 64px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.desktop-icon:hover {
  filter: brightness(1.2);
  opacity: 0.9;
}

.desktop-icon svg {
  display: block;
  margin: 0 auto;
  fill: white;
  width: 32px;
  height: 32px;
}
.desktop-icon img {
  display: block;
  margin: 0 auto;
  fill: white;
  width: 32px;
  height: 32px;
}

.desktop-icon span {
  color: white;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}


@keyframes Popup {
  0% {
      transform: scale(0.8);
      opacity: 0;
  }
  100% {
      transform: scale(1);
      opacity: 1;
  }
}
