:root {
	--primary-color: #4A90E2;
	--secondary-color: #50E3C2;
	--accent-color: #F5A623;
	--background-color: #272A30;
	--text-color: #FFFFFF;
	--event-birthday: #FF5E5E;
	--event-trash: #50E3C2;
	--event-vacation: #F5A623;
	--event-yellow-bag: #F8E71C;
	--event-custom: #BD10E0;
	--cell-inactive: #272A30;
	--cell-active: #4A90E2;
	--cell-border: #3C4049;
	--minutes-color: #F5A623;
}

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

body {
	display: flex;
	flex-direction: column;
	justify-content: unset;
	align-items: center;
	min-height: 100vh;
	background-color: var(--background-color);
	color: var(--text-color);
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	padding: 20px;
	transition: background-color 0.3s;
}

.main-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 30px;
	max-width: 1200px;
	width: 100%;
}

.cont-header {
	text-align: center;
	margin-bottom: 20px;
	position: relative;
}

.digital-clock {
	font-size: 3rem;
	font-weight: bold;
	color: var(--primary-color);
	margin-bottom: 10px;
	text-shadow: 0 0 10px rgba(74, 144, 226, 0.5);
}

.date-display {
	font-size: 1.2rem;
	margin-bottom: 20px;
	color: #AAAAAA;
}

.clock-container {
	display: flex;
	flex-direction: column;
	gap: 5px;
	background-color: #1E2126;
	padding: 20px;
	border-radius: 15px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
	position: relative;
}

.clock-row {
	gap: 5px;
	display: flex;
}

.clock-cell {
	width: 40px;
	height: 40px;
	background-color: var(--cell-inactive);
	border: 1px solid var(--cell-border);
	box-sizing: border-box;
	border-radius: 5px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-weight: bold;
	transition: all 0.3s ease;
	cursor: default;
	user-select: none;
}

.clock-cell.active {
	background-color: var(--cell-active);
	color: white;
	box-shadow: 0 0 10px rgba(74, 144, 226, 0.7);
	transform: scale(1.05);
}

.clock-cell.minutes {
	background-color: var(--cell-active);
	color: white;
	box-shadow: 0 0 10px rgba(74, 144, 226, 0.7);
}

.clock-cell.event-highlight {
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.1);
	}

	100% {
		transform: scale(1);
	}
}

.event-birthday {
	background-color: var(--event-birthday) !important;
}

.event-trash {
	background-color: var(--event-trash) !important;
	color: #333;
}

.event-vacation {
	background-color: var(--event-vacation) !important;
}

.event-yellow-bag {
	background-color: var(--event-yellow-bag) !important;
	color: #333;
}

.event-custom {
	background-color: var(--event-custom) !important;
}

.controls {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	justify-content: center;
	margin-top: 20px;
}

.event-btn {
	padding: 10px 15px;
	border: none;
	display: flex;
	gap: 7.5px;
	border-radius: 5px;
	background-color: #3C4049;
	color: white;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.2s ease;
}

.event-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.event-btn.birthday {
	background-color: var(--event-birthday);
}

.event-btn.trash {
	background-color: var(--event-trash);
	color: #333;
}

.event-btn.vacation {
	background-color: var(--event-vacation);
}

.event-btn.yellow-bag {
	background-color: var(--event-yellow-bag);
	color: #333;
}

.event-btn.custom {
	background-color: var(--event-custom);
}

.event-indicator {
	margin-top: 20px;
	padding: 10px 15px;
	border-radius: 5px;
	font-weight: bold;
	text-align: center;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.event-indicator.active {
	opacity: 1;
}

.app-settings-panel {
	background-color: #1E2126;
	padding: 20px;
	border-radius: 10px;
	margin-top: 20px;
	width: 100%;
	max-width: 600px;
	display: none;
}

.app-settings-panel h3 {
	margin-bottom: 15px;
	color: var(--primary-color);
}

.custom-event-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.custom-event-form input,
.custom-event-form select {
	padding: 10px;
	border-radius: 5px;
	border: 1px solid #3C4049;
	background-color: #272A30;
	color: white;
}

.custom-event-form button {
	padding: 10px;
	border: none;
	border-radius: 5px;
	background-color: var(--primary-color);
	color: white;
	font-weight: bold;
	cursor: pointer;
}

.clear-events {
	background-color: #FF5E5E;
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-size: 0.8rem;
}

footer {
	background-color: transparent !important;
	margin-top: 40px;
	text-align: center;
	color: #AAAAAA;
	font-size: 0.9rem;
}

@media (max-width: 768px) {
	.digital-clock {
		font-size: 2rem;
	}

	.clock-cell {
		width: 30px;
		height: 30px;
		font-size: 0.8rem;
	}

	.controls {
		flex-direction: column;
		align-items: center;
	}

	.event-btn {
		width: 200px;
	}

	.clear-events {
		position: static;
		margin-top: 10px;
	}
}

@media (max-width: 480px) {
	.clock-cell {
		width: 22px;
		height: 22px;
		font-size: 0.6rem;
	}

	.digital-clock {
		font-size: 1.5rem;
	}
}
