:root {
  --shadow: rgb(3, 2, 7);
  --navbar-width-min: 80px;
  --border-dark: rgb(0, 1, 2);
  --navbar-dark-primary: #18283b;
  --navbar-dark-secondary: #123b64ef;
  --navbar-light-primary: #f5f6fa;
  --navbar-light-secondary: #8392a5;
}

    * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
        font-family: "Atkinson Hyperlegible Mono", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    }

    body, html {
    font-family: "Atkinson Hyperlegible Mono", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    height: 100vh;
    max-width: 100%;
    background-color: #020d18;
    font-size: clamp(14px, 1.1rem, 20px);
    }


a {
    color: #f79605;
    text-decoration: none;
    font-weight: 600;
        transition: 0.3s ease-in-out;
} 

a:hover,a:focus,a:active,a:visited,a:link,a:focus-visible {
    text-decoration: none;
    color: rgba(176,22,227,0.51);
}

#output {
  font-size: 14px;
  font-family: "Atkinson Hyperlegible Mono", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  line-height: 1.1;
  word-wrap: normal;
  word-spacing: normal;
  break-after: auto;
  overflow: scroll;
  padding: 15px;
  margin-top: 10px;
  border-radius: 16px;
  border: 2px solid rgba(92, 101, 139, 0.575);
  background-color: rgba(83, 87, 126, 0.562);
color: rgb(230, 230, 230);
}

#navbutton {
  font-family: 'Material Symbols Outlined';
 font-size: 3rem;
  border: none;
  outline: none;
  cursor: pointer;
  background-color: var(--navbar-dark-primary);
}

#wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

header {
  display: flex;
}

#main-content {
  padding: 10px;
  text-align: justify;
  display: flex;
  flex-direction: column;
  min-width: 100vw;
  min-height: 90dvh;
  border-radius: 14px;
  background-color: #f7f7f7e5;
  border: 4px solid var(--border-dark);
  color: #08213b;
  gap: 15px;
  font-size: 0.95rem;
} 

/* ==========================
           AJAX SPINNER
========================== */
.loader { backdrop-filter: blur(25px); top: 50%; left: 50%; position: fixed; z-index: 99; width: 120px; --b: 16px; aspect-ratio: 1; border-radius: 80%; padding: 4px; background: conic-gradient(#10ca4800 40%,#0c73da) content-box; -webkit-mask: repeating-conic-gradient(#0000 0deg,#000 1deg 20deg,#0000 21deg 36deg), radial-gradient(farthest-side,#0000 calc(100% - var(--b) - 1px),#000 calc(100% - var(--b))); -webkit-mask-composite: destination-in; mask-composite: intersect; animation:l4 0.75s infinite steps(10);}@keyframes l4 {to{transform: rotate(1turn)}}@keyframes l3 {to{transform: rotate(1turn)}}

@keyframes bounceUp {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-8px); }
  60%  { transform: translateY(2px); }
  100% { transform: translateY(0); }
}

.card h1 {
  font-size: 1.7rem;
}

.card { 
background-color: #1d4b7c48;
display: flex;
flex-direction: column;
border-radius: 12px;
width: 100%;
padding: 12px;
box-shadow: 2px 2px 4px #110000a1;

}

.shell-group {
    padding-top: 8px;
    justify-content: flex-start;
    align-items: baseline;
    display: flex;
    gap: 16px;
    align-content: center; flex-wrap: wrap;
    flex-direction: row;
}


#log-container {
  background-color: #88b0d8ab;
  padding: 8px;
  border-radius: 8px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

span {
  vertical-align: middle;
}


label {
  line-height: 1.4;
  padding-left: 6px;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(36, 3, 3, 0.312);
}

#result {
  margin-left: 10px;
  font-weight: 600;
}

form {
    text-shadow: 1px 1px 2px rgba(36, 3, 3, 0.312);
  line-height: 1.4;
    font-size:16px;
    font-family: 'Material Symbols Outlined';
  vertical-align: baseline;
  display: flex;
  gap: 12px;
  flex-direction: column;
} q


*::placeholder {
    color: rgba(241, 241, 241, 0.904);
    letter-spacing: 1px;
}

.login-card {
  position: fixed;
  top: 50%;
  left: 50%;
    background:#1d356988;
    padding:20px;
    margin: 0;
    border-radius:14px;
    width:320px;
    box-shadow:4px 4px 10px rgba(0, 0, 0, 0.76);
}


#pw {
  min-width: fit-content;
  width: 100%;
}
input:focus,
textarea:focus,
select:focus { 
box-shadow: 4px 4px 7px #110000d0;
}


input[type="text"], input[type="password"] {
    padding:12px 40px 12px 12px;
    margin-top:12px;
    border-radius:8px;
    border: none; 
    background:#02061761;
    color:#fff;
    outline: 1px solid rgba(29, 2, 2, 0.884);
    box-shadow: inset 3px 3px 10px rgba(0, 0, 0, 0.36);
}

button,
input[type="submit"] { 
    border-radius:12px;
    color:white;
    font-weight:600;
    cursor:pointer;
    line-height: 1.4;
    border: none; 
	  background:linear-gradient(to bottom, #18b14b 5%, #9ae028 100%);
    outline: 1px solid #6aac15b4;
    text-shadow: 2px 2px 3px var(--shadow);
    min-width: 180px;
    max-width: max-content;
    color:rgb(236, 230, 230);
    transition: all 0.7s;
    margin: 5px;
    padding: 12px 20px;
    display: inline-block;

}  

button:hover,
input[type="submit"]:hover { 
  transition: all 0.7s; 
  letter-spacing: 1px;
  box-shadow:inset 0px 0px 12px -1px #021f2c; 
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); 
}

button:active, input[type="submit"]:active {
  outline: 1px solid rgba(44, 3, 3, 0.116);
  letter-spacing: 3px;
	background: linear-gradient(to bottom, rgba(139, 22, 139, 0.514), #be144765 100%);
  box-shadow: rgba(0, 0, 0, 0.3) 0px 18px 36px -18px, inset 0px 0px 12px -1px #012535e1, 0 5px 10px rgba(0, 0, 0, 0.2);
  }

input[type="submit"]::after, button::after {
  display: inline-block;
  box-shadow: rgba(0, 0, 0, 0.3) 0px 18px 36px -18px, inset 0px 0px 12px -1px #012535e1, 0 5px 10px rgba(0, 0, 0, 0.2);
  border-radius: 100px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  transition: all 0.4s;
}


@keyframes slideBottom {
  0% {
    backdrop-filter: blur(26px);
    transform: translateY(3px);
  }
  100% {
    backdrop-filter: blur(0px);
    transform: translateY(0px);<
  }
}

.login-field{
    position: relative;
    width: 100%;
    max-width: 320px;
}

.file-manager {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
}

/* file grid */
.file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

/* file cards */
.file-grid .card {
  padding: 10px;
  background: #12161c;
  border-radius: 8px;
  box-shadow: 0 0 0 1px #222 inset;
  text-align: center;
}

.file-grid button {
  margin-top: 6px;
  width: 100%;
}

/* editor textarea */
#editor textarea {
  width: 100%;
  height: 420px;
  resize: vertical;
}
.toggle {
  display: inline-blocks;
    padding-top: 14px;
    position:absolute;
    right:10px;
    top:50%;
    transform:translateY(-50%);
    cursor:pointer;
    color:#9bd7e9;
    user-select:none;
    transition: 0.3s;
}

.toggle:hover{
    color:#e3f9ff;
}

.error{
    color:#f87171;
    margin-top:10px;
    font-size:14px;
}
/* ==========================
           NAV
          
========================== */

nav {
  font-size: 1.5rem;
letter-spacing: 4px;
  background-color: var(--navbar-dark-primary);
  border-bottom:8px solid var(--border-dark);
  transition: 0.2s ease-in-out;
  width: 100%;
}

nav .link-li {
   padding: 20px;
color: rgb(233, 105, 32);
text-shadow: 3px 3px 2px var(--shadow);
}

nav .link-li-active {
   padding: 20px;
  color: rgb(228, 145, 21);
  text-shadow: 3px 3px 2px var(--shadow);
background-color: #4c5add3b;
}

nav .link-li:hover, nav .link-li-active:hover, nav .link-li-active:active {
color: rgb(233, 221, 221);

}

nav ul {
  display: flex;
  gap: 6rem;
  list-style: none;
}

nav li {padding: 20px 0 20px;   padding: 20px 0 20px; }


.menu {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}



#hamburger {
  display: none;
  outline: none;
  border: none; 
  cursor: pointer;
  margin: 5px;
  transition: color 0.3s ease;
}

/* ==========================
          CONTENT/LAYOUT
========================== */

.pw-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);

    display: inline-block;
    padding: 6px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;

    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    transition: all 0.15s ease;
}

.pw-toggle:hover {
    background: rgba(255,255,255,0.08);
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

#copybutton {
  position: sticky;
  top: 0; 
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  margin-bottom: 10px;
  background: rgba(70,140,207,0.85);
  border-radius: 8px;
  outline: 1px solid var(--bright);
  cursor: pointer;
  color: #dadde2;
  font-size: 1.1rem;
  padding: 10px 12px;
  	text-shadow: 2px 2px 1px #08213b62;
}


#copybutton .material-symbols-outlined {
  font-size: 1.1rem;
  margin-right: 10px;
	text-shadow: 2px 2px 1px #08213b62;
  vertical-align: middle;
}

#copybutton:hover {
outline: 2px solid var(--bright);
  background:linear-gradient(to bottom, #63b8ee 5%, #468ccf 100%);
  box-shadow: 4px 4px 17px 1px rgb(86, 74, 197),  inset 2px 4px 4px 0px #08213b;
  transition: 0.2s ease-in-out;
}

#copybutton:active {
  outline: 3px solid var(--bright);
  box-shadow: 0px 0px 17px 1px rgba(18,28,130,1);
  background:linear-gradient(to bottom, #63b8ee 5%, #468ccf 100%);
  box-shadow: 4px 4px 17px 1px rgb(86, 74, 197), inset 3px 6px 6px 0px #08213b;
}

@media (max-width: 920px) {
  nav ul { gap: 2rem; padding-top: 0;}
} 

@media (max-width: 772px) {
  body, html { font-size: 0.8rem; }
  #wrapper, #content { min-height: 100%;}

 nav { padding-top: 0;}
  #hamburger {
    display: flex;
  }

  #menu {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease;
  }

  #menu.open {
    width: 100%;
    display: inline-block; 
    text-align: center;
    border-left: 12px solid rgba(0,0,0,0);
    overflow: hidden;
    transition: max-height 0.4s ease;
    max-height: 600px;
  }

  #navbutton:hover {
    background-color: red;
    color: var(--hilight);
  }


  nav .link-li {
    margin: 10px 5px;
    border-left: 12px solid var(--gray);
    display: flex; justify-content: center;
    border-bottom: none;
    border-radius: var(--b-radius);
  }

  nav .link-li:hover {
    border-left: 12px solid var(--red2);
    border-radius: var(--b-radius);
  }
  
  nav .link-li-active {
    color: var(--orange);
    background-color: rgba(109, 51, 99, 0.281);
    border-left: 12px solid var(--red2); 
    border-radius: var(--b-radius);
    margin: 10px 5px;
  }
}
