/* portal_main.css */

@import "variables.css";
@import "base.css";
@import "home.css";
@import "components.css";
@import "tippy_custom.css";
@import "running_processes_center.css";
/* users_main.css */

@import "../users/auth_common.css";
@import "../users/user_register.css";
@import "../users/plans.css";
@import "../users/profile.css";
@import "../users/settings.css";
@import "../users/help.css";
@import "../users/privacy_controls.css";
/* Portal UI. Loaded globally. */

:root {
  --gs-ui-bg: #f6f8fb;
  --gs-ui-surface: #ffffff;
  --gs-ui-surface-soft: #f8fbff;
  --gs-ui-border: #dbe5f3;
  --gs-ui-border-strong: #b7cced;
  --gs-ui-text: #17315c;
  --gs-ui-muted: #65758f;
  --gs-ui-primary: #0756b8;
  --gs-ui-primary-soft: #eaf3ff;
}

body.app-shell {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: var(--gs-ui-bg);
  color: var(--gs-ui-text);
}

body.app-shell *,
body.app-shell *::before,
body.app-shell *::after {
  letter-spacing: 0;
}

body.app-shell header {
  z-index: 20;
}

body.app-shell .top-navbar {
  min-height: 3.05rem;
  padding: 0 1rem;
  background: #ffffff;
  border-bottom: 0.063rem solid var(--gs-ui-border);
  box-shadow: 0 0.125rem 0.75rem #14325b10;
  gap: 1.25rem;
}

body.app-shell .logo {
  margin-right: 1rem;
  display: inline-flex;
  align-items: center;
  align-self: stretch;
}

body.app-shell .logo.active,
body.app-shell .nav-links li.active a {
  border-bottom: none;
}

body.app-shell .logo img {
  height: 2.25rem !important;
  max-height: 2.25rem;
  display: block;
}

body.app-shell .nav-links {
  gap: 0.35rem;
  align-items: center;
  height: 100%;
}

body.app-shell .nav-links li,
body.app-shell .nav-links li.implemented:hover,
body.app-shell .nav-links li.implemented.active {
  border-bottom: 0;
}

body.app-shell .nav-links li a {
  box-sizing: border-box;
  min-height: 1.9rem;
  padding: 0.2rem 0.65rem;
  gap: 0.55rem;
  border-radius: 0.45rem;
  color: var(--gs-ui-text);
  font-weight: 700;
  font-size: 0.9rem;
}

body.app-shell #solar-link a {
  min-width: 4.85rem;
}

body.app-shell .nav-links li.active a,
body.app-shell .nav-links li.implemented.active a,
body.app-shell .nav-links li.implemented:hover a {
  background: var(--gs-ui-primary-soft);
  color: var(--gs-ui-primary);
}

body.app-shell #solar-link.active:not(.unimplemented) a {
  background: linear-gradient(90deg, #fff4ec 0%, var(--gs-ui-primary-soft) 100%);
  color: var(--gs-ui-primary);
}

body.app-shell #solar-link.active:not(.unimplemented) .app-icon {
  color: #ff7817;
  transform: translateY(-0.05rem);
}

body.app-shell .nav-links li .app-icon {
  padding-right: 0;
  width: 1.35rem !important;
  height: 1.35rem !important;
  color: var(--gs-ui-primary);
}

body.app-shell #solar-link:not(.active):not(.unimplemented):hover a {
  background: linear-gradient(90deg, #fff4ec 0%, var(--gs-ui-primary-soft) 100%);
  color: var(--gs-ui-primary);
}

body.app-shell #solar-link:not(.active):not(.unimplemented):hover .app-icon {
  color: #ff7817;
  transform: translateY(-0.05rem);
}

body.app-shell .user-auth {
  gap: 0.85rem;
  color: var(--gs-ui-text);
}

body.app-shell .user-auth > a[data-i18n="login"] {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.75rem;
  min-height: 1.9rem;
  padding: 0.35rem 0.7rem;
  border-radius: 0.4rem;
  background: #007bff;
  color: #ffffff;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

body.app-shell .user-auth > a[data-i18n="login"]:hover {
  background: #0056b3;
}

body.app-shell .app-version-badge {
  padding: 0.24rem 0.55rem;
  border-radius: 999rem;
  background: #eef4fd;
  color: var(--gs-ui-muted);
  font-size: 0.72rem;
  font-style: normal !important;
  font-weight: 700;
}

body.app-shell .user-welcome {
  color: var(--gs-ui-text);
  font-size: 0.82rem;
  font-weight: 600;
}

body.app-shell .notifications-toggle,
body.app-shell .running-processes-toggle,
body.app-shell .profile-icon {
  width: 1.7rem;
  height: 1.7rem;
  border: 0.063rem solid var(--gs-ui-border-strong);
  background: #ffffff;
  color: var(--gs-ui-text);
}

body.app-shell .notifications-toggle:hover,
body.app-shell .running-processes-toggle:hover,
body.app-shell .profile-icon:hover {
  background: var(--gs-ui-primary-soft);
  border-color: #7fb3ff;
}

body.app-shell .profile-icon svg {
  stroke: var(--gs-ui-primary);
}

body.app-shell .profile-menu,
body.app-shell .notifications-menu,
body.app-shell .running-processes-menu {
  border: 0.063rem solid var(--gs-ui-border);
  border-radius: 0.65rem;
  box-shadow: 0 1rem 2rem #102a4d24;
}

@media (max-width: 70rem) {
  body.app-shell .top-navbar {
    padding: 0 0.8rem;
    gap: 0.65rem;
  }

  body.app-shell .app-version-badge,
  body.app-shell .user-welcome {
    display: none;
  }
}
