@import url(../assets/fonts/Nippo/Fonts/WEB/css/nippo.css);
@import url(../assets/fonts/Poppins/Fonts/WEB/css/poppins.css);
@import url(../assets/fonts/NotoEmoji/Fonts/WEB/css/noto.css);
@import url(./views/tooltip/styles.css);
@import url('https://fonts.googleapis.com/css2?family=Noto+Color+Emoji&family=Noto+Emoji:wght@300..700&display=swap');

* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

.test-env-alert::part(base) {
	position: fixed;
	z-index: 999;
	bottom: 0;
	margin: 1em;
}

/*Video editor surface styles*/
.editor {
	padding: 0.3em;
	height: 100vh;
	background: #0a0a0a;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

.editor-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 4px 8px;
	gap: 12px;
	background: #0a0a0a;
	border-bottom: 1px solid #1a1a1a;
	margin-bottom: 4px;
	height: 36px;

	& .header-left {
		flex: 1;
		display: flex;
		align-items: center;
	}

	& .header-center {
		flex: 0 0 auto;
		display: flex;
		justify-content: center;
	}

	& .header-right {
		flex: 1;
		display: flex;
		justify-content: flex-end;
		align-items: center;
		gap: 6px;
	}

	& .logo {
		width: 24px;
		height: 24px;
		opacity: 0.8;
		transition: opacity 0.15s;
		
		&:hover {
			opacity: 1;
		}
	}
}

.project-name {
	display: flex;
	align-items: center;
	justify-content: center;

	& .box {
		display: flex;
		align-items: center;
		background: #111;
		border: 1px solid #222;
		padding: 2px 8px;
		border-radius: 4px;
		height: 24px;
		gap: 6px;
		transition: border-color 0.15s;

		&:hover {
			border-color: #333;
		}

		&:focus-within {
			border-color: #444;
		}

		& .icons {
			display: flex;
			cursor: pointer;
			color: #555;
			transition: color 0.15s;

			&:hover {
				color: #fff;
			}

			& svg {
				width: 12px;
				height: 12px;
			}

			& .check {
				display: flex;
				color: #fff;
			}
		}

		& input {
			background: none;
			border: none;
			color: #666;
			font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
			font-size: 11px;
			font-weight: 500;
			letter-spacing: 0.2px;
			width: 120px;
			outline: none;

			&:not(:disabled) {
				color: #fff;
			}

			&::placeholder {
				color: #444;
			}
		}
	}
}

.export {
	display: flex;
	align-items: center;
	gap: 6px;
}

.save-button,
.export-button {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 24px;
	padding: 0 10px;
	background: #111;
	border: 1px solid #222;
	border-radius: 4px;
	color: #666;
	cursor: pointer;
	font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	transition: all 0.12s;

	&:hover:not(:disabled) {
		background: #1a1a1a;
		border-color: #444;
		color: #fff;
	}

	&:active:not(:disabled) {
		background: #fff;
		border-color: #fff;
		color: #000;
	}

	&:disabled {
		opacity: 0.3;
		cursor: not-allowed;
	}

	& .text {
		display: flex;
		align-items: center;
		gap: 4px;

		& svg {
			width: 12px;
			height: 12px;
			opacity: 0.6;
		}
	}

	&:hover:not(:disabled) .text svg {
		opacity: 1;
	}
}

/* Save notification popup - bottom right */
.save-notification {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 10000;
	animation: slide-in-notification 0.3s ease-out, fade-out-notification 0.3s ease-in 2.7s;
}

.save-notification-content {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 20px;
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
	border: 1px solid #4ade80;
	border-radius: 10px;
	color: white;
	font-family: Poppins-Regular;
	font-size: 14px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(74, 222, 128, 0.2);
	
	& svg {
		color: #4ade80;
		flex-shrink: 0;
	}
}

@keyframes slide-in-notification {
	from {
		transform: translateX(100%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

@keyframes fade-out-notification {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}
/*Video editor surface styles end*/

/*Global styles*/
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 1em; }
::-webkit-scrollbar-thumb:hover { background: #444; }

html, body {
	font-size: 16px;
	min-height: 100%;

	color: gray;
	background: #101010; /*#111*/
}

body {
	overflow-x: hidden;
	overflow-y: auto;
}

body.no-scroll {
	overflow: hidden;
}

construct-editor {
	width: 100%;
	height: calc(100% - 25px);
	border-radius: 0;
	--alpha: white;
	--bravo: gray;
	--bg-a: #151618; /*#151618*/ /*#111*/
	--bg-b: #000;
	--bg-c: #333;
	--taskbar-size: 1em;
}

.loading-page-indicator {
	display: flex;
	flex-direction: column;
	width: 100vw;
	height: 100vh;
	justify-content: center;
	align-items: center;
	background: #ffffff;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9999;
	transition: opacity 0.4s ease-out;
}

.loading-page-indicator.fade-out {
	opacity: 0;
	pointer-events: none;
}

.loading-video {
	width: 450px;
	height: auto;
	object-fit: contain;
}

.shine {
	width: 100%;
	font-size: 5em;
	text-align: center;
	margin-bottom: 0.3em;
	text-shadow: 0 0px 0px rgba(255, 255, 255, 0.5);
	background: #222 -webkit-gradient(linear, left top, right top, from(#222), to(#222), color-stop(0.5, #fff)) 0 0 no-repeat;
	background-size: 150px;
	color: rgba(255, 255, 255, 0.5);
	background-clip: text;
	animation-name: shine;
	animation-duration: 5s;
	animation-iteration-count: infinite;
	font-weight: bold;
	font-style: italic;
}

@keyframes shine {
	0%, 10% {
		background-position: 0px;
	}
	20% {
		background-position: top left;
	}
	100% {
		background-position: top right;
	}
}

.loader { 
  width: 250px; 
  margin:0 auto;
  border-radius:10px;
  border:4px solid transparent;
  position:relative;
  padding:1px;
}

.loader:before {
  content:'';
  border:1px solid #fff; 
  border-radius:10px;
  position:absolute;
  top:-4px; 
  right:-4px; 
  bottom:-4px; 
  left:-4px;
}

.loader .loaderBar { 
  position:absolute;
  border-radius:10px;
  top:0;
  right:100%;
  bottom:0;
  left:0;
  background:#fff; 
  width:0;
  animation:borealisBar 2s linear infinite;
}

@keyframes borealisBar {
  0% {
    left:0%;
    right:100%;
    width:0%;
  }
  10% {
    left:0%;
    right:75%;
    width:25%;
  }
  90% {
    right:0%;
    left:75%;
    width:25%;
  }
  100% {
    left:100%;
    right:0%;
    width:0%;
  }
}

@property --g3-1-x-position { syntax: "<percentage>"; inherits: false; initial-value: 16.09375%; }

@property --g3-1-y-position { syntax: "<percentage>"; inherits: false; initial-value: 33.12500000000001%; }

@property --g3-2-x-position { syntax: "<percentage>"; inherits: false; initial-value: 48.55468750000001%; }

@property --g3-2-y-position { syntax: "<percentage>"; inherits: false; initial-value: 9.648437500000002%; }

@property --g3-3-x-position { syntax: "<percentage>"; inherits: false; initial-value: 78.6328125%; }

@property --g3-3-y-position { syntax: "<percentage>"; inherits: false; initial-value: 79.8046875%; }


:root {

--g3-1-x-position: 16.09375%

--g3-1-y-position: 33.12500000000001%

--g3-2-x-position: 48.55468750000001%

--g3-2-y-position: 9.648437500000002%

--g3-3-x-position: 78.6328125%

--g3-3-y-position: 79.8046875%

}

.toast {
	position: fixed;
	bottom: 20px;
	left: 20px;
	padding: 10px 20px;
	border-radius: 5px;
	color: white;
	background-color: rgba(0, 0, 0, 0.8);
	z-index: 1000;
	animation: fade-in-out 5s ease-in-out;
	font-family: Poppins-Regular;
}

.toast.error { background-color: #e74c3c; }
.toast.warning { background-color: #f39c12; }
.toast.info { background-color: #2ecc71; }

@keyframes fade-in-out {
	0% { opacity: 0; }
	10% { opacity: 1; }
	90% { opacity: 1; }
	100% { opacity: 0; }
}
