@import url("/assets/portal-theme-20261108.css");
:root {
    --background: var(--nsp-background);
    --settingsBackground: var(--nsp-surface);
    --settingsBorder: var(--nsp-surface);
    --button: var(--nsp-accent);
    --buttonText: var(--nsp-on-accent);
    --text: var(--nsp-text);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'poppins', sans-serif;
}

.dropdown-menu li {
    margin: 0;
}

body {
    background-color: var(--background);
    max-width: 100vw;
    color: var(--text);
}

img {
    max-width: 95%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: jost, sans-serif;
}

p {
    margin: 1rem 0;
}

@keyframes slideDown {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes slideUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100%);
    }
}


.container {
    display: flex;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 5rem 0;
}

.mobile-flex {
    display: flex;
    justify-content: space-around;
    width: 70%;
    margin-left: auto;
}

.settingsBox,
.generalSettingsBox {
    border-radius: 10px;
    border: 2px solid var(--settingsBorder);
    background-color: var(--settingsBackground);
    padding: 1rem;
    margin: 1rem;
    display: block;
}

.inputsBox {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
}

#subdomain {
    flex-grow: 1;
    max-width: 100%;
}

svg {
    max-width: 100% !important;
}

@media only screen and (max-width: 400px) {
    #subdomain {
        max-width: 55%;
    }

    #urlFormGroup {
        max-width: 300px;
    }

    #urlP2 {
        font-size: 12.5px;
    }
}

input,
select,
textarea {
    padding: 0.5rem;
    border-radius: 4px;
    border: none;
    margin-bottom: 0.5rem;
}

textarea {
    width: 100%;
}

.radio-group {
    display: flex;
    flex-direction: row;
    margin: 1rem 0;
}

.radio-option {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
    margin: auto;
}

button,
.btn-primary-link {
    width: 100%;
    max-width: 400px;
    background: linear-gradient(180deg,
            rgba(140, 215, 188, 0.9) 0%,
            rgba(140, 215, 188, 0.65) 100%);
    color: var(--nsp-surface-alt);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 14px;
    padding: 10px 26px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(8px);
    box-shadow:
        0 6px 16px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -1px 0 rgba(255, 255, 255, 0.15);
    margin: 2rem 0;
    font-family: jost, sans-serif;
    font-size: 16px;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.btn-primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

td button {
    margin: 0;
}

button:disabled,
button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
    backdrop-filter: none;
}

button:hover,
.btn-primary-link:hover {
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

button:disabled:hover,
button[disabled]:hover {
    transform: none;
    cursor: not-allowed;
    box-shadow: none;
}

button:active,
.btn-primary-link:active {
    transform: translateY(1px);
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-ghost {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0.35rem 0.8rem;
    font-size: 14px;
    font-weight: 600;
    font-family: jost, sans-serif;
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(140, 215, 188, 0.55);
    border-radius: 999px;
    box-shadow: none;
    backdrop-filter: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5ch;
    text-decoration: none;
    transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.btn-primary {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0.35rem 0.8rem;
    font-size: 14px;
    font-weight: 600;
    font-family: jost, sans-serif;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5ch;
    text-decoration: none;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5ch;
    padding: 0.42rem 0.65rem;
    font-size: 12px;
    font-weight: 600;
    font-family: jost, sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(148, 163, 184, 0.08);
    color: rgba(248, 250, 252, 0.92);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
}

.status-pill--online {
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.12);
    color: rgba(220, 252, 231, 0.95);
}

.status-dot--online {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.status-pill--offline {
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.12);
    color: rgba(254, 202, 202, 0.95);
}

.status-dot--offline {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
    animation: statusPulse 1400ms ease-in-out infinite;
}

@keyframes statusPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.25);
        opacity: 0.65;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.btn-ghost:hover {
    box-shadow: none;
    transform: none;
    background-color: rgba(140, 215, 188, 0.12);
    border-color: rgba(140, 215, 188, 0.85);
}

.btn-ghost:active {
    box-shadow: none;
    transform: translateY(1px);
    background-color: rgba(140, 215, 188, 0.18);
    border-color: rgba(140, 215, 188, 0.95);
}

.btn-ghost:focus-visible {
    outline: 2px solid rgba(140, 215, 188, 0.7);
    outline-offset: 2px;
}

.settingsAccordian {
    display: flex;
    justify-content: space-between;
    height: auto;
}

.checkboxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.checkbox {
    margin: 0 0.75rem;
    text-align: right;
}

.hidden {
    display: none;
}

.settingsAccordian svg:hover {
    cursor: pointer;
}

a {
    color: white;
    text-decoration: underline;
}

#desktopVars,
#desktopStatus,
[id^="desktopStatus-"] {
    display: block;
}

#mobileVars,
#mobileStatus,
[id^="mobileStatus-"]  {
    display: none;
}

table,
tr,
th,
td {
    border: 1px solid white;
    border-collapse: collapse;
}

td,
th {
    padding: 0.5rem;
}

.orange-triangle {
    width: 0px;
    height: 0px;
    border-style: solid;
    border-width: 10px 10px 0 10px;
    border-color: orange transparent transparent transparent;
    transform: rotate(0deg);
    margin-top: -1.1rem;
    margin-right: 0;
    margin-left: auto;
    margin-bottom: 0.5rem;
}

.orange-triangle-up {
    width: 0px;
    height: 0px;
    border-style: solid;
    border-width: 0 10px 10px 10px;
    border-color: transparent transparent orange transparent;
    transform: rotate(0deg);
    margin-right: 4.5rem;
    margin-left: auto;
    margin-bottom: -1rem;
}

.grey-triangle {
    width: 0px;
    height: 0px;
    border-style: solid;
    border-width: 10px 10px 0 10px;
    border-color: #c7c7c7 transparent transparent transparent;
    transform: rotate(0deg);
    margin-top: -1.1rem;
    margin-right: 0;
    margin-left: auto;
    margin-bottom: 0.5rem;
}

.guideContainer {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.appSelector {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.app {
    padding: 1rem;
    border: 1px solid white;
    border-radius: 10px;
    text-align: center;
}

.app:hover {
    cursor: pointer;
}

.docsContainer {
    padding: 1rem;
    border: 1px solid white;
    width: 100%;
    border-radius: 10px;
    overflow-x: scroll;
    overflow-y: hidden;
}

.selectedApp {
    background-color: white;
    color: black;
}

@media only screen and (max-width: 600px) {

    #desktopVars,
    #desktopStatus,
    [id^="desktopStatus-"] {
        display: none;
    }

    #mobileView {
        display: block;
    }

    #mobileVars,
    #mobileStatus,
    [id^="mobileStatus-"] {
        display: block;
    }

	    .linkToSite {
	        width: 18ch;
	        white-space: nowrap;
	        overflow: hidden;
	        text-overflow: ellipsis;
	    }

    .mobileHidden {
        display: none !important;
    }

    .mobileBlock {
        display: block !important;
    }

    .searchTerm {
        width: 100% !important;
    }
}

.desktop-nav {
    display: flex !important;
}

.mobile-nav {
    display: none !important;
}

@media only screen and (min-width: 900px) {
    .desktop-nav {
        display: none !important;
    }

    .mobile-nav {
        display: flex !important;
    }
}

@media only screen and (max-width: 500px) {
    footer {
        display: none !important;
    }
}
