:root {
	--bg-color: #02013A;
	--text-color: #a9b1d6;
	--accent-color: #6a55ae;
	--timer-color: #ff0055;
	--safe-color: #00ff9d;
	--panel-bg: rgba(2, 1, 58, 0.7);

	--tt-bg: rgba(8, 6, 66, 0.94);
	--tt-bg-solid: #080642;
	--tt-color: var(--text-color);
	--tt-color-dim: rgba(169, 177, 214, 0.7);
	--tt-title: var(--safe-color);
	--tt-border-width: 1px;
	--tt-border-color: var(--accent-color);
	--tt-radius: 10px;
	--tt-padding: 10px 14px;
	--tt-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 14px rgba(106, 85, 174, 0.35);
	--tt-backdrop: blur(8px);
	--tt-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	--tt-font-heading: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	--tt-font-size: 0.9rem;
	--tt-divider: rgba(255, 255, 255, 0.12);
	--tt-duration: 140ms;
	--tt-arrow-size: 7px;
	--tt-info: #8f7be0;
	--tt-success: var(--safe-color);
	--tt-warn: #ffcf5a;
	--tt-danger: var(--timer-color);
}

* {
	user-select: none;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background-color: var(--bg-color);
	color: var(--text-color);
	height: 100vh;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.main-container {
	display: flex;
	justify-content: space-between;
	width: 98%;
	align-items: center;
}

.timer-section {
	flex: 2;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

h1 {
	font-size: 3rem;
	margin: 0;
	color: var(--accent-color);
	text-transform: uppercase;
	letter-spacing: 2px;
	text-shadow: 0 0 10px rgba(106, 85, 174, 0.5);
	margin-bottom: 20px;
}

.big-time {
	font-size: 9rem;
	font-weight: 700;
	font-family: 'Source Code Pro', monospace;
	color: var(--text-color);
	line-height: 1;
	margin: 20px 0;
}

.info-text {
	font-size: 1.5rem;
	color: var(--accent-color);
	margin-bottom: 50px;
}

.eod-text {
	font-size: 1.1rem;
	opacity: 0.8;
	margin-bottom: 40px;
}

.controls {
	display: flex;
	gap: 10px;
	justify-content: center;
}

button {
	padding: 10px 15px;
	border: #02013a solid 3px;
	border-radius: 10px;
	cursor: pointer;
	background-color: #007008;
	color: white;
	font-size: 14px;
	font-weight: bold;
	transition: all 0.3s ease;
	position: relative;
}

button:hover,
button.active {
	transform: scale(1.1);
	border: 3px solid var(--safe-color);
	box-shadow: 0 0 15px #007008;
	background-color: #005006;
}

.hmbtn {
	margin: 20px;
	margin-left: 35%;
	margin-right: 35%;
}

.onside {
	min-height: 100%;
	padding: 0;
	display: flex;
	margin-left: 5px;
	width: 60%;
	flex-direction: column;

}

.bars {
	padding: 10px;
	margin: 10px;
	display: flex;
	flex-direction: row;
}

.tbars {
	padding: 10px;
	margin: 10px;
	display: flex;
	flex-direction: column;
}

.sidebar {
	flex: 1;
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(10px);
	padding: 20px;
	border-radius: 15px;
	border-left: 2px solid var(--accent-color);
	width: auto;

	display: flex;
	flex-direction: column;
	margin: 30px;
	margin-right: 10px;
	margin-left: 10px;
	width: 24vw;
}

.sidebar h2 {
	color: var(--safe-color);
	margin-top: 0;
	font-size: 1.2rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	padding-bottom: 10px;
	margin-bottom: 15px;
}


#upcoming-list {
	overflow-y: auto;
	max-height: 50vh;
	padding-right: 8px;

}

.list-item {
	display: flex;
	justify-content: space-between;
	padding: 10px;
	border: 1px, solid rgba(255, 255, 255, 0);
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	font-size: 1rem;
	align-items: center;
	transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.list-time {
	font-family: 'Courier New', monospace;
	color: var(--accent-color);
}

.clickable {
	cursor: pointer;
	color: var(--text-color);
}

.selected {
	border-radius: 10px;
	border: 1px, solid, #6a55ae;
}


.list-item.passed {
	opacity: 0.45;
	color: rgba(255, 255, 255, 0.6);
}

.list-item.passed .list-time,
.list-item.passed .clickable {
	color: rgba(255, 255, 255, 0.6);
}

.list-item.current {
	background: rgba(0, 255, 157, 0.04);
	border-left: 4px solid var(--safe-color);
	color: var(--safe-color);
}

.list-item.current .list-time,
.list-item.current .clickable {
	color: var(--safe-color);
	font-weight: 600;
}


.list-item.current::before {
	content: '→';
	margin-right: 8px;
	color: var(--safe-color);
	font-weight: 700;
}


#weekend-msg {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--bg-color);
	z-index: 999;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	font-size: 3rem;
	color: var(--text-color);
}

.status-passing {
	color: var(--safe-color);
}

.status-class {
	color: var(--timer-color);
}


@media (max-width: 900px) {
	.main-container {
		flex-direction: column;
	}

	.sidebar {
		width: 80%;
		height: auto;
		margin: 30px 0 0 0;
	}

	#upcoming-list {
		max-height: 40vh;
	}
}

.credits {
	position: absolute;
	color: var(--safe-color);
	bottom: 20px;
	align-items: center;
	right: 20px;
}

.day-counter {
	padding: 20px;
	font-family: 'Courier New', monospace;
	align-items: center;
	font-size: 3rem;
	color: var(--timer-color);
	justify-content: center;
	font-weight: bold;
	text-decoration: underline;
	text-align: center;
}