@import "tailwindcss";

@layer base {
  :root {
    --primary: #20d3ee;
    --background-dark: #101f22;
    --surface-dark: #162629;
    --glass-border: rgba(255, 255, 255, 0.08);
    --admin-accent: #f59e0b;
  }
}

@layer utilities {
  .glass-panel {
    background: rgba(22, 36, 40, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
  }

  .glass-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: white;
  }

  .glass-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
  }

  .console-scroll::-webkit-scrollbar {
    width: 8px;
  }
  .console-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
  }
  .console-scroll::-webkit-scrollbar-thumb {
    background: #283639;
    border-radius: 4px;
  }
  .console-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
  }

  .pulse-dot {
    box-shadow: 0 0 0 0 rgba(32, 211, 238, 0.7);
    animation: pulse-cyan 2s infinite;
  }

  .admin-glow {
    box-shadow: 0 0 20px -5px rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.2);
  }
}

@keyframes pulse-cyan {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(32, 211, 238, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(32, 211, 238, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(32, 211, 238, 0);
  }
}

/* Syntax highlighting */
.syntax-key {
  color: #9cdcfe;
}
.syntax-string {
  color: #ce9178;
}
.syntax-number {
  color: #b5cea8;
}
.syntax-bool {
  color: #569cd6;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid transparent;
  background-clip: padding-box;
  border-radius: 5px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
  border: 2px solid transparent;
  background-clip: padding-box;
}
