/**
 * Admin Events Styles
 *
 * @package Karate_Club_Manager
 * @since 1.0.72
 */

/* Events List */
.kcm-events-page .wp-list-table th,
.kcm-events-page .wp-list-table td {
	vertical-align: middle;
}

.kcm-status-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.kcm-status-active {
	background: #4caf50;
	color: #fff;
}

.kcm-status-archived {
	background: #9e9e9e;
	color: #fff;
}

.kcm-status-confirmed {
	background: #4caf50;
	color: #fff;
}

.kcm-status-pending {
	background: #ff9800;
	color: #fff;
}

.kcm-status-cancelled {
	background: #f44336;
	color: #fff;
}

/* Action Links */
.kcm-action-separator {
	color: #D1D5DB;
	padding: 0 5px;
}

.kcm-link-delete {
	color: #b32d2e;
}

.kcm-link-delete:hover {
	color: #dc3232;
}

/* Event Form */
.kcm-event-form .form-table {
	margin-top: 20px;
}

.kcm-event-form .required {
	color: #d63638;
	font-weight: bold;
}

.kcm-image-upload {
	max-width: 600px;
}

#kcm-image-preview {
	margin-bottom: 15px;
	border: 1px solid #D1D5DB;
	padding: 10px;
	background: #F4F4F2;
	border-radius: 4px;
	min-height: 60px;
	display: flex;
	align-items: center;
	justify-content: center;
}

#kcm-image-preview:empty {
	display: none;
}

#kcm-image-preview img {
	max-width: 100%;
	height: auto;
	display: block;
}

#kcm-event-message {
	margin-top: 20px;
}

#kcm-event-message.notice {
	display: block;
}

/* Event Registrations */
.kcm-event-registrations .description {
	margin-top: 10px;
	font-size: 14px;
	color: #6B7280;
}

.kcm-event-registrations h1 strong {
	color: #B11226;
}

.kcm-event-registrations .wp-list-table {
	margin-top: 20px;
}

/* Sortable Table Headers */
.kcm-event-registrations th.sortable {
	cursor: pointer;
	padding: 8px;
}

.kcm-event-registrations th.sortable a {
	color: #B11226;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.kcm-event-registrations th.sortable a:hover {
	color: #8F0E1E;
	text-decoration: underline;
}

.kcm-event-registrations th.sortable a::after {
	content: '⇅';
	opacity: 0.3;
	font-size: 12px;
}

.kcm-event-registrations th.sortable.sorted-asc a::after {
	content: '▲';
	opacity: 1;
}

.kcm-event-registrations th.sortable.sorted-desc a::after {
	content: '▼';
	opacity: 1;
}

/* Export Button */
.kcm-event-registrations .button-primary .dashicons {
	vertical-align: middle;
}

/* Responsive */
@media screen and (max-width: 782px) {
	.kcm-events-page .wp-list-table th,
	.kcm-events-page .wp-list-table td {
		padding: 8px;
		font-size: 13px;
	}

	.kcm-status-badge {
		font-size: 11px;
		padding: 3px 8px;
	}
}
