@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500&family=Roboto:wght@500&display=swap');

:root {
    --pionect-navy: #15112d;
    --pionect-purple: #9284f4;
    --pionect-lavender: #c4bcff;
    --pionect-plum: #383174;
}

/* Brand */
.pionect-logo {
    height: 1.5rem;
    width: auto;
}

.pionect-logo-on-dark,
.dark .pionect-logo-on-light {
    display: none;
}

.dark .pionect-logo-on-dark {
    display: block;
}

.pionect-logomark {
    height: 2.25rem;
    width: auto;
}

/* Login and other simple pages */
.fi-simple-layout {
    position: relative;
    isolation: isolate;
    background: var(--pionect-navy);
}

.fi-simple-main-ctn {
    position: relative;
    z-index: 1;
}

/* Animated background, a CSS take on the pionect.com hero */
.pionect-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.pionect-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgb(21 17 45 / 0.85) 100%);
}

.pionect-bg-layer {
    position: absolute;
    width: 110vmax;
    height: 76vmax;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    /* The source PNGs carry a faint haze up to their edges. */
    mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}

.pionect-bg-layer-primary {
    top: -20vmax;
    right: -30vmax;
    background-image: url('/images/gradient-22.png');
    animation: pionect-float-a 28s ease-in-out infinite alternate;
}

.pionect-bg-layer-secondary {
    bottom: -35vmax;
    left: -40vmax;
    background-image: url('/images/gradient-19.png');
    opacity: 0.8;
    animation: pionect-float-b 34s ease-in-out infinite alternate;
}

@keyframes pionect-float-a {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: translate(-8vw, 6vh) rotate(18deg) scale(1.12);
    }
    100% {
        transform: translate(-14vw, -4vh) rotate(-10deg) scale(1.05);
    }
}

@keyframes pionect-float-b {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: translate(10vw, -8vh) rotate(-22deg) scale(1.15);
    }
    100% {
        transform: translate(6vw, 4vh) rotate(12deg) scale(0.95);
    }
}

/* Google sign-in button, light theme per Google's branding guidelines */
.google-sign-in-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid #747775;
    border-radius: 0.25rem;
    background: #fff;
    color: #1f1f1f;
    font-family: Roboto, Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.25px;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.google-sign-in-button:hover {
    background: #f8f8f8;
    box-shadow: 0 1px 2px rgb(60 64 67 / 0.3), 0 1px 3px 1px rgb(60 64 67 / 0.15);
}

.google-sign-in-button:focus-visible {
    outline: 2px solid var(--pionect-purple);
    outline-offset: 2px;
}

.google-sign-in-button svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Panel: a calmer, static-feeling version of the login background */
.pionect-bg-subtle {
    opacity: 0.3;
}

html:not(.dark) .pionect-bg-subtle {
    display: none;
}

.fi-layout {
    position: relative;
    z-index: 1;
}

.dark .fi-body {
    background: var(--pionect-navy);
}

.dark .fi-topbar {
    background: rgb(21 17 45 / 0.6);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgb(146 132 244 / 0.12);
    box-shadow: none;
}

.dark .fi-sidebar {
    background: rgb(21 17 45 / 0.55);
    backdrop-filter: blur(16px);
    border-inline-end: 1px solid rgb(146 132 244 / 0.12);
}

.fi-sidebar-group-label {
    font-family: 'Geist Mono', ui-monospace, monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dark .fi-sidebar-item.fi-active > .fi-sidebar-item-btn {
    background: rgb(146 132 244 / 0.14);
    box-shadow: inset 2px 0 0 var(--pionect-purple);
}

.fi-header-heading {
    font-weight: 400;
    letter-spacing: -0.025em;
}

.dark .fi-section,
.dark .fi-wi-stats-overview-stat,
.dark .fi-ta-ctn {
    background: rgb(29 24 64 / 0.55);
    backdrop-filter: blur(12px);
    box-shadow: 0 0 0 1px rgb(146 132 244 / 0.14);
}

.fi-wi-stats-overview-stat-value {
    font-weight: 400;
    letter-spacing: -0.02em;
}

/* Company map */
.pionect-map {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pionect-map-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    font-size: 0.875rem;
    color: rgb(159 153 184);
}

.pionect-map-status-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.25rem;
}

.pionect-map-status strong {
    font-weight: 500;
    color: var(--pionect-navy);
}

.dark .pionect-map-status strong {
    color: #fff;
}

.pionect-map-legend {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.pionect-map-legend i {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 9999px;
    box-shadow: 0 0 0 1px var(--pionect-purple);
}

.pionect-map-canvas {
    width: 100%;
    height: 72vh;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgb(146 132 244 / 0.14);
}

/* Filament's base styles reset what Google Maps relies on: image sizing and the close icon's colour. */
.pionect-map-canvas img {
    max-width: none;
}

.pionect-map-canvas .gm-ui-hover-effect {
    opacity: 1;
}

.pionect-map-canvas .gm-ui-hover-effect > span {
    background-color: var(--pionect-navy) !important;
}

@media (prefers-reduced-motion: reduce) {
    .pionect-bg * {
        animation: none;
    }
}

.fi-simple-main {
    border: 1px solid rgb(146 132 244 / 0.25);
    border-radius: 1rem;
    box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.6);
}

.dark .fi-simple-main {
    background: rgb(29 24 64 / 0.75);
    backdrop-filter: blur(16px);
}

.fi-simple-header-heading {
    font-weight: 400;
    letter-spacing: -0.02em;
}

.fi-btn {
    font-family: 'Geist Mono', ui-monospace, monospace;
    font-weight: 400;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 0.5rem;
}

.pionect-login-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Geist Mono', ui-monospace, monospace;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgb(119 112 154);
}

.pionect-login-divider::before,
.pionect-login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgb(146 132 244 / 0.25);
}
