/* Aetherion Labs company theme — candidate-facing Git platform */

:root {
  --ql-bg: #05070d;
  --ql-bg-elevated: #0b1220;
  --ql-bg-panel: #111827;
  --ql-surface: #f5f8fc;
  --ql-ink: #0b1220;
  --ql-muted: #64748b;
  --ql-cyan: #2de2c5;
  --ql-cyan-strong: #14b8a6;
  --ql-blue: #2563eb;
  --ql-blue-deep: #1d4ed8;
  --ql-border: rgba(45, 226, 197, 0.22);

  /* Shift GitLab orange brand tokens toward Aetherion cyan/blue */
  --gl-color-brand-orange-01g: #9ff6e8;
  --gl-color-brand-orange-01p: #2de2c5;
  --gl-color-brand-orange-02p: #14b8a6;
  --gl-color-brand-orange-03p: #0f766e;
  --gl-color-brand-purple-01g: #bfdbfe;
  --gl-color-brand-purple-01p: #60a5fa;
  --gl-color-brand-purple-02p: #2563eb;
  --gl-color-brand-pink-01g: #99f6e4;

  --gl-text-color-link: #0f766e;
  --gl-focus-ring-outer-color: #2de2c5;

  --gl-button-confirm-primary-background-color-default: #0f766e;
  --gl-button-confirm-primary-background-color-hover: #0d9488;
  --gl-button-confirm-primary-background-color-focus: #0d9488;
  --gl-button-confirm-primary-background-color-active: #115e59;
  --gl-button-confirm-primary-border-color-default: #0f766e;
  --gl-button-confirm-primary-border-color-hover: #0d9488;
  --gl-button-confirm-primary-border-color-focus: #0d9488;
  --gl-button-confirm-primary-border-color-active: #115e59;
  --gl-button-confirm-primary-foreground-color-default: #ffffff;
  --gl-button-confirm-primary-foreground-color-hover: #ffffff;
  --gl-button-confirm-primary-foreground-color-focus: #ffffff;
  --gl-button-confirm-primary-foreground-color-active: #ffffff;
}

/* Dark preference: keep brand accents AND readable light ink on dark surfaces */
html.gl-dark {
  --ql-surface: #0b1220;
  --ql-ink: #e2e8f0;
  --ql-muted: #94a3b8;
  --ql-bg-panel: #111827;
  --ql-bg-elevated: #0b1220;

  --gl-text-color-link: #5eead4;
  --gl-focus-ring-outer-color: #2de2c5;
}

/* Top bar + sidebar chrome — dark appearance */
html.gl-dark .super-topbar,
html.gl-dark .top-bar-fixed {
  background:
    linear-gradient(90deg, rgba(45, 226, 197, 0.08), transparent 40%),
    var(--ql-bg-elevated) !important;
  border-bottom: 1px solid var(--ql-border) !important;
}

html:not(.gl-dark) .super-topbar,
html:not(.gl-dark) .top-bar-fixed {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

html.gl-dark .super-sidebar {
  background: linear-gradient(180deg, #0b1220 0%, #070b14 100%) !important;
  border-right: 1px solid rgba(45, 226, 197, 0.12) !important;
  color: #e2e8f0 !important;
}

html:not(.gl-dark) .super-sidebar {
  background: #f9fafb !important;
  border-right: 1px solid #e2e8f0 !important;
  color: #30363d !important;
}

html.gl-dark .super-sidebar .super-sidebar-nav-item,
html.gl-dark .super-sidebar .gl-nav-item,
html.gl-dark .super-sidebar a,
html.gl-dark .super-sidebar button,
html.gl-dark .super-sidebar .gl-text-default {
  color: #e2e8f0 !important;
}

html:not(.gl-dark) .super-sidebar .super-sidebar-nav-item,
html:not(.gl-dark) .super-sidebar .gl-nav-item,
html:not(.gl-dark) .super-sidebar a,
html:not(.gl-dark) .super-sidebar button,
html:not(.gl-dark) .super-sidebar .gl-text-default {
  color: #30363d !important;
}

html.gl-dark .super-sidebar .super-sidebar-nav-item:hover,
html.gl-dark .super-sidebar .gl-nav-item:hover {
  background-color: rgba(45, 226, 197, 0.1) !important;
}

html:not(.gl-dark) .super-sidebar .super-sidebar-nav-item:hover,
html:not(.gl-dark) .super-sidebar .gl-nav-item:hover {
  background-color: rgba(15, 118, 110, 0.08) !important;
}

html.gl-dark .super-sidebar .super-sidebar-nav-item.active,
html.gl-dark .super-sidebar .gl-nav-item.active,
html.gl-dark .super-sidebar [aria-current="page"] {
  background-color: rgba(45, 226, 197, 0.16) !important;
  box-shadow: inset 3px 0 0 var(--ql-cyan);
}

html:not(.gl-dark) .super-sidebar .super-sidebar-nav-item.active,
html:not(.gl-dark) .super-sidebar .gl-nav-item.active,
html:not(.gl-dark) .super-sidebar [aria-current="page"] {
  background-color: rgba(15, 118, 110, 0.1) !important;
  box-shadow: inset 3px 0 0 var(--ql-cyan-strong);
}

/* Light mode: header controls + avatar (plus menu, shortcuts, account) */
html:not(.gl-dark) .super-topbar .gl-icon,
html:not(.gl-dark) .super-topbar [data-testid="new-menu-toggle"],
html:not(.gl-dark) .super-topbar [data-testid="user-menu-toggle"],
html:not(.gl-dark) .super-topbar [data-testid="issues-shortcut-button"],
html:not(.gl-dark) .super-topbar [data-testid="merge-requests-shortcut-button"],
html:not(.gl-dark) .super-topbar [data-testid="todos-shortcut-button"],
html:not(.gl-dark) .super-topbar .topbar-search-button,
html:not(.gl-dark) .super-topbar [data-testid="super-topbar-search-button"] {
  --gl-icon-color-default: #30363d;
  color: #30363d !important;
}

html:not(.gl-dark) .super-topbar [data-testid="user-menu-toggle"] .gl-avatar-img,
html:not(.gl-dark) .super-topbar [data-testid="user-menu-toggle"] img,
html:not(.gl-dark) .super-topbar [data-testid="user-menu-toggle"] .gl-avatar,
html:not(.gl-dark) .super-topbar [data-testid="user-menu-toggle"] svg {
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
}

html:not(.gl-dark) .super-topbar [data-testid="new-menu-toggle"]:hover,
html:not(.gl-dark) .super-topbar [data-testid="issues-shortcut-button"]:hover,
html:not(.gl-dark) .super-topbar [data-testid="merge-requests-shortcut-button"]:hover,
html:not(.gl-dark) .super-topbar [data-testid="todos-shortcut-button"]:hover {
  color: #0f766e !important;
  background-color: rgba(15, 118, 110, 0.08) !important;
}

html.gl-dark .super-topbar [data-testid="user-menu-toggle"] .gl-avatar-img,
html.gl-dark .super-topbar [data-testid="user-menu-toggle"] img,
html.gl-dark .super-topbar [data-testid="user-menu-toggle"] .gl-avatar {
  opacity: 1 !important;
  visibility: visible !important;
}

.brand-logo {
  border-radius: 10px !important;
}

.brand-logo img,
.brand-header-logo {
  max-height: 28px;
  width: auto;
}

/* System header / footer banners */
.header-message,
.footer-message,
.broadcast-message {
  background: linear-gradient(90deg, #07101d, #0b1f2a) !important;
  border-bottom: 1px solid var(--ql-border) !important;
  color: #ecfeff !important;
  letter-spacing: 0.02em;
  font-weight: 600;
}

/* Primary page surface */
body:not(.login-page) {
  background-color: var(--ql-surface);
  color: var(--ql-ink);
}

.page-with-super-sidebar .content-wrapper,
.layout-page {
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(45, 226, 197, 0.06), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(37, 99, 235, 0.05), transparent 50%),
    var(--ql-surface) !important;
  color: var(--ql-ink);
}

/* Light mode: force dark ink on content */
html:not(.gl-dark) body:not(.login-page) .content-wrapper,
html:not(.gl-dark) body:not(.login-page) .layout-page,
html:not(.gl-dark) body:not(.login-page) .project-home-panel,
html:not(.gl-dark) body:not(.login-page) .board-list,
html:not(.gl-dark) body:not(.login-page) .issuable-details {
  color: #0b1220;
}

/* Dark mode: force light ink + dark surfaces (fixes invisible text) */
html.gl-dark body:not(.login-page),
html.gl-dark body:not(.login-page) .content-wrapper,
html.gl-dark body:not(.login-page) .layout-page,
html.gl-dark .page-with-super-sidebar .content-wrapper,
html.gl-dark .layout-page {
  background-color: #0b1220 !important;
  color: #e2e8f0 !important;
}

html.gl-dark body:not(.login-page) .content-wrapper,
html.gl-dark body:not(.login-page) .layout-page {
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(45, 226, 197, 0.08), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(37, 99, 235, 0.07), transparent 50%),
    #0b1220 !important;
}

html.gl-dark .project-home-panel,
html.gl-dark .info-well,
html.gl-dark .gl-card,
html.gl-dark .card,
html.gl-dark .board-card,
html.gl-dark .issuable-info-container,
html.gl-dark .detail-page-description,
html.gl-dark .file-content,
html.gl-dark .md,
html.gl-dark .wiki-content,
html.gl-dark .blob-content,
html.gl-dark .commit-box,
html.gl-dark .tree-content-holder,
html.gl-dark .project-repo-buttons,
html.gl-dark .home-panel-title,
html.gl-dark .home-panel-description,
html.gl-dark h1,
html.gl-dark h2,
html.gl-dark h3,
html.gl-dark h4,
html.gl-dark h5,
html.gl-dark p,
html.gl-dark li,
html.gl-dark td,
html.gl-dark th,
html.gl-dark label,
html.gl-dark .gl-text-default,
html.gl-dark .gl-text-strong,
html.gl-dark .gl-heading-1,
html.gl-dark .gl-heading-2,
html.gl-dark .gl-heading-3 {
  color: #e2e8f0 !important;
}

html.gl-dark .gl-text-subtle,
html.gl-dark .gl-text-secondary,
html.gl-dark .text-secondary,
html.gl-dark .description-filter,
html.gl-dark .breadcrumbs-sub-title {
  color: #94a3b8 !important;
}

html.gl-dark .gl-card,
html.gl-dark .card,
html.gl-dark .board-card,
html.gl-dark .issuable-info-container,
html.gl-dark .info-well,
html.gl-dark .commit-box,
html.gl-dark .file-holder {
  background-color: #111827 !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
}

html.gl-dark .gl-table,
html.gl-dark table,
html.gl-dark .tree-table {
  color: #e2e8f0 !important;
}

html.gl-dark .gl-form-input,
html.gl-dark input[type="text"],
html.gl-dark input[type="search"],
html.gl-dark textarea,
html.gl-dark select,
html.gl-dark .form-control {
  color: #e2e8f0 !important;
  background-color: #070b14 !important;
  border-color: rgba(148, 163, 184, 0.35) !important;
}

/* Soften GitLab-orange accents in common badges/icons */
.tanuki-logo .tanuki,
.tanuki-logo .tanuki-shape.tanuki {
  fill: #14b8a6 !important;
}
.tanuki-logo .right-cheek,
.tanuki-logo .left-cheek {
  fill: #2de2c5 !important;
}
.tanuki-logo .chin {
  fill: #67e8f9 !important;
}

/* Buttons that still use hard-coded GitLab orange-ish confirm styles */
.btn-confirm,
.gl-button.btn-confirm,
button.btn-confirm {
  background-color: #0f766e !important;
  border-color: #0f766e !important;
  color: #fff !important;
}

.btn-confirm:hover,
.gl-button.btn-confirm:hover {
  background-color: #0d9488 !important;
  border-color: #0d9488 !important;
}

/* Links */
a.gl-link,
.md a {
  color: #0f766e;
}

html.gl-dark a.gl-link,
html.gl-dark .md a,
html.gl-dark a:not(.gl-button) {
  color: #5eead4;
}

/* Cards / panels */
.card,
.gl-card,
.board-card,
.issuable-info-container {
  border-radius: 12px;
}

/* Avatar menu / dropdown polish */
.gl-disclosure-dropdown-item:hover,
.gl-new-dropdown-item:hover {
  background-color: rgba(45, 226, 197, 0.08) !important;
}

/* Login page — full Aetherion Labs dark brand surface */
body.login-page {
  background:
    radial-gradient(1000px 520px at 12% -8%, rgba(45, 226, 197, 0.18), transparent 55%),
    radial-gradient(900px 480px at 92% 0%, rgba(37, 99, 235, 0.22), transparent 50%),
    radial-gradient(700px 500px at 70% 100%, rgba(20, 184, 166, 0.1), transparent 45%),
    var(--ql-bg) !important;
  color: #e2e8f0 !important;
  min-height: 100vh;
}

body.login-page .login-brand-eyebrow {
  color: var(--ql-cyan) !important;
  letter-spacing: 0.14em;
}

body.login-page .login-brand-title {
  color: #ffffff !important;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
}

body.login-page .login-brand-tagline {
  color: var(--ql-cyan) !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

body.login-page .login-brand-subtitle,
body.login-page .login-footer-note,
body.login-page .login-brand-panel,
body.login-page .login-brand-panel p,
body.login-page .login-brand-panel .md {
  color: #94a3b8 !important;
}

body.login-page .login-shell {
  background: #0b1220 !important;
  border-color: rgba(45, 226, 197, 0.22) !important;
}

body.login-page .login-brand-panel {
  background: linear-gradient(160deg, #0b1220 0%, #070b14 100%) !important;
  border-right-color: rgba(45, 226, 197, 0.15) !important;
}

body.login-page .login-form-panel {
  background: rgba(11, 18, 32, 0.92) !important;
  border: 1px solid var(--ql-border) !important;
  border-radius: 18px !important;
  box-shadow:
    0 0 0 1px rgba(45, 226, 197, 0.05),
    0 24px 60px rgba(0, 0, 0, 0.45) !important;
  color: #e2e8f0 !important;
  backdrop-filter: blur(10px);
}

body.login-page .login-form-panel label,
body.login-page .login-form-panel p,
body.login-page .login-form-panel .gl-form-input,
body.login-page .login-form-panel input {
  color: #e2e8f0 !important;
}

body.login-page .login-form-panel .gl-form-input,
body.login-page .login-form-panel input[type="text"],
body.login-page .login-form-panel input[type="email"],
body.login-page .login-form-panel input[type="password"] {
  background: #070b14 !important;
  border-color: rgba(148, 163, 184, 0.35) !important;
}

body.login-page .login-form-panel .gl-form-input:focus,
body.login-page .login-form-panel input:focus {
  border-color: var(--ql-cyan) !important;
  box-shadow: 0 0 0 2px rgba(45, 226, 197, 0.25) !important;
}

body.login-page .btn-confirm,
body.login-page .gl-button.btn-confirm,
body.login-page input[type="submit"],
body.login-page button[type="submit"] {
  background: linear-gradient(135deg, #14b8a6, #2563eb) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0.02em;
}

body.login-page a,
body.login-page .login-form-panel .gl-button,
body.login-page .login-form-panel a.gl-link {
  color: #5eead4 !important;
}

body.login-page .footer-links,
body.login-page .login-footer-note {
  color: #64748b !important;
}

/* Hide remaining GitLab wordmarks that slip through */
.nav-sidebar .nav-item.gitlab,
.tanuki-verified-icon {
  filter: hue-rotate(145deg) saturate(0.9);
}
