/**
 * ThinkPlayhouse Admin Styles
 */

.tph-admin-wrap {
	max-width: 1400px;
}

.tph-dashboard-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin-top: 25px;
}

.tph-card {
	background: #ffffff;
	border: 1px solid #e2e4e7;
	border-radius: 10px;
	padding: 24px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tph-card-label {
	color: #646970;
	font-size: 14px;
	margin-bottom: 10px;
}

.tph-card-value {
	color: #1d2327;
	font-size: 30px;
	font-weight: 600;
	line-height: 1.2;
}

.tph-dashboard-section {
	background: #ffffff;
	border: 1px solid #e2e4e7;
	border-radius: 10px;
	padding: 24px;
	margin-top: 25px;
}

.tph-dashboard-section h2 {
	margin-top: 0;
}

.tph-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tph-actions .button {
	margin: 0;
}

@media (max-width: 1000px) {

	.tph-dashboard-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {

	.tph-dashboard-grid {
		grid-template-columns: 1fr;
	}

	.tph-dashboard-section {
		padding: 16px;
	}

	.tph-actions {
		flex-direction: column;
	}

	.tph-actions .button {
		width: 100%;
		text-align: center;
	}
}

.tph-status-badge {
	display: inline-block;
	padding: 4px 9px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}

.tph-status-active {
	background: #e7f7ed;
	color: #177245;
}

.tph-status-inactive {
	background: #f1f1f1;
	color: #646970;
}

.tph-status-suspended {
	background: #fff4e5;
	color: #996800;
}

.tph-profile-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.tph-profile-grid .tph-dashboard-section {
	margin-top: 0;
}

@media (max-width: 900px) {

	.tph-profile-grid {
		grid-template-columns: 1fr;
	}
}


/* Child Update Media */

#tph-update-media-preview {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 15px;
}

.tph-update-media-item {
	position: relative;
	width: 120px;
	height: 100px;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	overflow: hidden;
	background: #f6f7f7;
}

.tph-update-media-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tph-video-preview {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 10px;
	box-sizing: border-box;
	text-align: center;
	font-size: 13px;
	color: #50575e;
}

.tph-status-pending {
	background: #fff3cd;
	color: #856404;
}

.tph-status-paid {
	background: #d1e7dd;
	color: #0f5132;
}

.tph-status-completed {
	background: #d1e7dd;
	color: #0f5132;
}

.tph-status-error {
	background: #f8d7da;
	color: #842029;
}

/* dashoboard css */

/* =========================================================
   ThinkPlayhouse Parent Portal
   ========================================================= */

.tph-parent-dashboard {
	max-width: 1200px;
	margin: 40px auto;
	padding: 0 20px 50px;
	color: #1f2937;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		Helvetica, Arial, sans-serif;
}


/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.tph-parent-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 30px;
	padding: 30px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.tph-parent-eyebrow {
	display: block;
	margin-bottom: 8px;
	color: #16a34a;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.tph-parent-header h1 {
	margin: 0;
	color: #111827;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.25;
}

.tph-parent-header p {
	margin: 8px 0 0;
	color: #6b7280;
	font-size: 15px;
}

.tph-parent-logout {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	background: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 9px;
	color: #374151;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
}

.tph-parent-logout:hover {
	background: #f3f4f6;
	color: #111827;
}


/* ---------------------------------------------------------
   Summary Cards
   --------------------------------------------------------- */

.tph-parent-summary {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.tph-parent-stat {
	position: relative;
	padding: 24px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	box-shadow: 0 3px 15px rgba(0, 0, 0, 0.04);
	overflow: hidden;
}

.tph-parent-stat::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
	background: #16a34a;
}

.tph-parent-stat:nth-child(2)::before {
	background: #f59e0b;
}

.tph-parent-stat:nth-child(3)::before {
	background: #2563eb;
}

.tph-parent-stat-label {
	display: block;
	margin-bottom: 10px;
	color: #6b7280;
	font-size: 14px;
	font-weight: 600;
}

.tph-parent-stat strong {
	display: block;
	color: #111827;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
}


/* ---------------------------------------------------------
   Sections
   --------------------------------------------------------- */

.tph-parent-section {
	margin-top: 30px;
	padding: 28px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.tph-parent-section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
}

.tph-section-label {
	display: block;
	margin-bottom: 5px;
	color: #16a34a;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.tph-parent-section-heading h2 {
	margin: 0;
	color: #111827;
	font-size: 22px;
	font-weight: 700;
}


/* ---------------------------------------------------------
   Empty State
   --------------------------------------------------------- */

.tph-parent-empty {
	padding: 35px 20px;
	background: #f9fafb;
	border: 1px dashed #d1d5db;
	border-radius: 12px;
	color: #6b7280;
	font-size: 14px;
	text-align: center;
}


/* ---------------------------------------------------------
   Children Grid
   --------------------------------------------------------- */

.tph-parent-children-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.tph-parent-child-card {
	padding: 22px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tph-parent-child-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}


/* ---------------------------------------------------------
   Child Header
   --------------------------------------------------------- */

.tph-parent-child-top {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-bottom: 20px;
	border-bottom: 1px solid #f0f0f1;
}

.tph-parent-child-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	flex: 0 0 52px;
	background: #dcfce7;
	border-radius: 50%;
	color: #15803d;
	font-size: 19px;
	font-weight: 700;
}

.tph-parent-child-top h3 {
	margin: 0;
	color: #111827;
	font-size: 18px;
	font-weight: 700;
}

.tph-parent-child-top p {
	margin: 4px 0 0;
	color: #6b7280;
	font-size: 13px;
}


/* ---------------------------------------------------------
   Attendance
   --------------------------------------------------------- */

.tph-parent-attendance {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 18px;
}

.tph-parent-attendance > div {
	padding: 14px;
	background: #f9fafb;
	border-radius: 10px;
}

.tph-parent-attendance span {
	display: block;
	margin-bottom: 6px;
	color: #6b7280;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.tph-parent-attendance strong {
	display: block;
	color: #111827;
	font-size: 16px;
	font-weight: 700;
}


/* ---------------------------------------------------------
   Invoice List
   --------------------------------------------------------- */

.tph-parent-invoices {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tph-parent-invoice {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 20px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	transition: background 0.2s ease;
}

.tph-parent-invoice:hover {
	background: #f9fafb;
}

.tph-parent-invoice > div {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.tph-parent-invoice > div:last-child {
	align-items: flex-end;
}

.tph-parent-invoice strong {
	color: #111827;
	font-size: 15px;
	font-weight: 700;
}

.tph-parent-invoice span {
	color: #6b7280;
	font-size: 13px;
}


/* ---------------------------------------------------------
   Invoice Status
   --------------------------------------------------------- */

.tph-invoice-status {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 11px !important;
	font-weight: 700;
	text-transform: uppercase;
}

.tph-invoice-pending {
	background: #fef3c7;
	color: #92400e !important;
}

.tph-invoice-paid {
	background: #dcfce7;
	color: #166534 !important;
}

.tph-invoice-overdue {
	background: #fee2e2;
	color: #991b1b !important;
}

.tph-invoice-cancelled {
	background: #f3f4f6;
	color: #4b5563 !important;
}


/* ---------------------------------------------------------
   Login
   --------------------------------------------------------- */

.tph-parent-login-wrapper {
	min-height: 650px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
	background: #f8fafc;
}

.tph-parent-login-card {
	width: 100%;
	max-width: 440px;
	padding: 35px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}

.tph-parent-login-header {
	margin-bottom: 25px;
	text-align: center;
}

.tph-parent-login-header h1 {
	margin: 0;
	color: #111827;
	font-size: 28px;
	font-weight: 700;
}

.tph-parent-login-header p {
	margin: 8px 0 0;
	color: #6b7280;
	font-size: 14px;
}

.tph-parent-login-error {
	margin-bottom: 18px;
	padding: 12px 14px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	color: #b91c1c;
	font-size: 14px;
}

.tph-form-field {
	margin-bottom: 18px;
}

.tph-form-field label {
	display: block;
	margin-bottom: 7px;
	color: #374151;
	font-size: 14px;
	font-weight: 600;
}

.tph-form-field input {
	width: 100%;
	min-height: 44px;
	box-sizing: border-box;
	padding: 10px 12px;
	background: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	color: #111827;
	font-size: 14px;
}

.tph-form-field input:focus {
	border-color: #16a34a;
	outline: none;
	box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.tph-parent-login-button {
	width: 100%;
	min-height: 46px;
	padding: 10px 18px;
	background: #16a34a;
	border: 0;
	border-radius: 9px;
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease;
}

.tph-parent-login-button:hover {
	background: #15803d;
}

.tph-parent-login-forgot {
	margin: 18px 0 0;
	text-align: center;
}

.tph-parent-login-forgot a {
	color: #16a34a;
	font-size: 14px;
	text-decoration: none;
}

.tph-parent-login-forgot a:hover {
	text-decoration: underline;
}


/* ---------------------------------------------------------
   Error
   --------------------------------------------------------- */

.tph-parent-error {
	max-width: 700px;
	margin: 40px auto;
	padding: 18px 20px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 12px;
	color: #991b1b;
}


/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 900px) {

	.tph-parent-summary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tph-parent-children-grid {
		grid-template-columns: 1fr;
	}

}

@media (max-width: 650px) {

	.tph-parent-dashboard {
		margin: 20px auto;
		padding: 0 12px 35px;
	}

	.tph-parent-header {
		flex-direction: column;
		align-items: flex-start;
		padding: 22px;
	}

	.tph-parent-header h1 {
		font-size: 25px;
	}

	.tph-parent-logout {
		width: 100%;
	}

	.tph-parent-summary {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.tph-parent-section {
		padding: 18px;
		border-radius: 14px;
	}

	.tph-parent-section-heading h2 {
		font-size: 20px;
	}

	.tph-parent-child-card {
		padding: 18px;
	}

	.tph-parent-attendance {
		grid-template-columns: 1fr;
	}

	.tph-parent-invoice {
		align-items: flex-start;
		flex-direction: column;
	}

	.tph-parent-invoice > div:last-child {
		align-items: flex-start;
		width: 100%;
	}

	.tph-parent-login-card {
		padding: 25px 20px;
	}

}
