/* ===== RSVP Responses Admin Page ===== */

.mep-rsvp-admin-wrap {
	max-width: 100%;
}

/* Header */
.mep-rsvp-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}

.mep-rsvp-header h1.wp-heading-inline {
	margin: 0;
	flex: 1;
}

/* Export CSV button — top right */
a.mep-export-rsvp-csv, a.mep-export-rsvp-csv:visited {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 8px 18px !important;
    background: #16a34a!important;
    color: #ffffff !important;
    border: none;
    border-radius: 7px !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.28);
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
    white-space: nowrap;
}

a.mep-export-rsvp-csv::before {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	flex-shrink: 0;
}

a.mep-export-rsvp-csv:hover {
	background: #15803d;
	box-shadow: 0 4px 14px rgba(22, 163, 74, 0.38);
	transform: translateY(-1px);
}

a.mep-export-rsvp-csv:active {
	transform: translateY(0);
	box-shadow: 0 1px 4px rgba(22, 163, 74, 0.2);
}

/* Statistics */
.mep-rsvp-statistics {
	display: flex;
	gap: 16px;
	margin-bottom: 20px;
}

.mep-stat-box {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 18px 28px;
	min-width: 160px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
	text-align: center;
}

.mep-stat-title {
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 6px;
}

.mep-stat-value {
	font-size: 30px;
	font-weight: 700;
	color: #1e293b;
	line-height: 1;
}

/* Toolbar */
.mep-rsvp-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 12px 16px;
	margin-bottom: 16px;
}

.mep-toolbar-left,
.mep-toolbar-right {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.mep-rsvp-toolbar select,
.mep-rsvp-toolbar input[type="search"] {
	height: 34px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	padding: 0 10px;
	font-size: 13px;
	background: #ffffff;
	color: #374151;
	box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}

.mep-rsvp-toolbar input[type="search"] {
	width: 220px;
}

.mep-rsvp-toolbar select:focus,
.mep-rsvp-toolbar input[type="search"]:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
}

/* Apply (bulk action) button */
#mep-do-bulk-action.button {
	height: 34px;
	padding: 0 14px;
	background: #ffffff;
	color: #374151;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
	transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

#mep-do-bulk-action.button::before {
	content: '';
	display: inline-block;
	width: 13px;
	height: 13px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	flex-shrink: 0;
}

#mep-do-bulk-action.button:hover {
	background: #f1f5f9;
	border-color: #94a3b8;
	box-shadow: 0 2px 6px rgba(0,0,0,0.1);
	color: #1e293b;
}

#mep-do-bulk-action.button:active {
	background: #e2e8f0;
	box-shadow: none;
}

/* Search button */
#mep-do-search.button {
	height: 34px;
	padding: 0 16px;
	background: #2271b1;
	color: #ffffff;
	border: 1px solid #2271b1;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	box-shadow: 0 2px 6px rgba(34, 113, 177, 0.25);
	transition: background 0.15s, box-shadow 0.15s, transform 0.12s;
}

#mep-do-search.button::before {
	content: '';
	display: inline-block;
	width: 13px;
	height: 13px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	flex-shrink: 0;
}

#mep-do-search.button:hover {
	background: #135e96;
	border-color: #135e96;
	box-shadow: 0 4px 10px rgba(34, 113, 177, 0.35);
	transform: translateY(-1px);
	color: #ffffff;
}

#mep-do-search.button:active {
	transform: translateY(0);
	box-shadow: 0 1px 3px rgba(34, 113, 177, 0.2);
}

/* Table Container */
.mep-rsvp-table-container {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.mep-rsvp-table {
	border: none !important;
	border-collapse: collapse;
	width: 100%;
}

.mep-rsvp-table thead tr,
.mep-rsvp-table tfoot tr {
	background: #f1f5f9;
}

.mep-rsvp-table thead th,
.mep-rsvp-table thead td,
.mep-rsvp-table tfoot th,
.mep-rsvp-table tfoot td {
	padding: 10px 12px;
	font-size: 12px;
	font-weight: 700;
	color: #475569;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-bottom: 1px solid #e2e8f0;
}

.mep-rsvp-table tbody tr {
	border-bottom: 1px solid #f1f5f9;
	transition: background 0.15s;
}

.mep-rsvp-table tbody tr:last-child {
	border-bottom: none;
}

.mep-rsvp-table tbody tr:hover {
	background: #f8fafc !important;
}

.mep-rsvp-table tbody td {
	padding: 12px;
	font-size: 13px;
	color: #374151;
	vertical-align: middle;
}

/* Column widths */
.mep-rsvp-table .column-cb {
	width: 36px;
}

.mep-rsvp-table .column-name {
	min-width: 160px;
}

.mep-rsvp-table .column-event {
	min-width: 140px;
}

.mep-rsvp-table .column-event-date {
	min-width: 110px;
	white-space: nowrap;
}

.mep-rsvp-table .column-qty {
	width: 60px;
	text-align: center;
}

.mep-rsvp-table .column-status {
	width: 130px;
}

.mep-rsvp-table .column-date {
	min-width: 100px;
	white-space: nowrap;
}

.mep-rsvp-table .column-actions {
	width: 150px;
	text-align: right;
}

/* Name cell */
.mep-rsvp-table .column-name strong {
	display: block;
	color: #1e293b;
	font-size: 13px;
	line-height: 1.4;
	margin-bottom: 1px;
}

.mep-rsvp-table .column-name small {
	display: block;
	color: #64748b;
	font-size: 11px;
	line-height: 1.3;
}

.mep-rsvp-table .column-name small a {
	color: #2271b1;
	text-decoration: none;
}

.mep-rsvp-table .column-name small a:hover {
	text-decoration: underline;
}

/* Status Badges */
.mep-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
}

.mep-badge-success {
	background: #dcfce7;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.mep-badge-warning {
	background: #fef9c3;
	color: #854d0e;
	border: 1px solid #fde047;
}

/* Check-in Button */
.mep-btn-checkin {
	display: inline-flex !important;
	align-items: center !important;
	gap: 5px !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	padding: 5px 12px !important;
	border-radius: 20px !important;
	border: 1.5px solid #d1d5db !important;
	background: #ffffff !important;
	color: #475569 !important;
	cursor: pointer !important;
	white-space: nowrap !important;
	box-shadow: 0 1px 3px rgba(0,0,0,0.07) !important;
	transition: background 0.15s ease, border-color 0.15s ease,
	            color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease !important;
	line-height: 1 !important;
	text-decoration: none !important;
}

.mep-btn-checkin:hover {
	border-color: #2271b1 !important;
	background: #eff6ff !important;
	color: #1d4ed8 !important;
	box-shadow: 0 3px 8px rgba(34, 113, 177, 0.2) !important;
	transform: translateY(-1px) !important;
}

.mep-btn-checkin.is-checked {
	background: #dcfce7 !important;
	border-color: #4ade80 !important;
	color: #166534 !important;
	box-shadow: 0 1px 4px rgba(22, 163, 74, 0.18) !important;
}

.mep-btn-checkin.is-checked:hover {
	background: #bbf7d0 !important;
	border-color: #22c55e !important;
	box-shadow: 0 3px 8px rgba(22, 163, 74, 0.28) !important;
	transform: translateY(-1px) !important;
}

.mep-btn-checkin.updating {
	opacity: 0.6 !important;
	cursor: not-allowed !important;
	transform: none !important;
	pointer-events: none !important;
}

.mep-btn-checkin .dashicons {
	font-size: 14px;
	width: 14px;
	height: 14px;
}

/* Loading & Error States */
.mep-loading-msg,
.mep-error-msg {
	text-align: center;
	padding: 32px !important;
	font-size: 14px;
	color: #64748b;
}

.mep-error-msg {
	color: #dc2626;
}

/* Pagination */
.mep-rsvp-pagination {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	padding: 12px 0;
}

.mep-rsvp-pagination .pagination-links {
	display: flex;
	align-items: center;
	gap: 6px;
}

.mep-rsvp-pagination .paging-input {
	font-size: 13px;
	color: #374151;
	padding: 0 6px;
}

.mep-rsvp-pagination .button {
	min-width: 30px;
	padding: 2px 8px;
	text-align: center;
	font-size: 16px;
	line-height: 1.6;
}

.mep-rsvp-pagination .button.disabled {
	opacity: 0.4;
	cursor: default;
	pointer-events: none;
}

/* Responsive */
@media (max-width: 782px) {
	.mep-rsvp-statistics {
		flex-wrap: wrap;
	}

	.mep-stat-box {
		flex: 1 1 120px;
	}

	.mep-rsvp-toolbar {
		flex-direction: column;
		align-items: flex-start;
	}

	.mep-rsvp-toolbar input[type="search"] {
		width: 100%;
	}
}
