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

* {
  font-family: 'Share Tech Mono', 'Courier New', monospace;
}

body {
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 1px,
      rgba(0, 255, 65, 0.03) 1px,
      rgba(0, 255, 65, 0.03) 2px
    ),
    radial-gradient(ellipse at center, #0a0a0a 0%, #000000 100%);
  animation: scanlines 0.1s infinite linear;
}

.terminal-bg {
  position: relative;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 255, 65, 0.02) 2px,
      rgba(0, 255, 65, 0.02) 4px
    );
}

.terminal-bg::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 1px,
      rgba(0, 255, 65, 0.05) 1px,
      rgba(0, 255, 65, 0.05) 2px
    );
  pointer-events: none;
  z-index: 1;
}

.terminal-glow {
  position: relative;
  box-shadow: 
    0 0 5px rgba(0, 255, 65, 0.3),
    inset 0 0 5px rgba(0, 255, 65, 0.1);
}

.terminal-glow::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, transparent, rgba(0, 255, 65, 0.1), transparent);
  z-index: -1;
}

.text-shadow-glow {
  text-shadow: 
    0 0 5px currentColor,
    0 0 10px currentColor,
    0 0 15px currentColor,
    0 0 20px currentColor;
}

@keyframes scanlines {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 4px;
  }
}

@keyframes flash-error {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.flash-error {
  animation: flash-error 0.5s infinite;
}

input::placeholder {
  color: rgba(0, 255, 65, 0.5);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 65, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 65, 0.8);
}

/* Button hover effects */
button {
  transition: all 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 255, 65, 0.3);
}

button:active {
  transform: translateY(0);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .terminal-bg {
    padding: 1rem;
  }
  
  h1 {
    font-size: 1.5rem !important;
  }
  
  .grid-cols-3 {
    grid-template-columns: 1fr;
  }
  
  .flex-wrap {
    flex-direction: column;
  }
  
  .flex-wrap button {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* Task completion animation */
@keyframes taskComplete {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); color: #ffff00; }
  100% { transform: scale(1); }
}

.task-complete {
  animation: taskComplete 0.3s ease;
}

/* CRT monitor effect */
.terminal-glow {
  border-radius: 2px;
  background: rgba(0, 20, 0, 0.8);
}

/* Retro button styling */
button {
  position: relative;
  border: 1px solid currentColor;
  background: transparent;
  padding: 0.5rem 1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: currentColor;
  opacity: 0.2;
  transition: all 0.3s ease;
  transform: translate(-50%, -50%);
}

button:hover::before {
  width: 100%;
  height: 100%;
}

/* ASCII art styling */
pre {
  line-height: 1.2;
  font-size: 0.8rem;
}

/* Blinking cursor animation */
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.blink {
  animation: blink 1s infinite;
}