@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Michroma&family=Quantico:wght@400;700&display=swap");

:root {
  --nf-bg: #1c1917;
  --nf-bg-soft: #292524;
  --nf-surface: #111111;
  --nf-surface-2: #171717;
  --nf-border: #44403c;
  --nf-text: #e7e5e4;
  --nf-text-muted: #a8a29e;
  --nf-accent: #f59e0b;
  --nf-accent-2: #fbbf24;
  --nf-success: #22c55e;
  --nf-danger: #ef4444;
  --nf-radius: 14px;
  --nf-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

html {
  scroll-behavior: smooth;
}

body1 {
  font-family: "Manrope", sans-serif;
  color: var(--nf-text);
}

body {
  font-family: "Manrope", sans-serif;
  background: radial-gradient(circle at 78% 28%, rgba(245, 158, 11, 0.045), transparent 24%), var(--nf-bg);
  color: var(--nf-text);
}

h1,
h2,
h3,
h4,
h5,
h6,
#header .logo,
#header .logo a {
  font-family: "Quantico", sans-serif;
  letter-spacing: 0.02em;
}

a {
  color: var(--nf-accent-2);
  transition: color 160ms ease;
}

a:hover,
a:focus {
  color: #fde68a;
}

#container,
#content,
#dashboard,
.main-content,
.content {
  background: transparent;
}

#header,
.header,
#nav,
#subnav,
.navbar {
  border-color: rgba(245, 158, 11, 0.18) !important;
  background: linear-gradient(180deg, rgba(23, 23, 23, 0.95), rgba(17, 17, 17, 0.95)) !important;
  backdrop-filter: blur(4px);
}

#header .logo,
#header .logo a {
  font-family: "Michroma", sans-serif;
  font-size: clamp(0.9rem, 1.6vw, 1.2rem);
  color: var(--nf-text) !important;
}

#nav a,
#subnav a,
.nav a,
.tabs a {
  color: var(--nf-text-muted) !important;
  transition: color 160ms ease, background-color 160ms ease;
}

#nav a:hover,
#subnav a:hover,
.nav a:hover,
.tabs a:hover,
#nav .active,
#subnav .active,
.tabs .active a {
  color: var(--nf-accent) !important;
}

.content,
.thread-entry,
.ticket-info,
.ticket-panel,
.panel,
.card,
fieldset,
table.list,
table.ticket-list,
table.form,
.message,
.notice,
.alert,
.pullquote,
.well {
  background: linear-gradient(180deg, rgba(23, 23, 23, 0.92), rgba(17, 17, 17, 0.92)) !important;
  color: var(--nf-text) !important;
  border: 1px solid rgba(245, 158, 11, 0.18) !important;
  border-radius: var(--nf-radius);
  box-shadow: var(--nf-shadow);
}

.thread-entry .header,
table.list thead th,
table.ticket-list thead th,
.section-break {
  background: rgba(41, 37, 36, 0.85) !important;
  color: #fef3c7 !important;
  border-color: rgba(245, 158, 11, 0.28) !important;
}

table.list tbody tr,
table.ticket-list tbody tr,
table.form tr {
  border-color: rgba(120, 113, 108, 0.3) !important;
}

table.list tbody tr:hover,
table.ticket-list tbody tr:hover {
  background: rgba(245, 158, 11, 0.08) !important;
}

input,
textarea,
select,
.text,
.search,
.input,
input[type="text"],
input[type="email"],
input[type="password"] {
  background: rgba(17, 17, 17, 0.95) !important;
  border: 1px solid rgba(120, 113, 108, 0.7) !important;
  color: var(--nf-text) !important;
  border-radius: 10px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

input:focus,
textarea:focus,
select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
  border-color: var(--nf-accent) !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.13) !important;
  outline: none !important;
}

.button,
button,
input[type="submit"],
input[type="button"],
.btn,
.Button {
  background: linear-gradient(180deg, #fbbf24, #f59e0b) !important;
  border: 1px solid rgba(245, 158, 11, 0.72) !important;
  color: #1c1917 !important;
  border-radius: 10px;
  font-weight: 700;
  text-shadow: none !important;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.18);
  transition: transform 130ms ease, box-shadow 130ms ease, filter 130ms ease;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.btn:hover,
.Button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.24);
  filter: brightness(1.04);
}

.button.secondary,
.btn-secondary,
.Button.secondary {
  background: transparent !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
  color: var(--nf-accent-2) !important;
}

.error,
.msg-error,
.warning {
  border-color: rgba(239, 68, 68, 0.55) !important;
  background: rgba(127, 29, 29, 0.22) !important;
  color: #fecaca !important;
}

.success,
.msg-success,
.notice-success {
  border-color: rgba(34, 197, 94, 0.45) !important;
  background: rgba(20, 83, 45, 0.25) !important;
  color: #bbf7d0 !important;
}

.note,
.msg-info,
.info-banner {
  border-color: rgba(251, 191, 36, 0.45) !important;
  background: rgba(120, 53, 15, 0.22) !important;
  color: #fef3c7 !important;
}

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

::-webkit-scrollbar-track {
  background: #1f1d1b;
}

::-webkit-scrollbar-thumb {
  background: #57534e;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #f59e0b;
}

@media (max-width: 760px) {
  #header,
  .header,
  #nav,
  #subnav {
    backdrop-filter: none;
  }

  .content,
  .panel,
  .card,
  .ticket-info,
  .thread-entry {
    border-radius: 12px;
  }

  .button,
  button,
  input[type="submit"],
  input[type="button"],
  .btn,
  .Button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
