/* Disable any scrolling and set the background image */
html, body {
  height: 100%;
  margin: 0;
  overflow: hidden; /* disable vertical and horizontal scrolling */
}

/* Base REM scaling by viewport width */
html { font-size: 16px; }              /* ≥1500px */

@media (max-width: 1500px) {
  html { font-size: 16px; }
}

@media (max-width: 1200px) {
  html { font-size: 14px; }
}

@media (max-width: 800px) {
  html { font-size: 12px; }
}

@media (max-width: 500px) {
  html { font-size: 11px; }
}

@media (max-width: 380px) {
  html { font-size: 9px; }
}

@font-face {
    font-family: 'SpaceLiquid'; 
    src: url('assets/LazenbyCompLiquid.ttf') format('truetype'); 
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SpaceSmooth'; 
    src: url('assets/LazenbyCompSmooth.ttf') format('truetype'); 
    font-weight: normal;
    font-style: normal;
}

:root{
    --app-bg-color: #ffffff0a;
    --app-icon-close: #ff5f56;
    --yellow-50: #fefce8;
    --yellow-100: #fef9c3;
    --yellow-200: #fef08a;
    --yellow-300: #fde047;
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --cyan-50: #ecfeff;
    --cyan-100: #cffafe;
    --cyan-200: #a5f3fc;
    --cyan-300: #67e8f9;
    --cyan-500: #06b6d4; 
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-200: #fed7aa;
    --orange-300: #fdba74;
    --orange-500: #f97316;
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    --neutral-950: #0a0a0a;
    --font-xlarge: 2.5rem;
    --font-large: 1.8rem;
    --font-medium: 1.2rem;
    --font-small: 0.70rem;
  }

body{
    background-color: var(--neutral-900);
    font-family: 'SpaceLiquid', sans-serif;
    color: var(--neutral-50);
}

/* Loader */

.loader {
  position: fixed;
  inset: 0;
  background: var(--neutral-950);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  z-index: 9999;
}

.loader-title {
  color: var(--emerald-300);
  font-size: var(--font-large);
  letter-spacing: 0.2em;
}

.loader-sub {
  color: var(--neutral-400);
  font-size: var(--font-small);
  text-transform: uppercase;
}

.loader-bar {
  width: 14rem;
  height: 2px;
  background: var(--neutral-800);
  overflow: hidden;
}

.loader-progress {
  height: 100%;
  width: 40%;
  background: var(--emerald-300);
  animation: loader-move 1.2s ease-in-out infinite;
}

@keyframes loader-move {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}

/* Particles */

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: all; 
}

/* Minimal centering class for quick testing */
.testdiv {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 10px;
  left: 0;
  width: 95vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
  font-size: var(--font-medium);
  margin: 0 2.5vw;
}

.navbar p {
  margin: 0;
  line-height: 1;
}

.elem {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  line-height: 1;
}

.elem i {
  line-height: 1;
  display: flex;
  align-items: center;
}

.subnav{
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 20px;
  background-color: var(--neutral-800);
}

.vol, .charge{
  width: 5vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.net{
  width: 2.5vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.elem:hover{
  background-color: var(--neutral-950);
  border-radius: 20px;
}

.hover{
  background-color: var(--neutral-950);
  border-radius: 20px;
}

@media (max-width: 800px) {
  .navbar {
    justify-content: center;
  }

  .subnav {
    gap: 0.75rem;
  }

  /* merge all subnavs visually */
  .navbar {
    background: var(--neutral-800);
    border-radius: 2rem;
    
    width: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .navbar i {
    font-size: 2rem;
  }

  .navbar p {
    display: none;
  }

  .vol , .charge, .net, .tim, .day, .weat{
    width: 5vw;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}


/* Music Player */

.player-container {
  position: fixed;
  bottom: 20px;
  right: 25px;
  background-color: var(--app-bg-color);
  border: 4px solid var(--yellow-300);
  border-radius: 10px;
  padding: 1rem 0.5rem;
  width: 34rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  z-index: 5;
}

.player-container.paused {
  border-color: var(--neutral-500);
}

.disk-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 9.5rem;
}

.music-disk {
  font-size: 8.5rem;
  color: var(--yellow-300);
  animation: spin-disk 8s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 12.5rem;
  height: 12.5rem;
}

.music-disk.paused {
  animation-play-state: paused;
  color: var(--neutral-500);
}

@keyframes spin-disk {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.content-right {
  display: flex;
  flex-direction: column;
}

.player-label {
  font-size: var(--font-medium);
  color: var(--yellow-300);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: bold;
  text-align: left;
}

.player-label.paused {
  color: var(--neutral-500);
}

.player-title {
  font-size: var(--font-large);
  color: var(--neutral-50);
  text-align: left;
}

.player-title.paused {
  color: var(--neutral-500);
}

.progress-section {
  width: 22rem;
  display: flex;
  align-items: center;
  position: relative;
  margin: 2vh 0 0 0;
}

.progress-slider {
  width: 22rem;
  height: 2px;
  background: var(--yellow-300);
  border-radius: 1px;
  border: none;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.progress-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  background: var(--yellow-300);
  border-radius: 50%;
  cursor: pointer;
}

.progress-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  background: var(--yellow-300);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.progress-slider.paused {
  background: var(--neutral-500);
}

.progress-slider.paused::-webkit-slider-thumb {
  background: var(--neutral-500);
}

.progress-slider.paused::-moz-range-thumb {
  background: var(--neutral-500);
}

.progress-time {
  width: 22rem;
  display: flex;
  justify-content: space-between;
  font-size: var(--font-small);
  color: var(--yellow-300);
  margin-top: 4px;
}

.progress-time.paused {
  color: var(--neutral-500);
}

.time {
  font-size: var(--font-small);
}

.controls {
  display: flex;
  justify-content: space-evenly;
  padding: 0;
  margin: 0;
  width: 22rem;
}

.control-btn {
  background: none;
  border: none;
  color: var(--neutral-50);
  font-size: 2.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.control-btn:hover {
  color: var(--yellow-300);
}

.control-btn.paused {
  color: var(--neutral-500);
}

.control-btn.paused:hover {
  color: var(--neutral-500);
}

.play-btn {
  background: none;
  border: none;
  color: var(--neutral-50);
  font-size: 2.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.play-btn:hover {
  color: var(--yellow-300);
}

.play-btn.paused {
  color: var(--neutral-500);
}

.play-btn.paused:hover {
  color: var(--yellow-300);
}

@media (max-width: 800px) {
  .player-container {
    position: fixed;
    bottom: 2px;
    right: 1px;
  }
}

/* Volume Slider */
.volume {
  position: fixed;
  top: -500px;
  right: 20px;
  width: 18.5rem;
  z-index: 3;
  background: var(--neutral-800);
  padding: 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
}

#id-volume-slider {
  width: 100%;
  height: 4px;
  background: var(--yellow-200);
  border-radius: 2px;
  border: none;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
  margin: 0;
}

#id-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1rem;
  height: 1rem;
  background: var(--yellow-200);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease;
}

#id-volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.4);
}

#id-volume-slider::-moz-range-thumb {
  width: 1rem;
  height: 1rem;
  background: var(--yellow-200);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease;
}

#id-volume-slider::-moz-range-thumb:hover {
  transform: scale(1.4);
}


/* Clock */

.clock {
  position: fixed;
  top: -500px;
  left: 20px;
  margin: 1vh;
  border: 4px solid var(--orange-300);
  border-radius: 10px;
  background-color: var(--app-bg-color);
  color: var(--orange-100);
  width: 19rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 2rem 0;
}

.clock p {
  margin: 0;
  line-height: 1;
}

.clock p:first-child{
  font-size: 4rem;
}

/* Calander */
.calendar{
  position: fixed;
  top: -500px;
  left: 20px;
  background-color: var(--app-bg-color);
  border: 4px solid var(--orange-300);
  border-radius: 10px;
  padding: 1rem 0.5rem;
}

.yr{
  font-size: var(--font-medium);
  color:  var(--orange-100);
  text-align: right;
}

.month{
  font-size: var(--font-large);
  color:  var(--orange-100);
  text-align: right;
}

.date{
  display: grid;
  grid-template-columns: auto auto auto auto auto auto auto;
  gap: 0.5rem;
}

.dateday{
  height: 2rem;
  width: 2rem;
  color: var(--orange-50);
  display: flex;
  align-items: center;
  justify-content: center; 
}

.datebox{
  height: 2rem;
  width: 2rem;
  background-color: var(--orange-300);
  color: var(--orange-50);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

/* Network Widget */
.network{
  position: fixed;
  top: -500px;
  right: 20px;
  background-color: var(--neutral-900);
  border: 4px solid var(--yellow-300);
  border-radius: 10px;
  padding: 0.5rem 2rem;
  font-size: var(--font-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
}

.network i{
  color: var(--yellow-200);
  font-size: 4rem;
}

/* Battery */
.battery {
  position: fixed;
  top: -500px;
  right: 20px;
  background-color: var(--neutral-900);
  border: 4px solid var(--yellow-300);
  border-radius: 10px;
  padding: 3vh 1vw;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 3;
}

.batteryvis {
  display: flex;
  align-items: center;
  gap: 20px;
}

.batteryvis i {
  font-size: 5rem;
  color: var(--yellow-200);
  flex-shrink: 0;
}

.batteryinfo {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.battery-label {
  font-size: var(--font-medium);
  color: var(--yellow-300);
  margin: 0;
}

.battery-percentage {
  font-size: 3rem;
  color: var(--neutral-50);
  margin: 0;
  line-height: 1;
}

.battery-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.battery-detail-line {
  font-size: var(--font-medium);
  color: var(--yellow-100);
  margin: 0;
  line-height: 1.3;
}

/* Weather Widget */
.weather {
  position: fixed;
  top: -500px;
  right: calc(50vw - 12vw);
  background-color: var(--app-bg-color);
  border: 4px solid var(--emerald-300);
  border-radius: 10px;
  padding: 1.5rem;
  width: 17rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.weather-location {
  font-size: var(--font-large);
  color: var(--emerald-50);
  margin: 0;
  text-align: center;
}

.weather-main {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
}

.weather-icon {
  font-size: 5rem;
  color: var(--emerald-50);
}

.weather-temp-condition {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.weather-temp {
  font-size: 3rem;
  color: var(--emerald-50);
  margin: 0;
  line-height: 1;
}

.weather-condition {
  font-size: var(--font-medium);
  color: var(--emerald-50);
  margin: 0;
}

.weather-separator {
  height: 2px;
  background: var(--emerald-200);
  margin: 8px 0;
}

.weather-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.weather-details p {
  font-size: var(--font-medium);
  margin: 0;
  line-height: 1.3;
}

.weather-label {
  color: var(--emerald-200);
}

.weather-value {
  color: var(--emerald-50);
}

/* Icon Component */
.icon-container {
  position: fixed;
  bottom: 16rem;
  right: 20px;
  z-index: 2;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  width: calc(12rem + 40px);
  gap: 20px;
}

.icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: var(--font-medium);
  width: 4rem;
}

.icon i {
  font-size: 3rem;
}

@media (max-width: 800px) {
  .icon-container {
    position: fixed;
    bottom: 16rem;
    right: 20px;
    z-index: 2;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    width: calc(15rem + 40px);
    gap: 20px;
  }

  .icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: var(--font-medium);
    width: 5rem;
  }

  .icon i {
    font-size: 4rem;
  }
}

/* file */
.file {
  border: 4px solid currentColor;
  border-radius: 5px;
  width: 29rem;
}

.window {
  height: 2.5rem;
  background-color: var(--neutral-950);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--cyan-50);
  cursor: default;
}

.blueprint {
  border: 4px solid var(--cyan-300);
}

.chart{
  border: 4px solid var(--yellow-300);
}

.about{
  border: 4px solid var(--emerald-300);
}

.file i{
  font-size: var(--font-medium);
  margin-right: 10px;
}

.file i:hover {
  color: var(--app-icon-close);
  cursor: pointer;
}

.file img {
  width: 29rem;
  cursor: default;
}

@media (max-width: 800px) {
  .file {
    width: 35rem;
  }

  .file img {
    width: 35rem;
  }
}

/* Terminal */
.terminal{
  background-color: var(--neutral-900);
  border: 4px solid var(--emerald-300);
  border-radius: 5px;
  width: 35rem;
  height: 25rem;
  color: var(--neutral-50);
  display: flex;
  flex-direction: column;
}

.terminal .window {
  border-bottom: 4px solid var(--emerald-300);
  height: 2rem;
}

.terminal i:hover {
  color: var(--app-icon-close);
  cursor: pointer;
}

.input-line input {
  background-color: var(--neutral-950);     /* removes white box */
  border: none;                /* no border */
  outline: none;               /* no focus ring */
  color: var(--neutral-50);    /* typed text visible */
  caret-color: var(--neutral-50);
  font-family: inherit;
  font-size: inherit;
  width: 100%;
}

.input-line {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.output {
  flex: 1;                 /* take remaining height */
  overflow-y: auto;
  padding: 0.5rem;
}

.output::-webkit-scrollbar {
  width: 6px;
}

.output::-webkit-scrollbar-track {
  background: transparent;
}

.output::-webkit-scrollbar-thumb {
  background-color: var(--neutral-700);
  border-radius: 4px;
}

@media (max-width: 800px) {
  .terminal {
    font-size: var(--font-medium);
  }
}

/* Firefox */
.output {
  scrollbar-width: thin;
  scrollbar-color: var(--neutral-700) transparent;
}

/* Core semantics */
.t-system {
  color: var(--cyan-300);
}

.t-title {
  color: var(--emerald-200);
}

.t-label {
  color: var(--neutral-400);
}

.t-text {
  color: var(--neutral-50);
}

.t-muted {
  color: var(--neutral-500);
}

.t-warn {
  color: var(--orange-200);
}

.t-error {
  color: var(--app-icon-close);
}

/* Command-specific */
.t-cmd {
  color: var(--emerald-200);
}

.t-desc {
  color: var(--neutral-300);
}

.t-link {
  color: var(--emerald-200);
  text-decoration: none;
}

.t-link:hover {
  text-decoration: underline;
}
