@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
	overflow-y: auto;
	background-color: #1a1d29;
	color: #94a3b8;
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	margin: 0;
	padding: 10px;
	padding-top: 80px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a:link {
	color: #60a5fa;
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: #93c5fd;
	text-decoration: underline;
}

a:visited {
	color: #60a5fa;
	text-decoration: none;
}

#searchpanel {
	top: 83px;
	right: 12px;
	background-color: #1e293b;
	border: 1px solid #334155;
	border-radius: 8px;
	color: #94a3b8;
}

#searchpanel li {
	color: #94a3b8
}

#latest-changes .title {
	font-style: italic;
	font-size: larger;
	letter-spacing: 3px;
	color: #94a3b8;
	position: absolute;
	width: 285px;
	height: 30px;
	background-color: #1e293b;
	margin-top: 0px;
	padding-top: 10px;
	padding-bottom: 10px;
	z-index: 10;
}

#videos .title {
	font-style: italic;
	font-size: larger;
	letter-spacing: 3px;
	color: #94a3b8;
	position: absolute;
	width: 290px;
	height: 25px;
	background-color: #1e293b;
	margin-top: 0px;
	padding-top: 10px;
	z-index: 10;
}

#introtext .title {
	font-style: italic;
	font-size: larger;
	letter-spacing: 3px;
	color: #94a3b8;
	position: absolute;
	width: 290px;
	height: 25px;
	background-color: #1e293b;
	margin-top: 0px;
	padding-top: 10px;
	z-index: 10;
}

#introtext .text {
	margin-top: 40px;
	line-height: 160%;
	color: #94a3b8;
}

#featured .text {
	margin-top: 40px;
	line-height: 160%;
	color: #94a3b8;
}

#latest-changes ul {
	margin-top: 50px;
}

#comments .title {
	font-style: italic;
	font-size: larger;
	letter-spacing: 3px;
	color: #94a3b8;
	position: absolute;
	width: 285px;
	height: 30px;
	background-color: #1e293b;
	margin-top: 0px;
	padding-top: 10px;
	padding-bottom: 10px;
	z-index: 10;
}

#comments ul {
	margin-top: 50px;
}

#intro {
    width: 972px;
    border: #334155 1px solid;
    border-radius: 10px;
    background-color: #1e293b;
    padding: 10px;
	font-size: 12pt;
	margin-bottom: 16px;
	margin-top: -2px;
	font-style: italic;
	color: #94a3b8;
}

#latest-changes {
    width: calc(40% - 30px);
    overflow-y: auto;
    overflow-x: hidden;
    border: #334155 1px solid;
    border-radius: 10px;
    background-color: #1e293b;
    float: left;
    padding-left: 10px;
    padding-right: 10px;
    height: 230px;
    margin-right: 20px;
	margin-bottom: 20px;
	color: #94a3b8;
}

#comments {
    width: calc(40% - 30px);
    overflow-y: auto;
    overflow-x: hidden;
    border: #334155 1px solid;
    border-radius: 10px;
    background-color: #1e293b;
    padding-left: 10px;
    padding-right: 10px;
    height: 230px;
    margin-bottom: 20px;
    float: left;
	margin-right: 20px;
	color: #94a3b8;
}

#videos {
    width: 296px;
    overflow-y: auto;
    overflow-x: hidden;
    border: #334155 1px solid;
    border-radius: 10px;
    background-color: #1e293b;
    padding-left: 10px;
    padding-right: 10px;
    height: 230px;
    margin-bottom: 20px;
	color: #94a3b8;
}

#introtext {
    width: 296px;
    overflow-y: auto;
    overflow-x: hidden;
    border: #334155 1px solid;
    border-radius: 10px;
    background-color: #1e293b;
    padding-left: 10px;
    padding-right: 10px;
    height: 475px;
    margin-bottom: 20px;
    float: left;
	margin-right: 20px;
	color: #94a3b8;
}

#publications {
    clear: both;
    float: left;
    background-color: #1e293b;
    overflow-y: auto;
    overflow-x: hidden;
    border: #334155 1px solid;
    border-radius: 10px;
    width: calc(100% - 40px);
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 16px;
    height: 475px;
	margin-right: 20px;
	color: #94a3b8;
}

#featured {
    clear: both;
    float: left;
    background-color: #1e293b;
    overflow-y: auto;
    overflow-x: hidden;
    border: #334155 1px solid;
    border-radius: 10px;
    width: 972px;
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 16px;
    height: 400px;
	margin-right: 20px;
	color: #94a3b8;
}

#featured > .title {
	font-style: italic;
	font-size: larger;
	letter-spacing: 3px;
	color: #94a3b8;
	position: absolute;
	width: 620px;
	height: 30px;
	background-color: #1e293b;
	margin-top: 0px;
	padding-top: 10px;
	z-index: 100;
}

#publications > .title {
	font-style: italic;
	font-size: larger;
	letter-spacing: 3px;
	color: #94a3b8;
	position: absolute;
	width: calc(100% - 70px);
	height: 30px;
	background-color: #1e293b;
	margin-top: 0px;
	padding-top: 10px;
	padding-bottom: 10px;
	z-index: 100;
}

#publications table {
	margin-top: 50px;
	color: #94a3b8;
}

#address {
	position: fixed;
	font-size: smaller;
	color: #94a3b8;
	left: 4px;
	top: 18px;
	line-height: 140%;
}

#document-table {
	margin-top: 20px;
}

#document-table td {
	padding: 5px;
	border: none;
	color: #94a3b8;
}

#document-table .last-row {
	border-bottom: #64748b 1pt solid;
	text-align: center;
}

#document-table .title {
	background: linear-gradient(to top, #64748b, #cbd5e1, #f1f5f9);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.2;
	font-size: 1.25rem; /* h5 size */
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Fallback for browsers that don't support background-clip */
@supports not (-webkit-background-clip: text) {
	#document-table .title {
		color: #f1f5f9;
		background: none;
	}
}

/* Bold elements in titles should be white for better visibility */
#document-table .title b {
	color: #ffffff !important;
	-webkit-background-clip: initial !important;
	-webkit-text-fill-color: initial !important;
	background-clip: initial !important;
}

#document-table .meta-data {
	background-color: #334155;
	color: #64748b;
	padding: 0px;
	text-align: center;
}

#document-table .bgcol1, #comments .bgcol1, #latest-changes .bgcol1 {
	background-color: rgba(74, 158, 255, 0.05);
}

#credits {
	display: block;
	width: 750px;
	float: right;
	margin-top: 6px;
	padding-top: 20px;
}

#powered-by {
	font-style: italic;
	margin-bottom: 10px;
	color: #94a3b8;
}

#mongo-logo, #nodejs-logo, #dita-logo, #xml-logo {
	filter: invert(1) hue-rotate(-90deg);
	opacity: 0.8;
}

#mongo-logo {
	width: 200px;
	display: block;
	margin-bottom: 10px;
}

#nodejs-logo {
	display: block;
	width: 140px;
	margin-left: 5px;
	margin-bottom: 10px;
}

#dita-logo {
	display: block;
	margin-left: 5px;
	margin-bottom: 20px;
}

#xml-logo {
	display: block;
	width: 150px;
	margin-left: 5px;
	margin-bottom: 29px;
}

#header-bar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 60px;
	background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
	border-bottom: 1px solid #475569;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#header-bar h2 {
	margin: 0;
	color: #94a3b8;
	font-size: 18px;
	font-weight: 500;
	letter-spacing: 1px;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}


#youtube {
	margin-top: 38px;
	border-radius: 8px;
}

h1 {
	width: calc(100% - 40px);
	color: #f1f5f9;
	font-weight: 600;
	margin: 0;
	padding: 1rem 0;
	margin-right: 20px;
}


.searchfield {
	background-color: #334155;
	border: 1px solid #475569;
	color: #94a3b8;
	padding: 0.5rem;
	border-radius: 6px;
	font-family: inherit;
	width: calc(100% - 2rem);
}

.searchfield:focus {
	background-color: #334155;
	border-color: #4a9eff;
	outline: none;
	box-shadow: 0 0 0 0.2rem rgba(74, 158, 255, 0.25);
}

.searchfield::placeholder {
	color: #9ca3af;
}

#logo-image {
	position: fixed !important;
	right: 20px !important;
	left: auto !important;
	z-index: 1000 !important;
	top: 0px !important;
	width: 40px;
	height: 40px;
}

#logo-image:hover {
	opacity: 1;
	transform: scale(1.05);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#xml-book-image, #security-book-image {
	width: 400px;
	border: 1pt #334155 solid;
	border-radius: 8px;
	transition: transform 0.2s ease;
}

#xml-book-image:hover, #security-book-image:hover {
	transform: scale(1.02);
}

#xml-book-image {
	float: left;
	margin-left: 50px;
}

#security-book-image {
	float: right;
	margin-right: 50px;
}

/* Highlight boxes for special content */
b {
	font-weight: 600;
}

/* Link styling improvements */
.xml-book, .security-book {
	color: #4a9eff;
	font-weight: 600;
	text-decoration: underline;
	text-underline-position: under;
}

.xml-book:hover, .security-book:hover {
	color: #60a5fa;
}

/* Scrollbar styling */
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background: #1e293b;
}

::-webkit-scrollbar-thumb {
	background: #475569;
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: #64748b;
}

/* Menu items styling */
.info.menu {
	display: inline-block;
	padding: 0.5rem;
	background-color: rgba(74, 158, 255, 0.1);
	border: 1px solid rgba(74, 158, 255, 0.3);
	border-radius: 6px;
	transition: all 0.2s ease;
	text-decoration: none;
}

.info.menu:hover {
	background-color: rgba(74, 158, 255, 0.2);
	border-color: #4a9eff;
	transform: translateY(-1px);
}

.info.menu img {
	filter: invert(1) hue-rotate(-90deg);
	opacity: 0.8;
}

/* Table improvements */
table {
	color: #94a3b8;
}

td, th {
	color: #94a3b8;
}

/* Form and input improvements */
input, select, textarea {
	background-color: #334155;
	border: 1px solid #475569;
	color: #94a3b8;
	border-radius: 6px;
}

input:focus, select:focus, textarea:focus {
	border-color: #4a9eff;
	box-shadow: 0 0 0 0.2rem rgba(74, 158, 255, 0.25);
	outline: none;
}