/* Shared theme components. Palette values come from css/themes/<theme>.css. */
.theme-page {
	position: relative;
	background: var(--theme-page-background);
	color: var(--theme-text);
}
.theme-page .content {
	background: radial-gradient(circle at top right, var(--theme-accent-soft), transparent 34rem), var(--theme-page-background);
}
.theme-page .theme-card {
	background: var(--theme-surface);
	border: 1px solid var(--theme-border);
	border-radius: var(--theme-radius-lg);
	box-shadow: var(--theme-shadow);
	overflow: hidden;
}
.theme-page .card-profile.theme-card {
	overflow: visible;
}
.theme-page .theme-card.theme-overflow-visible {
	overflow: visible;
}
.theme-page .theme-section-header {
	display: flex;
	align-items: center;
	gap: .85rem;
	margin: 0;
	padding: 1.1rem 1.25rem .75rem;
	background: transparent;
	box-shadow: none;
}
.theme-page .theme-section-header .card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	height: 2.75rem;
	margin: 0;
	padding: .65rem;
	color: var(--theme-on-primary);
	background: var(--theme-primary);
	border-radius: var(--theme-radius-md);
	box-shadow: 0 .45rem 1rem var(--theme-primary-shadow);
}
.theme-page .theme-section-header .card-title {
	margin: 0;
	color: var(--theme-heading);
	font-weight: 600;
}
.theme-page .theme-card .card-body { padding: 1.25rem; }
.theme-page .form-control { border-radius: var(--theme-radius-sm); }
.theme-page .form-control:focus {
	border-color: var(--theme-primary);
	box-shadow: 0 0 0 .2rem var(--theme-focus-ring);
}
.theme-page .theme-primary-button {
	color: var(--theme-on-primary);
	background: var(--theme-primary);
	border-color: var(--theme-primary);
	border-radius: var(--theme-radius-md);
	box-shadow: 0 .5rem 1.25rem var(--theme-primary-shadow);
}
.theme-page .theme-primary-button:hover,
.theme-page .theme-primary-button:focus,
.theme-page .theme-primary-button:active {
	color: var(--theme-on-primary);
	background: var(--theme-primary-hover);
	border-color: var(--theme-primary-hover);
}
.theme-page .theme-identity {
	border: 1px solid var(--theme-danger-border);
	border-radius: var(--theme-radius-md);
	background: var(--theme-danger-soft);
}
.theme-page .theme-fixed-icon { width: 3.125rem; }
.theme-page .theme-crop-area {
	width: min(21.875rem, 100%);
	margin-inline: auto;
}
.theme-page .theme-page-heading {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
}
.theme-page .theme-page-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	color: var(--theme-on-primary);
	background: var(--theme-primary);
	border-radius: var(--theme-radius-md);
	box-shadow: 0 .45rem 1rem var(--theme-primary-shadow);
}
.theme-page .theme-page-title {
	margin: 0 0 .2rem;
	color: var(--theme-heading);
	font-weight: 700;
}
.theme-page .theme-page-subtitle { color: var(--theme-muted); }
.theme-page .theme-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin-bottom: 1.25rem;
}
.theme-page .theme-stat {
	padding: 1rem;
	background: var(--theme-surface-muted);
	border: 1px solid var(--theme-border);
	border-radius: var(--theme-radius-md);
}
.theme-page .theme-stat small {
	display: block;
	margin-bottom: .25rem;
	color: var(--theme-muted);
}
.theme-page .theme-stat strong {
	color: var(--theme-heading);
	font-size: 1.125rem;
}
.theme-page .theme-info {
	margin: 1rem 0 1.25rem;
	padding: .9rem 1.1rem;
	color: var(--theme-heading);
	background: var(--theme-accent-soft);
	border-radius: var(--theme-radius-md);
}
.theme-page .theme-note {
	margin-top: .4rem;
	color: var(--theme-muted);
	font-size: .75rem;
}
.theme-page .theme-confirm {
	display: block;
	margin: 1rem 0;
}
.theme-page .theme-card-title {
	margin: 0;
	padding: 1.1rem 1.25rem;
	color: var(--theme-heading);
	font-weight: 700;
	border-bottom: 1px solid var(--theme-border);
}
.theme-page .theme-table { margin: 0; }
.theme-page .theme-table th {
	color: var(--theme-muted);
	background: var(--theme-surface-muted);
	border-top: 0;
}
.theme-page .theme-table tbody tr:hover { background: var(--theme-accent-soft); }
.theme-page .theme-empty {
	padding: 1.75rem;
	color: var(--theme-muted);
	text-align: center;
}
.theme-page .theme-table-wrap { overflow-x: auto; }
.bootstrap-datetimepicker-widget {
	z-index: 1080 !important;
}
.profile-page .profile-section-note {
	display: flex;
	align-items: flex-start;
	gap: .55rem;
	margin: 0 0 1rem;
	padding: .75rem .9rem;
	color: var(--theme-heading);
	background: var(--theme-accent-soft);
	border-radius: var(--theme-radius-sm);
}
.profile-page .profile-section-note .material-icons { font-size: 1.15rem; }
.profile-page .profile-status {
	display: inline-block;
	margin-left: .35rem;
	padding: .15rem .45rem;
	font-size: .7rem;
	font-weight: 600;
	line-height: 1.3;
	border-radius: 999px;
}
.profile-page .profile-status-confirmed { color: #176b4d; background: #dff5ec; }
.profile-page .profile-status-pending { color: #8a5a00; background: #fff0c7; }
.profile-page .profile-status-empty { color: var(--theme-muted); background: var(--theme-surface-muted); }
.profile-page .profile-save-bar {
	position: sticky;
	bottom: .75rem;
	z-index: 25;
	padding-top: .5rem;
	padding-bottom: .5rem;
	background: var(--theme-page-background);
	background: color-mix(in srgb, var(--theme-page-background) 92%, transparent);
	backdrop-filter: blur(8px);
}
.profile-page .profile-save-state {
	display: block;
	min-height: 1.25rem;
	margin-top: .35rem;
	color: var(--theme-muted);
	font-size: .78rem;
	text-align: center;
}
.profile-page .is-invalid {
	border-color: #dc3545 !important;
	box-shadow: 0 0 0 .16rem rgba(220, 53, 69, .14) !important;
}
.profile-page .profile-field-error {
	display: block;
	margin-top: .25rem;
	color: #b02a37;
	font-size: .75rem;
}
@media (max-width: 767.98px) {
	.theme-page .theme-card .card-body { padding: 1rem; }
	.theme-page .theme-section-header { padding: 1rem 1rem .5rem; }
	.theme-page .theme-stats { grid-template-columns: 1fr; }
	.profile-page .profile-save-bar { bottom: 0; padding-inline: .75rem; }
	.profile-page .input-group-prepend .form-control { max-width: 8.5rem; }
}
