/* Main Styles for AI Smart Contract Auditor */
body {
  background-color: #0a0a0a;
  color: #00ffcc;
  font-family: 'Courier New', monospace;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
.header {
  background-color: #111;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 0 20px #00ffff66;
  position: relative;
}

/* Glitch Effect */
.glitch {
  position: relative;
  color: #0ff;
  font-weight: bold;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
}

.glitch::before {
  animation: glitchTop 2s infinite linear alternate-reverse;
  color: #f0f;
  top: -2px;
}

.glitch::after {
  animation: glitchBot 1.5s infinite linear alternate-reverse;
  color: #0f0;
  top: 2px;
}

@keyframes glitchTop {
  0% { clip-path: inset(0 0 80% 0); }
  20% { clip-path: inset(30% 0 50% 0); }
  40% { clip-path: inset(50% 0 30% 0); }
  60% { clip-path: inset(70% 0 10% 0); }
  80% { clip-path: inset(10% 0 70% 0); }
  100% { clip-path: inset(50% 0 20% 0); }
}

@keyframes glitchBot {
  0% { clip-path: inset(80% 0 0 0); }
  20% { clip-path: inset(50% 0 30% 0); }
  40% { clip-path: inset(30% 0 50% 0); }
  60% { clip-path: inset(10% 0 70% 0); }
  80% { clip-path: inset(70% 0 10% 0); }
  100% { clip-path: inset(20% 0 50% 0); }
}

/* Navigation Tabs */
.tab-bar {
  display: flex;
  justify-content: center;
  background-color: #111;
  padding: 0.5rem;
  gap: 1rem;
  border-bottom: 2px solid #0ff;
  flex-wrap: wrap;
}

.tab {
  cursor: pointer;
  padding: 0.5rem 1rem;
  background: #222;
  border: 1px solid #0ff;
  border-radius: 4px;
  color: #0ff;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.tab:hover {
  background: #0ff;
  color: #000;
  box-shadow: 0 0 10px #0ff;
}

.tab:active {
  transform: scale(0.95);
}

.tab::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(0, 255, 255, 0.1);
  transform: rotate(45deg);
  transition: all 0.3s ease;
  opacity: 0;
}

.tab:hover::after {
  opacity: 1;
}

/* Content Panels */
.panel {
  display: none;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  margin: 1rem;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.panel.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel h3 {
  color: #0ff;
  border-bottom: 1px solid #0ff;
  padding-bottom: 0.5rem;
  margin-top: 0;
}

/* Terminal Output */
.terminal-output {
  background-color: #000;
  color: #0f0;
  padding: 1rem;
  height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
  border-radius: 6px;
  box-shadow: 0 0 8px #0f0;
  font-family: 'Courier New', monospace;
  position: relative;
}

.terminal-output::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, #0f0, #0ff, #f0f);
  border-radius: 6px 6px 0 0;
}

.terminal-output::-webkit-scrollbar {
  width: 8px;
}

.terminal-output::-webkit-scrollbar-track {
  background: #111;
}

.terminal-output::-webkit-scrollbar-thumb {
  background: #0f0;
  border-radius: 4px;
}

/* Form Elements */
.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: #0ff;
}

input[type="text"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  background-color: #111;
  border: 1px solid #0ff;
  border-radius: 4px;
  color: #0ff;
  font-family: 'Courier New', monospace;
}

input[type="text"]:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 5px #0ff;
}

button {
  background-color: #222;
  color: #0ff;
  border: 1px solid #0ff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
}

button:hover {
  background-color: #0ff;
  color: #000;
  box-shadow: 0 0 10px #0ff;
}

button:active {
  transform: scale(0.95);
}

/* File Upload Area */
.file-upload {
  border: 2px dashed #0ff;
  padding: 2rem;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.file-upload:hover {
  background-color: rgba(0, 255, 255, 0.1);
}

.file-upload.dragover {
  background-color: rgba(0, 255, 255, 0.2);
  border-color: #f0f;
}

/* Progress Bar */
.progress-container {
  width: 100%;
  background-color: #111;
  border-radius: 4px;
  margin: 1rem 0;
  overflow: hidden;
}

.progress-bar {
  height: 10px;
  background: linear-gradient(to right, #0f0, #0ff, #f0f);
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 4px;
}

/* Results Section */
.result-card {
  background-color: #111;
  border-left: 4px solid #0ff;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 0 4px 4px 0;
}

.result-card.warning {
  border-left-color: #ff0;
}

.result-card.error {
  border-left-color: #f00;
}

.result-card h4 {
  margin-top: 0;
  color: #0ff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .tab-bar {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .glitch {
    font-size: 1.5rem;
  }
  
  .panel {
    margin: 0.5rem;
    padding: 0.5rem;
  }
  
  .terminal-output {
    height: 200px;
  }
}

/* Animation for Scanner */
@keyframes scanline {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(300px);
  }
}

.scanline {
  position: absolute;
  width: 100%;
  height: 2px;
  background: rgba(0, 255, 255, 0.5);
  animation: scanline 2s linear infinite;
  pointer-events: none;
}

/* Blinking cursor effect */
.cursor {
  display: inline-block;
  width: 10px;
  height: 18px;
  background-color: #0f0;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Neon glow effects */
.neon-text {
  text-shadow: 0 0 5px #0ff, 0 0 10px #0ff, 0 0 15px #0ff;
}

.neon-box {
  box-shadow: 0 0 5px #0ff, 0 0 10px #0ff, 0 0 15px #0ff;
}
