/* Events Front End — front-end form & dashboard styles
   Deliberately neutral so it inherits your theme's look where possible. */

.efe-wrap { max-width: 820px; margin: 0 auto; }
.efe-wrap * { box-sizing: border-box; }

.efe-title { margin: 0; font-size: 1.5rem; }

/* Notices */
.efe-notice {
	padding: 12px 16px;
	border-radius: 8px;
	margin: 0 0 20px;
	border: 1px solid transparent;
	font-size: 0.95rem;
}
.efe-notice--success { background: #edf7ed; border-color: #cae8ca; color: #1e4620; }
.efe-notice--error   { background: #fdecea; border-color: #f5c6c3; color: #611a15; }
.efe-notice--info    { background: #e8f0fe; border-color: #c6d8f5; color: #14346b; }

/* Dashboard */
.efe-dashboard__head,
.efe-form__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}
.efe-empty { padding: 24px; background: #f6f7f9; border-radius: 8px; text-align: center; }

.efe-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.efe-table th,
.efe-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e6e8eb; vertical-align: middle; }
.efe-table th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; color: #666; }
.efe-table__name { font-weight: 600; }
.efe-table__actions { white-space: nowrap; text-align: right; }

.efe-status { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.78rem; background: #eef0f2; color: #444; }
.efe-status--publish { background: #e3f4e4; color: #1e4620; }
.efe-status--pending { background: #fff3e0; color: #7a4b00; }
.efe-status--draft   { background: #eef0f2; color: #555; }
.efe-status--future  { background: #e8f0fe; color: #14346b; }

/* Buttons */
.efe-btn {
	display: inline-block;
	padding: 9px 16px;
	border-radius: 8px;
	border: 1px solid #c9ccd1;
	background: #f4f5f7;
	color: #1a1a1a;
	text-decoration: none;
	font-size: 0.9rem;
	line-height: 1.2;
	cursor: pointer;
}
.efe-btn:hover { background: #e9ebee; }
.efe-btn--primary { background: #2563eb; border-color: #2563eb; color: #fff; }
.efe-btn--primary:hover { background: #1d4ed8; }
.efe-btn--ghost { background: transparent; }
.efe-btn--small { padding: 6px 11px; font-size: 0.83rem; }
.efe-btn--lg { padding: 12px 26px; font-size: 1rem; }

/* Form */
.efe-form { background: #fff; }
.efe-field { margin: 0 0 16px; display: flex; flex-direction: column; }
.efe-field label { font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.efe-field--check label { font-weight: 400; flex-direction: row; }
.efe-field input[type="text"],
.efe-field input[type="url"],
.efe-field input[type="email"],
.efe-field input[type="datetime-local"],
.efe-field select,
.efe-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #c9ccd1;
	border-radius: 8px;
	font-size: 0.95rem;
	font-family: inherit;
}
.efe-field textarea { resize: vertical; }
.efe-req { color: #d32f2f; }
.efe-optional { color: #888; font-weight: 400; font-size: 0.82rem; }
.efe-hint { color: #777; font-size: 0.8rem; margin-top: 4px; }

.efe-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 560px) { .efe-grid-2 { grid-template-columns: 1fr; } }

.efe-fieldset {
	border: 1px solid #e6e8eb;
	border-radius: 10px;
	padding: 16px 18px 4px;
	margin: 0 0 20px;
}
.efe-fieldset legend { font-weight: 700; padding: 0 8px; font-size: 1rem; }

.efe-checkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px 14px; margin-bottom: 14px; }
.efe-checkgrid__item { display: flex; align-items: center; gap: 7px; font-weight: 400; }

.efe-submit { margin-top: 8px; }

/* Help / What's new panels */
.efe-help {
	border: 1px solid #e6e8eb;
	border-radius: 10px;
	margin: 0 0 14px;
	background: #f9fafb;
}
.efe-help summary {
	cursor: pointer;
	padding: 12px 16px;
	font-weight: 600;
	list-style: none;
	position: relative;
	user-select: none;
}
.efe-help summary::-webkit-details-marker { display: none; }
.efe-help summary::before {
	content: "▸";
	display: inline-block;
	margin-right: 8px;
	transition: transform 0.15s ease;
	color: #2563eb;
}
.efe-help[open] summary::before { transform: rotate(90deg); }
.efe-help__body { padding: 0 18px 14px 38px; font-size: 0.93rem; }
.efe-help__body ol,
.efe-help__body ul { margin: 6px 0; padding-left: 18px; }
.efe-help__body li { margin: 4px 0; }
.efe-help__note { color: #555; margin-top: 10px; }
.efe-help--whatsnew summary::before { content: "★"; transform: none; }
.efe-help--whatsnew[open] summary::before { transform: none; }

/* Tooltip */
.efe-tip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #6b7280;
	color: #fff;
	font-size: 11px;
	font-style: italic;
	font-weight: 700;
	font-family: Georgia, "Times New Roman", serif;
	line-height: 1;
	cursor: help;
	position: relative;
	vertical-align: middle;
	margin-left: 2px;
}
.efe-tip--inline { cursor: default; }
.efe-tip:hover,
.efe-tip:focus { background: #2563eb; outline: none; }
.efe-tip__bubble {
	position: absolute;
	bottom: 135%;
	left: 50%;
	transform: translateX(-50%);
	width: max-content;
	max-width: 260px;
	background: #1f2937;
	color: #fff;
	font-size: 0.8rem;
	font-style: normal;
	font-weight: 400;
	font-family: inherit;
	line-height: 1.35;
	text-align: left;
	padding: 8px 10px;
	border-radius: 6px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.12s ease;
	z-index: 20;
	pointer-events: none;
	box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}
.efe-tip__bubble::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: #1f2937;
}
.efe-tip:hover .efe-tip__bubble,
.efe-tip:focus .efe-tip__bubble { opacity: 1; visibility: visible; }
