/* LNH Lunar Calendar Frontend Styles v1.2.0 */
.lnhlc-container {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	line-height: 1.6;
	margin-bottom: 1.5em;
	box-sizing: border-box;
}
.lnhlc-container *, .lnhlc-container *::before, .lnhlc-container *::after {
	box-sizing: inherit;
}
select[name="lnhlc_month"] {
	min-width: 80px;
}
/* Widget Layout */
.layout-widget .lnhlc-widget {
	border: 1px solid #ddd;
	border-radius: 8px;
	max-width: 100%;
	overflow: hidden;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
	display: flex;
	justify-content: space-between;
}
.layout-widget .lnhlc-header {
	padding: 10px 15px;
	background-color: #f7f7f7;
	border-bottom: 1px solid #ddd;
}
.layout-widget .lnhlc-weekday {
	font-size: 1.1em;
	font-weight: bold;
	color: #333;
}
.layout-widget .lnhlc-solar-date {
	font-size: 0.9em;
	color: #555;
}
.layout-widget .lnhlc-body {
	display: flex;
	align-items: center;
	padding: 15px;
	background-color: #fff;
}
.layout-widget .lnhlc-lunar-day {
	font-size: 3.5em;
	font-weight: bold;
	color: #c00;
	margin-right: 15px;
	line-height: 1;
}
.layout-widget .lnhlc-lunar-details {
	font-size: 0.9em;
}
.layout-widget .lnhlc-lunar-can-chi {
	color: #666;
	font-size: 0.9em;
}
.layout-widget .lnhlc-footer {
	background-color: #f7f7f7;
	padding: 10px 15px;
	font-size: 0.85em;
	color: #444;
	border-top: 1px solid #ddd;
	display: flex;
	align-items: center;
}

/* Dark Theme for Widget */
.theme-dark .lnhlc-widget {
	border-color: #444;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.theme-dark .lnhlc-header, .theme-dark .lnhlc-footer {
	background-color: #2a2a2a;
	border-color: #444;
	color: #ccc;
}
.theme-dark .lnhlc-weekday {
	color: #fff;
}
.theme-dark .lnhlc-solar-date {
	color: #aaa;
}
.theme-dark .lnhlc-body {
	background-color: #1e1e1e;
	color: #eee;
}
.theme-dark .lnhlc-lunar-day {
	color: #ff4d4d;
}
.theme-dark .lnhlc-lunar-can-chi {
	color: #bbb;
}

/* Inline Layout */
.layout-inline .lnhlc-inline {
	padding: 5px 10px;
	border-radius: 4px;
	background-color: #f0f0f0;
	font-size: 0.95em;
	display: inline-block;
}
.theme-dark .layout-inline .lnhlc-inline {
	background-color: #333;
	color: #eee;
}

/* Full Calendar Layout */
.lnhlc-full {
	border: 1px solid #e0e0e0;
	padding: 15px;
	border-radius: 8px;
}
.lnhlc-full-nav .nav-form button {
	padding: 3px;
	border-radius: 5px;
}
.lnhlc-full-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 15px;
	flex-wrap: wrap;
	gap: 10px;
	background: #0076ce;
	padding: 10px;
	border-radius: 10px;
}
.lnhlc-full-nav .nav-arrow {
	font-size: 27px;
	font-weight: bold;
	text-decoration: none;
	color: #333;
	padding: 0 7px;
	line-height: 1;
	position: relative;
	top: -2px;
	background: #fff;
	border-radius: 50%;
	height: 30px;
	width: 30px;
	font-family: monospace;
	margin: 0;
	max-height: 30px;
	min-height: 10px;
}
.lnhlc-full-nav .nav-title {
	font-size: 1.5em;
	font-weight: bold;
	color: #fff;
	flex-grow: 1;
	text-align: center;
}
.lnhlc-full-nav .nav-form {
	display: flex;
	gap: 5px;
	margin: 0;
	align-items: center;
}
.lnhlc-full-nav .nav-form select, .lnhlc-full-nav .nav-form button {
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	font-size: 14px;
	margin: 0;
	width: auto;
}
.lnhlc-full-nav .nav-form button {
	background-color: #2c8f2c;
	color: white;
	cursor: pointer;
	border-color: #2c8f2c;
}
.lnhlc-full-nav .nav-form button {
	padding: 3px 10px;
	border-radius: 5px;
	font-weight: bold;
}
.lnhlc-full-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 1px;
	background-color: #e0e0e0;
	border: 1px solid #e0e0e0;
}
.lnhlc-full-grid .grid-header {
	background-color: #f7f7f7;
	font-weight: bold;
	text-align: center;
	padding: 10px 5px;
}
.lnhlc-full-grid .grid-day {
	background-color: #fff;
	padding: 8px;
	min-height: 100px;
	position: relative;
	font-size: 14px;
}
.lnhlc-full-grid .solar-day {
	font-size: 1.8em;
	font-weight: 500;
}
.lnhlc-full-grid .lunar-day-small {
	position: absolute;
	top: 8px;
	right: 8px;
	font-size: 0.9em;
	color: #0076ce;
}
.lnhlc-full-grid .can-chi-day {
	font-size: 1em;
	color: #000;
	position: absolute;
	bottom: 8px;
	left: 8px;
}
.lnhlc-full-grid .day-out-month {
	background-color: #f9f9f9;
}
.lnhlc-full-grid .day-out-month .solar-day,
.lnhlc-full-grid .day-out-month .lunar-day-small,
.lnhlc-full-grid .day-out-month .can-chi-day {
	opacity: 0.5;
}
.lnhlc-full-grid .is-today {
	background-color: #fffbe6;
}
.lnhlc-full-grid .is-today .solar-day {
	border: 1px solid #ffc107;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}
.lnhlc-full-grid .is-lunar-first .solar-day,
.lnhlc-full-grid .is-lunar-fifteenth .solar-day {
	color: #d9534f;
}
.weekday-short{
	display:none;
}
@media (max-width: 768px) {
	.lnhlc-full-header .header-col-3 {
		text-align: left !important;
	}
	.weekday-full{
		display:none !important;
	}
	.weekday-short{
		display:block !important;
	}
	.layout-widget .lnhlc-widget {
		flex-direction: column;
	}
	.lnhlc-full-grid .can-chi-day {
		font-size: 0.7em;
		color: #000000;
		position: absolute;
		bottom: 8px;
		left: 8px;
	}
	.lnhlc-full-grid .lunar-day-small {
		top: 30px;
		right: auto;
		font-size: 0.9em;
		color: #000;
		left: 5px;
	}
	.lnhlc-full-nav {
		flex-direction: row;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
	}
	.lnhlc-full-grid .grid-day {
		min-height: 80px;
		padding: 5px;
		font-size: 12px;
	}
	.lnhlc-full-grid .solar-day {
		font-size: 1.4em;
	}
	.lnhlc-full-grid .is-today .solar-day {
		width: 32px;
		height: 32px;
	}
}
/* ... Thêm vào cuối file main.css ... */

/* Style for clickable days */
.lnhlc-full-grid .grid-day.day-in-month {
	cursor: pointer;
	transition: background-color 0.2s ease-in-out;
}
.lnhlc-full-grid .grid-day.day-in-month:hover {
	background-color: #f0f8ff; /* AliceBlue */
}

/* Style for the selected day */
.lnhlc-full-grid .grid-day.is-selected {
	background-color: #d4edda; /* Light green */
	border: 1px solid #155724;
	box-shadow: 0 0 5px rgba(21, 87, 36, 0.5);
}
.lnhlc-full-grid .grid-day.is-selected .solar-day {
	font-weight: bold;
}
.lnhlc-full-grid .grid-day:hover {
	background: #0000000d;
}

/* NEW: Full Calendar Header Styles */
.lnhlc-full-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px;
	border-bottom: 1px solid #e0e0e0;
	margin-bottom: 15px;
	background-color: #fafafa;
	border-radius: 8px 8px 0 0;
}
.lnhlc-full-header .header-col-1 {
	text-align: left;
}
.lnhlc-full-header .header-weekday {
	font-size: 1.2em;
	font-weight: bold;
}
.lnhlc-full-header .header-solar-date {
	font-size: 0.9em;
	color: #555;
}
.lnhlc-full-header .header-col-2 {
	display: flex;
	align-items: center;
	gap: 15px;
	flex-grow: 1;
	justify-content: center;
}
.lnhlc-full-header .header-lunar-day {
	font-size: 3em;
	font-weight: bold;
	color: #d9534f;
	line-height: 1;
}
.lnhlc-full-header .header-lunar-details {
	font-size: 0.95em;
}
.lnhlc-full-header .header-lunar-cc {
	color: #666;
}
.lnhlc-full-header .header-col-3 {
	font-size: 0.9em;
	color: #444;
	text-align: right;
	max-width: 200px;
}
.grid-day.day-in-month.current-day {
	background: #10ff103d;
}
.header-lunar-label {
	font-size: 14px;
}

/* ============================================= */
/* Dark Theme for Full Calendar Layout          */
/* ============================================= */

.lnhlc-container.theme-dark .lnhlc-full {
    border-color: #444;
    background-color: #1e1e1e;
    color: #efefef;
}

/* --- Header Widget --- */
.lnhlc-container.theme-dark .lnhlc-full-header {
    background-color: #2a2a2a;
    border-bottom-color: #444;
}
.lnhlc-container.theme-dark .lnhlc-full-header .header-weekday {
    color: #fff;
}
.lnhlc-container.theme-dark .lnhlc-full-header .header-solar-date {
    color: #aaa;
}
.lnhlc-container.theme-dark .lnhlc-full-header .header-lunar-day {
    color: #ff4d4d;
}
.lnhlc-container.theme-dark .lnhlc-full-header .header-lunar-details {
    color: #eee;
}
.lnhlc-container.theme-dark .lnhlc-full-header .header-lunar-cc {
    color: #bbb;
}
.lnhlc-container.theme-dark .lnhlc-full-header .header-col-3 {
    color: #efefef;
}


/* --- Navigation --- */
.lnhlc-container.theme-dark .lnhlc-full-nav .nav-arrow {
    color: #101010;
}
.lnhlc-container.theme-dark .lnhlc-full-nav .nav-title {
    color: #fff; /* A nice green for contrast */
}
.lnhlc-container.theme-dark .lnhlc-full-nav .nav-form select,
.lnhlc-container.theme-dark .lnhlc-full-nav .nav-form button {
    background-color: #333;
    color: #eee;
    border-color: #555;
}
.lnhlc-container.theme-dark .lnhlc-full-nav .nav-form button {
    background-color: #4CAF50;
    border-color: #4CAF50;
}
.lnhlc-container.theme-dark .lnhlc-full-nav {

    background: #00182a;
}

/* --- Calendar Grid --- */
.lnhlc-container.theme-dark .lnhlc-full-grid {
    background-color: #444; /* Grid lines */
    border-color: #444;
}
.lnhlc-container.theme-dark .lnhlc-full-grid .grid-header {
    background-color: #2a2a2a;
    color: #fff;
}
.lnhlc-container.theme-dark .lnhlc-full-grid .grid-day {
    background-color: #1e1e1e;
}
.lnhlc-container.theme-dark .lnhlc-full-grid .lunar-day-small {
    color: #888;
}
.lnhlc-container.theme-dark .lnhlc-full-grid .can-chi-day {
    color: #999;
}


/* --- Day States --- */
.lnhlc-container.theme-dark .lnhlc-full-grid .day-out-month {
    background-color: #222;
}
.lnhlc-container.theme-dark .lnhlc-full-grid .day-in-month:hover {
    background-color: #333;
}
.lnhlc-container.theme-dark .lnhlc-full-grid .current-day {
    background-color: #3a3a2a;
}
.lnhlc-container.theme-dark .lnhlc-full-grid .current-day .solar-day {
    border-color: #b8860b; /* DarkGoldenRod */
}
.lnhlc-container.theme-dark .lnhlc-full-grid .is-selected {
    background-color: #2a3a4a;
    border: 1px solid #4a90e2;
}
.lnhlc-container.theme-dark .lnhlc-full-grid .is-lunar-first .solar-day,
.lnhlc-container.theme-dark .lnhlc-full-grid .is-lunar-fifteenth .solar-day {
    color: #ff6b6b;
}
