/* Evilginx × Gophish — Campaign Console theme */
:root {
  --egx-bg: #0f1419;
  --egx-surface: #171d25;
  --egx-surface-2: #1e2630;
  --egx-border: #2a3441;
  --egx-text: #e8eef4;
  --egx-muted: #8b9aab;
  --egx-accent: #3d8bfd;
  --egx-accent-hover: #5a9fff;
  --egx-success: #2f9e71;
  --egx-radius: 10px;
  --egx-font: "DM Sans", "Segoe UI", sans-serif;
  --egx-mono: "JetBrains Mono", ui-monospace, monospace;
}

body,
.sans,
.label,
.form-signin .form-control,
footer > p {
  font-family: var(--egx-font) !important;
}

/* ——— Top nav ——— */
.navbar.navbar-inverse,
.egx-topnav {
  background: var(--egx-surface) !important;
  border-bottom: 1px solid var(--egx-border) !important;
  box-shadow: none !important;
  min-height: 56px;
}

.egx-brand {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 12px 16px !important;
  height: auto !important;
  color: var(--egx-text) !important;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.egx-brand:hover,
.egx-brand:focus {
  color: #fff !important;
}

.egx-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(145deg, #3d8bfd, #1a5fd0);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--egx-mono);
}

.egx-mark-lg {
  width: 48px;
  height: 48px;
  font-size: 22px;
  border-radius: 12px;
  margin: 0 auto 16px;
}

.egx-brand-text {
  font-size: 15px;
}

.egx-env-pill {
  display: inline-block;
  margin: 14px 16px 0 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--egx-muted);
  background: var(--egx-surface-2);
  border: 1px solid var(--egx-border);
}

.navbar-logo {
  display: none !important;
}

/* ——— Login ——— */
.egx-login-body {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(61, 139, 253, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(47, 158, 113, 0.12), transparent 50%),
    var(--egx-bg) !important;
  min-height: 100vh;
  color: var(--egx-text);
}

.egx-login-wrap {
  padding-top: 48px;
}

.egx-login-card {
  max-width: 400px !important;
  margin: 64px auto 0 !important;
  padding: 32px 28px 28px !important;
  background: var(--egx-surface);
  border: 1px solid var(--egx-border);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.egx-login-header {
  text-align: center;
  margin-bottom: 28px;
}

.egx-login-header h1 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--egx-text);
}

.egx-login-header p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--egx-muted);
}

.egx-label {
  display: block;
  margin: 14px 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--egx-muted);
  letter-spacing: 0.02em;
}

.egx-login-card .form-control {
  background: var(--egx-surface-2) !important;
  border: 1px solid var(--egx-border) !important;
  color: var(--egx-text) !important;
  border-radius: 8px !important;
  margin-bottom: 0 !important;
  box-shadow: none !important;
}

.egx-login-card .top-input,
.egx-login-card .bottom-input {
  border-radius: 8px !important;
  margin-bottom: 0 !important;
}

.egx-login-card .form-control:focus {
  border-color: var(--egx-accent) !important;
  box-shadow: 0 0 0 3px rgba(61, 139, 253, 0.2) !important;
}

.egx-login-card .form-signin-heading,
#logo {
  display: none !important;
}

.egx-btn,
.btn-primary.egx-btn,
.egx-login-card .btn-primary {
  background: var(--egx-accent) !important;
  border-color: var(--egx-accent) !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  margin-top: 20px;
  padding: 12px 16px !important;
  box-shadow: none !important;
}

.egx-btn:hover,
.btn-primary.egx-btn:hover,
.egx-login-card .btn-primary:hover {
  background: var(--egx-accent-hover) !important;
  border-color: var(--egx-accent-hover) !important;
}

.egx-login-foot {
  margin: 20px 0 0;
  text-align: center;
  font-size: 11px;
  color: var(--egx-muted);
}

/* ——— Sidebar ——— */
.egx-sidebar {
  background: #f7f8fa !important;
  border-right: 1px solid #e6e9ee;
  padding-top: 16px !important;
}

.egx-sidebar-section {
  padding: 16px 18px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a94a6;
}

.egx-sidebar .nav-sidebar > li > a {
  color: #2c3440 !important;
  font-weight: 500;
  font-size: 13px;
  border-radius: 8px;
  margin: 2px 10px;
  padding: 9px 12px !important;
}

.egx-sidebar .nav-sidebar > li > a i {
  width: 18px;
  margin-right: 8px;
  color: #6b7788;
}

.egx-sidebar .nav-sidebar > li.active > a,
.egx-sidebar .nav-sidebar > li > a:hover {
  background: #e8eef8 !important;
  color: #1a5fd0 !important;
}

.egx-sidebar-help a {
  font-size: 12px !important;
  color: #6b7788 !important;
}

.nav-badge {
  background: #1a5fd0 !important;
  font-weight: 600;
}

/* ——— Content polish ——— */
.main,
.page-header h1,
.page-header h2 {
  font-family: var(--egx-font) !important;
}

.page-header {
  border-bottom-color: #e6e9ee !important;
}

.btn-primary {
  background-color: var(--egx-accent);
  border-color: var(--egx-accent);
}

.btn-primary:hover {
  background-color: var(--egx-accent-hover);
  border-color: var(--egx-accent-hover);
}

.alert {
  border-radius: 8px;
}
