/* Core Grid & Cards */
.rrba-event-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
}
.rrba-event-card {
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rrba-event-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 16px rgba(31,29,94,0.06);
}
.rrba-card-image { width: 100%; height: 180px; object-fit: cover; }
.rrba-card-body { padding: 16px; }
.rrba-badge {
	display: inline-block;
	background: #f0f0f1;
	color: #1d2327;
	font-size: 11px;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 4px;
	margin-bottom: 8px;
}
.rrba-event-date, .rrba-event-location { color: #555; font-size: 14px; margin: 4px 0; }
.rrba-volunteer-status { font-weight: 600; color: #1F1D5E; font-size: 13px; }

/* Ghost Buttons (Calendar & Filters) */
.rrba-btn-ghost {
	background: transparent;
	color: #1F1D5E;
	border: 1px solid #1F1D5E;
	transition: background 0.2s ease, color 0.2s ease;
}
.rrba-btn-ghost:hover { background: #1F1D5E; color: #fff; }

.rrba-calendar-filter { position: relative; display: inline-block; margin-bottom: 16px; }

.rrba-cal-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid #d5d9dd;
	border-radius: 8px;
	padding: 10px 16px;
	font-size: 15px;
	font-weight: 600;
	color: #1d2327;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(0,0,0,0.04);
	transition: border-color 0.2s ease;
}
.rrba-cal-toggle:hover { border-color: #1F1D5E; }
.rrba-cal-caret { color: #888; font-size: 12px; }

.rrba-cal-popup {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 50;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0,0,0,0.15);
	padding: 18px;
	width: 300px;
}

.rrba-cal-header-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}
.rrba-cal-year-label { font-size: 17px; font-weight: 700; }
.rrba-cal-nav-btn {
	background: #f5f6f7;
	border: none;
	border-radius: 6px;
	width: 30px;
	height: 30px;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	color: #1d2327;
	display: flex;
	align-items: center;
	justify-content: center;
}
.rrba-cal-nav-btn:hover:not(:disabled) { background: #e0e5ea; }
.rrba-cal-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.rrba-cal-title-btn {
	background: transparent;
	border: none;
	font-size: 15px;
	font-weight: 700;
	color: #1F1D5E;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 4px 8px;
	border-radius: 4px;
	transition: background 0.2s ease;
}
.rrba-cal-title-btn:hover {
	background: #f0f0f8;
}

.rrba-cal-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	text-align: center;
	font-size: 11px;
	font-weight: 700;
	color: #555555;
	margin-bottom: 8px;
	border-bottom: 1px solid #eaeaea;
	padding-bottom: 4px;
}
.rrba-cal-weekdays span {
	display: block;
}

.rrba-cal-days-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
	margin-bottom: 14px;
	justify-items: center;
}

.rrba-cal-day-empty {
	display: block;
	width: 32px;
	height: 32px;
}

.rrba-cal-day-cell {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 32px;
	height: 32px;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: #000000;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}
.rrba-cal-day-cell:hover:not(:disabled) {
	background: #f0f0f8;
	color: #1F1D5E;
}
.rrba-cal-day-cell.is-today {
	border: 1.5px solid #1F1D5E;
}
.rrba-cal-day-cell.is-selected {
	background: #1F1D5E !important;
	color: #ffffff !important;
}
.rrba-cal-day-cell.has-events {
	font-weight: 700;
	color: #1F1D5E;
}

.rrba-cal-day-dot {
	position: absolute;
	bottom: 3px;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #1F1D5E;
}
.is-selected .rrba-cal-day-dot {
	background: #ffffff;
}

.rrba-cal-months-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-bottom: 14px;
}
.rrba-cal-month-btn {
	padding: 10px 4px;
	border-radius: 8px;
	border: 1px solid transparent;
	background: #f5f6f7;
	cursor: pointer;
	font-size: 13px;
	color: #1d2327;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.rrba-cal-month-btn:hover:not(:disabled) { background: #f0f0f8; border-color: #1F1D5E; }
.rrba-cal-month-btn.is-current { border-color: #1F1D5E; font-weight: 700; }
.rrba-cal-month-btn.is-disabled { opacity: 0.3; cursor: not-allowed; }

.rrba-cal-actions {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
}

.rrba-results-heading { margin: 6px 0 16px; }
.rrba-no-events { color: #646970; }

/* Primary Button */
.rrba-btn {
	display: inline-block;
	padding: 10px 20px;
	background: #1F1D5E;
	color: #fff;
	border-radius: 6px;
	text-decoration: none;
	border: 1px solid #1F1D5E;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.2s ease, border-color 0.2s ease;
}
.rrba-btn:hover { background: #000000; border-color: #000000; color: #fff; }
.rrba-btn[disabled] { background: #eaeaea; border-color: #eaeaea; color: #999999; cursor: not-allowed; }

/* Event Details (Single Page) Redesign */
.rrba-event-single-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: #000000;
}

.rrba-single-banner-wrapper {
	width: 100%;
	max-height: 450px;
	overflow: hidden;
	border-radius: 12px;
	border: 1px solid #eaeaea;
	margin-bottom: 32px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.rrba-single-banner {
	width: 100%;
	height: 400px;
	object-fit: cover;
	display: block;
}

.rrba-single-content-layout {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 48px;
}

.rrba-single-main-col {
	display: flex;
	flex-direction: column;
}
.rrba-single-title {
	font-size: 36px;
	font-weight: 800;
	line-height: 1.25;
	color: #000000;
	margin: 0 0 24px 0;
}

.rrba-single-description {
	margin-bottom: 40px;
	line-height: 1.7;
	font-size: 16px;
	color: #111111;
}
.rrba-single-description h2, 
.rrba-single-jobs-section h2 {
	font-size: 22px;
	font-weight: 700;
	color: #1F1D5E;
	margin: 0 0 16px 0;
	padding-bottom: 8px;
	border-bottom: 2px solid #1F1D5E;
}

.rrba-single-meet,
.rrba-single-custom-link {
	margin-bottom: 24px;
}

.rrba-single-jobs-section {
	margin-top: 16px;
}
.rrba-jobs-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 20px 0;
}
.rrba-job-item {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	border: 1px solid #1F1D5E;
	border-radius: 10px;
	padding: 20px;
	background: #ffffff;
	box-shadow: 0 4px 12px rgba(31,29,94,0.02);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rrba-job-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(31,29,94,0.05);
}
.rrba-job-details {
	flex: 1;
	padding-right: 20px;
}
.rrba-job-name {
	display: block;
	font-size: 18px;
	font-weight: 700;
	color: #000000;
	margin-bottom: 6px;
}
.rrba-job-desc {
	font-size: 14px;
	color: #333333;
	margin: 0 0 12px 0;
}
.rrba-job-meta-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 8px;
}
.rrba-job-pill {
	background: #1F1D5E;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 20px;
}
.rrba-job-time {
	font-size: 13px;
	color: #1F1D5E;
	font-weight: 600;
	margin: 4px 0 0 0;
}
.rrba-job-action .rrba-btn-secondary {
	background: #ffffff;
	color: #1F1D5E;
	border: 1px solid #1F1D5E;
	text-decoration: none;
}
.rrba-job-action .rrba-btn-secondary:hover {
	background: #1F1D5E;
	color: #ffffff;
}

/* Sidebar Column */
.rrba-single-sidebar-col {
	position: relative;
}
.rrba-sticky-card {
	position: sticky;
	top: 40px;
	background: #ffffff;
	border: 2px solid #1F1D5E;
	border-radius: 12px;
	padding: 28px;
	box-shadow: 0 8px 24px rgba(31,29,94,0.06);
}
.rrba-sticky-card h3 {
	font-size: 22px;
	font-weight: 700;
	color: #1F1D5E;
	margin: 0 0 20px 0;
}
.rrba-sticky-card h4 {
	font-size: 15px;
	font-weight: 700;
	color: #000000;
	margin: 24px 0 12px 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.rrba-sidebar-meta {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.rrba-meta-item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}
.rrba-meta-icon {
	font-size: 20px;
	line-height: 1.2;
}
.rrba-meta-item strong {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #1F1D5E;
	margin-bottom: 2px;
}
.rrba-meta-item p {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: #000000;
	line-height: 1.4;
}
.rrba-sidebar-divider {
	border: 0;
	border-top: 1px solid #eaeaea;
	margin: 24px 0;
}

.rrba-add-to-calendar-buttons {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.rrba-cal-link-btn {
	display: flex;
	align-items: center;
	gap: 12px;
	border: 1px solid #1F1D5E;
	border-radius: 8px;
	padding: 10px 16px;
	color: #1F1D5E;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.2s ease, color 0.2s ease;
}
.rrba-cal-link-btn:hover {
	background: #1F1D5E;
	color: #ffffff;
}
.rrba-cal-btn-icon {
	font-weight: 700;
	width: 16px;
	text-align: center;
}

.rrba-signup-message {
	margin-top: 24px;
	padding: 16px;
	background: #ffffff;
	border: 2px solid #1F1D5E;
	color: #1F1D5E;
	font-weight: 700;
	border-radius: 8px;
	text-align: center;
}

/* Responsive Mobile Layout */
@media (max-width: 768px) {
	.rrba-single-content-layout {
		grid-template-columns: 1fr;
		gap: 32px;
	}
	.rrba-single-sidebar-col {
		display: none;
	}
	.rrba-single-meta-mobile {
		display: flex;
		flex-direction: column;
		gap: 16px;
		background: #ffffff;
		border: 2px solid #1F1D5E;
		border-radius: 12px;
		padding: 20px;
		margin-bottom: 24px;
		box-shadow: 0 4px 12px rgba(31,29,94,0.03);
	}
	.rrba-job-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}
	.rrba-job-details {
		padding-right: 0;
	}
	.rrba-job-action {
		width: 100%;
	}
	.rrba-job-action .rrba-btn,
	.rrba-job-action .rrba-btn-secondary {
		width: 100%;
		text-align: center;
		box-sizing: border-box;
	}
}
@media (min-width: 769px) {
	.rrba-single-meta-mobile {
		display: none;
	}
}

/* Full Page Calendar Widget */
.rrba-full-calendar-wrapper {
	background: #ffffff;
	border: 1px solid #1F1D5E;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 8px 30px rgba(31,29,94,0.04);
	margin-bottom: 30px;
}
.rrba-fcal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	border-bottom: 2px solid #1F1D5E;
	padding-bottom: 16px;
}
.rrba-fcal-nav {
	display: flex;
	gap: 8px;
	align-items: center;
}
.rrba-fcal-btn {
	background: #ffffff;
	border: 1px solid #1F1D5E;
	color: #1F1D5E;
	border-radius: 6px;
	padding: 8px 14px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}
.rrba-fcal-btn:hover {
	background: #1F1D5E;
	color: #ffffff;
}
.rrba-fcal-title {
	font-size: 24px;
	font-weight: 700;
	color: #1F1D5E;
	margin: 0;
}
.rrba-fcal-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	text-align: center;
	font-weight: 700;
	font-size: 13px;
	color: #555555;
	margin-bottom: 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.rrba-fcal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	grid-auto-rows: minmax(100px, auto);
	gap: 1px;
	background: #eaeaea;
	border: 1px solid #eaeaea;
	border-radius: 8px;
	overflow: hidden;
}
.rrba-fcal-day {
	background: #ffffff;
	padding: 8px;
	display: flex;
	flex-direction: column;
	position: relative;
	box-sizing: border-box;
	min-height: 100px;
}
.rrba-fcal-day.is-today {
	background: #fcfcff;
}
.rrba-fcal-day.is-today .rrba-fcal-day-num {
	background: #1F1D5E;
	color: #ffffff;
	border-radius: 50%;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.rrba-fcal-day-num {
	font-weight: 700;
	font-size: 13px;
	color: #777777;
	margin-bottom: 6px;
	align-self: flex-start;
}
.rrba-fcal-day-empty {
	background: #fafafa;
}

/* Event Bar Style (Google Calendar style) */
.rrba-fcal-event-bar {
	background: #1F1D5E;
	color: #ffffff;
	font-size: 11px;
	font-weight: 600;
	padding: 4px 8px;
	border-radius: 4px;
	margin-bottom: 4px;
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: transform 0.15s ease, background 0.15s ease;
	display: block;
	text-decoration: none;
}
.rrba-fcal-event-bar:hover {
	background: #000000;
	transform: translateY(-1px);
}

/* Volunteer Dashboard Redesign */
.rrba-volunteer-dashboard {
	max-width: 900px;
	margin: 30px auto;
	padding: 30px;
	background: #ffffff;
	border: 1px solid #eef0f3;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(29, 29, 91, 0.05);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.rrba-volunteer-dashboard h2 {
	font-size: 24px;
	font-weight: 800;
	color: #1D1D5B;
	margin: 0 0 24px 0;
	padding-bottom: 12px;
	border-bottom: 2px solid #eef0f3;
}

.rrba-shift-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.rrba-shift-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	border: 1px solid #eef0f3;
	border-radius: 12px;
	background: #ffffff;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rrba-shift-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(29, 29, 91, 0.04);
	border-color: #1D1D5B;
}

.rrba-shift-item strong {
	display: block;
	font-size: 18px;
	color: #1D1D5B;
	margin-bottom: 6px;
}

.rrba-shift-item p {
	margin: 4px 0;
	font-size: 14px;
	color: #757582;
	line-height: 1.4;
}

.rrba-status {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 20px;
	margin-left: 6px;
	letter-spacing: 0.5px;
}

/* Status Pill Colors */
.rrba-status-pending,
.rrba-status-pending-approval {
	background: #fff8eb;
	color: #d68f00;
	border: 1px solid #ffe8cc;
}

.rrba-status-signed-up,
.rrba-status-approved {
	background: #edfdf2;
	color: #155724;
	border: 1px solid #d4edda;
}

.rrba-status-checked-in {
	background: #eef5fc;
	color: #004085;
	border: 1px solid #cce5ff;
}

.rrba-shift-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.rrba-shift-actions span {
	font-weight: 700;
	color: #1D1D5B;
	font-size: 14px;
}

/* Dashboard Action Buttons */
.rrba-volunteer-dashboard .rrba-btn {
	background: #1D1D5B;
	color: #ffffff;
	border: 1px solid #1D1D5B;
	border-radius: 8px;
	padding: 10px 20px;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.rrba-volunteer-dashboard .rrba-btn:hover {
	background: #12123B;
	border-color: #12123B;
	transform: translateY(-1px);
}

.rrba-volunteer-dashboard .rrba-checkout-btn {
	background: #b32d2e;
	border-color: #b32d2e;
}

.rrba-volunteer-dashboard .rrba-checkout-btn:hover {
	background: #8b2021;
	border-color: #8b2021;
}

/* Responsive adjustments */
@media (max-width: 600px) {
	.rrba-shift-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}
	.rrba-shift-actions {
		width: 100%;
	}
	.rrba-volunteer-dashboard .rrba-btn {
		width: 100%;
		text-align: center;
	}
}
