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

body,
html {
	height: 100%;
	background-color: #012456; /* Blu classico PowerShell */
	color: #ffffff;
	font-family: "Consolas", "Courier New", monospace;
	font-size: 16px;
	line-height: 1.4;
	overflow-x: hidden;
}

#terminal {
	padding: 20px;
	width: 100%;
	min-height: 100%;
	display: flex;
	flex-direction: column;
}

#output {
	white-space: pre-wrap;
	word-wrap: break-word;
}

.ps-header {
	margin-left: -200px;
}

.ps-header a {
	color: inherit;
	text-decoration: none;
}

.ps-header a:hover {
	text-decoration: underline;
}

.input-line {
	display: flex;
	margin-top: 5px;
}

.prompt {
	margin-right: 10px;
	white-space: nowrap;
}

#cmd-input {
	background: transparent;
	border: none;
	color: #ffffff;
	font-family: "Consolas", "Courier New", monospace;
	font-size: 16px;
	outline: none;
	flex-grow: 1;
	caret-color: #ffffff;
}

/* Stili specifici per l'output */
.clickable-cmd {
	color: #ffff00;
	cursor: pointer;
	text-decoration: underline;
}

.clickable-cmd:hover {
	color: #ffaa00;
}

.section-title {
	color: #00ff00; /* Verde brillante per i titoli */
	font-weight: bold;
}

.highlight {
	color: #00ffff; /* Ciano per i sottotitoli */
	font-weight: bold;
}

.error {
	color: #ff0000;
}

.image-wrapper {
	margin: 15px 0;
	max-width: 800px;
}

.image-wrapper img {
	max-width: 100%;
	height: auto;
	border: 2px solid #ffffff;
	display: block;
}

.img-fallback {
	color: #ffaa00;
	font-style: italic;
}

/* Scrollbar personalizzata per non rovinare il look del terminale */
::-webkit-scrollbar {
	width: 12px;
}
::-webkit-scrollbar-track {
	background: #012456;
}
::-webkit-scrollbar-thumb {
	background: #cccccc;
}

/* Temi Aggiuntivi */
/* 1: Nero CMD */
body.theme-1,
html.theme-1 {
	background-color: #0c0c0c;
}
body.theme-1 ::-webkit-scrollbar-track {
	background: #0c0c0c;
}

/* 2: Ubuntu Purple */
body.theme-2,
html.theme-2 {
	background-color: #300a24;
}
body.theme-2 ::-webkit-scrollbar-track {
	background: #300a24;
}

/* 3: Matrix Hacker (Testo verde) */
body.theme-3,
html.theme-3 {
	background-color: #050505;
	color: #00ff00;
}
body.theme-3 ::-webkit-scrollbar-track {
	background: #050505;
}
body.theme-3 #cmd-input,
body.theme-3 .prompt {
	color: #00ff00;
	caret-color: #00ff00;
}
body.theme-3 .section-title {
	color: #ffffff;
}

/* 4: Retro Terminal (Testo ambra) */
body.theme-4,
html.theme-4 {
	background-color: #1e1100;
	color: #ffb000;
}
body.theme-4 ::-webkit-scrollbar-track {
	background: #1e1100;
}
body.theme-4 #cmd-input,
body.theme-4 .prompt {
	color: #ffb000;
	caret-color: #ffb000;
}
body.theme-4 .section-title,
body.theme-4 .clickable-cmd {
	color: #ffd700;
}
body.theme-4 .highlight {
	color: #ffffff;
}

/* ================================================================
   GUIDE WINDOW  —  Windows Server Manager style
   ================================================================ */

#guide-window {
	position: fixed;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	width: 900px;
	height: 580px;
	min-width: 480px;
	min-height: 320px;
	background: #1c2b3a;
	border: 1px solid #0a1520;
	border-radius: 6px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.03);
	overflow: hidden;
	font-family: "Segoe UI", Arial, sans-serif;
	color: #cdd8e0;
}

#guide-window.gw-animating {
	transition: top 0.22s ease, left 0.22s ease, width 0.22s ease, height 0.22s ease;
}

/* Title bar — thin dark chrome like Win11 */
.gw-titlebar {
	height: 32px;
	background: #161616;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 0 0 12px;
	flex-shrink: 0;
	user-select: none;
	cursor: default;
	border-radius: 6px 6px 0 0;
}

.gw-title {
	font-size: 12px;
	color: #999999;
	display: flex;
	align-items: center;
	gap: 7px;
}

.gw-title-icon {
	display: flex;
	align-items: center;
	opacity: 0.7;
}

.gw-title-icon svg {
	width: 14px;
	height: 14px;
	stroke-width: 2;
}

.gw-controls {
	display: flex;
	height: 32px;
}

/* Segoe MDL2 Assets — proper Windows icon glyphs */
.gw-btn {
	width: 46px;
	height: 32px;
	background: transparent;
	border: none;
	color: #888888;
	font-size: 10px;
	font-family: "Segoe MDL2 Assets", "Segoe UI Symbol", sans-serif;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.1s, color 0.1s;
	padding: 0;
	line-height: 1;
}

.gw-btn:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
}

.gw-btn.gw-close:hover {
	background: #c42b1c;
	color: #ffffff;
}

.gw-btn.gw-close {
	border-radius: 0 6px 0 0;
}

/* App header — Server Manager's dark navy banner */
.gw-app-header {
	background: #1a2d40;
	border-bottom: 1px solid #0d1e2c;
	padding: 10px 20px 10px 18px;
	display: flex;
	align-items: baseline;
	gap: 12px;
	flex-shrink: 0;
}

.gw-app-title {
	font-size: 19px;
	font-weight: 300;
	color: #ffffff;
	letter-spacing: 0.01em;
}

.gw-app-sub {
	font-size: 12px;
	color: #5a8aaa;
}

/* Maximized */
#guide-window.gw-maximized {
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	border-radius: 0;
	border: none;
	box-shadow: none;
}

#guide-window.gw-maximized .gw-titlebar,
#guide-window.gw-maximized .gw-btn.gw-close {
	border-radius: 0;
}

/* Minimized — snaps to bottom-left taskbar entry */
#guide-window.gw-minimized {
	height: 32px !important;
	width: 320px !important;
	min-width: 0;
	min-height: 0;
	border-radius: 4px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

#guide-window.gw-minimized .gw-app-header,
#guide-window.gw-minimized .gw-body,
#guide-window.gw-minimized .gw-statusbar,
#guide-window.gw-minimized #gw-resize {
	display: none !important;
}

#guide-window.gw-minimized .gw-titlebar {
	cursor: pointer;
	border-radius: 4px;
	background: #1e1e1e;
}

#guide-window.gw-minimized .gw-title {
	color: #cccccc;
}

/* Body layout */
.gw-body {
	display: flex;
	flex: 1;
	overflow: hidden;
}

/* Sidebar — Server Manager dark-navy left panel */
.gw-sidebar {
	width: 200px;
	background: #152232;
	flex-shrink: 0;
	border-right: 1px solid #0d1a27;
	overflow-y: auto;
	padding-top: 6px;
}

.gw-sidebar::-webkit-scrollbar { width: 6px; }
.gw-sidebar::-webkit-scrollbar-track { background: #152232; }
.gw-sidebar::-webkit-scrollbar-thumb { background: #2a4560; border-radius: 3px; }

.gw-sidebar-label {
	padding: 14px 16px 7px;
	font-size: 10.5px;
	font-weight: 700;
	color: #3a6080;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.gw-sidebar-group {
	padding: 14px 16px 7px;
	font-size: 10.5px;
	font-weight: 700;
	color: #3a6080;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-top: 1px solid #0d1a27;
	margin-top: 4px;
}

.gw-sidebar-group:first-child {
	border-top: none;
	margin-top: 0;
}

.gw-nav {
	padding: 9px 16px;
	cursor: pointer;
	font-size: 13px;
	color: #8aafca;
	display: flex;
	align-items: center;
	gap: 10px;
	border-left: 3px solid transparent;
	transition: background 0.12s, color 0.12s;
}

.gw-nav:hover {
	background: #1d3248;
	color: #c8dde9;
}

.gw-nav.active {
	background: #1e3550;
	color: #ffffff;
	border-left-color: #4a9fd4;
}

.gw-nav-num {
	font-size: 10.5px;
	color: #2e5272;
	font-weight: 700;
	letter-spacing: 0.04em;
	min-width: 18px;
}

.gw-nav.active .gw-nav-num {
	color: #4a9fd4;
}

.gw-nav-icon {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.gw-nav-icon svg {
	width: 15px;
	height: 15px;
	stroke-width: 1.75;
}

.gw-nav.active .gw-nav-icon svg {
	color: #4a9fd4;
}

/* Content — light like Server Manager's main panels */
.gw-content {
	flex: 1;
	overflow-y: auto;
	padding: 28px 32px;
	background: #f3f5f7;
	font-size: 13.5px;
	line-height: 1.65;
	color: #2c3e50;
}

.gw-content::-webkit-scrollbar { width: 8px; }
.gw-content::-webkit-scrollbar-track { background: #e8ecf0; }
.gw-content::-webkit-scrollbar-thumb { background: #b0bec8; border-radius: 4px; }
.gw-content::-webkit-scrollbar-thumb:hover { background: #8fa8ba; }

/* Status bar */
.gw-statusbar {
	height: 23px;
	background: #102030;
	border-top: 1px solid #09161f;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 14px;
	font-size: 11.5px;
	color: #3a6888;
	flex-shrink: 0;
}

/* ================================================================
   GUIDE SECTION CONTENT STYLES  —  light background
   ================================================================ */

.gws-title {
	font-size: 21px;
	font-weight: 300;
	color: #1a2d3e;
	margin: 0 0 4px 0;
	letter-spacing: 0.01em;
}

.gws-sub {
	font-size: 12.5px;
	color: #7a90a0;
	margin: 0 0 18px 0;
}

.gws-divider {
	border: none;
	border-top: 1px solid #d0d8e0;
	margin: 0 0 20px 0;
}

.gws-heading {
	font-size: 13px;
	font-weight: 600;
	color: #1a3a58;
	margin: 22px 0 9px 0;
	display: flex;
	align-items: center;
	gap: 8px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.gws-heading::before {
	content: '';
	display: inline-block;
	width: 3px;
	height: 13px;
	background: #2e79ba;
	border-radius: 2px;
	flex-shrink: 0;
}

.gws-text {
	color: #445566;
	margin: 0 0 12px 0;
}

.gws-box {
	background: #ffffff;
	border: 1px solid #cdd8e2;
	border-top: 3px solid #2e79ba;
	border-radius: 3px;
	padding: 14px 18px;
	margin: 12px 0;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.gws-box-title {
	font-size: 10.5px;
	font-weight: 700;
	color: #7a9ab8;
	letter-spacing: 0.09em;
	margin-bottom: 10px;
	text-transform: uppercase;
}

.gws-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.gws-list li {
	padding: 4px 0 4px 20px;
	position: relative;
	color: #445566;
}

.gws-list li::before {
	content: '›';
	position: absolute;
	left: 5px;
	color: #2e79ba;
	font-weight: 700;
}

.gws-step {
	display: flex;
	gap: 14px;
	margin-bottom: 16px;
	align-items: flex-start;
}

.gws-step-num {
	width: 28px;
	height: 28px;
	background: #2e79ba;
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	flex-shrink: 0;
	margin-top: 2px;
}

.gws-step-title {
	font-weight: 600;
	color: #1a2d3e;
	font-size: 13.5px;
	margin-bottom: 4px;
}

.gws-step-desc {
	color: #607080;
	font-size: 13px;
}

.gws-table {
	width: 100%;
	border-collapse: collapse;
	margin: 12px 0;
	font-size: 13px;
}

.gws-table th {
	background: #dce8f2;
	color: #1a3050;
	text-align: left;
	padding: 9px 14px;
	font-weight: 700;
	border-bottom: 2px solid #2e79ba;
	font-size: 11.5px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.gws-table td {
	padding: 9px 14px;
	border-bottom: 1px solid #e0e8f0;
	color: #445566;
	vertical-align: top;
}

.gws-table tr:hover td {
	background: #edf4fa;
}

.gws-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 2px;
	font-size: 11px;
	font-weight: 700;
}

.gws-badge.blue   { background: #dce8f5; color: #1a4a7a; border: 1px solid #aac8e8; }
.gws-badge.green  { background: #d4edda; color: #155724; border: 1px solid #b8dfc4; }
.gws-badge.yellow { background: #fff3cd; color: #856404; border: 1px solid #ffe08a; }

.gws-note {
	color: #8a9ab0;
	font-size: 12px;
	margin-top: 8px;
	font-style: italic;
}

.gw-content code {
	background: #e2eaf2;
	color: #1a3a58;
	padding: 1px 5px;
	border-radius: 3px;
	font-family: "Consolas", "Courier New", monospace;
	font-size: 12.5px;
}

/* Resize handle — bottom-right corner grip */
#gw-resize {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 12px;
	height: 12px;
	cursor: nwse-resize;
	z-index: 20;
	background:
		linear-gradient(135deg,
			transparent 38%, #3a6070 38%, #3a6070 48%, transparent 48%,
			transparent 60%, #3a6070 60%, #3a6070 70%, transparent 70%,
			transparent 82%, #3a6070 82%, #3a6070 92%, transparent 92%
		);
}

#gw-resize:hover {
	background:
		linear-gradient(135deg,
			transparent 38%, #6aaad4 38%, #6aaad4 48%, transparent 48%,
			transparent 60%, #6aaad4 60%, #6aaad4 70%, transparent 70%,
			transparent 82%, #6aaad4 82%, #6aaad4 92%, transparent 92%
		);
}
