@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

.bkm-menu,
.bkm-admin-wrap {
	--bkm-navy: #062f63;
	--bkm-red: #d82129;
	--bkm-text: #17365d;
	--bkm-muted: #8c9ab0;
	--bkm-border: #dfe6ef;
	--bkm-surface: #ffffff;
	--bkm-surface-alt: #f6f9fd;
	--bkm-shadow: 0 14px 26px rgba(6, 47, 99, 0.12);
	font-family: 'Poppins', 'Segoe UI', sans-serif;
}

.bkm-menu {
	max-width: 1240px;
	margin: 0 auto;
	padding: 32px 20px 18px;
	color: var(--bkm-text);
}

.bkm-heading {
	text-align: center;
	margin-bottom: 28px;
}

.bkm-heading h2 {
	margin: 0;
	font-size: clamp(2rem, 4vw, 3.35rem);
	font-weight: 800;
	line-height: 1.08;
	color: var(--bkm-navy);
}

.bkm-subtitle {
	margin: 18px 0 0;
	font-size: clamp(1rem, 2vw, 1.45rem);
	font-weight: 500;
	color: #5e7292;
}

.bkm-pdf-link {
	margin: 18px 0 0;
}

.bkm-pdf-link a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--bkm-navy);
	font-size: 0.98rem;
	font-weight: 600;
	text-decoration: none;
}

.bkm-pdf-link a::after {
	content: '\279C';
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--bkm-navy);
	color: #fff;
	font-size: 0.8rem;
}

.bkm-tabs {
	display: flex;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
	margin: 18px 0 26px;
}

.bkm-tab {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 20px;
	border: 1px solid var(--bkm-border);
	border-radius: 18px;
	background: #fff;
	color: #8f9fb7;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 3px 8px rgba(6, 47, 99, 0.04);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.bkm-tab:hover,
.bkm-tab:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(6, 47, 99, 0.12);
	outline: none;
}

.bkm-tab.is-active {
	background: var(--bkm-navy);
	color: #fff;
	border-color: var(--bkm-navy);
	box-shadow: var(--bkm-shadow);
}

.bkm-print-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 18px;
	border: 1px solid var(--bkm-border);
	border-radius: 18px;
	background: #fff;
	color: var(--bkm-navy);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.bkm-print-button:hover,
.bkm-print-button:focus-visible {
	border-color: var(--bkm-navy);
	outline: none;
}

.bkm-tab-icon {
	font-size: 1.1rem;
	line-height: 1;
}

.bkm-view {
	display: none;
}

.bkm-view.is-active {
	display: block;
}

.bkm-day-card {
	background: var(--bkm-surface);
	border: 1px solid var(--bkm-border);
	border-radius: 36px;
	overflow: hidden;
	box-shadow: 0 20px 42px rgba(6, 47, 99, 0.07);
}

.bkm-day-card-header {
	display: grid;
	grid-template-columns: 72px 1fr 72px;
	align-items: center;
	padding: 28px 18px 18px;
	border-bottom: 1px solid #edf2f7;
}

.bkm-nav-button {
	border: 0;
	background: transparent;
	color: var(--bkm-navy);
	font-size: 2rem;
	font-weight: 700;
	cursor: pointer;
	padding: 6px;
	line-height: 1;
}

.bkm-nav-button[disabled] {
	opacity: 0.28;
	cursor: not-allowed;
}

.bkm-day-title {
	text-align: center;
}

.bkm-day-date {
	font-size: clamp(1rem, 2.5vw, 1.2rem);
	font-weight: 500;
	color: #7d8da6;
}

.bkm-day-name {
	margin-top: 4px;
	font-size: clamp(1.45rem, 2.6vw, 2rem);
	font-weight: 700;
	color: var(--bkm-navy);
}

.bkm-day-sections {
	padding: 22px 18px 34px;
}

.bkm-section {
	max-width: 540px;
	margin: 0 auto 28px;
	text-align: center;
}

.bkm-section:last-child {
	margin-bottom: 0;
}

.bkm-section-title {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0 auto 18px;
	padding-bottom: 8px;
	border-bottom: 1px solid #e9eef5;
	color: var(--bkm-navy);
	font-size: clamp(1.1rem, 2.2vw, 1.32rem);
	font-weight: 700;
}

.bkm-section-list {
	list-style: none !important;
	margin: 0;
	padding: 0 !important;
}

.bkm-section-list li {
	list-style: none !important;
	padding: 13px 10px;
	border-bottom: 1px solid #ebeff5;
	color: #455f82;
	font-size: clamp(1rem, 2.4vw, 1.15rem);
	font-weight: 500;
}

.bkm-section-list li::before {
	display: none !important;
	content: none !important;
}

.bkm-section-list li::marker {
	content: '';
}

.bkm-note {
	max-width: 540px;
	margin: 12px auto 0;
	padding: 12px 16px;
	border-radius: 16px;
	background: var(--bkm-surface-alt);
	color: #5a6f90;
	font-size: 0.94rem;
	text-align: center;
}

.bkm-month-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
}

.bkm-month-card {
	display: block !important;
	box-sizing: border-box;
	width: auto;
	min-width: 0;
	min-height: 0;
	padding: 14px 14px 16px;
	border: 1px solid #dce4ee;
	border-radius: 14px;
	background: #fff;
	box-shadow: none;
	color: inherit;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.bkm-month-card:hover,
.bkm-month-card:focus-visible {
	transform: translateY(-3px);
	border-color: #9fb8d5;
	box-shadow: 0 10px 22px rgba(7, 44, 88, 0.1);
	outline: none;
}

.bkm-month-date {
	font-size: 0.78rem;
	font-weight: 500;
	color: #95a2b3;
}

.bkm-month-day {
	margin-top: 4px;
	padding-bottom: 12px;
	border-bottom: 1px solid #edf2f7;
	color: var(--bkm-red);
	font-size: 0.94rem;
	font-weight: 700;
}

.bkm-month-list {
	list-style: none !important;
	margin: 12px 0 0;
	padding: 0 !important;
}

.bkm-month-list li {
	list-style: none !important;
	position: relative;
	padding-left: 10px;
	margin: 0 0 6px !important;
	color: #243f64;
	font-size: 0.76rem;
	font-weight: 500;
	line-height: 1.45;
}

.bkm-month-list li::before {
	content: '\2022';
	position: absolute;
	left: 0;
	top: 0;
	color: #7e90aa;
}

.bkm-month-list li::marker {
	content: '';
}

.bkm-empty-state {
	padding: 40px 24px;
	border: 1px dashed var(--bkm-border);
	border-radius: 24px;
	text-align: center;
	background: var(--bkm-surface-alt);
	color: #637792;
}

.bkm-footer-note {
	max-width: 960px;
	margin: 28px auto 0;
	color: #6d7f98;
	font-size: 0.92rem;
	line-height: 1.7;
	text-align: center;
}

.bkm-admin-wrap {
	padding-top: 14px;
}

.bkm-admin-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.bkm-admin-card {
	margin-top: 20px;
	padding: 22px;
	border: 1px solid var(--bkm-border);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 10px 24px rgba(6, 47, 99, 0.06);
}

.bkm-admin-card h2 {
	margin-top: 0;
	color: var(--bkm-navy);
}

.bkm-admin-card code {
	display: inline-block;
	padding: 10px 12px;
	border-radius: 10px;
	background: var(--bkm-surface-alt);
}

.bkm-admin-shortcode {
	margin-top: 12px;
	padding: 14px 18px;
}

.bkm-admin-primary-card {
	border-color: #c9d8ea;
}

.bkm-admin-primary-card h2 {
	margin-bottom: 8px;
}

.bkm-paste-area {
	min-height: 260px;
	margin-top: 12px;
	padding: 16px;
	border: 2px dashed #b9cce2;
	border-radius: 14px;
	background: #f8fbff;
	font-size: 13px;
	line-height: 1.6;
}

.bkm-paste-area:focus {
	border-color: var(--bkm-navy);
	box-shadow: 0 0 0 3px rgba(6, 47, 99, 0.1);
}

.bkm-admin-details {
	margin-top: 20px;
	padding: 18px 22px;
	border: 1px solid var(--bkm-border);
	border-radius: 18px;
	background: #fff;
}

.bkm-admin-details summary {
	color: var(--bkm-navy);
	font-weight: 700;
	cursor: pointer;
}

.bkm-admin-details form {
	margin-top: 14px;
}

.bkm-admin-preview {
	max-height: 360px;
	overflow: auto;
	margin-top: 16px;
}

.bkm-admin-card-heading,
.bkm-form-actions,
.bkm-backup-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.bkm-admin-card-heading p {
	margin-bottom: 0;
}

.bkm-day-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 22px;
	padding: 20px;
	border-radius: 14px;
	background: var(--bkm-surface-alt);
}

.bkm-day-form label {
	display: flex;
	flex-direction: column;
	gap: 7px;
	font-weight: 600;
}

.bkm-day-form input,
.bkm-day-form textarea {
	width: 100%;
	max-width: none;
}

.bkm-day-form label:first-of-type,
.bkm-day-form label:last-of-type,
.bkm-day-form .bkm-form-actions {
	grid-column: 1 / -1;
}

.bkm-day-list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	max-height: 330px;
	overflow: auto;
	margin-top: 20px;
}

.bkm-day-list-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px;
	border: 1px solid var(--bkm-border);
	border-radius: 12px;
}

.bkm-day-list-item a {
	display: flex;
	flex-direction: column;
	text-decoration: none;
}

.bkm-backup-actions {
	justify-content: flex-start;
	flex-wrap: wrap;
}

.bkm-backup-actions form {
	display: flex;
	align-items: center;
	gap: 10px;
}

@media (max-width: 1180px) {
	.bkm-month-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 980px) {
	.bkm-admin-grid {
		grid-template-columns: 1fr;
	}

	.bkm-month-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.bkm-day-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.bkm-admin-wrap {
		padding-right: 10px;
	}

	.bkm-admin-card {
		padding: 16px;
	}

	.bkm-admin-card-heading,
	.bkm-backup-actions,
	.bkm-backup-actions form {
		align-items: stretch;
		flex-direction: column;
	}

	.bkm-day-form,
	.bkm-day-list {
		grid-template-columns: 1fr;
	}

	.bkm-day-form {
		padding: 14px;
	}

	.bkm-day-form label,
	.bkm-day-form label:first-of-type,
	.bkm-day-form label:last-of-type,
	.bkm-day-form .bkm-form-actions {
		grid-column: 1;
	}

	.bkm-day-form textarea {
		min-height: 120px;
	}

	.bkm-form-actions .button,
	.bkm-backup-actions .button,
	.bkm-backup-actions input[type="file"] {
		width: 100%;
		min-height: 44px;
	}

	.bkm-menu {
		padding: 20px 12px 14px;
	}

	.bkm-tabs {
		gap: 12px;
	}

	.bkm-tab {
		flex: 1 1 calc(50% - 6px);
		justify-content: center;
		padding: 14px 12px;
		border-radius: 20px;
	}

	.bkm-day-card {
		border-radius: 28px;
	}

	.bkm-day-card-header {
		grid-template-columns: 48px 1fr 48px;
		padding: 22px 8px 18px;
	}

	.bkm-nav-button {
		font-size: 2.5rem;
	}

	.bkm-day-sections {
		padding: 18px 8px 28px;
	}

	.bkm-section {
		max-width: 100%;
	}

	.bkm-month-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.bkm-month-card {
		min-height: 178px;
		padding: 14px;
	}
}

@media print {
	@page {
		size: A4;
		margin: 12mm;
	}

	body * {
		visibility: hidden !important;
	}

	.bkm-menu,
	.bkm-menu * {
		visibility: visible !important;
	}

	.bkm-menu {
		position: absolute;
		inset: 0 auto auto 0;
		width: 100%;
		max-width: none;
		padding: 0;
		color: #000;
	}

	.bkm-tabs,
	.bkm-pdf-link {
		display: none !important;
	}

	.bkm-view:not(.is-active) {
		display: none !important;
	}

	.bkm-day-card,
	.bkm-month-card {
		box-shadow: none;
		break-inside: avoid;
	}

	.bkm-nav-button {
		display: none;
	}

	.bkm-day-card-header {
		grid-template-columns: 1fr;
	}

	.bkm-month-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 8px;
	}

	.bkm-month-card {
		padding: 9px;
	}

	.bkm-footer-note {
		font-size: 8pt;
	}
}

@media (max-width: 420px) {
	.bkm-tab {
		font-size: 0.95rem;
	}

	.bkm-month-list li {
		font-size: 0.9rem;
	}
}
