/* Default values (fallback) */
:root {
  --bg-c1: 15, 15, 15;
  --bg-c2: 26, 26, 26;
  --term-alpha: 1;
}

/* Themes */
body.theme-dark {
  --bg-c1: 15, 15, 15;
  --bg-c2: 26, 26, 26;
}

body.theme-blue {
  --bg-c1: 2, 6, 23;
  --bg-c2: 15, 23, 42;
}

body.theme-sunset {
  --bg-c1: 44, 0, 30;
  --bg-c2: 0, 0, 0;
}

body.theme-ambience {
  --bg-c1: 26, 26, 58;
  --bg-c2: 10, 10, 26;
}

     * {
        vertical-align: baseline;
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        scroll-behavior: smooth;
        font-family: "IBM Plex Mono", monospace;
        font-weight: normal;
        font-size: 12px;
        line-height: 1.1;
        color: #25ff00;
        z-index: 2;
     }

    body, html {
        min-height: 100vh;
        margin: 0;
        padding: 0;
        font-family: "IBM Plex Mono", monospace;
        font-size: 12px;
        line-height: 1.1;
        color: #25ff00;
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
          
    }

body {
    background-attachment: fixed;
 --bg-gradient: linear-gradient(135deg, #0f0f0f, #1a1a1a);
--bg-image: none;
 /* --bg-image-opacity: 1; */
  
  background: linear-gradient(135deg, rgba(var(--bg-c1), var(--term-alpha)), rgba(var(--bg-c2), var(--term-alpha))), var(--bg-image), var(--bg-gradient);

  background-size:
    cover,
    cover,
    cover;

  background-position: center;
  background-repeat: no-repeat;
    min-height: 100vh;
  transition: background 2s ease, width 2s ease;
}

.js-prompt::after {
    content: ":";
    color: #fff;
    font-weight: 600;
    user-select: none; 
}

.prompt::after {
    content: "~$ ";
    color: #3567d3;
    font-weight: 600;
    user-select: none; 
}

a {
    color: #25ff00;
    text-decoration: none;
}

a:hover,a:focus,a:active,a:visited,a:link,a:focus-visible {
    text-decoration-line: underline;
    text-decoration-style: "solid";
    text-decoration-color: rgba(176,22,227,0.51);
    text-decoration-t hickness: 5px;
}

.paste-group {
    width: 100%;
    height: 100%;
    color: rgb(31, 31, 31);
}
/* FORM */
label { color: rgb(31, 31, 31); margin-bottom: 8px;  }
.form-stack {
    display: flex;
    gap: 10px;
        margin: 8% auto;
        min-height: 60%;
        width: 90dvw;
        box-shadow: 3px 7px 16px rgba(0, 0, 0, 0.6);
        background: rgba(134, 134, 133, 0.744);
        padding: 25px;
        box-sizing: border-box;
        border-radius: 8px;
        color: rgb(31, 31, 31);
    }



    .form-text {
        width: 150px;

        color: black;
    }









.login-text {
  width: 100%;
  background: transparent;
}

.login-error {
  min-height: 1.2em;
  color: RED;
  margin-bottom: 8px;
  transition: opacity 0.2s ease;
  text-align: center;
  font-size: 0.95rem;
}

.login-error.hidden {
  opacity: 0.9;
  pointer-events: none;
  user-select: none;
}

.terminal-login-form {
font-family: "IBM Plex Mono", monospace;
color: #25ff00;
background-color: transparent;
display: flex;
flex-direction: column;
}

.term-line {
width: 100%;
    background-color:transparent;
}

.term-line input {
    line-height: 1.1;
    background: transparent;
    border: none;
    outline: none;
    color: #25ff00;
}

/* hide autofill background (chrome) */
input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #000 inset !important;
    -webkit-text-fill-color: #00ff9c !important;
}

.term-line input::after {
    content: "█";
    animation: blink 1s infinite;
}

.ascii {
    background-color:transparent;
    white-space: pre;
}

.wrapper {
    display: flex;
    flex: auto;
    height: 100vh;
    width: 100vw;
    gap: 16px;
    padding: 10px 10px 70px;
    margin: 2px 5px 50px 5px;
    transition: width 0.3s ease, height 0.3s ease, border-radius 0.3s ease;
    z-index: 1;
}

#main {
    height: 100vh;
    width: 100vw;
}

.terminal-login {
width: 100%;
display: flex;
}

.login-form {
flex: 1;
}
  
.terminal-window.focused  {
opacity: 1;
outline-color: rgba(243, 243, 243, 0.12);
 outline-style: solid;
 outline-width: 2px;
 box-shadow: 0 0 0 2px rgba(243,243,243,.12),  2px 2px 10px 9px rgba(255,255,255,.052);
}

.terminal-window:not(.focused) {
    box-shadow: 5px 5px 3px rgba(0,0,0,0.2);
}

.terminal-window.minimized {
  display: none;
}

.terminal-window.normal {
  flex: 1 1 0;
      backdrop-filter: blur(3px);
      opacity: 0.9;
}

.terminal-window.maximized {
      backdrop-filter: blur(3px);
      opacity: 0.9;
  width: 80dvw;
  max-height: 90%;
  flex: 10 1 0;
  border-radius: 8px;
  transition: min-width 0.3s ease, max-height 0.3s ease, border-radius 0.3s ease;
  overflow-wrap: break-word;
}

/* Shrink »»»»»»»»»»»»»»siblings */
.wrapper > .terminal-window:not(.maximized) {
  flex: 1 90%; /* shrink to small size */
  opacity: 0.75;
  transition: flex 0.3s ease, opacity 0.3s ease;
}


.terminal-window {
    object-fit: contain;
    flex: 1 1 0; /* grow, shrink, base size */
    border-radius: 8px;
    font-variant-ligatures: none;
      backdrop-filter: blur(3px);

    --term-alpha: 1;
    background: rgba(0, 0, 0, var(--term-alpha));
    box-shadow:
    0 0 0 0 rgba(243,243,243,0),
    0 8px 24px rgba(0,0,0,.45);
     transition:  outline-color 10s ease, box-shadow 220ms cubic-bezier(.2,.8,.2,1), flex 0.3s ease, width 0.3s ease, height 0.3s ease, border-radius 0.3s;
}



.terminal-window,
.terminal-header,
.terminal-nav,
.terminal-body {
    overflow: hidden;
    transition: background 0.15s ease;
}

#rootShell .terminal-header {
    background-color: #853e44a6;
}

.nav-item {
    position: relative;
}

.opacity-control {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    padding: 10px;
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid #333;
    border-radius:  12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-5px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    color: #aaa;
    white-space: nowrap;
}

.opacity-control.visible {
    opacity: 0.9;
    pointer-events: auto;
    transform: translateY(0);

}

.opacity-control label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.opacity-control input[type="range"] {
    width: 120px;
    cursor: pointer;
    border-radius: 8px;
    outline: none; 
}
.opacity-control::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 12px;
    width: 10px;
    height: 10px;
    background: rgba(26, 26, 26, 0.95);
    transform: rotate(45deg);
    border-left: 1px solid #333;
    border-top: 1px solid #333;
}

.terminal-header {
    background: rgba(43, 43, 43, var(--term-alpha));
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #000;
    border-top-right-radius: 6px;
    border-top-left-radius: 6px;
}

    .window-buttons {
        display: flex;
        gap: 12px;
    }

    .btn {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: #e0e0e0;
        cursor: pointer;
    }

    .btn.close { background: #ff5f56; transition: 0.3s;}
    .btn.close:hover {  scale: 1.25;    box-shadow: inset 5px 5px 7px  #0c0c0c15; background-color:  #8a2a25ff;}

    .btn.minimize { background: #ffbd2e; transition: 0.3s;}
    .btn.minimize:hover {   scale: 1.25;    box-shadow: inset 5px 5px 7px  #0c0c0c15; background: #866110ff; }
    .btn.maximize { background: #27c93f; transition: 0.3s; }

    .btn.maximize:hover {  scale: 1.25;     box-shadow: inset 5px 5px 7px #0c0c0c15; background: #348842ff; }

    .terminal-title {
        color: #fffdfd;
        font-size: 14px;
        font-weight: 600;
        user-select: none;
        letter-spacing: 1px;
    }

    .terminal-nav {
        background: rgba(26, 26, 26, var(--term-alpha));
        padding: 6px 10px;
        border-bottom: 1px solid #333;
        display: flex;
        gap: 25px;

    }

.taskbar-links {
height: 60px;
display: flex;
gap:12px;
}

nav {
    display: flex;
}


.taskbar-link-active, .taskbar-link {
background: transparent;
border: none;
color: #fffdfd;
}

.taskbar-link-active {
    color: red;
    background-color: #55a7c075;
}

.taskbar-link:hover, .taskbar-link-active:hover {
color: rgb(218, 29, 123);
}


    .terminal-nav a {
        transition: 0.3s ease;
        color: #2dc4d8ff;
        text-decoration: none;
        font-weight: 600;
        font-size: 14px;
    }

    .terminal-nav a:hover {
        color: rgb(226, 190, 30);
        text-decoration: underline;
    }

.terminal-body {
    min-height: 100%;
    padding: 16px;
    color: #00ff9c;
    background: rgba(12, 12, 12, var(--term-alpha));
    overflow-inline: clip;
    width: 100%;
}

.terminal-output {
    white-space: pre-wrap;
    word-break: break-word;
    line-break: break-word;
    width: 100%;
        overflow: hidden;
}

.terminal-input-line {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: 100%;
    overflow: hidden;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  min-width: 1ch;   
}

.terminal-prompt {
  flex-shrink: 0;
  margin-right: 0.4em;
}

.terminal-prompt::after {
    content: "[~]$ ";
    color: #5370cf;
}

.prompt-sign {
    color: #f4f4f5;
}

    .prompt {
        color: #00ff9c;
    }

    .path {
        color: #5370cf;
    }

    .cursor {

        width: 8px;
        background: #00ff9c;
        animation: blink 1s steps(1) infinite;
        margin-left: 2px;
    }

    @keyframes blink {
        50% { opacity: 0; }
    }


.dropdown-menu {
    position: absolute;
    position-anchor: --dropdown;
    top: anchor(bottom);
    left: anchor(left);

    margin-top: 6px;

    background: rgba(26, 26, 26, 0.95);
    border: 1px solid #333;
    border-radius: 8px;
    min-width: 120px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.6);

    opacity: 0;
    pointer-events: none;
    transform: translateY(-15px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: 100;
}
.dropdown-menu.visible {
    opacity: 0.8;
    pointer-events: auto;
    transform: translateY(0);
    backdrop-filter: blur(10px);
}

.dropdown-menu a {
    display: block;
      position-try-options: flip-block, flip-inline;
    padding: 8px 12px;
    color: #ddd;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background: #333;
}

.dropdown-menu .divider {
    height: 1px;
    background: #333;
    margin: 4px 0;
}

.appearance-menu {
    anchor-name: --dropdown;
    min-width: 200px;
}

.menu-section {

    padding: 10px;
}

.menu-label {
    display: block;
    margin-bottom: 6px;
    color: #aaa;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.menu-btn {
    display: block;
    width: 100%;
    background: #2a2a2a;
    border: 1px solid #333;
    color: #ddd;
    padding: 6px;
    margin-bottom: 6px;
    border-radius: 8px;
    cursor: pointer;
    font-family: "IBM Plex Mono", monospace;
}

.menu-btn:hover {
    background: #3a3a3a;
}

.menu-section input[type="range"] {
    width: 100%;
}

input[type=text], input[type=password] {
    outline: none;
    border: none;
    line-height: 1.1;
    width: 100%;
}

footer {
    display: flex;
    flex-direction: row;
    width: 100%;
    padding: 10px 10px;
    background: rgba(0, 0, 0, 0.28);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(11.3px);
    -webkit-backdrop-filter: blur(11.3px);
    border-top: 2px solid #333;
}


#logout-button {
    anchor-name: --logout-txt;
   color: #fff;
   margin-right: 20px;
    height: 60px;
    display: inline-block;
    vertical-align: middle;
    padding: 15px 20px 0 5px;
    font-size: 28px;
    scale: 1 !important;
}

#logout-anchor {
    position: absolute;
    position-anchor: --logout-txt;
    bottom: 40px;
    left: anchor(center);
    box-shadow: 4px 4px 7px rgba(0,0,0,0.45);
    background: #222;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: #fff;
    opacity: 0;
    transition: 0.4s ease;
    border-right: 2px solid #333;
}

#logout-button:hover + #logout-anchor {
    opacity: 0.8;
   transition: 0.4s ease;
   border-right: 2px solid #333;
}

#taskbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.33);
    color:#bcd3e0;
    box-shadow: 3px 10px 30px rgba(0,0,0,0.9);
}

#taskbar .material-symbols-outlined {
        color:#bcd3e0;
        transition: 0.7s ease;
}

#taskbar .material-symbols-outlined:hover {
   color:#696969;
   scale: 1.5;
}

#paste-button {
   color: #fff;
   margin-right: 20px;
    height: 60px;
    display: inline-block;
    vertical-align: middle;
    padding: 15px 20px 0 5px;
    font-size: 28px;
}



.taskbar-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.taskbar-block:first-child {
    border-right: 2px solid #333;
    margin-right: 14px;
}

.taskbar-items {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.taskbar-item {
    font-weight:500;
    box-shadow: 3px 5px 5px rgba(0,0,0,0.5);
    padding: 5px 5px;
    background: #2a2a2a;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #0c0c0c86;
}

.taskbar-item.active[data-window="rootShell"], .taskbar-item[data-window="rootShell"] {
    background-color: rgba(202, 26, 35, 0.582); transition: 0.6s;     box-shadow: 3px 7px 7px rgba(0,0,0,0.35);
}
.taskbar-item.active[data-window="rootShell"]:hover, .taskbar-item[data-window="rootShell"]:hover {
      background-color: rgba(161, 83, 86, 0.582);
    box-shadow: 3px 7px 7px rgba(0,0,0,0.75);
    scale: 1.2;
}

.taskbar-item.active[data-window="term1"], .taskbar-item[data-window="term1"] {
    background-color: #312c2ca4; transition: 0.6s;     box-shadow: 3px 7px 7px rgba(0,0,0,0.35);
}

.taskbar-item.active[data-window="term1"]:hover, .taskbar-item[data-window="term1"]:hover {
    background-color: #9c9b9b80;
    box-shadow: 3px 7px 7px rgba(0,0,0,0.75);
        scale: 1.2;
}


.taskbar-item::before {
    font-family: 'Material Symbols Outlined';
    content: 'terminal';
        font-variation-settings:
        'FILL' 1,
        'wght' 0,
        'GRAD' 0,
        'opsz' 100;
        font-size: 16px;
        line-height: 2;
        vertical-align: middle;
        margin-right: 6px;
}

@media (max-width: 772px) {
    * {
        font-size: 10px;
        line-height: 1;
    }

   body, html {
    transition: 0.3s;
   } 
.taskbar-items { gap: 9px; }
    .terminal-title {
        font-size: 12px;
        font-weight: 600;
        user-select: none;
        letter-spacing: 0;
    }
    .terminal-nav a {
        font-size: 11px;
        gap: 5px;
    }

    .window-buttons {
        gap: 8px;
    }

    .btn {
        width: 8px;
        height: 8px;
    }
    
    .window-buttons .btn:last-child {
        margin-right: 3px;
    }

    #taskbar {
        transition: 0.3s ease;
        height: 40px;
        padding: 4px;
    }

#logout-button {
    margin-right: 20px;
    height: 40px;
    padding: 12px 10px 0 2px;
    font-size:14px;
}


.taskbar-item {
    font-weight: normal;
    box-shadow: 2px 3px 3px rgba(0, 0, 0, 0.5);
    padding: 3px 3px;
}

.taskbar-item::before {
    font-size: 10px;
    line-height: 1;
    margin-right: 3px;
}
}
@media (max-width: 552px) {
    * {
        font-size: 9px;
        line-height: 0.9;
        font-weight: normal;
    }
.terminal-title {
        font-size: 10px;
        font-weight: 400;
    }

    .window-buttons {
        gap: 4px;
    }

        .btn {
        width:6px;
        height: 6px;
    }
    
}