/* Borg Collective Theme */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Orbitron:wght@400;500;700&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --lollms-title: The Borg Collective Lord;
  --falling-object: B;
  --activate-dropping-animation: 1;
  --lollms-welcome-short-message: Welcome to the Borg collective;
  --lollms-welcome-message: Resistance is futile;
}


@layer base {
  html {
    @apply scroll-smooth;
  }
  body {
    font-family: 'Share Tech Mono', monospace;
  }
}

@layer utilities {
  .no-scrollbar::-webkit-scrollbar {
    display: none;
  }

  .no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
}

.display-none {
  @apply hidden;
}

h1 { @apply text-4xl md:text-5xl font-bold text-green-400 font-['Orbitron'] mb-6; }
h2 { @apply text-3xl font-semibold text-green-500 font-['Orbitron'] mb-4; }
h3 { @apply text-2xl font-medium text-green-600 font-['Orbitron'] mb-3; }
h4 { @apply text-xl font-medium text-green-400 font-['Orbitron'] mb-2; }

h1, h2 { @apply border-b border-green-600 pb-2; }

p { @apply text-base text-gray-300 break-words; }
/* Base list styling */
ul, ol {
  @apply 
      my-4          /* Margin top and bottom */
      px-4          /* Horizontal padding */
      leading-7     /* Line height */
      text-base;    /* Text size */
}

/* Unordered lists */
ul {
  @apply 
      list-disc     /* Disc style bullets */
      ml-2          /* Left margin */
      space-y-2;    /* Vertical spacing */
}

/* List items */
li {
  @apply 
      pl-2         /* Padding left */
      relative;    /* Positioning */
}

/* Ordered lists */
ol {
  @apply 
      list-decimal  /* Numbered style */
      ml-2          /* Left margin */
      space-y-2;    /* Vertical spacing */
}

/* Nested lists */
ul ul, ol ol, ul ol, ol ul {
  @apply 
      mt-2         /* Top margin */
      mb-0         /* Bottom margin */
      ml-6;        /* Indentation */
}

/* For custom properties that aren't available in Tailwind, use regular CSS */
li::marker {
  color: #4B5563; /* gray-600 equivalent */
}


:root {
  --color-primary: #00ff00;
  --color-primary-light: #40ff40;
  --color-secondary: #1a1a1a;
  --color-accent: #00cc00;
  --color-light-text-panel: #00ff00;
  --color-dark-text-panel: #40ff40;
  --color-bg-light-panel: #121212;
  --color-bg-light: #0a0a0a;
  --color-bg-light-tone: #1a1a1a;
  --color-bg-light-code-block: #080808;
  --color-bg-light-tone-panel: #151515;
  --color-bg-light-discussion: #0f0f0f;
  --color-bg-light-discussion-odd: #0d0d0d;
  --color-bg-dark: #000000;
  --color-bg-dark-tone: #0a0a0a;
  --color-bg-dark-tone-panel: #101010;
  --color-bg-dark-code-block: #080808;
  --color-bg-dark-discussion: #050505;
  --color-bg-dark-discussion-odd: #030303;
}

textarea, input, select {
  @apply bg-gray-900 border-green-600 text-green-400;
}

.background-color {
  @apply bg-gradient-to-br from-gray-900 to-black min-h-screen;
}

.toolbar-color {
  @apply text-green-400 bg-gray-900 rounded-lg shadow-md border border-green-600;
}

.panels-color {
  @apply text-green-400 bg-gray-900 border-green-600;
}

.unicolor-panels-color {
  @apply bg-gray-900 border border-green-600;
}

.chatbox-color {
  @apply bg-black text-green-400;
}

.message {
  @apply relative w-full rounded-lg border border-green-600 flex flex-col flex-grow flex-wrap overflow-visible p-5 pb-3 text-lg;
  @apply bg-gray-900 text-green-400;
}

.message:hover {
  @apply border-green-400;
}

.message:nth-child(even) {
  @apply bg-gray-900;
}

.message:nth-child(odd) {
  @apply bg-gray-800;
}

.message-header {
  @apply text-xl font-['Orbitron'] font-semibold mb-2 text-green-400;
}

.message-content {
  @apply text-lg leading-relaxed text-gray-300;
}

body {
  @apply bg-black text-green-400 min-h-screen text-base;
}

.discussion {
  @apply mr-2 text-xs text-green-400;
}

.discussion-hilighted {
  @apply bg-gray-800 text-green-400 text-xs;
}

.bg-gradient-welcome {
  @apply bg-gradient-to-br from-gray-900 to-black;
}

.bg-gradient-progress {
  @apply bg-gradient-to-r from-green-900 to-green-700;
}

.text-gradient-title {
  @apply text-transparent bg-clip-text bg-gradient-to-r from-green-400 to-green-600;
}

.text-subtitle {
  @apply text-green-500;
}

.text-author {
  @apply text-green-400;
}

.text-loading {
  @apply text-green-400;
}

.text-progress {
  @apply text-green-500;
}

.btn-primary {
  @apply bg-green-700 hover:bg-green-600 text-black font-bold py-2 px-4 rounded;
}

.btn-secondary {
  @apply bg-gray-800 hover:bg-gray-700 text-green-400 font-bold py-2 px-4 rounded border border-green-600;
}

.card {
  @apply bg-gray-900 rounded-lg shadow-md p-6 border border-green-600;
}

.input {
  @apply bg-gray-900 border border-green-600 rounded-md px-4 py-2 focus:outline-none focus:ring-2 focus:ring-green-500 text-green-400;
}

.label {
  @apply block text-sm font-medium text-green-400 mb-1;
}

.link {
  @apply text-green-400 hover:text-green-300;
}

.navbar-container {
  @apply text-green-400 bg-gray-900 rounded shadow-lg border border-green-600;
}

.game-menu {
  @apply flex justify-center items-center relative;
}

.text-shadow-custom {
  text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 30px #00ff00;
}

.menu-item {
  @apply mb-2 px-4 py-2 text-green-400 font-['Orbitron'] font-bold text-lg transition-all duration-300 ease-in-out;
  @apply hover:text-green-300 hover:transform hover:-translate-y-1;
}

.menu-item.active-link {
  @apply rounded-t-md border-green-500 text-green-300 font-['Orbitron'] font-bold text-lg transition-all duration-300 ease-in-out scale-105;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.menu-item.active-link::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, #00ff00, #40ff40, #00ff00);
  border-radius: 10px;
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { background-position: -100% 0; }
  100% { background-position: 100% 0; }
}


.app-card {
  @apply transition-all duration-300 ease-in-out bg-blue-100 dark:bg-blue-800 text-blue-800 dark:text-blue-100 border rounded-xl shadow-lg p-6 hover:shadow-xl ;
}

.app-card:hover {
  @apply transform -translate-y-1;
}

button {
  @apply transition-all duration-300 ease-in-out;
}

button:hover {
  @apply transform -translate-y-0.5;
}


.scrollbar-thin {
  scrollbar-width: thin;
  scrollbar-color: #00ff00 #1a1a1a;
}

.scrollbar-thin::-webkit-scrollbar {
  @apply w-2;
}

.scrollbar-thin::-webkit-scrollbar-track {
  @apply bg-gray-900 rounded-full;
}

.scrollbar-thin::-webkit-scrollbar-thumb {
  @apply bg-green-600 rounded-full;
}

.scrollbar-thin::-webkit-scrollbar-thumb:hover {
  @apply bg-green-500;
}

.btn {
  @apply font-['Orbitron'] font-semibold py-2 px-4 rounded-lg transition-all duration-300 ease-in-out shadow-md flex items-center;
}

.search-input {
  @apply w-full border-b-2 border-green-600 py-2 px-4 pl-10 transition-colors duration-300 ease-in-out focus:outline-none focus:border-green-400 bg-transparent text-green-400;
}

.card-title {
  @apply text-xl font-['Orbitron'] font-bold text-green-400 mb-2;
}

.card-content {
  @apply text-gray-300;
}

.subcard {
  @apply bg-gray-900 rounded-lg shadow-md p-4 border border-green-600;
}

.subcard-title {
  @apply text-lg font-['Orbitron'] font-bold text-green-400 mb-2;
}

.subcard-content {
  @apply text-gray-300;
}

.interesting-facts{
  @apply mt-6 mb-6 p-4 bg-gray-800/80 dark:bg-gray-800/80 rounded-lg shadow-lg transform hover:scale-105 
}

.animated-progressbar-bg {
  @apply w-full h-24 relative overflow-hidden bg-gradient-to-r from-zinc-900 to-slate-800 dark:from-black dark:to-zinc-900 rounded-none border-2 border-emerald-500/30 shadow-[inset_0_0_10px_rgba(16,185,129,0.3)]
}

.animated-progressbar-fg {
  @apply absolute top-0 left-0 h-full bg-gradient-to-r from-emerald-500 to-emerald-600 dark:from-emerald-400 dark:to-emerald-500 transition-all duration-300 
  [background-image:repeating-linear-gradient(45deg,transparent,transparent_10px,rgba(0,0,0,0.2)_10px,rgba(0,0,0,0.2)_20px)]
}


.discussion-toolbox{
  @apply flex gap-2 items-center bg-green-700 dark:bg-gray-800 p-2 rounded-l-md shadow-md transform translate-x-full group-hover:translate-x-0 transition-transform duration-300
}

.lollms-title-style {
  text-shadow: 2px 2px 4px rgba(0,255,0,0.2), 
               2px 2px 0px #000000, 
               -2px -2px 0px #000000, 
               2px -2px 0px #000000, 
               -2px 2px 0px #000000;
  background: linear-gradient(45deg, #00ff00, #39ff14);
  -webkit-background-clip: text;
  background-clip: text;
  color: greenyellow;
}
.chat-bar {
  @apply relative text-green-400 dark:text-green-300 grow flex cursor-pointer select-none items-center gap-2 bg-gray-900 dark:bg-black p-1 shadow-sm hover:shadow-none dark:border-green-800;
  height: 50px;
  transition: all 0.3s ease;
}

.chat-bar:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 255, 0, 0.1), 0 2px 4px -1px rgba(0, 255, 0, 0.06);
}

.chat-bar-button{
  @apply text-green-400 dark:text-green-300 p-2 rounded-full transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500
}

.chat-bar-button:hover{
  @apply bg-gray-800 dark:bg-gray-700
}

.chat-bar-button:active{
  @apply bg-gray-700 dark:bg-gray-600
}

.nav-button{
  @apply px-3 py-2 rounded-md text-sm font-medium transition-colors duration-200 ease-in-out hover:bg-gray-800 hover:text-green-400 dark:hover:bg-gray-700 text-green-300 dark:text-green-400
}

.nav-button-active{
  @apply bg-green-700 text-gray-100 hover:bg-green-600 dark:bg-green-800 dark:hover:bg-green-700
}

.svg-button{
  @apply text-green-500 dark:text-green-400 p-2 rounded-full transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500
}

.svg-button:hover{
  @apply bg-gray-800 dark:bg-gray-700
}

.svg-button:active{
  @apply bg-gray-700 dark:bg-gray-600
}

.nav-button{
  @apply px-3 py-2 rounded-md text-sm font-medium transition-colors duration-200 ease-in-out hover:bg-gray-800 dark:hover:bg-gray-700 text-green-400 dark:text-green-300
}

.nav-button-active{
  @apply bg-green-700 text-gray-100 hover:bg-green-600 dark:bg-green-800 dark:hover:bg-green-700
}

.btn-on{
  @apply text-green-500 dark:text-green-400
}

.btn-off{
  @apply text-red-500 dark:text-red-400
}

.interesting-facts{
  @apply mt-6 mb-6 p-4 bg-gray-800/80 dark:bg-black/80 rounded-lg shadow-lg transform hover:scale-105 border border-green-500
}

.toolbar-button {
  @apply bg-transparent border-none cursor-pointer p-2 transition-colors duration-300;
}
  
.toolbar-button:hover {
  @apply text-green-400;
}
.context-menu {
  @apply absolute bg-opacity-90 bg-black border border-green-500 shadow-lg shadow-green-500/50 rounded-none py-2 min-w-[150px] z-[1000] font-mono;
  
  @apply dark:bg-opacity-90 dark:bg-gray-900 dark:border-green-400 dark:shadow-green-400/50;
}

.context-menu::before {
  @apply content-[''] absolute inset-0 bg-gradient-to-b from-green-500/10 via-green-500/5 to-transparent bg-[length:100%_1000px] opacity-30 -z-10;
}

.context-menu-item {
  @apply px-4 py-2 text-sm text-green-500 cursor-pointer transition-all duration-300 ease-in-out shadow-green-500/70;
  
  @apply hover:bg-green-900/40 hover:scale-105;
  
  @apply dark:text-green-400 dark:hover:bg-green-700/40;
}

.context-menu-separator {
  @apply h-px bg-green-500 my-1 shadow-green-500;
  
  @apply dark:bg-green-400 dark:shadow-green-400;
}

.context-menu-item-disabled {
  @apply text-gray-600 cursor-not-allowed shadow-none;
  
  @apply dark:text-gray-500;
}

.context-menu-item-icon {
  @apply mr-2 text-green-500;
  
  @apply dark:text-green-400;
}

.context-menu-item::after {
  @apply content-[''] absolute left-0 bottom-0 w-full h-px bg-gradient-to-r from-transparent via-green-500 to-transparent scale-x-0 origin-center transition-transform duration-300 ease-in-out;
  
  @apply dark:via-green-400;
}

.context-menu-item:hover::after {
  @apply scale-x-100;
}


@keyframes borg-scan {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 1000px;
  }
}
