@import url("https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap");

/* Base styles */
body {
  font-family: "Share Tech Mono", monospace;
  background: linear-gradient(
    135deg,
    #0a0015 0%,
    #1a0a2e 25%,
    #2d1b4e 50%,
    #1a0a3e 75%,
    #0f051f 100%
  );
  color: #ff1493;
  text-align: center;
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  overflow-x: auto;
}

h1 {
  font-weight: 900;
  font-size: 3em;
  text-shadow: 0 0 3px #ff1493;
  margin-bottom: 30px;
  letter-spacing: 2px;
}

h2 {
  font-weight: 700;
  font-size: 1.8em;
  text-shadow: 0 0 8px #ff1493, 0 0 15px #ff1493, 0 0 25px #ff006e;
  margin: 20px 0;
  letter-spacing: 1.5px;
}

/* Container styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.box {
  border: 2px dashed #00d9ff;
  padding: 30px;
  margin: 20px auto;
  max-width: 600px;
  border-radius: 10px;
  background: rgba(0, 217, 255, 0.05);
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.15);
}

.box:hover {
  border-color: #ff1493;
  box-shadow: 0 0 30px rgba(255, 20, 147, 0.4);
  background: rgba(255, 20, 147, 0.08);
}

.box.active {
  border-color: #ff1493;
  box-shadow: 0 0 30px rgba(255, 20, 147, 0.4);
  background: rgba(255, 20, 147, 0.08);
}

/* Input styles */
input[type="file"] {
  margin: 10px;
  padding: 10px;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid #00d9ff;
  border-radius: 5px;
  color: #00d9ff;
  font-family: inherit;
}

input[type="file"]::file-selector-button {
  background: linear-gradient(135deg, #ff1493, #ff006e);
  color: #ffffff;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
}

input[type="text"],
input[type="number"],
textarea,
select {
  margin: 10px;
  padding: 10px;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid #00d9ff;
  border-radius: 5px;
  color: #00d9ff;
  font-family: inherit;
}

input[type="color"] {
  margin: 10px;
  padding: 5px;
  width: 100%;
  min-width: 100px;
  height: 50px;
  background: rgba(0, 217, 255, 0.1);
  border: 2px solid #00d9ff;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

input[type="color"]:hover {
  border-color: #00bfff;
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.4);
}

/* Button styles */
button {
  margin: 10px;
  padding: 12px 24px;
  background: transparent;
  border: 2px solid #ff1493;
  border-radius: 5px;
  color: #ff1493;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 0 10px rgba(255, 20, 147, 0.2);
}

button:hover {
  border-color: #ff006e;
  color: #ff006e;
  box-shadow: 0 0 20px rgba(255, 0, 110, 0.6);
  background: rgba(255, 0, 110, 0.15);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button.secondary {
  border-color: #00d9ff;
  color: #00d9ff;
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.2);
}

button.secondary:hover {
  border-color: #00a8ff;
  color: #00a8ff;
  box-shadow: 0 0 20px rgba(0, 168, 255, 0.6);
  background: rgba(0, 168, 255, 0.15);
}

/* Media elements */
canvas,
video,
img {
  max-width: 100%;
  border: 1px solid #00d9ff;
  border-radius: 5px;
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
  margin: 10px 0;
}

/* Output and content areas */
.output {
  margin-top: 20px;
  padding: 20px;
  background: rgba(255, 20, 147, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 20, 147, 0.3);
  box-shadow: 0 0 20px rgba(255, 20, 147, 0.1);
}

/* Text styles */
p {
  font-size: 1.1em;
  margin: 10px 0;
}

a {
  color: #00d9ff;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #ff1493;
  text-shadow: 0 0 10px rgba(255, 20, 147, 0.6);
}

/* List styles */
ul {
  list-style: none;
  padding: 0;
  margin: 20px auto;
  max-width: 800px;
}

li {
  margin: 15px 0;
  padding: 15px;
  background: rgba(0, 217, 255, 0.05);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 5px;
  transition: all 0.3s ease;
}

li:hover {
  background: rgba(255, 20, 147, 0.08);
  border-color: rgba(255, 20, 147, 0.4);
  box-shadow: 0 0 15px rgba(255, 20, 147, 0.3);
}

/* Utility classes */
.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 10px;
}
.mt-2 {
  margin-top: 20px;
}
.mt-3 {
  margin-top: 30px;
}

.mb-1 {
  margin-bottom: 10px;
}
.mb-2 {
  margin-bottom: 20px;
}
.mb-3 {
  margin-bottom: 30px;
}

/* SVG Graphics Enhancements */

/* Circuit corner decorations */
.box-with-circuits {
  position: relative;
}

.box-with-circuits .circuit-corner {
  position: absolute;
  width: 60px;
  height: 60px;
  pointer-events: none;
}

.box-with-circuits .circuit-corner.tl {
  top: -2px;
  left: -2px;
}

.box-with-circuits .circuit-corner.tr {
  top: -2px;
  right: -2px;
}

.box-with-circuits .circuit-corner.bl {
  bottom: -2px;
  left: -2px;
}

.box-with-circuits .circuit-corner.br {
  bottom: -2px;
  right: -2px;
}

/* Loading spinner container */
.loading-spinner {
  display: inline-block;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Scan lines overlay */
.scan-lines-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
  animation: scan-move 8s linear infinite;
}

@keyframes scan-move {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100px);
  }
}

/* Glitch effect for dividers */
.glitch-divider {
  width: 100%;
  height: 20px;
  margin: 30px 0;
  animation: glitch-shift 3s ease-in-out infinite;
}

@keyframes glitch-shift {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(2px);
  }
  50% {
    transform: translateX(-2px);
  }
  75% {
    transform: translateX(1px);
  }
}

/* Terminal prompt icon */
.prompt-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  vertical-align: middle;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* Hero wireframe section */
.hero-wireframe {
  position: relative;
  width: 100%;
  height: 400px;
  margin: 40px 0;
  overflow: hidden;
}

.hero-wireframe svg {
  width: 100%;
  height: 100%;
  animation: grid-pulse 4s ease-in-out infinite;
}

@keyframes grid-pulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* Data stream background */
.data-stream {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.3;
}

.data-particle {
  position: absolute;
  width: 10px;
  height: 10px;
  animation: float-up 8s linear infinite;
}

@keyframes float-up {
  from {
    transform: translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  to {
    transform: translateY(-100vh);
    opacity: 0;
  }
}

/* Tool icon styling */
.tool-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin: 0 10px;
  vertical-align: middle;
  filter: drop-shadow(0 0 5px rgba(0, 217, 255, 0.6));
  transition: all 0.3s ease;
}

.tool-icon:hover {
  filter: drop-shadow(0 0 10px rgba(255, 20, 147, 0.8));
  transform: scale(1.1);
}

/* Loading state overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 0, 21, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

.loading-overlay .loading-spinner {
  width: 80px;
  height: 80px;
}
