@font-face {
	font-family: 'Tektur';
	src: url('Tektur-VariableFont_wdth,wght.ttf') format('truetype');
	font-weight: 400 900;
	font-stretch: 50% 200%;
	font-style: normal;
}

:root {
	--bottom-bar-height: 40px;
	--browser-bottom-inset: env(safe-area-inset-bottom, 0px);
}

#chat-input-container {
	display: block;
	padding: 10px;
	margin: 0 0px 12px 0px;
	border: 2px solid #5e5e5e40;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(6px);
	position: fixed;
	bottom: 40px;
	width: 100%;
	box-sizing: border-box;
	padding-top: 16px;
	padding-bottom: 38px;
	z-index: 40;
	max-width: 700px;
	left: 50%;
	transform: translateX(-50%);
	min-height: 79px;
	width: 95%;
	left: 50%;
	max-width: 95%;
	transform: translateX(-50%);
}

/* View css */
body {
	color: #111111;
	font-family: 'Tektur', sans-serif;
	background-color: white;
	font-size: 13px;
}

/* body::after {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 20px;
	background: linear-gradient(to bottom, #0000003a, transparent);
	pointer-events: none;
	z-index: -1;
} */

/* Mobile responsive class */
.disabled {
	filter: grayscale(100%) !important;
	pointer-events: none !important;
}

.disabled * {
	filter: grayscale(100%) !important;
	pointer-events: none !important;
}

#skia-logo {
	width: 108px !important;
	height: 108px !important;
}

/* Mobile start */
@media handheld,
only screen and (max-width: 899px) {
	.desktop {
		display: none;
	}
}

@media handheld,
only screen and (min-width: 900px) {

	/* Don't display mobile class on desktop */
	.mobile,
	.notindesktop,
	.mobile-tr,
	.mobile {
		display: none;
	}
}

#image-container {
	width: 100%;
	margin-top: 6px;
}

/* Base Styles */
:root {
	--primary-gradient: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
}


#sharex {
	display: none;
	position: fixed;
	top: 12px;
	right: 22px;
	z-index: 400;
	filter: grayscale(100%) brightness(50%) sepia(100%) hue-rotate(-50deg) saturate(500%) contrast(1);
}

#sharediv {
	display: none;
	top: 0;
	left: 0;
	position: fixed;
	background: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(6px);
	border-radius: 0;
	z-index: 10000;
	width: 100%;
	height: calc(100vh - 40px);
	animation: fadeInFromNone 0.2s ease-out;
	text-align: center;
	color: white;
}

.file-access-steps {
	text-align: left;
	font-size: 11pt;
}

#sharediv a {
	cursor: pointer;
	text-decoration: none;
	padding: 12px;
	font-size: 32px;
	color: white;
}

.undo-link-no-available-on-chat-reload {
	pointer-events: none;
	cursor: default;
}

.speak-link-for-ai-message {
	cursor: pointer;
}

#space {
	height: 64px;
}

/* Share Link Styles - Matching api-key-manager.css theme */
.share-link-container {
	margin-bottom: 20px;
	padding: 0 20px;
}

.share-link-title {
	margin-bottom: 10px;
	font-weight: bold;
	color: white;
	font-size: 13pt;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	padding-bottom: 8px;
	display: inline-block;
	min-width: 200px;
}

.share-link-description {
	margin-bottom: 15px;
	font-size: 12pt;
	color: white;
	opacity: 0.9;
}

.share-link-input-group {
	display: none;
	justify-content: center;
	align-items: center;
	gap: 10px;
	max-width: 600px;
	margin: 0 auto;
}

#share-link-input {
	flex: 1;
	padding: 7px;
	border: 0;
	height: 35px;
	border-radius: 4px;
	font-size: 13px;
	background-color: white;
	font-family: 'Tektur', sans-serif;
	color: #2a4cad;
	transition: border-color 0.3s;
}

#share-link-input:focus {
	border-color: #2a4cad;
	outline: none;
}

#copy-share-link-btn {
	padding: 7px 7px;
	background-color: white;
	color: #2a4cad;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 11px;
	font-size: 12pt;
	/* min-width: 80px; */
	font-family: 'Tektur', sans-serif;
	font-weight: bold;
	transition: all 0.3s;
}

#copy-share-link-btn:hover {
	background-color: rgba(255, 255, 255, 0.9);
	/* transform: translateY(-1px); */
}

#copy-share-link-btn:active {
	transform: translateY(0);
}

/* Success state for copy button */
#copy-share-link-btn.copied {
	background-color: limegreen;
	color: white;
}

/* Social Share Icons */
.social-share-icons {
	text-align: center;
	margin: 20px 0;
	color: white;
}

.social-share-icons a {
	display: inline-block;
	margin: 5px 10px;
	font-size: 24px;
}

.social-share-icons br {
	display: block;
	content: "";
	margin: 5px 0;
}

#historydiv {
	display: none;
	top: 0;
	left: 0;
	position: fixed;
	background: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(6px);
	border-radius: 0;
	z-index: 1000;
	width: 100%;
	height: calc(100vh - 40px);
	animation: fadeInFromNone 0.2s ease-out;
	overflow-y: hidden;
	text-align: center;
}

.historybox {
	margin: 9px;
	display: block;
	width: initial;
	/* height: calc(100% - 20px);
	overflow-y: scroll;
	padding-right: 9px; */
}

.off {
	filter: grayscale(100%);
}

.under-development {
	display: none !important;
}

@keyframes fadeInFromNone {
	0% {
		display: none;
		opacity: 0;
	}

	1% {
		display: block;
		opacity: 0;
	}

	100% {
		display: block;
		opacity: 1;
	}
}

#topmenu>li {
	float: left;
}


/*Chat*/
html {
	height: 100%;
}

#user-input {
	font-weight: 300;
	font-size: initial;
	background: initial;
	border: 0;
	height: initial;
	text-align: unset;
	position: relative;
}

/* ContentEditable Placeholder Styles */
#user-input.empty::before {
	content: attr(data-placeholder);
	pointer-events: none;
	position: absolute;
	opacity: 0.6;
}

#user-input.empty:focus::before {
	opacity: 0.4;
}

body.with-chat {
	margin: 0;
	padding: 0;
	line-height: 23px;
	/* height: 100%; */
}

iframe,
img {
	max-width: 100%;
}

* {
	box-sizing: border-box;
}

#bottom-bar {
	position: fixed;
	display: flex;
	justify-content: space-around;
	background: rgb(30 30 35 / 70%);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	padding: 0.5vh 5px;
	align-items: center;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	height: 40px;
	z-index: 5;
	width: 100vw;
	bottom: 0;
	color: white;
	overflow: hidden;
}

#bottom-bar a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	color: #222;
	text-decoration: none;
	cursor: pointer;
	padding: 5px;
	border-radius: 5px;
	text-align: center;
	color: white;
	font-size: 11pt;
}

#share-button,
#history-button,
#api-key-button {
	cursor: pointer;
}

#bottom-bar a:hover {
	background-color: #ffffff5e;
}

#bottom-bar a.selected {
	background-color: rgb(255 255 255 / 16%);
}

#start-container {
	display: block;
	overflow-x: overlay;
	overflow-y: auto;
	width: 96%;
	max-width: 700px;
	left: 50%;
	position: relative;
	transform: translateX(-50%);
}

#chat-container {
	/* padding-top: 64px; */
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: 700px;
	left: 50%;
	position: relative;
	transform: translateX(calc(-50%));
	padding-bottom: 140px;
	height: auto;
	width: 95%;
	left: 50%;
	max-width: 95%;
	transform: translateX(-50%);
}

#context-window-preview {
	position: fixed;
	top: 8px;
	left: 50%;
	transform: translateX(-50%);
	width: 95%;
	max-width: 95%;
	z-index: 41;
	padding: 8px 10px 10px 10px;
	border: 2px solid #5e5e5e40;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(6px);
}

.context-preview-title {
	font-size: 10pt;
	line-height: 1.2;
	margin-bottom: 6px;
	opacity: 0.85;
}

.context-preview-track {
	height: 8px;
	border-radius: 999px;
	background-color: #9e9e9e2f;
	overflow: hidden;
}

.context-preview-fill {
	height: 100%;
	width: 0%;
	background-color: #ff5c5c48;
	border-radius: 999px;
	transition: width 0.25s ease-in-out;
}

.context-preview-fill.near-limit {
	background-color: #ff5c5c;
}

*::-webkit-scrollbar {
	width: 16px;
}

*::-webkit-scrollbar-track {
	border-radius: 8px;
	background-color: #ffffff2c;
	border: 1px solid #cacaca57;
}

*::-webkit-scrollbar-thumb {
	border-radius: 8px;
	border: 3px solid transparent;
	background-clip: content-box;
	background-image: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(175, 175, 175, 0.20));
}



#reasoning-container,
#status-container,
#parser-container {
	margin-bottom: 14px;
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, margin-bottom 0.3s ease-in-out;
}

#reasoning-container.expanded,
#status-container.expanded,
#parser-container.expanded {
	max-height: 50px;
	opacity: 1;
	margin-bottom: 12px;
}

#status-container.expanded {
	max-height: 58px;
}

#reasoning-container.collapsed,
#status-container.collapsed,
#parser-container.collapsed {
	max-height: 0;
	opacity: 0;
	margin-bottom: 0;
}

#reasoning-container.moving-text-rtl>.text {
	direction: rtl;
}

#status-container>.arrow {
	display: block;
	font-size: 10pt;
	opacity: 0.85;
	margin-bottom: 2px;
}

#reasoning-container>.text,
#status-container>.text,
#parser-container>.text {
	display: inline-block;
	font-size: 10pt;
	opacity: 0.70;
	font-style: italic;
	height: 17px;
	white-space: nowrap;
	overflow-x: hidden;
	overflow-y: hidden;
	text-overflow: ellipsis;
	width: -webkit-fill-available;
	text-align: left;
}

#status-container>.text {
	display: block;
	direction: ltr;
	height: auto;
	min-height: 17px;
}

/* Remove the default glow effect from the textarea */
#user-input:focus {
	outline: none;
}

#user-input:focus {
	outline: 2px solid #032f5f;
}

/* Border effect when focused */
#chat-input-container:focus-within:not(.loading) {
	border-color: rgba(24, 99, 179, 0.7);
}

@keyframes redBorderAnimation {
	0% {
		border-color: rgba(255, 0, 0, 0.5) #fc000040 #5e5e5e40 #5e5e5e40;
	}

	25% {
		border-color: #5e5e5e40 rgba(255, 0, 0, 0.5) #5e5e5e40 #5e5e5e40;
	}

	50% {
		border-color: #5e5e5e40 #5e5e5e40 rgba(255, 0, 0, 0.5) #5e5e5e40;
	}

	75% {
		border-color: #5e5e5e40 #5e5e5e40 #5e5e5e40 rgba(255, 0, 0, 0.5);
	}

	100% {
		border-color: rgba(255, 0, 0, 0.5) #5e5e5e40 #5e5e5e40 #5e5e5e40;
	}
}

#chat-input-container.loading {
	animation: redBorderAnimation 2s linear infinite;
}

#file-input-dropzone {
	display: none;
}

#model-switch,
#model-switch-image,
#model-switch-transcript,
#model-switch-edit {
	display: block;
	/* Visible by default */
	margin-bottom: 15px;
	/* Add spacing for settings layout */
}

/* Original classes kept for reference but positioning removed */
#user-input:focus {
	outline: none;
	box-shadow: none;
}

.model-select {
	background: transparent;
	border: 1px solid rgba(0, 0, 0, 0.2);
	/* Added border for visibility in settings */
	border-radius: 4px;
	font-size: 11pt;
	font-weight: 400;
	color: #254089;
	padding: 5px 10px;
	/* Adjusted padding */
	width: 100%;
	/* Full width in settings */
	font-family: 'Tektur';
	margin-top: 5px;
}

.model-tag {
	position: absolute;
	pointer-events: none;
}

@media only screen and (max-width: 1299px) {

	#floating-tools-div {
		display: none !important;
	}
}

#chat-input #user-input {
	resize: none;
	overflow: hidden;
	width: 100%;
	font-size: 10pt;
	border: 0;
	background: transparent;
	min-height: 23px;
}

#permission-action-bar {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	width: 100%;
	margin: -5px 0 6px 0;
}

#permission-action-bar[hidden] {
	display: none !important;
}

.permission-action-btn {
	color: inherit;
	border: none;
	border-radius: 10px;
	padding: 6px 6px;
	font-size: 9pt;
	font-weight: 700;
	cursor: pointer;
	width: 100%;
}

#permission-reject-button {
	background: rgba(220, 20, 60, 0.3);
}

#permission-accept-button {
	background: rgba(50, 205, 50, 0.3);
}

#button-container {
	right: 10px;
	padding-left: 6px;
	position: absolute;
	top: auto;
	bottom: 4px;
	margin: 0;
	font-size: large;
	text-align: right;
}

#button-container>button {
	background: transparent;
}

.send-btn {
	font-size: 14pt;
	position: relative;
	border: 0;
	background: transparent;
	padding: 0;
	cursor: pointer;
	text-decoration: none;
}

.send-btn:hover {
	filter: grayscale(0);
	opacity: 100%;
}

.off {
	filter: grayscale(100%);
}

#send-button {
	font-size: 13pt;
	color: #3051af;
	font-family: 'Tektur';
}

#file-input-image {
	display: none;
}

#file-input-attachment {
	display: none;
}

.chat-item:hover {
	background: rgb(233 253 226 / 95%);
}

.chat-item.selected {
	background-color: rgb(185 239 194 / 98%) !important;
}

.chat-item>small {
	font-size: 10pt;
	color: #0000008a;
}

.chat-item h3,
.chat-item h4,
.chat-item p {
	margin: 0;
}

.chat-item {
	display: block !important;
	background-color: rgb(255 255 255 / 95%);
	border-radius: 16px;
	position: relative;
	transition: transform 0.3s;
	max-width: 780px;
	margin: 6px 6px 12px 0px;
	text-decoration: none;
	text-align: left;
	margin: auto;
	margin-bottom: 9px;
}

#chat-container.history .chat-item {
	background-color: #00000009;
}

#chat-container.history .chat-item h3 {
	font-size: 13pt !important;
	margin-bottom: 0;
	font-weight: 500;
}

.chat-item h3 {
	font-size: 11pt !important;
	margin-bottom: 0;
	font-family: 'Tektur';
	font-weight: 100;
}

.chat-item h4 {
	font-size: 14pt;
	margin-bottom: 8px;
	color: #000000d7;
	font-weight: 300;
}

.chat-item p {
	font-size: 11pt;
	color: #000000cb;
}

.chat-link {
	text-decoration: none;
	cursor: pointer;
	padding: 8px 12px;
	display: block;
}

.chat-item .fas.fa-trash-alt {
	position: absolute;
	top: 13px;
	right: 12px;
	color: rgba(0, 0, 0, 0.336);
	cursor: pointer;
	transition: color 0.3s;
	z-index: 30;
}

.chat-item .fas.fa-trash-alt:hover {
	color: rgba(0, 0, 0, 0.719);
	/* Darker red on hover */
}

.new-chat {
	display: inline-block;
	padding: 10px 20px;
	background: linear-gradient(135deg, #2a4cad, #6e89bd);
	color: white;
	text-decoration: none;
	border-radius: 16px;
	font-weight: 300;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
	font-family: 'Tektur';
	width: 100%;
}

.new-chat:hover {
	background: linear-gradient(135deg, #0056ff, #2a4cad);
}

#container {
	justify-content: space-between;
	width: 100%;
}

/*my cols*/
.col-2,
.col-3 {
	box-sizing: border-box;
}

.col-2 {
	flex: 0 0 300px;
	width: 300px;
	padding: 10px 20px;
	background-color: lightcyan;
	border-right: 1px solid #add8e6;
}

.col-3 {
	flex: 1;
}

/* Mobile styles for screens less than 600px */
@media (max-width: 899px) {

}

.pro {
	border-radius: 6px;
}

.username {
	font-size: 16px;
	flex-grow: 1;
	white-space: normal;
	word-wrap: break-word;
	font-weight: 700;
	font-weight: bold;
	margin-bottom: 2px;
}

.user-controls {
	display: flex;
	gap: 12px;
	align-items: center;
}

.user-controls a {
	text-decoration: none;
	font-size: 1.2em;
	padding: 8px;
	border-radius: 8px;
	transition: all 0.3s ease;
	background: rgba(255, 255, 255, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: 13px;
}

.user-controls a:hover {
	background: rgba(255, 255, 255, 0.3);
}

.settings-icon,
.logout-icon {
	opacity: 0.8;
	transition: opacity 0.3s ease;
}

.settings-icon:hover,
.logout-icon:hover {
	opacity: 1;
}

.user-section {
	padding: 10px;
	margin: 10px 0;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.4);
	backdrop-filter: blur(10px);
}

.user-profile {
	display: flex;
	align-items: center;
	gap: 0px;
	padding: 5px;
	font-size: 12pt;
}

.user-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-controls {
	display: flex;
	gap: 6px;
}

.settings-icon,
.logout-icon {
	font-size: 20px;
	text-decoration: none;
	opacity: 0.7;
	transition: opacity 0.3s;
}

.settings-icon:hover,
.logout-icon:hover {
	opacity: 1;
}

.login-section {
	text-align: right;
}

.chat-description {
	border-radius: 16px;
	max-width: 780px;
	text-align: center;
}

.chat-description p,
.chat-description li {
	font-size: 10pt;
	line-height: 1.9;
	margin: 0;
	font-weight: 300;
}

.chat-description strong {
	font-weight: 700;
}

.profile-container {
	display: flex;
	text-decoration: none;
	align-items: center;
	background-color: rgb(255 255 255 / 40%);
	border-radius: 16px;
	padding: 10px;
	transition: background-color 0.3s ease;
	/* border: 1px solid mediumpurple; */
}

.profile-container:hover {
	background-color: rgba(255, 255, 255, 0.4);
}

/* Style the profile image */
.profile-image {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	margin-right: 10px;
}

.profile-info {
	display: flex;
	flex-direction: column;
}

.settings-link {
	text-decoration: none;
	font-size: 11pt;
	transition: color 0.3s ease;
	font-family: 'Tektur';
}

.settings-utility-link {
	display: block;
	text-decoration: underline;
	color: inherit;
}

.settings-utility-link.with-spacing {
	margin-bottom: 8px;
}

.profile-container:hover {
	background: rgb(171 171 171 / 40%);
}

#loading-screen {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.3);
	z-index: 9999;
}

#loading-screen::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 50px;
	height: 50px;
	margin-left: -25px;
	margin-top: -25px;
	border: 4px solid rgba(0, 0, 0, 0.1);
	border-top: 4px solid #3498db;
	border-radius: 50%;
	animation: spin 1s linear infinite, glow 1.5s ease-in-out infinite alternate;
}

#loading-screen::after {
	content: "Loading...";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, 40px);
	font-family: Arial, sans-serif;
	font-size: 14px;
	animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

@keyframes pulse {
	0% {
		opacity: 0.4;
	}

	50% {
		opacity: 1;
	}

	100% {
		opacity: 0.4;
	}
}

/* Social Login Section */
.social-login {
	display: flex;
	gap: 12px;
	align-items: center;
	display: inline-flex;
}

.social-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 80px;
	height: 40px;
	border-radius: 50%;
	text-decoration: none;
	transition: all 0.3s ease;
	font-size: 20px;
}

.login-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 20px;
	background: rgba(255, 255, 255, 0.25);
	border-radius: 12px;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-placeholder {
	margin: 12px 0;
	padding: 0px 6px;
	text-align: left;
	font-family: 'Tektur';
	border: 1px solid #5e5e5e40;
	border-radius: 12px 12px 12px 12px;
	background: #0051ff0c;
}

.login-placeholder p {
	font-size: 11pt;
	text-align: center;
}

.login-placeholder p a {
	text-decoration: none;
	font-weight: bold;
	background: gold;
	padding: 3px;
	border-radius: 7px;
}

.login-placeholder p a:hover {
	background: yellow;
}

.msg-placeholder {
	margin: 12px 0;
	padding: 0px 6px;
	text-align: left;
	font-family: 'Tektur';
	border: 1px solid #5e5e5e40;
	border-radius: 12px 12px 12px 12px;
}

.msg-placeholder:hover {
	filter: brightness(1.1);
}

.msg-placeholder p {
	font-size: 10pt;
}

.msg-placeholder p a.tag {
	background: #2a4cad;
	text-decoration: none;
	font-weight: bold;
	color: white;
	padding: 3px;
	border-radius: 7px;
}

.app-icon {
	font-size: 12px;
	margin-top: 0px;
	padding-left: 5px;
}

fieldset {
	display: contents;
}

.agent-intro {
	margin-top: 80px;
}
.agent-intro ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
}

.agent-intro ul li {
	margin: 3px 0;
	border-radius: 8px;
	display: flex;
	align-items: center;
}	

.beta-tag {
	font-size: 0.4em;
	vertical-align: super;
	background: #4766b4;
	color: white;
	padding: 4px 8px;
	border-radius: 12px;
	text-transform: uppercase;
	font-weight: 300;
}

select>option {
	color: #3253af !important;
}

/* Login Popup Styles */
.ufo-login-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	padding: 132px 12px 12px 12px;
	background: rgba(68, 76, 92, 0.411);
	display: block;
	justify-content: center;
	align-items: center;
	z-index: 10000;
	border-radius: 0;
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
}

ufo-login-overlay>h4 {
	font-weight: 300;
	;
}

.ufo-login-header {
	text-align: center;
	color: white;
}

.ufo-login-title {
	line-height: 30px;
	margin: 30px 0 20px;
	color: white;
	font-size: 17pt;
	font-weight: 700;
}

.ufo-login-subtitle {
	margin: 0 0 8px;
	color: white;
	font-size: 3vh;
	font-weight: 500;
}

.ufo-login-description {
	margin: 0;
	color: white;
	font-size: 16px;
}

.ufo-login-buttons {
	margin-bottom: 35px;
}

.ufo-login-main-buttons {
	display: flex;
	gap: 15px;
	margin-bottom: 25px;
}

.ufo-login-social-section {
	text-align: center;
	margin-top: 30px;
}

.ufo-login-divider {
	margin: 20px 0;
	color: #4a5568;
	font-size: 15px;
	position: relative;
}

.ufo-login-divider-text {
	background: rgba(255, 255, 255, 0.95);
	padding: 0 20px;
}

.ufo-login-divider-line {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background: rgba(160, 174, 192, 0.6);
	z-index: -1;
}

.ufo-login-social-buttons {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ufo-login-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: rgba(255, 255, 255, 0.8);
	border: none;
	font-size: 28px;
	cursor: pointer;
	color: #4a5568;
	transition: all 0.3s;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	text-decoration: none;
}

.ufo-login-close:hover {
	color: #1a202c;
	background: rgba(255, 255, 255, 0.95);
	transform: scale(1.1);
}

/* Animation keyframes */
@keyframes fadeInScale {
	from {
		opacity: 0;
		transform: scale(0.9);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* Login form inputs and buttons */
.login-input {
	width: 100%;
	padding: 12px;
	margin: 8px 0;
	border: 2px solid #e1e5e9;
	border-radius: 6px;
	font-size: 16px;
	transition: border-color 0.2s;
	box-sizing: border-box;
}

.login-input:focus {
	outline: none;
	border-color: #007bff;
}

.login-btn {
	width: 100%;
	padding: 15px 20px;
	margin: 10px 0;
	border: none;
	border-radius: 12px;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.login-btn.primary {
	background: linear-gradient(135deg, #002f6c 0%, #0047ab 50%, #0d47a1 100%);
	color: white;
}

.login-btn.primary:hover {
	background: linear-gradient(135deg, #003a8c 0%, #0057d0 50%, #0b3d91 100%);
}

.login-btn.secondary {
	background: linear-gradient(135deg, #1565c0 0%, #1976d2 50%, #1e88e5 100%);
	color: white;
}

.login-btn.secondary:hover {
	background: linear-gradient(135deg, #1a73d8 0%, #2b8fff 50%, #1a60c8 100%);
}

.social-btn {
	width: 100%;
	padding: 12px 20px;
	margin: 6px 0;
	border: 2px solid rgba(144, 238, 144, 0.3);
	border-radius: 10px;
	background: rgba(144, 238, 144, 0.1);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: white;
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	text-decoration: none;
}

.social-btn:hover {
	background: rgba(144, 238, 144, 0.1);
	border-color: rgba(144, 238, 144, 0.5);
}

.beta-notice {
	font-size: 9pt !important;
}

.tool-command-tag,
.tool-command-tag * {
	font-weight: bold;
	color: crimson;
	text-decoration: none;
}

.tool-command-tag {
	display: inline-block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: clip;
	vertical-align: bottom;
	white-space: nowrap;
}

.tool-command-tag input[data-android-readonly-chip],
.tool-command-tag[data-android-readonly-chip] input {
	max-width: 100%;
	overflow: hidden;
	text-overflow: clip;
	white-space: nowrap;
}

#canvasdiv {
	top: 0;
	left: 0;
	position: fixed;
	background: transparent;
	z-index: 9999;
	width: 100%;
	height: calc(100% - 40px);
	animation: fadeInFromNone 0.2s ease-out;
}

/* Error icon styles */
.ufo-error-icon {
	font-size: 48px;
	margin-bottom: 20px;
}

/* Upgrade link styles */
.upgrade-link {
	text-decoration: none;
}

/* Reasoning depth toggle button - Material UI Switch style */
.send-dots-toggle {
	position: absolute;
	width: 40px;
	height: 20px;
	color: inherit;
	background-color: #9e9e9e2f !important;
	border-radius: 24px;
	transition: background-color 0.2s;
	display: inline-block;
	vertical-align: middle;
	margin-right: 10px;
	border: none;
	cursor: pointer;
	padding: 0;
	-webkit-appearance: none;
	appearance: none;
	outline: none;
	bottom: 4px;
	z-index: 100;
}

.send-dots-toggle {
	left: 10px;
}

#send-mode-dots::before,
#acp-reasoning-dots::before {
	content: attr(data-label);
	position: absolute;
	left: 45px;
	top: 3px;
	font-size: 10pt;
	white-space: nowrap;
	color: inherit;
}

#send-mode-dots .reasoning-dot,
#acp-reasoning-dots .reasoning-dot {
	position: absolute;
	top: 8px;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background-color: white;
	z-index: 2;
	pointer-events: none;
}

#send-mode-dots .reasoning-dot.active,
#acp-reasoning-dots .reasoning-dot.active {
	background-color: crimson;
}

#send-mode-dots .reasoning-dot.dot-1,
#acp-reasoning-dots .reasoning-dot.dot-1 {
	left: 6px;
}

#send-mode-dots .reasoning-dot.dot-2,
#acp-reasoning-dots .reasoning-dot.dot-2 {
	left: 12px;
}

#send-mode-dots .reasoning-dot.dot-3,
#acp-reasoning-dots .reasoning-dot.dot-3 {
	left: 18px;
}

#send-mode-dots .reasoning-dot.dot-4,
#acp-reasoning-dots .reasoning-dot.dot-4 {
	left: 24px;
}

#send-mode-dots .reasoning-dot.dot-5,
#acp-reasoning-dots .reasoning-dot.dot-5 {
	left: 30px;
}

.blockquote-with-replace {
	opacity: 1 !important;
}

blockquote {
	background-color: #00000012;
	padding: 6px;
	margin-left: 0;
	margin-right: 0;
	padding-right: 6px;
	border-radius: 9px;
	display: block;
	margin-top: 6px;
	margin-bottom: 6px;
	font-style: italic;
	border: 2px dashed #5e5e5e40;
	/* white-space-collapse: break-spaces; */
}

/* Inline Styles moved */
#example-loading-gif,
#example-broken-jpg,
#file-input,
#image-canvas,
#view-chat-button,
#file-autocomplete-menu,
#file-input-attachment {
	display: none;
}

.file-access-popup {
	display: none;
}

.file-access-spacer {
	height: 64px;
}

#close-file-access-popup {
	width: 90%;
	margin: 10px auto;
}

.history-unavailable-box {
	padding: 40px 20px;
}

.history-unavailable-icon {
	font-size: 48px;
	margin-bottom: 20px;
	opacity: 0.5;
	color: white;
}

.history-unavailable-text {
	color: white;
	opacity: 0.9;
	margin-bottom: 10px;
}

.history-unavailable-subtext {
	color: white;
	opacity: 0.7;
	font-size: 0.9em;
}

#settingsdiv {
	text-align: center;
	display: none;
	background: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	border-radius: 0;
}

/* Keep global styles intact, but force readable settings dropdown colors */
#settingsdiv select.btn.primary-btn {
	background-color: #fff;
	color: #2a4cad !important;
}

#settingsdiv select.btn.primary-btn option {
	background-color: #fff;
	color: #111 !important;
}

#login-status {
	text-align: left;
}

#login-status>a {
	text-decoration: none;
	color: inherit;
	display: inline-block;
}

.message {
	padding: 7px 0 0px 0;
	flex-direction: column;
	overflow-wrap: break-word;
	word-break: break-word;
	width: 100%;
}

.message * {
	line-height: 26px;
}

.message * p {
	margin: 6px 0;
}

.message hr {
	margin-top: 6px;
	margin-bottom: 6px;
}

.message pre code {
	margin: 0;
	font-family: monospace;
}

.message pre code,
.message pre code * {
	font-size: 10pt;
	line-height: 1.5;
	white-space: pre-wrap;
}

.user-message {
	align-self: flex-end;
}

.message img {
	margin: 0;
	display: block;
	height: auto;
}

.message table {
	border-collapse: collapse;
	width: 100%;
	margin: 8px 0;
	font-size: 10pt;
	line-height: 1.35;
	overflow-x: auto;
	display: block;
	white-space: nowrap;
}

.message table thead {
	display: table-header-group;
}

.message table tbody {
	display: table-row-group;
}

.message table tr {
	display: table-row;
	border-bottom: 1px solid #e0e0e0;
}

.message table th,
.message table td {
	display: table-cell;
	padding: 5px 8px;
	line-height: 1.35;
	text-align: left;
	vertical-align: top;
	border-right: 1px solid #f0f0f0;
}

.message table th {
	background-color: #f8f9fa0c;
	font-weight: 600;
	border-bottom: 2px solid #dee2e6;
}

.message table td {
	border-bottom: 1px solid #f0f0f0;
}

.message table th:last-child,
.message table td:last-child {
	border-right: none;
}

.message-wrapper {
	position: relative;
	width: 100%;
	margin: auto;
	padding: 0% 1%;
	border-radius: 12px;
}

.model-tag {
	font-size: 12pt;
	font-weight: 700;
	color: darkcyan;
	margin: 0 0 5px 0;
	padding-left: 8px;
	border-radius: 4px;
	display: inline-block;
	position: relative;
}

.user-content[contenteditable=true] {
	background-color: rgba(255, 255, 255, 0.2);
}

/* .user-content:first-letter {
	text-transform: uppercase;
} */

.message.ai-message code:not(pre code) {
	color: crimson;
	padding: 2px 4px;
	border-radius: 6px;
}

.message.ai-message small strong {
	display: block;
	width: 100%;
	margin-bottom: -8px;
}

.ai-message {
	align-self: flex-start;
	text-align: left;
	font-weight: normal;
}

.ai-message.error {
	color: crimson;
}

.ai-message.error a {
	color: crimson;
	text-decoration: none;
}

.message-content {
	font-size: 14pt;
}

/* Style for the code block container */
.message pre {
	position: relative;
	border-radius: 16px;
	overflow: auto;
	max-width: 100%;
	white-space: pre;
	word-wrap: break-word;
	margin-top: 0;
	margin-bottom: 0;
}

.message pre code {
	display: block;
	overflow-x: auto;
	padding: 1em;
	max-width: 100%;
}

.model-name {
	color: #2a4cad;
	font-size: 1em;
	display: block
}

.model-name>a,
.model-name>button {
	text-decoration: none;
	font-weight: 700;
}

.model-name>button {
	border: 0;
	padding: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.ai-message math {
	margin: 9px 0px;
	border-radius: 8px;
}

.ai-message * img,
.ai-message * canvas {
	width: 100%;
	height: auto;
	border-radius: 8px;
}

/* Keyframes for the emoji animation */
@keyframes timePeriods {
	0% {
		content: '🕛 ' attr(data-text);
	}

	4% {
		content: '🕧 ' attr(data-text);
	}

	8% {
		content: '🕐 ' attr(data-text);
	}

	12% {
		content: '🕜 ' attr(data-text);
	}

	16% {
		content: '🕑 ' attr(data-text);
	}

	20% {
		content: '🕝 ' attr(data-text);
	}

	25% {
		content: '🕒 ' attr(data-text);
	}

	29% {
		content: '🕞 ' attr(data-text);
	}

	33% {
		content: '🕓 ' attr(data-text);
	}

	37% {
		content: '🕟 ' attr(data-text);
	}

	41% {
		content: '🕔 ' attr(data-text);
	}

	45% {
		content: '🕠 ' attr(data-text);
	}

	50% {
		content: '🕕 ' attr(data-text);
	}

	54% {
		content: '🕡 ' attr(data-text);
	}

	58% {
		content: '🕖 ' attr(data-text);
	}

	62% {
		content: '🕢 ' attr(data-text);
	}

	66% {
		content: '🕗 ' attr(data-text);
	}

	70% {
		content: '🕣 ' attr(data-text);
	}

	75% {
		content: '🕘 ' attr(data-text);
	}

	79% {
		content: '🕤 ' attr(data-text);
	}

	83% {
		content: '🕙 ' attr(data-text);
	}

	87% {
		content: '🕥 ' attr(data-text);
	}

	91% {
		content: '🕚 ' attr(data-text);
	}

	95% {
		content: '🕛 ' attr(data-text);
	}

	100% {
		content: '🕛 ' attr(data-text);
	}
}

@keyframes loadingPeriods {
	0% {
		content: '⏳ ' attr(data-text);
	}

	20% {
		content: '⌛ ' attr(data-text);
	}

	40% {
		content: '⏳ ' attr(data-text);
	}

	60% {
		content: '⌛ ' attr(data-text);
	}

	80% {
		content: '⏳ ' attr(data-text);
	}

	100% {
		content: '⏳ ' attr(data-text);
	}
}

/* Styles for all tools */
*[status="finish"],
*[status="waiting"],
*[status="loading"],
*[status="error"] {
	display: block;
	align-items: center;
	border-radius: 4px;
	width: 100%;
	font-family: monospace;
	margin: 6px 0 !important;
}

.acp-hidden-tag {
	display: block;
	margin: 0 !important;
	padding: 0 !important;
	min-height: 0;
}

/* Common "finish" state */
*[status="finish"]::before {
	content: '✔️ ' attr(data-text);
	font-size: 13px;
	color: forestgreen;
	margin-right: 8px;
	animation: none;
	display: inline-block;
	max-height: 30px;
	overflow: hidden;
	vertical-align: top;
	/* text-transform: capitalize; */
}

/* Common "waiting" state */
*[status="waiting"]::before {
	content: '\23F3 ' attr(data-text);
	font-size: 13px;
	color: rebeccapurple;
	margin-right: 8px;
	animation: loadingPeriods 1.2s infinite;
	display: inline-block;
	max-height: 30px;
	overflow: hidden;
	vertical-align: top;
	/* text-transform: capitalize; */
}

*[status="loading"]::before {
	content: '\23F3 ' attr(data-text);
	font-size: 13px;
	color: rebeccapurple;
	margin-right: 8px;
	animation: loadingPeriods 1.2s infinite;
	display: inline-block;
	max-height: 30px;
	overflow: hidden;
	vertical-align: top;
	/* text-transform: capitalize; */
}

/* Common child element hiding in all tools status streaming and error - only first level */
*[status="finish"]>textarea,
*[status="waiting"]>textarea,
*[status="loading"]>textarea,
*[status="error"]>textarea,
*[status="finish"]>timestamp,
*[status="waiting"]>timestamp,
*[status="loading"]>timestamp,
*[status="error"]>timestamp,
*[status="finish"]>id,
*[status="waiting"]>id,
*[status="loading"]>id,
*[status="error"]>id,
*[status="finish"]>files_with_changes,
*[status="waiting"]>files_with_changes,
*[status="loading"]>files_with_changes,
*[status="error"]>files_with_changes,
*[status="finish"]>files_unchanged,
*[status="waiting"]>files_unchanged,
*[status="loading"]>files_unchanged,
*[status="error"]>files_unchanged,
*[status="finish"]>files_not_found,
*[status="waiting"]>files_not_found,
*[status="loading"]>files_not_found,
*[status="error"]>files_not_found,
*[status="finish"]>base64,
*[status="waiting"]>base64,
*[status="loading"]>base64,
*[status="error"]>base64 {
	display: none;
}

/* Location tag here */
*[status="finish"] location,
*[status="waiting"] location,
*[status="loading"] location,
*[status="error"] location {
	display: block;
	font-size: 9pt;
	font-style: italic;
	overflow-y: hidden;
	max-height: 45px;
}

/* Many-locations tag here */
*[status="finish"] many-locations,
*[status="waiting"] many-locations,
*[status="loading"] many-locations,
*[status="error"] many-locations {
	display: block;
	font-size: 9pt;
	font-style: italic;
	overflow-y: hidden;
	max-height: 45px;
}

/* Regex tag here */
*[status="finish"] regex,
*[status="waiting"] regex,
*[status="loading"] regex,
*[status="error"] regex {
	display: block;
	font-size: 9pt;
	font-style: italic;
	overflow-y: hidden;
	max-height: 45px;
}

*[status="finish"] query,
*[status="waiting"] query,
*[status="loading"] query,
*[status="error"] query {
	display: block;
	font-size: 9pt;
	font-style: italic;
	overflow-y: hidden;
	max-height: 45px;
}

/* Common "error" state */
*[status="error"]::before {
	content: '❌ ' attr(data-text);
	font-size: 13px;
	color: crimson;
	margin-right: 8px;
	animation: none;
	/* text-transform: capitalize; */
}

/* Drop screen overlay - merged and enhanced */
#drop-screen {
	display: none;
}

#drop-screen.on {
	display: flex;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.4);
	z-index: 99999999999;
	color: transparent;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	margin: 0;
}

#drop-screen.on::before {
	content: '📥';
	font-size: 120px;
	animation: bounce 2s infinite;
	display: block;
	text-align: center;
	color: white;
}

#drop-screen.on::after {
	content: 'Drop files here!';
	font-size: 24px;
	color: white;
	margin-top: 100px;
	text-align: center;
}

#drop-screen.on.vscode-drop-screen::after,
.vscode-webview-runtime #drop-screen.on::after {
	content: 'Drop files here!';
}

.vscode-drop-hint {
	display: none;
}

.vscode-webview-runtime #drop-screen.on .vscode-drop-hint {
	display: none;
}

#drop-screen.on::-webkit-file-upload-button,
#drop-screen.on::file-selector-button {
	display: none;
}

/* Drop screen overlay - merged and enhanced */
#speak-screen {
	display: none;
}

#speak-screen .speak-screen-hint {
	display: none;
}

#speak-screen.on {
	display: flex;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.4);
	z-index: 70;
	color: transparent;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	margin: 0;
}

#speak-screen.on .speak-screen-hint {
	display: block;
	order: 3;
	margin-top: 8px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.82);
	text-align: center;
	font-family: 'Tektur', sans-serif;
	letter-spacing: 0.02em;
	pointer-events: none;
}

#speak-screen.on::before {
	order: 1;
	content: '🎙️';
	font-size: 120px;
	animation: bounce 2s infinite;
	display: block;
	text-align: center;
	color: white;
}

#speak-screen.on::after {
	order: 2;
	content: 'Listening...';
	font-size: 24px;
	color: white;
	margin-top: 100px;
	text-align: center;
}

@keyframes bounce {

	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-20px);
	}
}

/* Auto-generated image styles */
img[data-status] {
	display: block;

	/* Hide default alt text in Chrome for broken images */
	color: transparent !important;
	text-shadow: none !important;
	user-select: none;
	-webkit-user-select: none;
	-webkit-text-fill-color: transparent !important;
	font-size: 0 !important;
	line-height: 0 !important;
}

/* Links in message content - bold crimson style */
.user-content a,
.ai-content a {
	font-weight: bold;
	color: crimson;
	text-decoration: none;
}

/* Don't activate bold/crimson styles inside tool/status elements */
.user-content [status] a,
.ai-content [status] a {
	font-weight: normal;
	color: inherit;
}
