* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
	background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 20px;
}

.calendar-container {
	width: 100%;
	max-width: 900px;
	background-color: white;
	border-radius: 15px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	padding: 20px;
}
.calendar{
	font-size: 24px;
	color: #4facfe;
	margin: 5px auto;
}
.calendar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px30px;
	background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
	color: white;
	border-radius: 5px 5px 0 0;
}

.calendar-headerh1 {
	font-size: 1.8rem;
	font-weight: 500;
}

.calendar-nav {
	display: flex;
	gap: 15px;
}

.nav-btn {
	background: rgba(255, 255, 255, 0.2);
	border: none;
	color: white;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	transition: all 0.3s ease;
}

.nav-btn:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: scale(1.05);
}

.calendar-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	background-color: #f8f9fa;
	padding: 10px0;
	border-left: 1px solid #eaeaea;
	border-right: 1px solid #eaeaea;
}

.weekday {
	text-align: center;
	font-weight: 600;
	color: #6c757d;
}

.calendar-days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 1px;
	background-color: #eaeaea;
	border: 1px solid #eaeaea;
}

.day {
	min-height: 80px;
	background-color: white;
	padding: 6px;
	cursor: pointer;
	transition: all 0.2s ease;
	position: relative;
	overflow: hidden;
}

.day:hover {
	background-color: #f8f9fa;
	transform: scale(1.02);
	z-index: 1;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.day-number {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 3px;
}

.event {
	background-color: #e9ecef;
	border-radius: 3px;
	padding: 2px 4px;
	margin-top: 2px;
	font-size: 0.7rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.event.important {
	background-color: #ffeaa7;
	color: #d35400;
}

.event.anniversary {
	background-color: #fab1a0;
	color: #e84393;
}

.other-month {
	color: #adb5bd;
	background-color: #f8f9fa;
}

.today {
	background-color: #e3f2fd;
	border: 2px solid #4facfe;
}

.event-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 100;
	justify-content: center;
	align-items: center;
}

.modal-content {
	background-color: white;
	width: 90%;
	max-width: 500px;
	border-radius: 15px;
	padding: 25px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	animation: modalAppear 0.3s ease;
}

@keyframes modalAppear {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.modal-headerh2 {
	color: #4facfe;
}

.close-btn {
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: #6c757d;
}

.event-form {
	margin-top:10px;
}

.event-form input,
.event-form textarea,
.event-form select {
	width: 100%;
	padding: 12px;
	margin-bottom: 2px;
	border: 1px solid #eaeaea;
	border-radius: 8px;
	font-size: 1rem;
}

.event-form textarea {
	min-height: 100px;
	resize: vertical;
}

.form-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 20px;
}

.btn {
	padding: 10px 20px;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
	transition: all 0.3s ease;
}

.btn-primary {
	background-color: #4facfe;
	color: white;
}

.btn-primary:hover {
	background-color: #3a9bf7;
}

.btn-secondary {
	background-color: #e9ecef;
	color: #6c757d;
}

.btn-secondary:hover {
	background-color: #dee2e6;
}

.btn-danger {
	background-color: #ff7675;
	color: white;
}

.btn-danger:hover {
	background-color: #ff5e57;
}

.event-list {
	margin-top: 20px;
	max-height: 320px;
	overflow-y: auto;
}

.event-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px;
	border-bottom: 1px solid #eaeaea;
}

.event-item:last-child {
	border-bottom: none;
}

.event-detailsh4 {
	margin-bottom: 5px;
}

.event-detailsp {
	color: #6c757d;
	font-size: 0.9rem;
}

.event-actions {
	display: flex;
	gap: 10px;
}

.event-type-tag {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 0.7rem;
	margin-left: 8px;
}

.anniversary-tag {
	background-color: #fab1a0;
	color: #e84393;
}

.important-tag {
	background-color: #ffeaa7;
	color: #d35400;
}

.no-events {
	text-align: center;
	color: #adb5bd;
	padding: 20px;
}

@media (max-width:768px) {
	.calendar-header {
		flex-direction: column;
		gap: 15px;
	}

	.day {
		min-height: 70px;
	}

	.event {
		font-size: 0.65rem;
	}
}