/* Modernes Checkbox-Styling für Reservierungen-Liste */

/* ============================================
   View Toggle Button Container
   ============================================ */
.view-toggle-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-left: 10px;
	margin-right: 10px;
	flex-direction: row-reverse;
}

#toggle-reservierungen-view-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 8px 16px;
	font-weight: 500;
	transition: all 0.2s ease;
	border-radius: 4px;
}

#toggle-reservierungen-view-btn:hover {
	background-color: #2271b1;
	color: white;
	border-color: #2271b1;
}

/* Toggle-Button unter 1200px ausblenden, Container sichtbar lassen */
@media screen and (max-width: 1200px) {
	.view-toggle-container {
		display: flex !important;
		flex-direction: row !important;
		justify-content: flex-start !important;
	}
	
	#toggle-reservierungen-view-btn {
		display: none !important;
	}
}

/* Mobile: Container anpassen */
@media screen and (max-width: 782px) {
	.view-toggle-container {
		flex-direction: column;
		align-items: center;
		gap: 10px;
	}
}

/* ============================================
   Checkbox Styling
   ============================================ */

/* Checkbox Container */
.reservation-checkbox,
#select-all-checkbox {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #8c8f94;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    margin: 0;
    vertical-align: middle;
}

/* Hover State */
.reservation-checkbox:hover,
#select-all-checkbox:hover {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px rgba(34, 113, 177, 0.2);
}

/* Focus State */
.reservation-checkbox:focus,
#select-all-checkbox:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

/* Checked State */
.reservation-checkbox:checked,
#select-all-checkbox:checked {
    background-color: #2271b1;
    border-color: #2271b1;
}

/* Checkmark */
.reservation-checkbox:checked::after,
#select-all-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Disabled State */
.reservation-checkbox:disabled,
#select-all-checkbox:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Bulk Actions Container Styling */
#bulk-actions-container {
    background: #f0f0f1;
    padding: 12px 15px;
    border-radius: 4px;
    border-left: 4px solid #2271b1;
    display: flex;
    align-items: center;
    gap: 15px;
}

#bulk-delete-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

#bulk-delete-btn:hover {
    background-color: #c82333;
    border-color: #bd2130;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

#bulk-delete-btn:active {
    transform: translateY(0);
}

#selected-count {
    color: #2271b1;
    font-size: 14px;
}

/* Table Cell mit Checkbox */
td input[type="checkbox"],
th input[type="checkbox"] {

    display: block !important;
    margin-left: 5px !important;
    width: 20px !important;
    max-width: none !important;
    margin-right: 8px !important;
    height: 20px !important;

}

/* Checkbox Cell Alignment */
.wp-list-table td:first-child,
.wp-list-table th:first-child {
    text-align: center;
}
