/* Fonts */
@font-face {
	font-family: "Inter";
	src: url("fonts/Inter-VariableFont_opsz,wght.ttf") format("truetype");
	font-style: normal;
}

/* Base */
body {
	margin: 0;
	padding: 0;
	font-family: Inter, Arial, sans-serif;
	font-size: 16px;
	color: #d4d4dc;
	background-color: #020024;
	background: linear-gradient(rgba(10, 20, 40, 0.7), rgba(10, 20, 40, 0.7)),
		url(https://www.abhive.io/uploads/hive-mini-bg.png) center / cover repeat;
	background-size: 200px;
	background-attachment: fixed;
	overflow-y: scroll;
}

h1,
h3 {
	font-family: Inter, Arial, sans-serif;
	text-align: left;
}

h2 {
	color: #fff;
	text-transform: capitalize;
}

p,
li {
	line-height: 1.7em;
}

a,
a:visited {
	color: #d4d4dc;
}

legend {
	font-weight: bold;
}

label {
	display: block;
	margin-top: 10px;
}

.bold {
	font-weight: bold;
}

.material-symbols-outlined {
	font-size: inherit;
	position: relative;
	top: 2px;
}

/* Accessibility */
.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: #ffffff;
	color: #000000;
	padding: 8px 16px;
	z-index: 10000;
	text-decoration: none;
	font-weight: 600;
	border-radius: 4px;
	transition: top 0.2s ease;
}

.skip-link:focus {
	top: 10px;
	left: 10px;
	outline: 3px solid #ff6600;
}

.skip-link:visited {
	color: #000000 !important;
}

/* Layout */
.site-header {
	position: relative;
}

.main-content {
	margin-left: 0;
	padding: 20px;
	font-size: 1em;
}

.container {
	max-width: 800px;
	margin: auto;
	background: #ffffff;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section {
	width: auto;
	max-width: 100%;
	font-weight: normal;
	background-color: #2b2b44c7;
	color: #d4d4dc;
	padding: 1px 20px 25px;
	margin-top: 25px;
	border-radius: 5px;
}

.section.results,
.section.qa {
	width: auto;
	max-width: 100%;
}

.results-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* Logo */
#abhive-logo {
	width: 100px;
	height: auto;
	margin: 0 auto;
	display: block;
	border: none !important;
}

.mobile-logo img,
.desktop-logo img {
	max-width: 100%;
	height: auto;
}

.mobile-logo img {
	display: block;
	max-height: 40px;
	width: auto;
}

.desktop-logo {
	display: none;
}

.desktop-logo img {
	display: block;
}

/* Forms */
fieldset,
.experiment-nav {
	border: 2px solid #dee2e6;
	padding: 15px 15px 20px;
	margin-bottom: 20px;
	border-radius: 2px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="url"],
textarea,
select {
	width: 100%;
	max-width: 500px;
	padding: 14px;
	margin-top: 5px;
	margin-bottom: 10px;
	box-sizing: border-box;
	border: 2px solid #020024;
	border-radius: 6px;
	font-family: Inter, Arial, sans-serif;
	font-size: 18px;
	background-color: #d4d4dc;
	color: #020024;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus,
input[type="radio"]:focus,
input[type="checkbox"]:focus {
	outline: 3px solid rgb(238 190 97);
	outline-offset: 0;
	box-shadow: inset 0 0 0 2px #020024;
	border: 2px solid #020024;
}

input::-webkit-input-placeholder {
	color: #fff;
}

input::-moz-placeholder {
	color: #fff;
}

textarea {
	min-height: 350px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

input[type="radio"],
input[type="checkbox"] {
	transform: scale(1.5);
	margin: 5px;
	width: 16px;
	height: 16px;
}

input[type="number"] {
	-moz-appearance: textfield;
}

select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 9L12 15L18 9" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke="currentColor"/></svg>');
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 20px;
	cursor: pointer;
}

#half input[type="radio"],
#half input[type="checkbox"] {
	vertical-align: middle;
	margin-right: 5px;
}

#statusContainer label,
#deviceCategoryContainer label,
#domainContainer label,
#resultContainer label,
#globalGoalsContainer label,
#uniqueGoalsContainer label,
#duplicateDomainResultContainer label,
#sampleContainer label {
	display: inline-block;
	margin-right: 10px;
	margin-bottom: 20px;
	font-size: 17px;
}

.filter-group-content label,
.filter-group-content input[type="checkbox"] {
	cursor: pointer;
}

.searchFilter {
	padding-right: 120px !important;
}

.searchLabel {
	margin-bottom: 5px;
	text-transform: uppercase;
	font-weight: bold;
}

.searchOr {
	margin-right: 10px;
}

.clientSelector {
	padding-right: 40px;
	width: fit-content;
	margin: 0 10px;
}

.clientSelector option {
	color: #020024;
	padding: 15px 8px;
}

/* Buttons */
button,
.experiment-nav a,
.previewBtn,
.dashboardAddExp {
	font-family: Inter, Arial, sans-serif;
	margin-top: 25px;
	margin-right: 10px;
	padding: 10px 12px;
	border: none;
	border-radius: 2px;
	cursor: pointer;
	font-weight: bold;
	text-transform: uppercase;
	text-decoration: none;
	font-size: 16px;
	color: #d4d4dc;
	background-color: #44446b;
}

button:hover,
.experiment-nav a:hover {
	background: rgba(2, 0, 36, 1);
}

.buttonDisabled {
	cursor: no-drop;
}

.edit-link a {
	display: inline-block;
	margin-top: 20px;
	font-weight: bold;
	text-transform: uppercase;
	background-color: #44446b;
}

/* Navigation */
.hex-icon {
	width: 12px;
	height: auto;
	margin-right: 7px;
}

.mobile-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	min-height: 60px;
	padding: 10px 16px;
	box-sizing: border-box;
	background-color: rgb(2, 0, 36);
	border-bottom: 2px solid #2b2b44;
	z-index: 1100;
}

.mobile-menu-toggle {
	display: inline-block;
	appearance: none;
	border: 0;
	background: transparent;
	color: #d4d4dc;
	font: inherit;
	padding: 8px 12px;
	cursor: pointer;
	border-radius: 2px;
	margin-top: 0;
	margin-right: 0;
	text-transform: none;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible {
	background-color: #2b2b44;
	outline: none;
}

.nav-panel {
	width: min(250px, 85vw);
	max-width: 250px;
	height: 100vh;
	height: 100dvh;
	padding: 16px 20px;
	box-sizing: border-box;
	color: #d4d4dc;
	border-right: 2px solid #2b2b44;
	position: fixed;
	top: 0;
	left: 0;
	background-color: rgb(2, 0, 36);
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	transform: translateX(-100%);
	transition: transform 0.25s ease;
	z-index: 1100;
}

.nav-panel.is-open {
	transform: translateX(0);
}

.nav-panel .logo {
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #2b2b44;
	background-color: transparent !important;
}

.nav-panel ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.nav-panel li.bottom-link {
	margin-top: auto;
}

.nav-panel a,
.edit-link a {
	display: block;
	padding: 10px 12px;
	text-decoration: none;
	color: #d4d4dc;
	border-radius: 2px;
	transition: background-color 0.3s, color 0.3s;
	font-size: 16px;
	line-height: normal;
	cursor: pointer;
}

.nav-panel a {
	text-transform: none;
	background-color: transparent;
}

.nav-panel a:hover,
.nav-panel a:focus-visible {
	background-color: #2b2b44;
	color: #ffffff;
	outline: none;
}

.smallNav a {
	padding: 5px 12px;
}

.termsHr {
	display: block;
	width: 100%;
	height: 1px;
	background-color: #2b2b44;
	margin: 5px auto;
}

.nav-close {
	display: inline-block;
	appearance: none;
	border: 0;
	background: transparent;
	color: #d4d4dc;
	font: inherit;
	padding: 8px 12px;
	margin: 0 0 10px;
	cursor: pointer;
	border-radius: 2px;
	align-self: flex-start;
	text-transform: none;
}

.nav-close:hover,
.nav-close:focus-visible {
	background-color: #2b2b44;
	outline: none;
}

.nav-overlay {
	display: none;
}

.nav-overlay.is-visible {
	display: block;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 1150;
}

body.nav-open {
	overflow: hidden;
}

/* Dashboard / panels */
.filter-group {
	display: inline-block;
	vertical-align: top;
	flex: 1;
	min-height: 215px;
	padding: 12px 25px 16px 16px;
	background: #2b2b44;
	border-radius: 2px;
}

.filter-group:not(:last-child) {
	margin-right: 15px;
}

.variantsContainer {
	margin-top: 25px;
	padding: 1px 20px 25px;
	font-weight: normal;
	color: #d4d4dc;
	background-color: #2b2b44c7;
	border-radius: 5px;
}

.variantsContainerInner {
	display: flex;
	gap: 20px;
	align-items: stretch;
}

.variantBlock {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	padding: 10px 30px;
	text-align: center;
}

.variantBlock h3 {
	margin: 0;
}

.action-links a {
	margin-right: 15px;
	text-decoration: none;
	color: #007bff;
}

.action-links a:hover {
	text-decoration: underline;
}

.conversionInput {
	margin-top: 5px;
}

.button-category {
	display: inline-block;
	background-color: unset;
	border-radius: 0;
	padding: 3px 6px 3px 0;
	margin: 2px;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 0.8em;
}

.expInfo {
	display: inline-block;
	padding: 3px 11px;
	margin-right: -8px;
	margin-bottom: 5px;
	background-color: #d4d4dc;
	color: #1e1e2f;
	border-radius: 2px;
	font-size: 1em;
	text-align: left !important;
}

.resultWin,
.resultSave,
.resultInconclusive,
.resultnodata,
.resultInvalid,
.resultPending,
.resultInvestigate,
.days,
.resultThreshold,
.theadSub,
.resultInconclusiveOutcome,
.outcome,
.metric {
	display: inline-block;
	min-width: 50px;
	padding: 3px 6px;
	margin: 2px;
	border-radius: 2px;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 1em;
	font-weight: bold;
	color: #fff;
	text-align: center;
}

.metric {
	background-color: #2b2b44;
	color: #fff;
}

.outcome {
	min-width: 121px !important;
	background-image: repeating-linear-gradient(
		306deg,
		rgba(255, 255, 255, 0.15),
		rgba(255, 255, 255, 0.15) 5px,
		transparent 5px,
		transparent 10px
	);
	text-shadow: 1px 1px 1px #000;
}

.resultnodata {
	background-color: #d4d4dc;
	color: #2b2b44;
	text-shadow: 1px 1px 1px #000;
}

.resultWin {
	background-color: #309472;
	text-shadow: 1px 1px 1px #000;
}

.resultSave {
	background-color: #eb4c4c;
	text-shadow: 1px 1px 1px #000;
}

.resultInvalid {
	background-color: #eb7b4c;
	text-shadow: 1px 1px 1px #000;
}

.resultInconclusive {
	background-color: #477acd;
	text-shadow: 1px 1px 1px #000;
}

.resultInvestigate,
.resultPending {
	background-color: #dbff5b;
	color: #000;
	text-shadow: none;
}

.resultThreshold {
	background-color: #309472;
	background-image: repeating-linear-gradient(
		306deg,
		rgba(255, 255, 255, 0.15),
		rgba(255, 255, 255, 0.15) 5px,
		transparent 5px,
		transparent 10px
	);
	text-shadow: 1px 1px 1px #000;
}

.resultInvalidOutcome {
	background-color: #eb4c4c;
}

.theadSub {
	color: #309472;
}

.theadSub:first-of-type {
	padding-left: 0;
	margin-left: 0;
}

.ci_block {
	min-width: 140px;
}

#overallOutcome {
	border: 2px solid #fff;
}

#saved {
	padding: 10px 0;
	text-align: center;
	text-transform: uppercase;
	color: #fff;
	background-color: #309472;
	border-radius: 2px;
}

#dashboardForm button .material-symbols-outlined {
	font-size: inherit;
}

/* Tables */
table {
	width: 100%;
	margin-top: 10px;
	border-collapse: collapse;
	border: 2px solid #d4d4dc;
	line-height: normal;
	text-transform: capitalize;
}

th,
td {
	padding: 12px;
	text-align: left;
}

th {
	background-color: #d4d4dc;
	color: #1e1e2f;
	border-bottom: 1px solid #2b2b44;
	text-transform: uppercase;
}

tbody tr {
	background-color: #2b2b4466;
}

tbody tr:hover {
	background-color: #020024;
}

tr.overallRow {
	border-top: 1px solid #d4d4dc;
}

td.borderLeft {
	border-left: 1px solid #d4d4dc;
}

/* Messaging */
.messaging-footer textarea {
	width: 100%;
	max-width: 100%;
	min-height: 108px;
	margin-top: 10px;
	margin-bottom: 10px;
	padding-right: 70px;
	border-radius: 2px;
}

.emoji-toolbar {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}

.emoji-picker {
	position: absolute;
	right: 67px;
	bottom: 164px;
	display: none;
	padding: 8px;
	max-width: fit-content;
	max-height: fit-content;
	overflow: auto;
	background: #2b2b44;
	color: #000;
	border: 2px solid #44446b;
	border-radius: 4px;
	box-shadow: 0 0 75px 0 #0f1321;
	z-index: 1200;
}

.emoji-picker-grid {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
	gap: 6px;
}

.emoji-item {
	min-width: fit-content;
	margin: 0;
	padding: 6px;
	font-size: 20px;
	line-height: 1;
	text-align: center;
	cursor: pointer;
	border: none;
	border-radius: 4px;
	background: transparent;
}

.emoji-item:hover,
.emoji-item:focus {
	background: transparent !important;
	outline: 2px solid #44446b;
	outline-offset: 0;
}

.emoji-btn,
.hints-btn {
	position: absolute;
	right: 21px;
	min-width: fit-content;
	margin: 0;
	padding: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	line-height: 1;
	color: #fff;
	background-color: #44446b;
	border: 1px solid #58588a;
	border-radius: 4px;
	cursor: pointer;
}

.emoji-btn {
	top: 20px;
}

.hints-btn {
	top: 70px;
}

.emoji-btn:focus {
	outline: 2px solid #66a3ff;
	outline-offset: 2px;
}

/* Modal */
.modalImg {
	display: block;
	max-width: 75%;
	max-height: 500px;
	margin: 20px auto;
	cursor: zoom-in;
	border-radius: 4px;
}

.modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	text-align: center;
	background-color: rgba(0, 0, 0, 0.8);
}

.modal-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 750px;
	min-height: fit-content;
	max-width: fit-content;
	margin: 40px auto 0;
	padding: 20px;
	text-align: center;
	text-transform: uppercase;
	background: #fff;
	border-radius: 2px;
}

.modal-content {
	display: block;
	max-height: 550px;
	margin: 15px 40px;
	border-radius: 2px;
	box-shadow: 0 5px 10px #afafaf;
}

#modalCaption {
	margin-top: 10px;
	color: #2b2b44;
	text-align: center;
}

.close {
	position: absolute;
	top: 10px;
	right: 15px;
	font-size: 30px;
	font-weight: bold;
	color: #333;
	cursor: pointer;
}

.prev,
.next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	padding: 0 10px;
	font-size: 40px;
	font-weight: bold;
	color: #333;
	cursor: pointer;
	user-select: none;
	background-color: rgba(255, 255, 255, 0.7);
	border-radius: 2px;
}

.prev {
	left: 10px;
}

.next {
	right: 10px;
}

.prev:hover,
.next:hover {
	background-color: rgba(255, 255, 255, 1);
}

/* Desktop up */
@media (min-width: 769px) {
	.main-content {
		margin-left: 250px;
	}

	.mobile-header {
		display: none;
	}

	.mobile-menu-toggle {
		display: none;
	}

	.nav-close {
		display: none;
	}

	.desktop-logo {
		display: block;
	}

	.nav-panel {
		width: 250px;
		max-width: none;
		height: 100vh;
		transform: none;
		transition: none;
	}

	.nav-overlay {
		display: none !important;
	}

	.section {
		width: 700px;
		max-width: 75%;
	}
}

/* Small modal adjustments */
@media (min-width: 601px) {
	.prev,
	.next {
		font-size: 40px;
		padding: 0 10px;
	}

	.modal-inner {
		padding: 20px;
	}
}

@media (max-width: 600px) {
	.prev,
	.next {
		font-size: 30px;
		padding: 5px;
	}

	.modal-inner {
		padding: 10px;
		min-width: auto;
		width: calc(100% - 20px);
	}
}