/* ── Variáveis Nordware ── */
:root {
  --nw-green:       #00d58b;
  --nw-green-dark:  #00ad71;
  --nw-green-deep:  #008a5a;
  --nw-navy:        #0f1923;
  --nw-navy-light:  #1a2738;
  --nw-navy-mid:    #243447;
  --nw-text:        #e8edf2;
  --nw-text-muted:  #8a9bb0;
  --nw-border:      #2d3f52;
  --nw-card:        #172130;
  --nw-shadow:      0 2px 12px rgba(0,0,0,.35);
  --color-primary:        #00d58b;
  --color-primary-dark-1: #00ad71;
  --color-primary-dark-2: #008a5a;
  --color-primary-light-1:#38f9d7;
}

body {
  background: var(--nw-navy) !important;
  color: var(--nw-text) !important;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif !important;
}

#navbar,
.ui.top.attached.menu,
.ui.stackable.menu {
  background: var(--nw-navy-light) !important;
  border-bottom: 2px solid var(--nw-green) !important;
  box-shadow: var(--nw-shadow) !important;
}
#navbar .item,
.ui.top.menu .item {
  color: var(--nw-text) !important;
}
#navbar .item:hover,
.ui.top.menu .item:hover {
  background: var(--nw-navy-mid) !important;
  color: var(--nw-green) !important;
}
#navbar .item.brand svg,
#navbar .item.brand img {
  filter: brightness(0) invert(1);
}

.page-content,
.ui.segment,
.ui.segments {
  background: var(--nw-navy-light) !important;
  color: var(--nw-text) !important;
  border: 1px solid var(--nw-border) !important;
  border-radius: 8px !important;
  box-shadow: var(--nw-shadow) !important;
}
.ui.attached.segment {
  border-radius: 0 0 8px 8px !important;
}

.admin .content > .ui.grid > .column:first-child,
.admin .ui.stackable.grid > .four.wide.column,
.admin .sidebar,
[class*="admin"] .ui.secondary.menu,
.admin-panel {
  background: var(--nw-navy-light) !important;
  border-right: 1px solid var(--nw-border) !important;
  border-radius: 8px !important;
}
.ui.secondary.pointing.menu .item,
.ui.secondary.menu .item {
  color: var(--nw-text-muted) !important;
  border-radius: 6px !important;
  margin: 2px 4px !important;
}
.ui.secondary.pointing.menu .item:hover,
.ui.secondary.menu .item:hover {
  background: var(--nw-navy-mid) !important;
  color: var(--nw-green) !important;
}
.ui.secondary.pointing.menu .active.item,
.ui.secondary.menu .active.item {
  background: rgba(0,213,139,.12) !important;
  color: var(--nw-green) !important;
  border-left: 3px solid var(--nw-green) !important;
  font-weight: 600 !important;
}

h1, h2, h3, h4 {
  color: var(--nw-text) !important;
}
.ui.header,
.ui.dividing.header {
  color: var(--nw-text) !important;
  border-bottom-color: var(--nw-border) !important;
}

.ui.table {
  background: var(--nw-card) !important;
  color: var(--nw-text) !important;
  border: 1px solid var(--nw-border) !important;
  border-radius: 8px !important;
}
.ui.table thead th {
  background: var(--nw-navy-mid) !important;
  color: var(--nw-green) !important;
  border-bottom: 2px solid var(--nw-green) !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  font-size: .75rem !important;
  letter-spacing: .05em !important;
}
.ui.table tr:hover td {
  background: rgba(0,213,139,.06) !important;
}
.ui.table td {
  border-top: 1px solid var(--nw-border) !important;
  color: var(--nw-text) !important;
}
.ui.striped.table tbody tr:nth-child(2n) {
  background: rgba(255,255,255,.03) !important;
}

.ui.form input,
.ui.form textarea,
.ui.form select,
.ui.input input,
input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
  background: var(--nw-navy) !important;
  border: 1px solid var(--nw-border) !important;
  color: var(--nw-text) !important;
  border-radius: 6px !important;
}
.ui.form input:focus,
.ui.input input:focus,
input:focus,
textarea:focus {
  border-color: var(--nw-green) !important;
  box-shadow: 0 0 0 2px rgba(0,213,139,.2) !important;
  outline: none !important;
}
.ui.form .field > label,
label {
  color: var(--nw-text-muted) !important;
  font-weight: 500 !important;
}

.ui.primary.button,
.ui.green.button {
  background: var(--nw-green) !important;
  color: #0f1923 !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 8px rgba(0,213,139,.3) !important;
}
.ui.primary.button:hover,
.ui.green.button:hover {
  background: var(--nw-green-dark) !important;
  box-shadow: 0 4px 12px rgba(0,213,139,.4) !important;
  transform: translateY(-1px);
}
.ui.button {
  background: var(--nw-navy-mid) !important;
  color: var(--nw-text) !important;
  border: 1px solid var(--nw-border) !important;
  border-radius: 6px !important;
}
.ui.button:hover {
  background: var(--nw-border) !important;
  color: var(--nw-green) !important;
}
.ui.red.button, .ui.negative.button {
  background: #c0392b !important;
  color: #fff !important;
  border: none !important;
}

a { color: var(--nw-green) !important; text-decoration: none !important; }
a:hover { color: var(--nw-green-dark) !important; text-decoration: underline !important; }

.ui.label {
  background: var(--nw-navy-mid) !important;
  color: var(--nw-text) !important;
  border: 1px solid var(--nw-border) !important;
  border-radius: 20px !important;
}
.ui.green.label { background: rgba(0,213,139,.2) !important; color: var(--nw-green) !important; border-color: var(--nw-green) !important; }
.ui.red.label    { background: rgba(192,57,43,.2) !important; color: #e74c3c !important; }

.ui.dropdown .menu {
  background: var(--nw-navy-light) !important;
  border: 1px solid var(--nw-border) !important;
  box-shadow: var(--nw-shadow) !important;
}
.ui.dropdown .menu .item {
  color: var(--nw-text) !important;
  border-top: 1px solid var(--nw-border) !important;
}
.ui.dropdown .menu .item:hover {
  background: var(--nw-navy-mid) !important;
  color: var(--nw-green) !important;
}

.ui.message {
  background: var(--nw-navy-mid) !important;
  border: 1px solid var(--nw-border) !important;
  color: var(--nw-text) !important;
  border-radius: 8px !important;
}
.ui.positive.message, .ui.success.message {
  background: rgba(0,213,139,.12) !important;
  border-color: var(--nw-green) !important;
  color: var(--nw-green) !important;
}
.ui.negative.message, .ui.error.message {
  background: rgba(192,57,43,.15) !important;
  border-color: #c0392b !important;
  color: #e74c3c !important;
}

.ui.breadcrumb .section { color: var(--nw-text-muted) !important; }
.ui.breadcrumb .active.section { color: var(--nw-text) !important; }
.ui.breadcrumb .divider { color: var(--nw-border) !important; }

.ui.tabular.menu {
  border-bottom-color: var(--nw-border) !important;
  background: transparent !important;
}
.ui.tabular.menu .item {
  color: var(--nw-text-muted) !important;
  border-color: transparent !important;
  background: transparent !important;
}
.ui.tabular.menu .active.item {
  background: var(--nw-navy-light) !important;
  color: var(--nw-green) !important;
  border-color: var(--nw-border) !important;
  border-bottom-color: var(--nw-navy-light) !important;
  font-weight: 600 !important;
}

pre, code, .code-diff {
  background: #0d1117 !important;
  border: 1px solid var(--nw-border) !important;
  color: #c9d1d9 !important;
  border-radius: 6px !important;
}

.home .hero {
  background: linear-gradient(135deg, var(--nw-navy-light) 0%, var(--nw-navy-mid) 100%) !important;
  border-radius: 12px !important;
  padding: 3rem !important;
  border: 1px solid var(--nw-border) !important;
  box-shadow: var(--nw-shadow) !important;
}
.home .hero h1 { color: var(--nw-green) !important; }

#footer, footer {
  background: var(--nw-navy-light) !important;
  border-top: 1px solid var(--nw-border) !important;
  color: var(--nw-text-muted) !important;
}
#footer a { color: var(--nw-text-muted) !important; }

.ui.menu a[href*="sign_up"],
a[href*="sign_up"],
a[href="https://docs.gitea.io"],
.ui.menu a[href*="docs.gitea"] { display: none !important; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--nw-navy); }
::-webkit-scrollbar-thumb { background: var(--nw-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--nw-green); }
