/* The taskbar, the tray, the clock and the calendar of the tray. */
#taskbar {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 30px;
	background: var(--btn-face);
	border-top: 2px solid var(--btn-hilight);
	border-bottom: 1px solid var(--btn-shadow);
	display: flex;
	align-items: center;
	padding: 2px 3px;
	box-sizing: border-box;
	z-index: 10000;
}
#start-btn {
	height: 26px;
	padding: 0 20px 0 6px;
	background: var(--btn-face);
	border: none;
	box-shadow:
		inset -1px -1px 0 var(--btn-dkshadow),
		inset 1px 1px 0 var(--btn-hilight),
		inset -2px -2px 0 var(--btn-shadow),
		inset 2px 2px 0 var(--btn-light);
	display: flex;
	align-items: center;
	font-weight: bold;
	cursor: pointer;
}
#start-btn:hover {
	background-color: var(--btn-face-hover);
}
#start-btn:active {
	box-shadow:
		inset 1px 1px 0 var(--btn-dkshadow),
		inset -1px -1px 0 var(--btn-hilight),
		inset 2px 2px 0 var(--btn-shadow),
		inset -2px -2px 0 var(--btn-light);
}
#start-btn::before {
	content: "🪟";
	margin-right: 6px;
	font-size: 16px;
}
#task-area {
	flex: 1;
	height: 26px;
	margin: 0 4px;
	display: flex;
	align-items: center;
}
.task-btn {
	height: 100%;
	padding: 0 12px 0 4px;
	background: var(--btn-face);
	border: none;
	box-shadow:
		inset -1px -1px 0 var(--btn-dkshadow),
		inset 1px 1px 0 var(--btn-hilight),
		inset -2px -2px 0 var(--btn-shadow),
		inset 2px 2px 0 var(--btn-light);
	display: flex;
	align-items: center;
	cursor: pointer;
	margin-right: 3px;
	white-space: nowrap;
}
.task-btn .task-icon {
	font-size: 14px;
	margin-right: 4px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
}
.task-btn:hover {
	background-color: var(--btn-face-hover);
}
.task-btn.active {
	background: var(--btn-face);
	box-shadow:
		inset 1px 1px 0 var(--btn-dkshadow),
		inset -1px -1px 0 var(--btn-hilight),
		inset 2px 2px 0 var(--btn-shadow),
		inset -2px -2px 0 var(--btn-light);
}
#tray {
	height: 26px;
	background: var(--btn-face);
	border: none;
	box-shadow:
		inset 1px 1px 0 var(--btn-dkshadow),
		inset -1px -1px 0 var(--btn-hilight),
		inset 2px 2px 0 var(--btn-shadow),
		inset -2px -2px 0 var(--btn-light);
	display: flex;
	align-items: center;
	padding: 0 6px;
}
#clock {
	font-family: "MS Sans Serif", "Segoe UI", Tahoma, monospace;
	font-size: 11px;
	padding: 0 8px;
}

/* Calendar. The tray opens it above the clock. */
#calendar {
	position: fixed;
	display: none;
	z-index: 20000;
	width: 208px;
	padding: 6px;
	background: var(--btn-face);
	color: var(--btn-text);
	box-shadow:
		inset -1px -1px 0 var(--btn-dkshadow),
		inset 1px 1px 0 var(--btn-hilight),
		inset -2px -2px 0 var(--btn-shadow),
		inset 2px 2px 0 var(--btn-light),
		3px 3px 5px rgba(0,0,0,0.5);
}
.cal-header {
	display: flex;
	align-items: center;
	margin-bottom: 4px;
}
.cal-title {
	flex: 1;
	text-align: center;
	font-weight: bold;
	cursor: default;
}
.cal-nav {
	width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	background: var(--btn-face);
	box-shadow:
		inset -1px -1px 0 var(--btn-dkshadow),
		inset 1px 1px 0 var(--btn-hilight),
		inset -2px -2px 0 var(--btn-shadow),
		inset 2px 2px 0 var(--btn-light);
}
.cal-nav:hover {
	background-color: var(--btn-face-hover);
}
.cal-nav:active {
	box-shadow:
		inset 1px 1px 0 var(--btn-dkshadow),
		inset -1px -1px 0 var(--btn-hilight),
		inset 2px 2px 0 var(--btn-shadow),
		inset -2px -2px 0 var(--btn-light);
}
.cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 1px;
}
.cal-grid > div {
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.cal-weekday {
	font-weight: bold;
	border-bottom: 1px solid var(--btn-shadow);
}
.cal-day {
	cursor: default;
}
.cal-day.other {
	color: var(--gray-text);
}
.cal-day:hover {
	background: var(--btn-face-hover);
}
.cal-day.today {
	background: var(--hilight);
	color: var(--hilight-text);
	font-weight: bold;
	box-shadow: inset 0 0 0 1px var(--btn-hilight);
}
#clock {
	cursor: default;
}
#clock:hover {
	background-color: var(--btn-face-hover);
}
