/*
 * Respite Provider Manager — Dashboard styles
 * Brand: Lapapoe (purple #660066, deep purple #330033, sky blue #009ee2,
 *                 pink #ee0e55, goldy orange #ef930a, light green #c0cf02)
 * Font: Poppins
 * Grid: 8pt (all spacing in multiples of 8)
 */

.rpm-dash {
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: #330033;
	max-width: 960px;
	margin: 0 auto;
	padding: 16px;
	line-height: 1.5;
}

/* Typography */
.rpm-dash .rpm-h1 {
	font-size: 28px;
	font-weight: 700;
	color: #660066;
	margin: 0 0 8px;
	line-height: 1.2;
}
.rpm-dash .rpm-h2 {
	font-size: 20px;
	font-weight: 600;
	color: #660066;
	margin: 24px 0 16px;
	line-height: 1.3;
}
.rpm-dash .rpm-lead {
	font-size: 16px;
	color: #555;
	margin: 0 0 16px;
}
.rpm-dash .rpm-muted {
	color: #6c6c7a;
	font-size: 13px;
}

/* Header */
.rpm-dash .rpm-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	padding-bottom: 16px;
	margin-bottom: 24px;
	border-bottom: 2px solid #f0e6f0;
}

/* Status pill */
.rpm-dash .rpm-status {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 13px;
	background: #e5e5eb;
	color: #330033;
}
.rpm-dash .rpm-status--approved { background: #e8f5d3; color: #596301; }
.rpm-dash .rpm-status--pending  { background: #fff3d9; color: #894303; }
.rpm-dash .rpm-status--rejected { background: #fde0e8; color: #8a0455; }
.rpm-dash .rpm-status--paused   { background: #e5e5eb; color: #525252; }

/* Tabs */
.rpm-dash .rpm-tabs {
	display: flex;
	gap: 8px;
	border-bottom: 2px solid #f0e6f0;
	margin-bottom: 24px;
	flex-wrap: wrap;
}
.rpm-dash .rpm-tab {
	padding: 16px 24px;
	text-decoration: none;
	color: #6c6c7a;
	font-weight: 500;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	transition: color .15s, border-color .15s;
}
.rpm-dash .rpm-tab:hover { color: #660066; }
.rpm-dash .rpm-tab--active {
	color: #660066;
	border-bottom-color: #660066;
	font-weight: 600;
}

/* Panels */
.rpm-dash .rpm-panel { display: none; }
.rpm-dash .rpm-panel--active { display: block; }

/* Cards */
.rpm-dash .rpm-card {
	background: #fff;
	border: 1px solid #f0e6f0;
	border-radius: 16px;
	padding: 32px;
	box-shadow: 0 2px 8px rgba(102, 0, 102, 0.04);
	margin-bottom: 24px;
}

/* Notices */
.rpm-dash .rpm-notice {
	padding: 16px 24px;
	border-radius: 8px;
	margin-bottom: 24px;
	font-weight: 500;
}
.rpm-dash .rpm-notice--success { background: #e8f5d3; color: #596301; border-left: 4px solid #c0cf02; }
.rpm-dash .rpm-notice--warn    { background: #fff3d9; color: #894303; border-left: 4px solid #ef930a; }
.rpm-dash .rpm-notice--error   { background: #fde0e8; color: #8a0455; border-left: 4px solid #ee0e55; }
.rpm-dash .rpm-notice--info    { background: #e0f4fc; color: #004184; border-left: 4px solid #009ee2; }

/* Fields */
.rpm-dash .rpm-field {
	margin-bottom: 24px;
}
.rpm-dash .rpm-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	color: #330033;
}
.rpm-dash .rpm-field input[type="text"],
.rpm-dash .rpm-field input[type="tel"],
.rpm-dash .rpm-field input[type="email"],
.rpm-dash .rpm-field textarea {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid #e5d8e5;
	border-radius: 8px;
	font-family: inherit;
	font-size: 15px;
	background: #fff;
	color: #330033;
	transition: border-color .15s;
	box-sizing: border-box;
}
.rpm-dash .rpm-field input:focus,
.rpm-dash .rpm-field textarea:focus {
	outline: none;
	border-color: #660066;
	box-shadow: 0 0 0 3px rgba(102, 0, 102, 0.12);
}
.rpm-dash .rpm-field input[type="file"] {
	font-family: inherit;
	font-size: 14px;
}
.rpm-dash .rpm-field small {
	display: block;
	margin-top: 8px;
}

/* Checkbox grid */
.rpm-dash .rpm-checks {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 8px 16px;
}
.rpm-dash .rpm-check {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border: 2px solid #f0e6f0;
	border-radius: 8px;
	cursor: pointer;
	transition: border-color .15s, background .15s;
	font-weight: 500;
	margin-bottom: 0;
}
.rpm-dash .rpm-check:hover { border-color: #d9b8d9; }
.rpm-dash .rpm-check input[type="checkbox"] {
	margin: 0;
	width: 16px;
	height: 16px;
	accent-color: #660066;
}
.rpm-dash .rpm-check:has(input:checked) {
	border-color: #660066;
	background: #faf4fa;
}

/* Buttons */
.rpm-dash .rpm-btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 8px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: 2px solid transparent;
	transition: background .15s, border-color .15s, color .15s;
	text-align: center;
}
.rpm-dash .rpm-btn--primary {
	background: #660066;
	color: #fff;
	border-color: #660066;
}
.rpm-dash .rpm-btn--primary:hover {
	background: #500057;
	border-color: #500057;
	color: #fff;
}
.rpm-dash .rpm-btn--ghost {
	background: transparent;
	color: #660066;
	border-color: #660066;
}
.rpm-dash .rpm-btn--ghost:hover {
	background: #faf4fa;
	color: #660066;
}
.rpm-dash .rpm-btn--danger {
	background: #fff;
	color: #8a0455;
	border-color: #ee0e55;
}
.rpm-dash .rpm-btn--danger:hover {
	background: #ee0e55;
	color: #fff;
}
.rpm-dash .rpm-actions {
	margin-top: 32px;
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

/* Profile photo */
.rpm-dash .rpm-photo {
	margin-bottom: 16px;
}
.rpm-dash .rpm-photo img {
	max-width: 160px;
	height: auto;
	border-radius: 16px;
	border: 3px solid #f0e6f0;
}

/* File button wrapper */
.rpm-dash .rpm-file {
	display: inline-block;
	cursor: pointer;
}
.rpm-dash .rpm-file input[type="file"] {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

/* Document rows */
.rpm-dash .rpm-doc {
	padding: 24px;
	border: 2px solid #f0e6f0;
	border-radius: 16px;
	margin-bottom: 16px;
	background: #fdfbfd;
}
.rpm-dash .rpm-doc__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 16px;
	gap: 16px;
}
.rpm-dash .rpm-doc__title {
	font-size: 17px;
	font-weight: 600;
	color: #330033;
	margin: 0 0 8px;
}
.rpm-dash .rpm-doc__current {
	background: #fff;
	border: 1px solid #e5d8e5;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}
.rpm-dash .rpm-doc__form {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	align-items: center;
}

/* Document status pills */
.rpm-dash .rpm-docstat {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}
.rpm-dash .rpm-docstat--missing    { background: #e5e5eb; color: #525252; }
.rpm-dash .rpm-docstat--submitted  { background: #fff3d9; color: #894303; }
.rpm-dash .rpm-docstat--verified   { background: #e8f5d3; color: #596301; }
.rpm-dash .rpm-docstat--rejected   { background: #fde0e8; color: #8a0455; }
.rpm-dash .rpm-docstat--expired    { background: #fde0e8; color: #8a0455; }

/* Responsive */
@media (max-width: 560px) {
	.rpm-dash .rpm-card { padding: 16px; }
	.rpm-dash .rpm-h1   { font-size: 24px; }
	.rpm-dash .rpm-tab  { padding: 8px 16px; font-size: 14px; }
	.rpm-dash .rpm-header { flex-direction: column; align-items: flex-start; }
	.rpm-dash .rpm-doc    { padding: 16px; }
}

/* ==========================================================================
   v1.10 — Premium dashboard header with logo + view-profile link
   ========================================================================== */
.rpm-dash .rpm-header {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 24px;
	align-items: center;
	padding: 24px 0;
	margin-bottom: 32px;
	border-bottom: 2px solid #f0e6f0;
}
.rpm-dash .rpm-header__brand {
	flex-shrink: 0;
}
.rpm-dash .rpm-header__logo {
	height: 48px;
	width: auto;
	display: block;
}
.rpm-dash .rpm-header__welcome {
	min-width: 0;
}
.rpm-dash .rpm-header__welcome .rpm-h1 {
	margin: 0 0 4px;
	font-size: 24px;
}
.rpm-dash .rpm-header__welcome .rpm-lead {
	margin: 0;
	font-size: 14px;
}
.rpm-dash .rpm-header__side {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-end;
	flex-shrink: 0;
}
.rpm-dash .rpm-header__view-profile {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: #fff;
	border: 2px solid #660066;
	color: #660066;
	border-radius: 999px;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	font-family: 'Poppins', sans-serif;
	transition: background .15s, color .15s;
	white-space: nowrap;
}
.rpm-dash .rpm-header__view-profile:hover {
	background: #660066;
	color: #fff;
}

/* Larger profile photo treatment in dashboard */
.rpm-dash .rpm-photo img {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: 50%;
	border: 4px solid #fff;
	box-shadow: 0 4px 16px rgba(102, 0, 102, 0.15);
}

/* Premium card upgrades */
.rpm-dash .rpm-card {
	border-radius: 24px;
	box-shadow: 0 4px 20px rgba(102, 0, 102, 0.06);
}

/* Enhanced section titles in cards */
.rpm-dash .rpm-card h2.rpm-h2 {
	font-size: 22px;
	margin-top: 32px;
}
.rpm-dash .rpm-card h2.rpm-h2:first-child {
	margin-top: 0;
}

/* Responsive header */
@media (max-width: 720px) {
	.rpm-dash .rpm-header {
		grid-template-columns: 1fr;
		text-align: center;
		gap: 16px;
		padding: 20px 0;
	}
	.rpm-dash .rpm-header__brand,
	.rpm-dash .rpm-header__welcome,
	.rpm-dash .rpm-header__side {
		justify-self: center;
	}
	.rpm-dash .rpm-header__side {
		align-items: center;
	}
	.rpm-dash .rpm-header__welcome .rpm-h1 {
		font-size: 22px;
	}
}
