/*Locons.css (loading console ig)| Css for the loading screen and the console*/


#loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: color-mix(in srgb, var(--primary) 70%, black 30%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 8888;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.console-link {
  display: inline-block;
  margin-top: 1rem;
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  color: #aaa;
  text-decoration: underline;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.console-link:hover {
  opacity: 1;
  color: #fff;
}

.loader-content {
  text-align: center;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.progress-bar {
  width: clamp(150px, 50vw, 300px);
  height: 3px;
  background: #4a4a4a;
  margin: 1.5rem 0;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.progress {
  position: absolute;
  width: 50%;
  height: 100%;
  background: #ffffff;
  animation: progress 1.5s ease-in-out infinite;
  border-radius: 2px;
}

.loader-text {
  font-family: 'Space Mono', monospace;
  color: #ffffff;
  font-size: clamp(14px, 3vw, 18px);
  letter-spacing: 2px;
  opacity: 0.9;
  text-transform: uppercase;
}

#console-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: color-mix(in srgb, var(--primary) 70%, black 30%);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 6666;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.console-text {
  font-family: 'Space Mono', monospace;
  color: #ffffff;
  font-size: clamp(14px, 3vw, 18px);
  letter-spacing: 2px;
  opacity: 0.9;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.console {
  width: clamp(280px, 90%, 700px);
  height: clamp(200px, 50vh, 400px);
  background: #0a0a0a;
  border-radius: 8px;
  padding: 1.5rem;
  font-family: 'Space Mono', monospace;
  font-size: clamp(12px, 2.5vw, 14px);
  color: #b0b0b0;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border: 1px solid #4a4a4a;
  scrollbar-width: thin;
  scrollbar-color: #4a4a4a #0a0a0a;
}

.console.hidden {
  display: none;
}

.console::-webkit-scrollbar {
  width: 8px;
}

.console::-webkit-scrollbar-track {
  background: #0a0a0a;
}

.console::-webkit-scrollbar-thumb {
  background-color: #4a4a4a;
  border-radius: 4px;
}

.console-line {
  margin: 0.3rem 0;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  word-wrap: break-word;
  line-height: 1.5;
}

.console-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.success {
  color: #00ff9c;
}

.warning {
  color: #ffa500;
}

.error {
  color: #ff6b6b;
}

.info {
  color: #ffffff;
}

@keyframes progress {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(200%);
  }
}

.console-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  background: var(--box);
  border: var(--border);
  border-radius: 8px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 7777;
  transition: all 0.3s ease;
}

.console-toggle:hover {
  background: color-mix(in srgb, var(--primary) 70%, black 30%);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.console-toggle img {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.console-toggle:hover img {
  opacity: 1;
}

@media (max-width: 768px) {
  .console-toggle {
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
  }

  .console-toggle img {
    width: 20px;
    height: 20px;
  }
}


@media screen and (max-width: 600px) {
  #loader-container {
    padding: 1rem;
  }

  .loader-content {
    margin-bottom: 1rem;
  }

  .progress-bar {
    width: clamp(200px, 80vw, 300px);
  }

  .console {
    width: 95%;
    padding: 1rem;
  }
}