:root {
	--brand-red: #c8102e;
	--brand-blue: #0033a0;
	--text: #222;
	--muted: #666;
	--bg: #fff;
	--accent: #f5f5f7;
}

* {
	box-sizing: border-box
}

html,
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif
}

/* .container{max-width:960px;margin:0 auto;padding:16px} */

.header {
	padding: 2em;
	height: auto;
}

h1 {
	margin: 0 0 4px 0;
	color: var(--brand-red);
	font-size: 22px
}

.subtitle {
	margin: 0;
	color: var(--muted);
	font-size: 14px
}

.footer {
	color: var(--muted);
	font-size: 14px;
	border-top: 1px solid #e5e7eb;
	margin-top: 24px
}

@media (min-width:768px) {
	h1 {
		font-size: 26px
	}
}

.admin-nav {
	margin-top: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: center;
}

.admin-nav a {
	color: var(--brand-blue);
	text-decoration: none;
	padding: 4px 8px;
	border: 1px solid #ddd;
	border-radius: 4px
}

.admin-nav a.active {
	background-color: var(--brand-blue);
	color: white;
}

.admin-nav a:hover {
	background: var(--accent)
}

.admin-nav a.active:hover {
	background-color: var(--brand-blue);

}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 16px;
	margin: 24px 0
}

.stat-card {
	background: var(--accent);
	padding: 16px;
	border-radius: 8px;
	text-align: center
}

.stat-card h3 {
	margin: 0 0 8px 0;
	font-size: 14px;
	color: var(--muted);
	font-weight: normal
}

.stat-number {
	font-size: 32px;
	font-weight: bold;
	color: var(--brand-red);
	margin: 0
}

.form {
	max-width: 600px;
	margin: 24px 0
}

.form-group {
	margin-bottom: 16px
}

.form-group label {
	display: block;
	margin-bottom: 4px;
	font-weight: 500
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
	width: 100%;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 16px
}

.form-group textarea {
	resize: vertical
}

.btn {
	padding: 10px 20px;
	background: var(--brand-blue);
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
	font-size: 16px
}

.btn:hover {
	background: #002080
}

.btn:disabled {
	background: #ccc;
	color: #666;
	cursor: not-allowed;
	opacity: 0.6
}

.btn:disabled:hover {
	background: #ccc
}

.btn-primary {
	background: var(--brand-red)
}

.btn-primary:hover {
	background: #a00
}

.btn-primary:disabled {
	background: #ccc;
	color: #666;
	cursor: not-allowed;
	opacity: 0.6
}

.btn-primary:disabled:hover {
	background: #ccc
}

.btn-link {
	background: none;
	border: none;
	color: var(--brand-blue);
	cursor: pointer;
	text-decoration: underline;
	padding: 0;
	font-size: inherit
}

.flash {
	padding: 12px;
	border-radius: 4px;
	margin-bottom: 16px
}

.flash-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb
}

.flash-error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb
}

.data-table {
	width: 100%;
	border-collapse: collapse;
	margin: 24px 0
}

.data-table th,
.data-table td {
	padding: 8px;
	text-align: left;
	border-bottom: 1px solid #ddd
}

.data-table th {
	background: var(--accent);
	font-weight: 600
}

.admin-section {
	margin: 32px 0
}

.admin-section h3 {
	margin-bottom: 16px;
	color: var(--brand-blue)
}

.form-help {
	font-size: 14px;
	color: var(--muted);
	margin-top: 4px;
	margin-bottom: 0
}

.preference-row {
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 12px
}

.rank-number {
	display: inline-block;
	width: 32px;
	height: 32px;
	line-height: 32px;
	text-align: center;
	background: var(--brand-red);
	color: #fff;
	border-radius: 50%;
	font-weight: bold;
	flex-shrink: 0
}

.role-select {
	flex: 1
}

.btn-move-up,
.btn-move-down {
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid #ddd;
	background: #fff;
	cursor: pointer;
	border-radius: 4px;
	font-size: 18px;
	line-height: 1;
	flex-shrink: 0
}

.btn-move-up:hover,
.btn-move-down:hover {
	background: var(--accent)
}

.time-slot-row {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr auto;
	gap: 12px;
	align-items: end;
	margin-bottom: 16px;
	padding: 16px;
	background: var(--accent);
	border-radius: 8px
}

.volunteers-list {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin: 24px 0
}

.volunteer-card {
	background: var(--accent);
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 20px
}

.volunteer-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #ddd
}

.volunteer-header h3 {
	margin: 0;
	color: var(--brand-blue)
}

.volunteer-info {
	margin-bottom: 16px
}

.volunteer-info p {
	margin: 8px 0;
	font-size: 14px
}

.volunteer-section {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #ddd
}

.volunteer-section h4 {
	margin: 0 0 12px 0;
	font-size: 16px;
	color: var(--brand-blue)
}

.preferences-list,
.availability-list {
	list-style: none;
	padding: 0;
	margin: 0
}

.preferences-list li,
.availability-list li {
	padding: 8px 0;
	border-bottom: 1px solid #e5e7eb
}

.preferences-list li:last-child,
.availability-list li:last-child {
	border-bottom: none
}

.zone-badge {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 8px;
	background: var(--brand-blue);
	color: #fff;
	border-radius: 12px;
	font-size: 12px
}

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

.badge-success {
	background: #d4edda;
	color: #155724 !important;
}

.badge-warning {
	background: #fff3cd;
	color: #856404 !important;
}

.text-muted {
	color: var(--muted);
	font-style: italic
}

.volunteer-info-card {
	background: var(--accent);
	padding: 16px;
	border-radius: 8px;
	margin: 16px 0
}

.volunteer-info-card h3 {
	margin-top: 0;
	color: var(--brand-blue)
}

@media (max-width:767px) {
	.time-slot-row {
		grid-template-columns: 1fr;
		gap: 8px
	}
}

.quick-actions {
	margin: 24px 0;
	padding: 20px;
	background: var(--accent);
	border-radius: 8px
}

.quick-actions h2 {
	margin-top: 0
}

.quick-actions p {
	margin: 16px 0 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px
}

.tabs {
	display: flex;
	gap: 8px;
	border-bottom: 2px solid #ddd;
	margin-bottom: 16px
}

.tab-button {
	padding: 12px 20px;
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	cursor: pointer;
	font-size: 16px;
	color: var(--muted);
	font-weight: 500;
	transition: all 0.2s
}

.tab-button:hover {
	color: var(--brand-blue);
	background: var(--accent)
}

.tab-button.active {
	color: var(--brand-blue);
	border-bottom-color: var(--brand-blue);
	font-weight: 600
}

.tab-pane {
	display: none
}

.tab-pane.active {
	display: block
}




/* Login Page Centering */
.login-page {
	min-height: 80vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	width: 100%;
}

.login-box {
	background: #fff;
	padding: 40px;
	border-radius: 8px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	width: 100%;
	max-width: 500px;
	margin: 0 auto;
}

.login-box h1 {
	text-align: center;
	margin-bottom: 24px;
	color: var(--brand-blue);
}

.text-center {
	text-align: center;
}

/* Volunteer Homepage Roles */
.available-roles {
	margin-top: 40px;
}

.available-roles h2 {
	margin-bottom: 24px;
	color: var(--brand-blue);
	border-bottom: 2px solid var(--accent);
	padding-bottom: 12px;
}

.roles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
}

.role-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 24px;
	transition: transform 0.2s, box-shadow 0.2s;
	display: flex;
	flex-direction: column;
}

.role-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.role-card h3 {
	margin: 0 0 12px 0;
	color: var(--brand-red);
	font-size: 1.25rem;
}

.role-card .zone-badge {
	align-self: flex-start;
	background: var(--brand-blue);
	color: white;
	padding: 4px 12px;
	border-radius: 9999px;
	font-size: 0.875rem;
	margin-bottom: 16px;
}

.role-description {
	color: var(--text);
	flex-grow: 1;
}