:root {
	--xp-blue-dark: #245edc;
	--xp-blue-medium: #3b88fd;
	--xp-blue-light: #73b3ff;
	--xp-green-start: #329632;
	--xp-green-light: #9bdc9b;
	--xp-grey-dark: #4a4a4a;
	--xp-grey-medium: #d4d0c8;
	--xp-grey-light: #eff3f7;
	--xp-border-dark: #1f3d8a;
	--xp-border-light: #a9a9a9;
	--xp-font-color: #000000;
	--xp-window-bg: #eff3f7;
	--xp-active-title-bg: linear-gradient(to right, #0a246a, #a6caf0);
	--xp-inactive-title-bg: linear-gradient(to right, #7b8ea8, #b0c2d7);
	--xp-button-bg: #d4d0c8;
	--xp-button-hover: #e0e0e0;
	--xp-selection-blue: #316ac5;
	--xp-selection-text: #ffffff;
}

.crt-scanlines {
	position: relative;
}

.crt-scanlines::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		to bottom,
		rgba(255, 255, 255, 0.03) 50%,
		rgba(0, 0, 0, 0.1) 50%
	);
	background-size: 100% 4px;
	pointer-events: none;
	z-index: 100;
}

.crt-effect::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(ellipse at center, rgba(0,0,0,0) 75%, rgba(0,0,0,0.3) 100%);
	pointer-events: none;
	z-index: 9999;
}

body {
	margin: 0;
	font-family: 'Roboto Mono', monospace;
	overflow: hidden;
	background: var(--xp-blue-medium);
	color: var(--xp-font-color);
	font-size: 14px;
}

#desktop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: calc(100vh - 40px);
	background: 
		url('../assets/images/desk/windows_xp_original.jpg') center center / cover no-repeat;
	background-color: var(--xp-blue-dark);
	overflow: hidden;
	z-index: 0;
}

#taskbar {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 40px;
	background: linear-gradient(to right, 
		rgba(4, 78, 152, 0.8), 
		rgba(58, 110, 165, 0.8), 
		rgba(4, 78, 152, 0.8));
	border-top: 1px solid var(--xp-border-light);
	display: flex;
	align-items: center;
	padding: 0 5px;
	box-sizing: border-box;
	z-index: 1000;
	font-family: 'Press Start 2P', cursive;
	font-size: 10px;
	color: var(--xp-selection-text);
}

#taskbar-start-button {
	height: 30px;
	padding: 0 10px;
	margin-right: 10px;
	background: linear-gradient(to bottom, var(--xp-green-start), #2a812a);
	border-top: 1px solid var(--xp-green-light);
	border-left: 1px solid var(--xp-green-light);
	border-right: 1px solid var(--xp-grey-dark);
	border-bottom: 1px solid var(--xp-grey-dark);
	border-radius: 3px;
	display: flex;
	align-items: center;
	box-shadow: inset -1px -1px #1c611c, inset 1px 1px #48c648;
}

#taskbar-start-button:active {
	background: linear-gradient(to bottom, #2a812a, var(--xp-green-start));
	box-shadow: inset 1px 1px #1c611c, inset -1px -1px #48c648;
}

.windows-logo {
	height: 20px;
	margin-right: 5px;
}

#taskbar-windows {
	flex-grow: 1;
	height: 100%;
	display: flex;
	align-items: center;
	gap: 5px;
	overflow-x: auto;
	white-space: nowrap;
	-webkit-overflow-scrolling: touch;
	padding-left: 5px;
}

#taskbar-clock {
	padding: 0 10px;
	height: 100%;
	display: flex;
	align-items: center;
	background: var(--xp-blue-dark);
	border-left: 1px solid var(--xp-blue-light);
	border-bottom: 1px solid var(--xp-blue-light);
	box-shadow: inset 1px 1px #000000, inset -1px -1px #808080;
}

.xp-button {
	background: var(--xp-button-bg);
	border: 1px solid;
	border-color: var(--xp-border-light) var(--xp-grey-dark) var(--xp-grey-dark) var(--xp-border-light);
	padding: 3px 6px;
	font-size: 14px;
	text-align: center;
	white-space: nowrap;
	cursor: pointer;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 23px;
}

.xp-button:hover {
	background: var(--xp-button-hover);
}

.xp-button:active {
	border-color: var(--xp-grey-dark) var(--xp-border-light) var(--xp-border-light) var(--xp-grey-dark);
	background: var(--xp-button-hover);
}

.xp-button-small {
	background: var(--xp-button-bg);
	border: 1px solid;
	border-color: var(--xp-border-light) var(--xp-grey-dark) var(--xp-grey-dark) var(--xp-border-light);
	padding: 1px 4px;
	font-size: 10px;
	text-align: center;
	white-space: nowrap;
	cursor: pointer;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 20px;
}

.xp-button-small:hover {
	background: var(--xp-button-hover);
}

.xp-button-small:active {
	border-color: var(--xp-grey-dark) var(--xp-border-light) var(--xp-border-light) var(--xp-grey-dark);
	background: var(--xp-button-hover);
}

.xp-window {
	position: absolute;
	background-color: var(--xp-window-bg);
	border: 1px solid var(--xp-border-dark);
	box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
	min-width: 200px;
	min-height: 100px;
	resize: none;
	overflow: hidden;
	z-index: 100;
	display: flex;
	border-radius: 5px;
	flex-direction: column;
}

.xp-window-header {
	background: linear-gradient(to bottom, #0058ee 0%, #3593ff 4%, #288eff 18%, #127dff 20%, #0369fc 39%, #0262ee 41%, #0057e5 100%);
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 5px;
	color: white;
	font-weight: bold;
	cursor: grab;
	user-select: none;
	flex-shrink: 0;
	border-radius: 5px 5px 0 0;
	text-shadow: 1px 1px 1px #000;
	font-family: 'Trebuchet MS', sans-serif;
	font-size: 13px;
	overflow: hidden;
}

.xp-window-header.inactive {
	background: linear-gradient(to bottom, #7697e7 0%, #7e9ee3 3%, #94afe8 6%, #97b4e9 8%, #82a5e4 14%, #7c9fe2 17%, #7f96e2 25%, #7b94df 56%, #6a82d5 81%, #657ecf 89%, #6882d9 100%);
	color: #d8e4f8;
	text-shadow: none;
}

.xp-window-header .title {
	flex-grow: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 13px;
	font-family: Arial, sans-serif;
}

.xp-window-buttons {
	display: flex;
	gap: 3px;
	margin-right: 2px;
}

.xp-window-button {
	width: 21px;
	height: 21px;
	background: linear-gradient(to bottom, #fff 0%, #e8eaec 10%, #dcdfe3 50%, #c6cad1 50%, #c8cdd3 100%);
	border: 1px solid #fff;
	border-radius: 3px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	cursor: pointer;
	line-height: 1;
	font-family: sans-serif;
	font-size: 11px;
	color: #000;
	box-shadow: 0 0 1px #000;
	text-shadow: none;
	opacity: 0.8;
}

.xp-window-button:hover {
	background: linear-gradient(to bottom, #fff 0%, #e8eaec 10%, #dcdfe3 50%, #c6cad1 50%, #c8cdd3 100%);
	opacity: 1;
	filter: brightness(1.1);
}

.xp-window-button.close-btn {
	background: linear-gradient(to bottom, #e99e9b 0%, #e27d78 10%, #d75d56 50%, #c2403b 50%, #cf635f 100%);
	color: white;
	border-color: #fff;
}

.xp-window-button.close-btn:hover {
	background: linear-gradient(to bottom, #ecaba8 0%, #e78e89 10%, #de706a 50%, #d0534e 50%, #d97874 100%);
}

.xp-window-button:active {
	border-color: var(--xp-grey-dark) var(--xp-border-light) var(--xp-border-light) var(--xp-grey-dark);
}

.xp-window-content {
	flex-grow: 1;
	padding: 10px;
	overflow-y: auto;
	overflow-x: hidden;
	color: var(--xp-font-color);
}

.xp-window-content::-webkit-scrollbar {
	width: 16px;
	height: 16px;
}

.xp-window-content::-webkit-scrollbar-track {
	background-color: var(--xp-grey-medium);
	border: 1px solid var(--xp-border-light);
	box-shadow: inset 1px 1px 2px rgba(0,0,0,0.2);
}

.xp-window-content::-webkit-scrollbar-thumb {
	background-color: var(--xp-button-bg);
	border: 1px solid;
	border-color: var(--xp-border-light) var(--xp-grey-dark) var(--xp-grey-dark) var(--xp-border-light);
	box-shadow: inset -1px -1px #808080, inset 1px 1px #ffffff;
}

.xp-window-content::-webkit-scrollbar-thumb:hover {
	background-color: var(--xp-button-hover);
}

.xp-window-content::-webkit-scrollbar-button {
	background-color: var(--xp-button-bg);
	border: 1px solid;
	border-color: var(--xp-border-light) var(--xp-grey-dark) var(--xp-grey-dark) var(--xp-border-light);
	height: 16px;
	width: 16px;
	cursor: pointer;
}

.xp-window-content::-webkit-scrollbar-button:hover {
	background-color: var(--xp-button-hover);
}

.xp-window-content::-webkit-scrollbar-button:vertical:decrement {
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23000"><polygon points="8 4 4 12 12 12"></polygon></svg>');
	background-repeat: no-repeat;
	background-position: center;
	transform: rotate(180deg);
}
.xp-window-content::-webkit-scrollbar-button:vertical:increment {
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23000"><polygon points="8 4 4 12 12 12"></polygon></svg>');
	background-repeat: no-repeat;
	background-position: center;
}
.xp-window-content::-webkit-scrollbar-button:horizontal:decrement {
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23000"><polygon points="4 8 12 4 12 12"></polygon></svg>');
	background-repeat: no-repeat;
	background-position: center;
	transform: rotate(180deg);
}
.xp-window-content::-webkit-scrollbar-button:horizontal:increment {
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23000"><polygon points="4 8 12 4 12 12"></polygon></svg>');
	background-repeat: no-repeat;
	background-position: center;
}

#project-icons-container {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 0;
}

.project-icon {
	width: 75px;
	min-height: 70px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	color: var(--xp-selection-text);
	text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
	cursor: default;
	user-select: none;
	position: absolute;
	vertical-align: top;
	padding: 5px;
	box-sizing: border-box;
}

.project-icon img {
	width: 42px;
	height: 42px;
	object-fit: cover;
	display: block;
	margin-bottom: 2px;
	border: 1px solid transparent;
	border-radius: 4px;
	z-index: 10;
}

.project-icon span {
	font-size: 11px;
	color: inherit;
	line-height: 1.3;
	padding: 0 2px;
	border: 1px solid transparent;
	border-radius: 2px;
	word-wrap: break-word;
	overflow-wrap: break-word;
	word-break: break-all;
	word-wrap: break-word;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	max-height: 2.6em;
	position: relative;
	z-index: 10;
}

.project-icon:hover span,
.project-icon.selected span {
	height: auto;
	max-height: none;
	display: block;
	overflow: visible;
	z-index: 20;
	background-color: var(--xp-blue-dark);
}

.project-icon.selected span {
	background-color: var(--xp-selection-blue);
	border: 1px dotted rgba(255, 255, 255, 0.5);
}

.project-icon.selected img {
	filter: brightness(0.7);
}

.folder-content .project-icon {
	position: relative;
	margin: 5px;
	height: auto;
	color: var(--xp-font-color);
	text-shadow: none;
}

.folder-content .project-icon span {
	color: var(--xp-font-color);
}

.folder-content .project-icon:hover span,
.folder-content .project-icon.selected span {
	color: var(--xp-selection-text);
	text-shadow: none;
}

.project-icon:active {
	filter: brightness(0.8);
}

.project-window .xp-window-content {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.project-window .project-image-preview {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto 10px auto;
	border: 1px solid var(--xp-border-dark);
}

.project-window .project-description {
	font-size: 14px;
	line-height: 1.4;
}

.project-window .project-links {
	display: flex;
	gap: 10px;
	margin-top: 15px;
	flex-wrap: wrap;
}

.project-window .project-links a {
	text-decoration: none;
	color: var(--xp-font-color);
}

#start-menu .xp-window-header {
	background: linear-gradient(to right, #000080, var(--xp-blue-dark));
	height: 30px;
	cursor: default;
}

#start-menu .start-menu-content {
	display: flex;
	flex-grow: 1;
}

#start-menu.hidden {
	display: none
}

.start-menu-column {
	padding: 10px;
}

.start-menu-column.left-column {
	width: 120px;
	background: linear-gradient(to bottom, #1f3d8a, #0a246a);
	color: white;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.start-menu-profile {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 20px;
	font-weight: bold;
	font-size: 16px;
}

.start-menu-profile img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 2px solid white;
	margin-bottom: 5px;
}

#start-menu-links {
	list-style: none;
	padding: 0;
	margin: 0;
	flex-grow: 1;
}

#start-menu-links li {
	margin-bottom: 5px;
}

#start-menu-links a {
	display: block;
	padding: 5px;
	color: var(--xp-font-color);
	text-decoration: none;
	background-color: rgba(255,255,255,0.1);
	border-radius: 3px;
	transition: background-color 0.1s ease;
}

#start-menu-links a:hover {
	background-color: var(--xp-selection-blue);
}

.start-menu-column.right-column {
	flex-grow: 1;
	background-color: var(--xp-window-bg);
	border-left: 1px solid var(--xp-border-light);
	max-height: 345px;
	overflow-y: auto;
}

.start-menu-column.right-column h4 {
	margin-top: 0;
	margin-bottom: 10px;
	color: var(--xp-blue-dark);
}

#start-menu-categories {
	overflow-y: auto;
	border: 1px solid #d4d0c8;
	padding: 2px;
	background: white;
}

#start-menu-categories li {
	margin-bottom: 3px;
}

#start-menu-categories a {
	display: block;
	padding: 3px 5px;
	text-decoration: none;
	color: var(--xp-font-color);
}

#start-menu-categories a:hover {
	background-color: var(--xp-selection-blue);
	color: var(--xp-selection-text);
}

.shutdown-button {
	margin-top: auto;
	width: fit-content;
	display: block;
	margin-left: auto;
	margin-right: auto;
	font-family: 'Roboto Mono', monospace;
	font-weight: bold;
	background: linear-gradient(to bottom, #d4d0c8, #acabac);
}

#context-menu {
	overflow: visible;
	border: 1px solid var(--xp-border-dark);
	box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
	padding: 2px;
	z-index: 1100;
	min-width: 150px;
	background-color: var(--xp-window-bg);
	border-radius: 0;
	position: absolute;
}

#context-menu.hidden {
	display: none;
}

#context-menu ul {
	list-style: none;
	margin: 0;
	position: relative;
	padding: 0;
}

#context-menu li {
	padding: 6px 15px 6px 25px;
	cursor: pointer;
	position: relative;
	white-space: nowrap;
	color: var(--xp-font-color);
}

#context-menu li:hover {
	background-color: var(--xp-selection-blue);
	color: var(--xp-selection-text);
}

#context-menu li.separator {
	height: 1px;
	background: linear-gradient(to right, rgba(0,0,0,0.22), rgba(0,0,0,0.06));
	margin: 6px 0;
	padding: 0;
	cursor: default;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 1px 0 rgba(0,0,0,0.06);
}

#context-menu li.has-submenu {
	position: relative;
}

#context-menu li.has-submenu::after {
	content: '►';
	position: absolute;
	right: 5px;
	color: var(--xp-font-color);
}

#context-menu li.has-submenu:hover::after {
	color: var(--xp-selection-text);
}

#context-menu .submenu {
	position: absolute;
	left: 100%;
	top: -3px;
	background-color: var(--xp-window-bg);
	border: 1px solid var(--xp-border-dark);
	box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
	padding: 2px;
	min-width: 120px;
	z-index: calc(var(--z-index-context-menu) + 1);
	display: none;
}

#context-menu li.has-submenu:hover .submenu {
	display: block;
}

#context-menu .submenu li {
	padding: 6px 15px;
}
.xp-window.opening {
	transform: scale(0.8);
	opacity: 0;
	transition: transform 0.2s ease-out, opacity 0.2s ease-out;
}

.xp-window.opened {
	transform: scale(1);
	opacity: 1;
}

.xp-window {
	border-radius: 5px;
}

.xp-window.maximized {
	border: none;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
}

.xp-window.maximized .xp-window-header {
	border-radius: 0;
}

.xp-window.minimizing {
	transition: all 0.3s ease-in-out;
	transform-origin: bottom left;
}

.xp-window.maximizing {
	transition: all 0.3s ease-in-out;
}

.taskbar-window-btn.active {
	background: #1e4598;
	box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.6), inset -1px -1px 2px rgba(255, 255, 255, 0.1);
	color: #ffffff;
}

.taskbar-window-btn {
	height: 25px;
	padding: 0 5px;
	background: linear-gradient(to bottom, #3980f4 0%, #3172e8 5%, #1852c2 50%, #1546ad 100%);
	border: 0;
	border-radius: 2px;
	display: flex;
	align-items: center;
	color: white;
	cursor: pointer;
	font-family: 'Tahoma', sans-serif;
	font-size: 11px;
	max-width: 160px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	margin-top: 2px;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

.taskbar-window-btn:hover {
	background: linear-gradient(to bottom, #5494fa 0%, #4c87ed 5%, #2a65d7 50%, #2053c0 100%);
}

.taskbar-window-btn.active {
	background: linear-gradient(to bottom, #1d4698 0%, #1a408c 5%, #133273 50%, #0f275e 100%);
	box-shadow: inset 1px 1px 2px rgba(0,0,0,0.5);
	color: #ececec;
}

.quick-launch {
	display: flex;
	align-items: center;
	padding: 0 5px;
	border-right: 1px solid var(--xp-border-light);
	border-left: 1px solid var(--xp-blue-dark);
	height: 100%;
}

.quick-launch-icon {
	width: 22px;
	height: 22px;
	margin: 0 3px;
	cursor: pointer;
	border: 1px solid transparent;
	padding: 1px;
}

.quick-launch-icon:hover {
	border-color: rgba(255,255,255,0.3);
}

.quick-launch-icon:active {
	border-color: var(--xp-border-dark);
	background-color: rgba(0,0,0,0.1);
}

#calendar-popup {
	position: absolute;
	bottom: 45px;
	right: 5px;
	width: 215px;
	height: 220px;
	z-index: 4000;
	resize: none;
	overflow: hidden;
	padding: 0;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--xp-border-dark);
	box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
	user-select: none;
}

#calendar-popup.hidden {
	display: none;
}

#scanlines-overlay {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 2147483647;
}

#scanlines-overlay::before,
#scanlines-overlay::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-repeat: repeat;
	background-size: 100% 5px;
}

#scanlines-overlay::before {
	background-image: repeating-linear-gradient(to bottom, rgba(0,0,0,0.06) 0 1px, rgba(255,255,255,0.02) 1px 4px);
	mix-blend-mode: overlay;
	opacity: 0.85;
	animation: scanMove 20s linear infinite;
}

#scanlines-overlay::after {
	background-image: repeating-linear-gradient(to bottom, rgba(0,0,0,0.12) 0 1px, transparent 1px 6px);
	mix-blend-mode: multiply;
	opacity: 0.18;
	animation: scanPulse 6s ease-in-out infinite;
}

@keyframes scanMove {
	0% { background-position: 0 0; }
	100% { background-position: 0 200%; }
}

@keyframes scanPulse {
	0% { opacity: 0.12; background-position: 0 0; }
	50% { opacity: 0.25; background-position: 0 2px; }
	100% { opacity: 0.12; background-position: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
	#scanlines-overlay::before,
	#scanlines-overlay::after {
		animation: none;
	}
}

@supports not (mix-blend-mode: overlay) {
	#scanlines-overlay::before {
		background-image: repeating-linear-gradient(to bottom, rgba(0,0,0,0.06) 0 1px, transparent 1px 4px);
		opacity: 0.6;
	}
	#scanlines-overlay::after { display: none; }
}

#calendar-popup .xp-window-content {
	padding: 0;
}

#calendar-header {
	background: var(--xp-active-title-bg);
	color: white;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 3px 5px;
	font-weight: bold;
	font-size: 13px;
	flex-shrink: 0;
}

#calendar-header button {
	background: none;
	border: none;
	color: white;
	font-weight: bold;
	cursor: pointer;
	font-size: 14px;
	padding: 0 5px;
}

#calendar-days-header {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	text-align: center;
	font-size: 11px;
	padding: 4px 2px;
	background-color: var(--xp-window-bg);
	border-bottom: 1px solid var(--xp-border-light);
	font-weight: bold;
}

#calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	flex-grow: 1;
	padding: 2px;
}

.calendar-day {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	cursor: default;
}

.calendar-day:hover {
	background-color: var(--xp-selection-blue);
	color: var(--xp-selection-text);
}

.calendar-day.today {
	border: 1px solid var(--xp-blue-dark);
	font-weight: bold;
}

#calendar-footer {
	border-top: 1px solid var(--xp-border-light);
	padding: 5px;
	text-align: center;
	font-size: 11px;
	font-weight: bold;
	flex-shrink: 0;
	cursor: pointer;
}

#calendar-footer:hover {
	background-color: var(--xp-selection-blue);
	color: var(--xp-selection-text);
}

.project-icon.drop-target, .folder-content.drop-target, #desktop.drop-target {
	background-color: rgba(50, 100, 200, 0.3);
	outline: 2px dashed var(--xp-selection-blue);
}

.project-icon input[type="text"] {
	width: 100%;
	box-sizing: border-box;
	font-size: 12px;
	font-family: 'Roboto Mono', monospace;
	text-align: center;
	border: 1px solid var(--xp-selection-blue);
	background-color: var(--xp-window-bg);
	color: var(--xp-font-color);
	padding: 1px;
	outline: none;
	position: absolute;
	bottom: 0;
	left: 0;
}

.folder-window-layout {
	display: flex;
	flex-direction: column;
	height: 100%;
	background-color: var(--xp-window-bg);
}

.folder-menu-bar {
	display: flex;
	background: var(--xp-window-bg);
	border-bottom: 1px solid var(--xp-border-light);
	padding: 1px 2px;
	font-size: 11px;
	flex-shrink: 0;
	user-select: none;
}

.folder-menu-bar ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
}

.folder-menu-bar li {
	padding: 2px 6px;
	cursor: pointer;
	border-radius: 2px;
}

.folder-menu-bar li:hover {
	background-color: var(--xp-selection-blue);
	color: var(--xp-selection-text);
}

.folder-toolbar {
	display: flex;
	align-items: center;
	padding: 2px 4px;
	border-bottom: 1px solid var(--xp-border-light);
	background: var(--xp-window-bg);
	flex-shrink: 0;
}

.folder-toolbar-separator {
	width: 1px;
	height: 20px;
	background: linear-gradient(to bottom, rgba(0,0,0,0.22), rgba(0,0,0,0.06));
	margin: 0 6px;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 1px 0 rgba(0,0,0,0.06);
}

.folder-nav-buttons,
.folder-view-buttons {
	display: flex;
	gap: 2px;
	margin-right: 8px;
}

.folder-nav-btn {
	background: none;
	border: 1px solid transparent;
	padding: 1px;
	border-radius: 3px;
	cursor: pointer;
	width: 24px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.folder-nav-btn img {
	width: 20px;
	height: 20px;
}

.folder-nav-btn:hover:not(:disabled) {
	border-color: var(--xp-border-dark);
	background-color: var(--xp-button-hover);
}

.folder-nav-btn:disabled {
	filter: grayscale(1) opacity(0.5);
	cursor: not-allowed;
}

.folder-nav-btn:disabled img {
	opacity: 0.5;
	filter: grayscale(100%);
}

.folder-address-bar-container {
	flex-grow: 1;
	display: flex;
	align-items: center;
	border: 1px solid var(--xp-border-dark);
	background: white;
	padding: 1px;
}

.folder-address-bar-container span {
	padding: 0 5px;
	font-size: 11px;
	color: var(--xp-grey-dark);
	user-select: none;
}

.folder-address-bar {
	width: 100%;
	border: none;
	outline: none;
	font-family: 'Roboto Mono', monospace;
	font-size: 13px;
	padding: 2px;
}

.folder-main-layout {
	display: flex;
	flex-grow: 1;
	overflow: hidden;
}

.folder-sidebar {
	width: 200px;
	background-color: #e7f1fe;
	border-right: 1px solid var(--xp-border-light);
	padding: 10px;
	overflow-y: auto;
	font-size: 11px;
	flex-shrink: 0;
	transition: width 0.2s ease-in-out, padding 0.2s ease-in-out;
}

.folder-sidebar.hidden {
	width: 0;
	padding: 10px 0;
	overflow: hidden;
}

.sidebar-section {
	background: linear-gradient(180deg, #f6fbff 0%, #e9f3ff 100%);
	border: 1px solid rgba(60,100,160,0.12);
	border-radius: 8px;
	margin-bottom: 12px;
	overflow: hidden;
	box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 6px 18px rgba(20,40,80,0.06);
}

.sidebar-section h3 {
	background: linear-gradient(90deg, rgba(255,255,255,0.6), rgba(255,255,255,0));
	color: #123a6b;
	font-size: 12px;
	font-weight: 700;
	padding: 8px 10px;
	margin: 0;
	border-bottom: 1px solid rgba(30,70,140,0.06);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	user-select: none;
}

.sidebar-section ul {
	list-style: none;
	margin: 0;
	padding: 10px;
	display: block;
}

.sidebar-section li {
	margin-bottom: 5px;
}

.sidebar-section a {
	color: #08326a;
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 8px;
	border-radius: 6px;
	transition: background 120ms ease, color 120ms ease, transform 120ms ease;
}

.sidebar-section a:hover {
	background: linear-gradient(90deg, rgba(49,106,197,0.08), rgba(49,106,197,0.03));
	text-decoration: none;
	transform: translateY(-1px);
}

.sidebar-section .collapse-btn {
	background: none;
	border: 0;
	cursor: pointer;
	padding: 4px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #0b3b7a;
}
.sidebar-section.collapsed ul { display: none; }


.sidebar-section a.disabled {
	color: #888888;
	cursor: not-allowed;
	pointer-events: none;
}

.sidebar-section a.disabled:hover {
	text-decoration: none;
}

.sidebar-section .details-content {
	padding: 8px;
	line-height: 1.4;
}

.sidebar-section .details-content b {
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.folder-main-content {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background-color: #ffffff;
}

.folder-content-wrapper {
	flex-grow: 1;
	overflow-y: auto;
	padding: 5px;
	position: relative;
}

.folder-content {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-content: flex-start;
}

.folder-content.view-details {
	display: block;
}

.folder-content .details-header {
	display: flex;
	font-weight: bold;
	border-bottom: 1px solid var(--xp-border-light);
	padding: 4px;
	background: var(--xp-window-bg);
	position: sticky;
	top: 0;
	z-index: 1;
}

.folder-content .details-row {
	display: flex;
	padding: 4px;
	border-bottom: 1px dotted var(--xp-border-light);
	align-items: center;
}

.folder-content .details-row:hover,
.folder-content .project-icon.selected {
	background: #e0e8f6;
}

.folder-content .details-row .project-icon {
	width: auto;
	height: auto;
	flex-direction: row;
	gap: 5px;
	color: var(--xp-font-color);
	text-shadow: none;
	flex: 1;
}

.folder-content .details-row .project-icon img {
	width: 16px;
	height: 16px;
	margin: 0;
}

.folder-content .details-row .project-icon span {
	font-size: 12px;
	display: block;
	-webkit-box-orient: horizontal;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-height: none;
	line-height: normal;
	word-break: normal;
	overflow-wrap: normal;
}

.col-name {
	flex: 1;
	min-width: 150px;
}

.col-size {
	width: 100px;
	text-align: right;
	padding-right: 10px;
}

.col-type {
	width: 120px;
}

.col-modified {
	width: 150px;
}

.folder-status-bar {
	display: flex;
	justify-content: space-between;
	padding: 2px 5px;
	border-top: 1px solid var(--xp-border-light);
	font-size: 11px;
	background: var(--xp-window-bg);
	flex-shrink: 0;
	user-select: none;
}

.status-bar-left,
.status-bar-right {
	border: 1px solid transparent;
	padding: 0 10px;
}

.project-view-layout {
	display: grid;
	grid-template-columns: 200px 1fr;
	grid-template-rows: 1fr auto;
	height: 100%;
	background-color: var(--xp-window-bg);
}

.project-view-sidebar {
	grid-column: 1 / 2;
	grid-row: 1 / 2;
	background-color: #e7f1fe;
	border-right: 1px solid var(--xp-border-light);
	padding: 15px;
	display: flex;
	flex-direction: column;
	gap: 15px;
	overflow-y: auto;
}

.project-view-main {
	grid-column: 2 / 3;
	grid-row: 1 / 2;
	padding: 10px 20px;
	overflow-y: auto;
	background: #ffffff;
}

.project-view-statusbar {
	grid-column: 1 / 3;
	grid-row: 2 / 3;
	display: flex;
	align-items: center;
	padding: 2px 5px;
	border-top: 1px solid var(--xp-border-light);
	font-size: 11px;
	background: var(--xp-window-bg);
	user-select: none;
	gap: 10px;
}

.status-separator {
	border-left: 1px solid rgba(0,0,0,0.14);
	height: 16px;
	margin: 0 6px;
	box-shadow: none;
}

.project-view-image-container {
	padding: 4px;
	border: 1px solid var(--xp-border-light);
	background-color: #ffffff;
	margin-bottom: 10px;
	text-align: center;
}

.project-view-image {
	max-width: 100%;
	height: auto;
	object-fit: cover;
	max-height: 150px;
}

.project-view-sidebar h4 {
	margin: 0;
	font-size: 11px;
	font-weight: bold;
	color: #2c4c89;
	border-bottom: 1px solid #99b9e5;
	padding-bottom: 4px;
}

.project-view-links {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.project-link-button {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	width: 100%;
	justify-content: flex-start;
	padding: 5px 8px;
	font-size: 12px;
}

.project-link-button img {
	width: 16px;
	height: 16px;
}

.project-details {
	margin-top: auto;
	font-size: 11px;
}

.project-details p {
	margin: 5px 0;
	line-height: 1.4;
}

.project-view-main h2 {
	margin-top: 0;
	margin-bottom: 15px;
	color: var(--xp-blue-dark);
	font-size: 20px;
	font-family: 'Trebuchet MS', sans-serif;
}

.project-long-description {
	font-size: 14px;
	line-height: 1.6;
	color: #333333;
}

#start-menu {
	top: unset;
	bottom: 0px;
	left: 0;
	width: 470px;
	height: 425px;
	box-shadow: 4px 4px 15px rgba(0,0,0,0.6);
	z-index: 5000;
	display: flex;
	flex-direction: column;
	border: 2px solid var(--xp-border-dark);
	resize: none;
}

#start-menu.hidden {
	display: none;
}

#start-menu .xp-window-header {
	display: none;
}

.start-menu-header {
	background: linear-gradient(to bottom, #5986d0, #1e48a3);
	padding: 8px 10px;
	border-bottom: 1px solid #1e48a3;
	border-radius: 5px 5px 0 0;
	flex-shrink: 0;
}

.start-menu-profile {
	display: flex;
	align-items: center;
	font-weight: bold;
	font-size: 16px;
	color: white;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.start-menu-profile img {
	width: 40px;
	height: 40px;
	border-radius: 5px;
	border: 1px solid rgba(255, 255, 255, 0.7);
	margin-right: 10px;
}

#start-menu .start-menu-content {
	display: flex;
	flex-grow: 1;
	background-color: #d4e5f7;
	overflow: hidden;
}

.start-menu-column {
	padding: 5px;
	display: flex;
	flex-direction: column;
}

.start-menu-column.left-column {
	width: 50%;
	background: linear-gradient(to bottom, #d4e5f7, #a4c5ee);
	border-right: 1px solid #7a91b4;
}

.start-menu-column.right-column {
	flex-grow: 1;
	background-color: white;
}

.start-menu-column ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.start-menu-column .separator {
	height: 1px;
	background: linear-gradient(to right, rgba(34,70,140,0.22), rgba(0,0,0,0.06));
	margin: 6px 0;
	flex-shrink: 0;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

.start-menu-item {
	display: flex;
	align-items: center;
	padding: 5px;
	cursor: pointer;
	border-radius: 3px;
	color: var(--xp-font-color);
	text-decoration: none;
}

.start-menu-item:hover {
	background-color: var(--xp-selection-blue);
	color: var(--xp-selection-text);
}

.start-menu-item.disabled {
	color: #888;
	cursor: not-allowed;
}

.start-menu-item.disabled:hover {
	background-color: transparent;
	color: #888;
}

.start-menu-item img {
	width: 32px;
	height: 32px;
	margin-right: 10px;
}

.start-menu-pinned .start-menu-item div {
	display: flex;
	flex-direction: column;
}

.start-menu-pinned .start-menu-item span {
	font-size: 11px;
	opacity: 0.8;
}

.start-menu-recent {
	flex-grow: 1;
	overflow-y: auto;
	overflow-x: hidden;
	padding-right: 2px;
}
.start-menu-recent .start-menu-item img {
	width: 24px;
	height: 24px;
}

.all-programs-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(to bottom, #7fc34e, #5a9c3b);
	color: white;
	padding: 6px;
	border-radius: 3px;
	border: 1px solid #4a882e;
	box-shadow: inset 0 1px 0 #a9d98e;
	margin-top: 5px;
	cursor: pointer;
	position: relative;
	flex-shrink: 0;
}
.all-programs-btn:hover {
	background: linear-gradient(to bottom, #92d169, #69ac4b);
}
.all-programs-btn span {
	flex-grow: 1;
	text-align: center;
}

.all-programs-btn svg {
	width: 16px;
	height: 16px;
	fill: white;
}

#all-programs-submenu {
	position: absolute;
	left: 100%;
	bottom: 0;
	background-color: var(--xp-window-bg);
	border: 1px solid var(--xp-border-dark);
	box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
	padding: 2px;
	min-width: 180px;
	max-height: 300px;
	overflow-y: auto;
	z-index: 5001;
}

#all-programs-submenu.hidden {
	display: none;
}

#all-programs-submenu li a {
	display: flex;
	padding: 3px 5px;
	text-decoration: none;
	color: var(--xp-font-color);
}
#all-programs-submenu li a:hover {
	background-color: var(--xp-selection-blue);
	color: var(--xp-selection-text);
}
#all-programs-submenu li a img {
	width: 20px;
	height: 20px;
	margin-right: 5px;
}

.start-menu-footer {
	background: linear-gradient(to bottom, #4774c2, #1d439b);
	display: flex;
	justify-content: flex-end;
	align-items: center;
	padding: 5px;
	border-top: 1px solid #1e48a3;
	flex-shrink: 0;
}
.shutdown-btn-item {
	display: flex;
	align-items: center;
	color: white;
	cursor: pointer;
	padding: 5px 10px;
	border-radius: 3px;
	gap: 5px;
}
.shutdown-btn-item:hover {
	background-color: rgba(255,255,255,0.2);
}
.shutdown-btn-item img {
	width: 24px;
	height: 24px;
}

.ie-window-layout {
	display: flex;
	flex-direction: column;
	height: 100%;
	background-color: var(--xp-window-bg);
}

.ie-toolbar,
.ie-address-bar-container {
	display: flex;
	align-items: center;
	padding: 2px 4px;
	border-bottom: 1px solid var(--xp-border-light);
	background: var(--xp-window-bg);
	flex-shrink: 0;
}

.ie-nav-btn {
	background: none;
	border: 1px solid transparent;
	padding: 2px;
	border-radius: 3px;
	cursor: pointer;
	width: 28px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ie-nav-btn img {
	width: 20px;
	height: 20px;
}

.ie-nav-btn:hover:not(:disabled) {
	border-color: var(--xp-border-dark);
	background-color: var(--xp-button-hover);
}

.ie-nav-btn:disabled {
	cursor: not-allowed;
}

.ie-address-bar-container {
	gap: 5px;
}

.ie-address-bar-container span {
	font-size: 12px;
	color: var(--xp-grey-dark);
}

#ie-address-bar {
	flex-grow: 1;
	border: 1px solid var(--xp-border-dark);
	background: white;
	padding: 3px;
	font-family: 'Roboto Mono', monospace;
	font-size: 13px;
}

#ie-go-btn {
	font-size: 12px;
	padding: 2px 8px;
}

.ie-content-area {
	flex-grow: 1;
	position: relative;
	background: white;
}

#ie-iframe {
	width: 100%;
	height: 100%;
	border: none;
}

.ie-homepage-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	text-align: center;
	color: var(--xp-grey-dark);
}

.ie-homepage-content img {
	width: 64px;
	height: 64px;
	margin-bottom: 20px;
}

.outlook-window-layout {
	display: flex;
	flex-direction: column;
	height: 100%;
	background-color: var(--xp-window-bg);
}

.outlook-toolbar {
	display: flex;
	align-items: center;
	padding: 4px;
	border-bottom: 1px solid var(--xp-border-light);
	background: var(--xp-window-bg);
	gap: 4px;
}

.outlook-tool-btn {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 3px 8px;
	border: 1px solid transparent;
	border-radius: 3px;
	background: none;
	cursor: pointer;
}

.outlook-tool-btn:hover {
	border-color: var(--xp-border-dark);
	background-color: var(--xp-button-hover);
}

.outlook-tool-btn img {
	width: 22px;
	height: 22px;
}

.outlook-separator {
	width: 1px;
	height: 25px;
	background: linear-gradient(to bottom, rgba(0,0,0,0.28), rgba(0,0,0,0.08));
	margin: 0 6px;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 1px 0 rgba(0,0,0,0.06);
}

.outlook-main-content {
	display: flex;
	flex-grow: 1;
	overflow: hidden;
}

.outlook-folder-pane {
	width: 180px;
	border-right: 1px solid var(--xp-border-light);
	padding: 5px;
	background-color: #f0f0f0;
	overflow-y: auto;
}

.outlook-folder-pane h4 {
	margin: 0 0 5px 0;
	padding: 5px;
	font-size: 13px;
}

.outlook-folder-pane ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.outlook-folder-pane li {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 6px 8px;
	cursor: pointer;
	border-radius: 3px;
}

.outlook-folder-pane li:hover {
	background-color: #e0e8f6;
}

.outlook-folder-pane li.active {
	background-color: #c1d2ee;
	font-weight: bold;
}

.outlook-folder-pane img {
	width: 16px;
	height: 16px;
}

.outlook-right-section {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.outlook-message-pane {
	height: 40%;
	border-bottom: 1px solid var(--xp-border-light);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: white;
}

.outlook-message-header {
	display: grid;
	grid-template-columns: 2fr 4fr 2fr;
	font-weight: bold;
	padding: 5px 8px;
	background: var(--xp-window-bg);
	border-bottom: 1px solid var(--xp-border-light);
	user-select: none;
}

.outlook-message-list {
	flex-grow: 1;
	overflow-y: auto;
	list-style: none;
	padding: 0;
	margin: 0;
}

.outlook-message-list li {
	display: grid;
	grid-template-columns: 2fr 4fr 2fr;
	padding: 5px 8px;
	border-bottom: 1px solid #f0f0f0;
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.outlook-message-list li:hover {
	background-color: #f0f8ff;
}

.outlook-message-list li.selected {
	background-color: var(--xp-selection-blue);
	color: var(--xp-selection-text);
}

.outlook-message-list li div {
	overflow: hidden;
	text-overflow: ellipsis;
}

.outlook-preview-pane {
	height: 60%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background-color: #f0f0f0;
}

.outlook-preview-header {
	padding: 8px;
	border-bottom: 1px solid var(--xp-border-light);
	background: #e0e0e0;
	line-height: 1.5;
}

.outlook-preview-body {
	flex-grow: 1;
	overflow-y: auto;
	padding: 15px;
	background: white;
	border: 1px solid var(--xp-border-light);
	margin: 5px;
}

.taskbar-btn-icon {
	width: 16px;
	height: 16px;
	margin-right: 4px;
	flex-shrink: 0;
}

.notepad-layout {
	display: flex;
	flex-direction: column;
	height: 100%;
	background-color: var(--xp-window-bg);
}

.notepad-toolbar {
	border-bottom: 1px solid var(--xp-border-light);
	background: var(--xp-window-bg);
	padding: 2px;
	flex-shrink: 0;
}

.notepad-toolbar .ql-formats {
	margin-right: 10px !important;
}

.notepad-editor-container {
	flex-grow: 1;
	position: relative;
}

.notepad-editor-container .ql-container {
	border: none !important;
	font-family: 'Times New Roman', serif;
	font-size: 16px;
	height: 100%;
}

.notepad-editor-container .ql-editor {
	height: 100%;
	padding: 12px 15px;
}

#boot-screen {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: #000;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	font-family: 'Franklin Gothic Medium', Arial, sans-serif;
	color: white;
}

.boot-logo-container {
	display: flex;
	align-items: center;
	margin-bottom: 40px;
}

.boot-logo {
	width: 80px;
	height: 80px;
	margin-right: 15px;
}

.boot-text {
	font-size: 32px;
	line-height: 1;
}

.boot-text span {
	font-size: 56px;
	font-weight: bold;
	color: #e66a20;
	font-family: Arial, sans-serif;
	letter-spacing: -2px;
	margin-left: 5px;
}

.boot-loading-bar {
	width: 250px;
	height: 14px;
	border: 2px solid #555;
	border-radius: 4px;
	padding: 2px;
	position: relative;
	overflow: hidden;
	margin-bottom: 40px;
}

.boot-loading-progress {
	width: 40px;
	height: 100%;
	background: linear-gradient(to bottom, #2d4a86 0%, #6d8cc5 20%, #2d4a86 40%, #2d4a86 100%);
	position: absolute;
	top: 2px;
	left: -40px;
	border-radius: 2px;
	animation: bootLoad 2s linear infinite;
	box-shadow: 0 0 4px #6d8cc5;
}

.boot-loading-progress:nth-child(2) {
	animation-delay: 0.2s;
}

.boot-loading-progress:nth-child(3) {
	animation-delay: 0.4s;
}

@keyframes bootLoad {
	0% { left: -40px; }
	100% { left: 100%; }
}

.boot-copyright {
	font-size: 12px;
	text-align: center;
	color: #aaa;
	margin-top: 20px;
}

#welcome-screen {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: #003399;
	z-index: 99998;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

#welcome-screen::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 150px;
	background: linear-gradient(to bottom, #003399 0%, #3765c9 100%);
	border-bottom: 2px solid #e76b20;
}

#welcome-screen::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 150px;
	background: linear-gradient(to top, #003399 0%, #3765c9 100%);
	border-top: 2px solid #e76b20;
}

#welcome-screen.hidden {
	display: none;
}

.welcome-content {
	flex-grow: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	gap: 40px;
}

.welcome-logo {
	display: flex;
	align-items: center;
	color: white;
	font-family: 'Franklin Gothic Medium', Arial, sans-serif;
}

.welcome-logo img {
	width: 60px;
	height: 60px;
	margin-right: 15px;
}

.welcome-logo span {
	font-size: 24px;
	line-height: 1;
}

.welcome-logo span span {
	font-size: 42px;
	font-weight: bold;
	color: white;
	font-family: Arial, sans-serif;
	font-style: italic;
}

.welcome-divider {
	width: 2px;
	height: 250px;
	background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.5), transparent);
}

.welcome-users {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.welcome-user-item {
	display: flex;
	align-items: center;
	padding: 10px 20px;
	border-radius: 10px;
	cursor: pointer;
	color: white;
	border: 2px solid transparent;
	transition: all 0.2s;
	background-color: rgba(0,0,0,0.1);
}

.welcome-user-item:hover {
	background-color: rgba(67, 114, 204, 0.8);
	border-color: #f7d345;
}

.welcome-user-item img {
	width: 50px;
	height: 50px;
	border-radius: 5px;
	border: 2px solid white;
	margin-right: 15px;
	box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.welcome-user-info {
	display: flex;
	flex-direction: column;
}

.welcome-username {
	font-size: 20px;
	font-weight: bold;
}

.welcome-status {
	font-size: 11px;
	opacity: 0.8;
}

.welcome-footer {
	height: 100px;
	z-index: 10;
	display: flex;
	align-items: center;
	padding-left: 50px;
}

.turn-off-btn {
	display: flex;
	align-items: center;
	color: white;
	cursor: pointer;
	padding: 5px;
	opacity: 0.8;
	transition: opacity 0.2s;
}

.turn-off-btn:hover {
	opacity: 1;
}

.turn-off-btn img {
	width: 24px;
	height: 24px;
	margin-right: 10px;
	padding: 5px;
	background: #de5307;
	border-radius: 3px;
	border: 1px solid white;
}

.selection-box {
	position: absolute;
	border: 1px solid var(--xp-selection-blue);
	background-color: rgba(49, 106, 197, 0.3);
	z-index: 900;
	pointer-events: none;
}

.minesweeper-container {
	background-color: #c0c0c0;
	padding: 5px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	height: 100%;
	box-sizing: border-box;
	border: 2px solid;
	border-color: #fff #808080 #808080 #fff;
}

.minesweeper-header {
	border: 2px solid;
	border-color: #808080 #fff #fff #808080;
	padding: 5px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #c0c0c0;
}

.minesweeper-counter {
	background-color: black;
	color: red;
	font-family: 'Courier New', Courier, monospace;
	font-size: 20px;
	font-weight: bold;
	padding: 0 2px;
	border: 1px solid #808080;
	width: 40px;
	text-align: center;
	letter-spacing: 1px;
}

.minesweeper-face {
	width: 26px;
	height: 26px;
	font-size: 18px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid;
	border-color: #fff #808080 #808080 #fff;
	background: #c0c0c0;
	cursor: pointer;
}

.minesweeper-face:active {
	border-color: #808080 #fff #fff #808080;
	padding: 1px 0 0 1px;
}

.minesweeper-grid {
	border: 3px solid;
	border-color: #808080 #fff #fff #808080;
	display: grid;
	background-color: #808080;
	width: fit-content;
	margin: 0 auto;
}

.minesweeper-cell {
	width: 20px;
	height: 20px;
	background-color: #c0c0c0;
	border: 2px solid;
	border-color: #fff #808080 #808080 #fff;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: bold;
	cursor: default;
	user-select: none;
}

.minesweeper-cell.revealed {
	border: 1px solid #808080;
	border-width: 1px 0 0 1px;
	background-color: #c0c0c0;
}

.minesweeper-cell.mine {
	background-color: #c0c0c0;
}

.minesweeper-cell[data-num="1"] { color: blue; }
.minesweeper-cell[data-num="2"] { color: green; }
.minesweeper-cell[data-num="3"] { color: red; }
.minesweeper-cell[data-num="4"] { color: darkblue; }
.minesweeper-cell[data-num="5"] { color: darkred; }
.minesweeper-cell[data-num="6"] { color: teal; }
.minesweeper-cell[data-num="7"] { color: black; }
.minesweeper-cell[data-num="8"] { color: gray; }

#webamp {
	z-index: 9000 !important;
}

#taskbar-context-menu {
	position: fixed;
	width: 150px;
	z-index: 50000;
	padding: 2px;
	background-color: var(--xp-window-bg);
	border: 1px solid var(--xp-border-dark);
	display: flex;
	flex-direction: column;
	min-height: auto;
	box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

#taskbar-context-menu.hidden {
	display: none;
}

#taskbar-context-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#taskbar-context-menu li {
	padding: 4px 15px;
	cursor: pointer;
	color: var(--xp-font-color);
	font-family: 'Tahoma', sans-serif;
	font-size: 11px;
}

#taskbar-context-menu li:hover {
	background-color: var(--xp-selection-blue);
	color: var(--xp-selection-text);
}

#taskbar-context-menu li.separator {
	height: 1px;
	background: linear-gradient(to right, rgba(0,0,0,0.22), rgba(0,0,0,0.06));
	margin: 4px 2px;
	padding: 0;
	pointer-events: none;
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 1px 0 rgba(0,0,0,0.06);
}

#taskbar-context-menu li.disabled {
	color: #888;
	pointer-events: none;
}

.xp-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: transparent;
	z-index: 20000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.xp-dialog-icon {
	width: 32px;
	height: 32px;
	margin-right: 15px;
	flex-shrink: 0;
}

.xp-dialog-content {
	display: flex;
	align-items: flex-start;
	padding: 15px;
	flex-grow: 1;
}

.xp-dialog-buttons {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	padding: 10px;
	background-color: var(--xp-window-bg);
}

.xp-dialog-buttons .xp-button {
	min-width: 75px;
}

.xp-window iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: none;
	background: white;
}

.iframe-overlay-active iframe {
	pointer-events: none;
}

.outlook-window-layout {
	height: 100%;
	display: flex;
	flex-direction: column;
	background: linear-gradient(180deg, #f6f8fb 0%, #e9eef6 100%);
	height: 100%;
}
.outlook-toolbar {
	display: flex;
	gap: 6px;
	padding: 8px;
	align-items: center;
	background: linear-gradient(to bottom, #e9f1ff, #dfe9ff);
	border-bottom: 1px solid #c7d9ff;
}
.outlook-tool-btn {
	display: flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1px solid #c2cfe8;
	padding: 6px 8px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 13px;
}
.outlook-tool-btn img { width: 18px; height: 18px; }
.outlook-tool-btn:hover { background: linear-gradient(#fff,#eef6ff); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.outlook-main-content { display: flex; flex: 1 1 auto; height: calc(100% - 56px); }
.outlook-folder-pane {
	width: 160px;
	border-right: 1px solid #d7e6ff;
	padding: 10px;
	box-sizing: border-box;
	background: linear-gradient(180deg,#f8fbff,#f0f6ff);
}
.outlook-folder-pane h4 { margin: 0 0 8px 0; font-size: 13px; color: #0b3b7a; }
.outlook-folder-pane ul { list-style: none; padding: 0; margin: 0; }
.outlook-folder-pane ul li { padding: 6px 8px; border-radius: 3px; display:flex; align-items:center; gap:8px; cursor:pointer; color:#073265; }
.outlook-folder-pane ul li img { width: 18px; height: 18px; }
.outlook-folder-pane ul li:hover { background: rgba(49,106,197,0.06); }
.outlook-folder-pane ul li.active { background: linear-gradient(90deg, rgba(57,103,196,0.12), rgba(57,103,196,0.06)); border-left: 3px solid #2f6ccf; padding-left: 6px; }
.outlook-right-section { display:flex; flex-direction:column; flex: 1 1 auto; }
.outlook-message-pane { flex: 0 0 45%; border-bottom: 1px solid #dfefff; overflow-y: auto; }
.outlook-message-header { display:grid; grid-template-columns: 30% 1fr 150px; padding: 8px 12px; font-weight: bold; color: #1a3f7a; background: linear-gradient(#fbfdff,#f1f7ff); border-bottom: 1px solid #e1ecff; }
.outlook-message-list { list-style: none; margin: 0; padding: 0; }
.outlook-message-list .msg-row { display: grid; grid-template-columns: 30% 1fr 150px; padding: 8px 12px; align-items: center; border-bottom: 1px solid #f0f5ff; cursor: pointer; }
.outlook-message-list .msg-row:hover { background: #f4f9ff; }
.outlook-message-list .msg-row.selected { background: linear-gradient(90deg,#2f6ccf,#5a8ef7); color: #fff; }
.outlook-message-list .msg-row.selected .subject { font-weight: bold; color: #fff; }
.outlook-message-list .col { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.outlook-preview-pane { flex: 1 1 auto; padding: 12px; overflow-y: auto; background: #fff; }
.outlook-preview-header { display:flex; gap:12px; margin-bottom:10px; color:#0b3b7a; }
.outlook-preview-body { background: #fff; padding: 8px; border: 1px solid #eef3fb; border-radius: 4px; }

.splitter-vertical {
	width: 8px;
	cursor: col-resize;
	background: linear-gradient(180deg, rgba(0,0,0,0.03), rgba(0,0,0,0.06));
	transition: background 120ms ease;
	display: flex;
	align-items: center;
	justify-content: center;
}
.splitter-vertical:hover { background: linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.12)); }
.splitter-horizontal {
	height: 8px;
	cursor: row-resize;
	background: linear-gradient(90deg, rgba(0,0,0,0.03), rgba(0,0,0,0.06));
	transition: background 120ms ease;
	display: flex;
	align-items: center;
	justify-content: center;
}
.splitter-horizontal:hover { background: linear-gradient(90deg, rgba(0,0,0,0.06), rgba(0,0,0,0.12)); }

.splitter-vertical::before, .splitter-horizontal::before {
	content: '';
	width: 2px;
	height: 40px;
	background: linear-gradient(180deg, rgba(0,0,0,0.28), rgba(0,0,0,0.06));
	border-radius: 2px;
	opacity: 0.95;
}

#oe-splitter-vertical, #oe-splitter-horizontal {
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

#oe-splitter-vertical {
	width: 10px;
	cursor: col-resize;
	background: linear-gradient(180deg, rgba(0,0,0,0.04), rgba(0,0,0,0.08));
}

#oe-splitter-vertical::before {
	content: '';
	width: 2px;
	height: 48px;
	background: linear-gradient(180deg, rgba(0,0,0,0.12), rgba(0,0,0,0.02));
	border-radius: 2px;
	opacity: 0.9;
}

#oe-splitter-horizontal {
	height: 10px;
	cursor: row-resize;
	background: linear-gradient(90deg, rgba(0,0,0,0.04), rgba(0,0,0,0.08));
}

#oe-splitter-horizontal::before {
	content: '';
	height: 2px;
	width: 48px;
	background: linear-gradient(90deg, rgba(0,0,0,0.12), rgba(0,0,0,0.02));
	border-radius: 2px;
	opacity: 0.9;
}

.outlook-folder-pane {
	transition: width 160ms ease, padding 160ms ease;
	border-radius: 6px;
	padding: 12px;
}

.outlook-folder-pane ul { padding: 0; margin: 0; }
.outlook-folder-pane ul li { padding: 8px 6px; border-radius: 6px; display: flex; gap: 8px; align-items: center; cursor: pointer; transition: background 120ms ease; }
.outlook-folder-pane ul li:hover { background: rgba(49,106,197,0.06); }
.outlook-folder-pane ul li.active { background: linear-gradient(90deg, rgba(49,106,197,0.12), rgba(90,142,247,0.04)); border-left: 3px solid #2f6ccf; padding-left: 8px; }

.outlook-message-list .msg-row { padding: 10px 12px; border-radius: 6px; margin-bottom: 6px; transition: background 120ms ease, transform 120ms ease; }
.outlook-message-list .msg-row:hover { background: #f6f9ff; transform: translateY(-1px); }
.outlook-message-list .msg-row.selected { background: linear-gradient(90deg,#2f6ccf,#5a8ef7); color: #fff; }

.outlook-preview-body { background: #fff; padding: 12px; border-radius: 6px; box-shadow: 0 4px 14px rgba(20,40,80,0.04); }


.outlook-folder-pane { width: 200px; min-width: 120px; max-width: 420px; box-sizing: border-box; }
.outlook-folder-pane.collapsed { width: 0; padding: 0; overflow: hidden; border-right: none; }
.outlook-main-content { display:flex; flex: 1 1 auto; height: calc(100% - 56px); }
.outlook-right-section { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 200px; }

.outlook-message-pane { flex-basis: 45%; min-height: 120px; overflow: auto; }
.outlook-preview-pane { flex: 1 1 auto; min-height: 120px; }

.outlook-toolbar .outlook-tool-btn { font-size: 13px; }
.outlook-toolbar { padding: 8px; gap: 8px; }

@media (max-width: 820px) {
	.outlook-folder-pane { display: none !important; }
	.splitter-vertical { display: none !important; }
}

/* Responsive tweaks */
@media (max-width: 800px) {
	.outlook-folder-pane { display: none; }
	.outlook-message-header, .outlook-message-list .msg-row { grid-template-columns: 1fr 120px; }
}