/* Room Card Styles - Hotel Booking System */
:root {
	--available: #10b981;
	--reserved: #fbbf24;
	--occupied: #1890ff;
	--cleaning: #1890ff;
	--maintenance: #6b7280;
	--blocked: #6b7280;
}

/* Room Item Selection Styles */
.room-item.card {
	transition: all 0.3s ease;
	cursor: pointer;
}

.room-item.card:hover {
	box-shadow: 0 4px 12px rgba(24, 144, 255, 0.2);
	transform: translateY(-2px);
}

.room-item.card:has(input[type="checkbox"]:checked) {
	border: 2px solid #1890ff !important;
	background: linear-gradient(
		135deg,
		rgba(24, 144, 255, 0.08) 0%,
		rgba(16, 130, 230, 0.05) 100%
	);
	box-shadow: 0 6px 20px rgba(24, 144, 255, 0.3);
}

.room-item.card label {
	cursor: pointer;
	margin-bottom: 0;
}

.room-item.card .pulse-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: currentColor;
	display: inline-block;
	animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.5;
	}
}

.room-card {
	border-radius: 8px;
	background: #ffffff;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	/* box-shadow: 0 4px 12px rgba(24, 144, 255, 0.15); */
	border: 1px solid rgba(24, 144, 255, 0.2);
	overflow: hidden;
	position: relative;
}

.room-card .card-body {
	padding: 1rem 1.9rem;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.room-card h4 {
	font-size: 1.15rem;
	font-weight: 700;
	color: #1e3a8a;
	letter-spacing: -0.02em;
}

.room-capacity-icons {
	display: flex;
	gap: 0.6rem;
	align-items: center;
}

.capacity-item {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	font-size: 0.7rem;
	color: #2563eb;
	font-weight: 500;
}

.capacity-item i {
	font-size: 0.8rem;
	color: #1890ff;
}

.room-card .d-flex.justify-content-between.align-items-center {
	margin-top: auto;
}

.status-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.35rem 0.65rem;
	font-size: 0.7rem;
	font-weight: 600;
	color: white;
	border-radius: 20px;
	white-space: nowrap;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.status-badge i {
	font-size: 0.75rem;
}

.status-available {
	background: var(--available);
}
.status-reserved {
	background: var(--reserved);
	color: #000;
}
.status-occupied {
	background: var(--occupied);
}
.status-maintenance {
	background: var(--maintenance);
}
.status-blocked {
	background: var(--blocked);
}

.room-available-status {
	text-align: center;
	padding: 0.75rem 0.5rem;
}

.room-available-status .status-text {
	font-size: 0.9rem;
	font-weight: 800;
	color: #2dc194;
	letter-spacing: 0.5px;
	margin-bottom: 0.2rem;
}

.room-available-status .status-subtext {
	font-size: 0.7rem;
	color: #2563eb;
	font-weight: 500;
}

.customer-name-section {
	text-align: center;
	padding: 0.75rem;
	background: linear-gradient(
		135deg,
		rgba(24, 144, 255, 0.12) 0%,
		rgba(16, 130, 230, 0.12) 100%
	);
	border-radius: 10px;
	border: 2px solid rgba(24, 144, 255, 0.25);
}

.customer-name {
	font-size: 1.05rem;
	font-weight: 800;
	background: linear-gradient(135deg, #1890ff 0%, #1082e6 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.room-card-reserved .customer-name-section {
	background: linear-gradient(
		135deg,
		rgba(251, 191, 36, 0.12) 0%,
		rgba(245, 158, 11, 0.12) 100%
	);
	border: 2px solid rgba(251, 191, 36, 0.25);
}

.room-card-reserved .customer-name {
	background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.detail-item-inline {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	margin-top: 0.6rem;
	padding-top: 0.6rem;
	border-top: 1px solid rgba(24, 144, 255, 0.2);
}

.room-card-reserved .detail-item-inline {
	border-top: 1px solid rgba(251, 191, 36, 0.2);
}

.reserved-checkin-time {
	display: flex;
	align-items: center;
	justify-content: center;
	padding-top: 0.6rem;
	border-top: 1px solid rgba(251, 191, 36, 0.2);
}

.time-block {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	text-align: center;
}

.time-value {
	font-size: 0.9rem;
	font-weight: 800;
	color: #1890ff;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.date-value {
	font-size: 0.6rem;
	font-weight: 500;
	color: #2563eb;
	line-height: 1.2;
}

.reserved-checkin-time .time-value {
	color: #fbbf24;
	font-size: 0.9rem;
	font-weight: 700;
}

.reserved-checkin-time .date-value {
	font-size: 0.7rem;
}

.time-separator {
	font-size: 1.2rem;
	color: #2563eb;
	opacity: 0.5;
	font-weight: 300;
}

.price-section {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.price-original {
	font-size: 0.85rem;
	font-weight: 500;
	color: #9ca3af;
	text-decoration: line-through;
}

.price {
	font-size: 1.25rem;
	font-weight: 800;
	color: #1890ff;
	letter-spacing: -0.02em;
}

.currency {
	font-size: 0.9rem;
	font-weight: 600;
	color: #1890ff;
}

.filter-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.4rem 0.85rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: #2563eb;
	background: rgba(255, 255, 255, 0.95);
	border: 2px solid rgba(24, 144, 255, 0.2);
	border-radius: 20px;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-chip:hover {
	border-color: rgba(24, 144, 255, 0.5);
	background: white;
	transform: translateY(-2px);
}

.filter-chip.active {
	border-color: #1890ff;
	background: linear-gradient(135deg, #1890ff 0%, #1082e6 100%);
	color: white;
}

.legend-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
}

.legend-dot.bg-available {
	background: var(--available);
}
.legend-dot.bg-reserved {
	background: var(--reserved);
}
.legend-dot.bg-occupied {
	background: var(--occupied);
}
.legend-dot.bg-maintenance {
	background: var(--maintenance);
}
.legend-dot.bg-blocked {
	background: var(--blocked);
}

.room-card-maintenance,
.room-card-blocked {
	opacity: 0.7;
	cursor: not-allowed;
	pointer-events: none;
}

.detail-item {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.8rem;
	color: #2563eb;
	font-weight: 500;
}

.detail-item i {
	font-size: 1rem;
	opacity: 0.8;
	color: #1890ff;
}

.detail-label {
	font-weight: 700;
	color: #1e3a8a;
}

.room-details {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}
.sticky-action {
	transition: all 0.3s ease;
}
label:has(+ input[required]),
label:has(+ select[required]),
label:has(+ textarea[required]) {
	position: relative;
}

label:has(+ input[required])::after,
label:has(+ select[required])::after,
label:has(+ textarea[required])::after {
	content: " *";
	color: red;
}

.disabled-box {
	background-color: #e9ecef;
	pointer-events: none;
	opacity: 0.65;
	user-select: none;
}

.card:has(.checkboxDetailRoom:checked) {
	border: 2px solid #1890ff !important;
}
.card:has(.checkboxDetailRoom) {
	cursor: pointer;
	border: 2px solid transparent;
	transition: border-color 0.3s ease;
}

.flat-outline {
	transition: ease-in-out 0.3s;
	outline: 2px solid #1890ff !important;
}
