@import "tailwindcss";

@theme {
  --color-nya-bg: #060807;
  --color-nya-surface: #0a0f0d;
  --color-nya-surface-light: #0f1512;
  --color-nya-border: rgba(0, 255, 140, 0.08);
  --color-nya-border-subtle: rgba(255, 255, 255, 0.04);
  --color-nya-glow: rgba(0, 255, 140, 0.15);
  --color-nya-text: #e2e8f0;
  --color-nya-text-muted: #8a9a8e;
}

@layer components {
  .nya-glow {
    box-shadow: 0 0 80px 30px rgba(0, 255, 140, 0.06), 0 0 160px 60px rgba(0, 255, 140, 0.03);
  }

  .nya-glow-sm {
    box-shadow: 0 0 40px 12px rgba(0, 255, 140, 0.05);
  }

  .nya-page-bg {
    background:
      radial-gradient(circle at center, rgba(0, 255, 140, 0.15), rgba(0, 0, 0, 0) 55%),
      linear-gradient(180deg, #060b09 0%, #020403 100%);
  }

  .nya-sidebar-bg {
    background:
      radial-gradient(circle at 30% 80%, rgba(0, 255, 140, 0.12), transparent 60%),
      #050908;
  }

  .nya-header-bg {
    background:
      radial-gradient(ellipse at 50% 0%, rgba(0, 255, 140, 0.06), transparent 70%),
      rgba(6, 8, 7, 0.85);
    backdrop-filter: blur(20px);
  }

  .nya-card {
    background:
      radial-gradient(circle at 70% 50%, rgba(0, 255, 140, 0.06), transparent 60%),
      #050908;
    border: 1px solid rgba(0, 255, 140, 0.08);
  }

  .nya-card-hover:hover {
    border-color: rgba(0, 255, 140, 0.18);
    box-shadow: 0 0 40px 8px rgba(0, 255, 140, 0.06);
  }

  .nya-card-glow {
    background:
      radial-gradient(circle at 80% 80%, rgba(0, 255, 140, 0.25), transparent 50%),
      #050908;
    border: 1px solid rgba(0, 255, 140, 0.1);
  }

  .nya-hero {
    background:
      radial-gradient(circle at 80% 80%, rgba(0, 255, 140, 0.35), rgba(0, 0, 0, 0) 50%),
      #0a0f0d;
  }

  .nya-gradient-border {
    border-image: linear-gradient(to right, rgba(0, 255, 140, 0.2), rgba(0, 255, 140, 0.03)) 1;
  }

  .nya-btn-primary {
    background: linear-gradient(135deg, #059669, #00ff8c);
    color: #060807;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 255, 140, 0.25);
    transition: all 0.3s ease;
  }

  .nya-btn-primary:hover {
    background: linear-gradient(135deg, #00ff8c, #059669);
    box-shadow: 0 6px 30px rgba(0, 255, 140, 0.35);
    transform: translateY(-1px);
  }

  .nya-btn-outline {
    border: 1px solid rgba(0, 255, 140, 0.3);
    color: #00ff8c;
    transition: all 0.3s ease;
  }

  .nya-btn-outline:hover {
    background: rgba(0, 255, 140, 0.08);
    border-color: rgba(0, 255, 140, 0.5);
  }

  .nya-input {
    display: block;
    width: 100%;
    appearance: none;
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 255, 140, 0.1);
    border-radius: 0.5rem;
    color: #e2e8f0;
    font-size: 0.875rem;
    line-height: 1.25rem;
    padding: 0.625rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .nya-input:focus {
    border-color: rgba(0, 255, 140, 0.4);
    box-shadow: 0 0 0 3px rgba(0, 255, 140, 0.08), 0 0 20px rgba(0, 255, 140, 0.05);
    outline: none;
  }

  .nya-input::placeholder {
    color: #5a6a5e;
  }

  .nya-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: rgba(0, 0, 0, 0.12);
  }

  select.nya-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%238a9a8e' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
  }

  textarea.nya-input {
    min-height: 6rem;
    resize: vertical;
  }
}

@layer base {
  ::selection {
    background: rgba(0, 255, 140, 0.25);
    color: white;
  }

  ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }

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

  ::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 140, 0.15);
    border-radius: 3px;
  }

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