/* Satoshi Guard - AI-Powered Smart Contract Audit Platform Styles */

/* Base Styles */
body { 
  background: linear-gradient(135deg, #0a0015 0%, #1a0033 50%, #2d0052 100%); 
  overflow: hidden;
}

/* WebGL Canvas Background */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  opacity: 0.25; /* further reduced for darker overlay */
}

/* Content Overlay with Glass Effect */
.content-overlay {
  position: relative;
  z-index: 10;
  backdrop-filter: blur(2px); /* subtle glass effect over shimmer */
}

/* Glowing Text Animation */
.glow-text {
  background: linear-gradient(90deg, #00f0ff, #c300ff, #00f0ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: glow 6s linear infinite;
}

@keyframes glow { 
  0%,100% { background-position: 0% center; } 
  50% { background-position: 200% center; } 
}

/* Orb Elements for Background Depth */
.orb { 
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  background: radial-gradient(circle at 40% 60%, rgba(147,51,234,0.15) 10%, transparent 45%);
  filter: blur(140px); 
  opacity: 0.4;
}

/* Overlay Styles */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 50;
}

.overlay.active {
  display: block;
}

/* Form Container */
.form-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(20, 20, 30, 0.95);
  border: 1px solid rgba(147, 51, 234, 0.3);
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
}

/* Select Dropdown Chevron */
.select-chevron {
  position: relative;
}

.select-chevron::after {
  content: '▼';
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  color: white;
  font-size: 12px;
  pointer-events: none;
  margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-container {
    padding: 30px;
    margin: 20px;
  }
  
  .content-overlay {
    padding: 1rem;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Smooth Transitions */
.transition-colors {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Focus States */
.focus\:outline-none:focus {
  outline: none;
}

.focus\:border-purple-500:focus {
  border-color: #a855f7;
}

/* Hover States */
.hover\:bg-gray-200:hover {
  background-color: #e5e7eb;
}

.hover\:bg-gray-700\/50:hover {
  background-color: rgba(55, 65, 81, 0.5);
}

.hover\:shadow-xl:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hover\:scale-105:hover {
  transform: scale(1.05);
}

/* Transform Utilities */
.transform {
  transform: var(--transform);
}

.translate-x-full {
  --transform: translateX(100%);
}

.-translate-y-1\/2 {
  --transform: translateY(-50%);
}

/* Animation Classes */
.duration-300 {
  transition-duration: 300ms;
}

.duration-500 {
  transition-duration: 500ms;
}

/* Positioning */
.fixed {
  position: fixed;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

/* Z-index Management */
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }
.z-\[-2\] { z-index: -2; }

/* Flexbox Utilities */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }

/* Grid Utilities */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Spacing */
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.pr-10 { padding-right: 2.5rem; }
.pr-12 { padding-right: 3rem; }
.pr-32 { padding-right: 8rem; }
.pl-4 { padding-left: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Width & Height */
.w-full { width: 100%; }
.max-w-3xl { max-width: 48rem; }
.max-w-5xl { max-width: 64rem; }
.h-screen { height: 100vh; }
.min-h-screen { min-height: 100vh; }

/* Typography */
.text-white { color: white; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-black { color: black; }
.text-green-500 { color: #10b981; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-7xl { font-size: 4.5rem; line-height: 1; }

.font-thin { font-weight: 100; }
.font-light { font-weight: 300; }
.font-sans { font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; }

.leading-relaxed { line-height: 1.625; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }

/* Background Colors */
.bg-white { background-color: white; }
.bg-black { background-color: black; }
.bg-black\/40 { background-color: rgba(0, 0, 0, 0.4); }
.bg-black\/50 { background-color: rgba(0, 0, 0, 0.5); }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-gray-800\/50 { background-color: rgba(31, 41, 55, 0.5); }
.bg-green-500 { background-color: #10b981; }

/* Border Styles */
.border { border-width: 1px; }
.border-gray-700 { border-color: #374151; }
.border-purple-500 { border-color: #a855f7; }
.border-gray-800\/50 { border-color: rgba(31, 41, 55, 0.5); }
.rounded-lg { border-radius: 0.5rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Shadow Effects */
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

/* Backdrop Filter */
.backdrop-blur-xl { backdrop-filter: blur(24px); }

/* ===== Chat Prompt Hero - create-box-hero inspired ===== */
.chat-prompt-hero {
  --state-hover: rgba(255, 255, 255, 0.08);
  --state-pressed: rgba(255, 255, 255, 0.12);
  --surface-inverse: #f4f4f5;
  --text-inverse-primary: #0a0a0a;
}

.chat-prompt-container {
  display: flex;
  width: 100%;
  flex-direction: column;
  padding: 1rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 18, 24, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 4px 24px rgba(0, 0, 0, 0.22);
  transition: box-shadow 0.25s ease;
  min-height: 220px;
}

.chat-prompt-container:focus-within {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 24px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(168, 85, 247, 0.35),
    0 0 28px rgba(168, 85, 247, 0.12),
    0 0 48px rgba(168, 85, 247, 0.06);
}

.chat-editor-row {
  position: relative;
  flex: 1;
  min-height: 5rem;
  margin-bottom: 0.5rem;
}

.chat-editor-input {
  width: 100%;
  min-width: 0;
  min-height: 5rem;
  margin: 0;
  padding: 0.25rem 0;
  border: none;
  background: transparent !important;
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(250, 250, 250, 0.95);
  outline: none;
  resize: none;
  font-family: inherit;
}

.chat-editor-input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.chat-toolbar {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.chat-toolbar-left,
.chat-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-attach-btn {
  display: flex;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border: none;
  border-radius: 9999px;
  background: transparent;
  color: rgba(228, 228, 231, 0.95);
  cursor: pointer;
  outline: none;
}

.chat-send-btn {
  display: flex;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 9999px;
  background: var(--surface-inverse);
  color: var(--text-inverse-primary);
  cursor: pointer;
  outline: none;
  transition: transform 0.15s ease-out, opacity 0.15s ease-out, background 0.15s ease-out, box-shadow 0.15s ease-out;
}


.chat-attach-icon,
.chat-send-icon {
  display: block;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .chat-prompt-container {
    border-radius: 28px;
    padding: 1.5rem;
    min-height: 280px;
  }

  .chat-editor-row {
    min-height: 140px;
    margin-bottom: 1rem;
  }

  .chat-editor-input {
    min-height: 140px;
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .chat-attach-btn,
  .chat-send-btn {
    width: 3rem;
    height: 3rem;
  }
}

/* ===== Smart Footer ===== */
.page-footer {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.page-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-footer-text {
  font-style: italic;
}

.page-footer-icon {
  flex-shrink: 0;
  opacity: 0.8;
}

/* SVG Icons */
.w-4 { width: 1rem; }
.w-6 { width: 1.5rem; }
.h-4 { height: 1rem; }
.h-6 { height: 1.5rem; }

.fill-none { fill: none; }
.stroke-current { stroke: currentColor; }

/* Chat Input Override - Maximum specificity to override global styles */
body #chatInput,
form-container #chatInput,
.overlay #chatInput,
input#chatInput,
textarea#chatInput {
  background: transparent !important;
  border: none !important;
  transition: background-color 0.3s ease;
}

/* Plus Button Icon Styling */
#requestAuditBtn + span:nth-child(1) > svg:nth-child(1) {
  background: #224,128;
  border-radius: 50%;
  padding: 2px;
}

/* Plus Button Icon Styling */
#requestAuditBtn + span:nth-child(1) > svg:nth-child(1) {
  background: #224,128;
  border-radius: 50%;
  padding: 2px;
}

/* Form Elements */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="date"],
textarea,
select {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #374151;
  border-radius: 0.5rem;
  color: white;
  placeholder-color: #6b7280;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #a855f7;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="url"]::placeholder,
input[type="tel"]::placeholder,
input[type="date"]::placeholder,
textarea::placeholder {
  color: #6b7280;
  placeholder-color: #6b7280;
}

/* Button Styles */
button {
  transition: all 0.3s ease;
  cursor: pointer;
}

button:focus {
  outline: none;
}

/* Custom Animations */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Notification Styles */
.notification-enter {
  animation: slideInRight 0.3s ease-out;
}

.notification-exit {
  animation: slideOutRight 0.3s ease-in;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Print Styles */
@media print {
  .orb,
  #bg-canvas,
  .overlay {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}
