/**
 * Family Manager Frontend Styles
 *
 * @package GHL_CRM_Integration
 */

.ghl-family-manager {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0;
	background: transparent;
}

.ghl-family-header h2 {
	margin: 0 0 20px;
	font-size: 24px;
	font-weight: 600;
	color: #2c3e50;
}

.ghl-family-content {
	background: #ffffff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.ghl-family-section {
	padding: 30px;
	border-bottom: 1px solid #f0f0f0;
}

.ghl-family-section:last-child {
	border-bottom: none;
}

.ghl-family-section h3 {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 600;
	color: #2c3e50;
}

.ghl-invite-section {
	background: #f8f9fa;
}

.ghl-family-loading {
	text-align: center;
	padding: 40px;
	color: #6b7280;
}

/* Table styling similar to BuddyBoss */
.ghl-table-responsive {
	overflow-x: auto;
	margin-top: 20px;
}

.ghl-family-children-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}

.ghl-family-children-table thead tr {
	background: #f8f9fa;
	border-bottom: 2px solid #e5e7eb;
}

.ghl-family-children-table th {
	padding: 12px 8px;
	text-align: left;
	font-size: 13px;
	font-weight: 600;
	color: #2c3e50;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.ghl-family-children-table tbody tr {
	border-bottom: 1px solid #f0f0f0;
	transition: background-color 0.2s ease;
}

.ghl-family-children-table tbody tr:hover {
	background-color: #f9fafb;
}

.ghl-family-children-table td {
	padding: 12px 8px;
	font-size: 14px;
	vertical-align: middle;
	color: #2c3e50;
}

.ghl-child-name {
	font-weight: 500;
	color: #2c3e50;
}

.ghl-child-email {
	color: #7f8c8d;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ghl-child-date {
	color: #95a5a6;
	font-size: 13px;
	white-space: nowrap;
}

/* Status badges matching BuddyBoss style */
.ghl-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.ghl-badge.invited {
	background-color: #D8B743;
	color: white;
}

.ghl-badge.active {
	background-color: var(--bb-primary-button-background-regular, #007cba);
	color: white;
}

/* Action links */
.ghl-action-link {
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	transition: opacity 0.2s;
	color: #e74c3c;
	margin-right: 10px;
}

.ghl-action-link:hover {
	opacity: 0.8;
	text-decoration: underline;
}

.ghl-action-link.resend {
	color: #3498db;
}

/* Form styling */
.form-field {
	margin-bottom: 16px;
}

.form-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 500;
	color: #2c3e50;
}

.form-field input[type="email"],
.form-field input[type="text"] {
	padding: 10px 12px;
	border: 1px solid #e5e7eb;
	border-radius: 4px;
	font-size: 14px;
	transition: border-color 0.2s;
}

.form-field input:focus {
	outline: none;
	border-color: #007cba;
	box-shadow: 0 0 0 1px rgba(0, 124, 186, 0.2);
}

.button-primary {
	background: var(--bb-primary-button-background-regular, #007cba) !important;
	border-color: var(--bb-primary-button-background-regular, #007cba) !important;
	color: #ffffff !important;
	padding: 10px 24px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	transition: all 0.2s ease;
	cursor: pointer;
}

.button-primary:hover {
	background: var(--bb-primary-color-hover, #005a87) !important;
	border-color: var(--bb-primary-color-hover, #005a87) !important;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

/* Empty state */
.ghl-no-children {
	text-align: center;
	padding: 60px 20px;
	color: #7f8c8d;
}

.ghl-no-children p {
	margin: 0;
	font-size: 15px;
}

/* Responsive design */
@media (max-width: 768px) {
	.ghl-family-section {
		padding: 20px;
	}
	
	.ghl-family-children-table th,
	.ghl-family-children-table td {
		padding: 8px 4px;
		font-size: 13px;
	}
	
	#ghl-link-child-form {
		flex-direction: column;
		align-items: stretch !important;
	}
	
	#ghl-link-child-form .form-field {
		min-width: 100% !important;
	}
}
