/* Children Listing Styles */
.portal-children-wrapper {
	max-width: 1200px;
	margin: 0 auto;
}

/* Filters */
.portal-filters {
	background: #fff;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	margin-bottom: 20px;
}

.portal-filter-row {
	display: flex;
	gap: 15px;
	margin-bottom: 15px;
	flex-wrap: wrap;
}

.portal-filter-row:last-child {
	margin-bottom: 0;
}

.portal-filter-group {
	flex: 1;
	min-width: 200px;
}

.portal-search-group {
	flex: 2;
}

.portal-filters input,
.portal-filters select {
	width: 100%;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

/* Table */
.portal-table-container {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	overflow-x: auto;
}

.portal-table {
	width: 100%;
	border-collapse: collapse;
}

.portal-table th,
.portal-table td {
	padding: 12px 15px;
	text-align: left;
	border-bottom: 1px solid #eee;
	color: #50575e;
}

.portal-table th {
	background: #f8f9fa;
	font-weight: 600;
	color: #333;
}

/* Bold Full Name */
.portal-table td:nth-child(2) {
	font-weight: 700;
}

.portal-child-thumbnail {
	width: 50px;
	height: 50px;
	border-radius: 50% !important;
	object-fit: cover;
	cursor: zoom-in;
}

/* Badges */
.portal-badge {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 500;
	background: #e9ecef;
	color: #495057;
	text-transform: capitalize;
}

.portal-badge.status-sponsored {
	background: #d4edda;
	color: #155724;
}

.portal-badge.status-active {
	background: #c3e6cb;
	color: #155724;
}

.portal-badge.status-active-choir {
	background: #d6d8d9;
	color: #1b1e21;
	border: 1px solid #c6c8ca;
}

.portal-badge.status-dropped-out {
	background: #f8d7da;
	color: #721c24;
}

.portal-badge.status-graduated {
	background: #cce5ff;
	color: #004085;
}

.portal-badge.status-inactive {
	background: #e2e6ea;
	color: #6c757d;
}

.portal-badge.status-lost-sponsor {
	background: #fff3cd;
	color: #856404;
}

.portal-badge.status-under-review {
	background: #ffeeba;
	color: #856404;
}

.portal-badge.status-waiting-list {
	background: #d1ecf1;
	color: #0c5460;
}

.portal-badge.status-waiting {
	background: #fff3cd;
	color: #856404;
}

/* Actions */
.portal-action-btn {
	padding: 6px 12px;
	border-radius: 4px;
	text-decoration: none;
	font-size: 13px;
	cursor: pointer;
	margin-right: 5px;
	border: 1px solid transparent;
}

.portal-view-btn {
	background: #e7f1ff;
	color: #0056b3;
}

.portal-edit-btn {
	background: #fff3cd;
	color: #856404;
}

/* Pagination */
.portal-pagination-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px;
	background: #fff;
	margin-top: 10px;
	border-radius: 8px;
}

.portal-pagination-btn {
	padding: 6px 12px;
	min-width: 35px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
	margin-left: 5px;
	color: #0073aa;
	transition: all 0.2s;
}

.portal-pagination-btn.active,
.portal-pagination-btn:hover {
	background: #0073aa;
	color: #fff;
	border-color: #0073aa;
}

.portal-pagination-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Modals */
.portal-child-modal {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	overflow-y: hidden;
	/* Handle scroll in content */
	align-items: center;
	justify-content: center;
}

.portal-child-modal-content {
	background-color: #fff;
	padding: 30px;
	border-radius: 8px;
	width: 80%;
	max-width: 800px;
	position: relative;
	max-height: 90vh;
	overflow-y: auto;
}

.portal-child-modal-close {
	position: absolute;
	right: 20px;
	top: 15px;
	color: #646970;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
	z-index: 10;
}

/* View Modal */
.portal-child-details-grid {
	display: flex;
	gap: 30px;
	margin-bottom: 30px;
}

.portal-child-photo img {
	width: 200px;
	height: 200px;
	object-fit: cover;
	border-radius: 8px;
	cursor: zoom-in;
}

.portal-child-info p {
	margin: 10px 0;
	font-size: 16px;
}

.portal-progress-bar {
	background: #eee;
	border-radius: 10px;
	height: 20px;
	position: relative;
	overflow: hidden;
}

#portal-view-child-progress {
	background: #28a745;
	height: 100%;
	transition: width 0.3s ease;
}

#portal-view-child-progress-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 12px;
	font-weight: bold;
	color: #333;
}

/* Edit Form */
.portal-form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.portal-form-group {
	margin-bottom: 15px;
}

.portal-form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
}

.portal-form-group input,
.portal-form-group select,
.portal-form-group textarea {
	width: 100%;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

/* Lightbox */
.portal-lightbox {
	display: none;
	position: fixed;
	z-index: 10000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	justify-content: center;
	align-items: center;
}

.portal-lightbox img {
	max-width: 90%;
	max-height: 90%;
	border-radius: 8px;
	box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

color: #fff;
font-size: 40px;
font-weight: bold;
cursor: pointer;
}

/* Required Asterisk */
.required {
	color: #dc3232;
	margin-left: 2px;
}

/* Clickable Status */
.portal-badge.clickable {
	cursor: pointer;
	transition: opacity 0.2s;
}

.portal-badge.clickable:hover {
	opacity: 0.8;
}

/* Icons for Actions */
.portal-action-icon {
	font-size: 18px;
	vertical-align: middle;
	display: inline-block;
	margin-right: 0;
}

/* Fix Last Row Color */
.portal-table tbody tr:last-child td {
	color: #50575e !important;
}

/* Status Modal Select */
#portal-status-select {
	min-height: 40px;
}