/**
 * File path: assets/css/npmp-admin.css
 *
 * Shared styles for the plugin's admin screens and its Dashboard widgets.
 * Loaded by npmp_admin_enqueue_styles() in includes/npmp-admin-helpers.php.
 *
 * Brand tokens (see CLAUDE.md): filled #0f766e, hover #115e59, tint #ecfdf5,
 * tint border #a7f3d0. #10B981 stays decorative. WordPress's own
 * .button-primary keeps the admin color scheme.
 */

/* ---- Page frame ---------------------------------------------------- */

.npmp-admin-page .card {
	max-width: none;
	margin-bottom: 20px;
}
.npmp-admin-page .card h2.title {
	margin: 0 0 15px 0;
	font-size: 18px;
	font-weight: 600;
}
.npmp-admin-page .description {
	color: #646970;
	font-size: 13px;
}
.npmp-page-description {
	margin: 4px 0 16px;
}
.npmp-upsell-card {
	background-color: #ecfdf5;
	border-left: 4px solid #10b981;
}
.npmp-upsell-card ul {
	list-style: disc;
	margin-left: 20px;
}

/* ---- Pro badge ----------------------------------------------------- */

.npmp-pro-badge {
	display: inline-block;
	font-size: 10px;
	line-height: 1;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	padding: 3px 5px;
	border-radius: 3px;
	background: #0f766e;
	color: #fff;
	vertical-align: middle;
}
h1 .npmp-pro-badge {
	font-size: 12px;
	padding: 4px 8px;
	margin-left: 6px;
}

/* ---- Cards used across settings screens ---------------------------- */

.npmp-settings-card {
	background: #fff;
	border: 1px solid #c3c4c7;
	box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
	padding: 20px;
	margin: 20px 0;
	max-width: 960px;
}
.npmp-settings-card > h2:first-child {
	margin-top: 0;
}

/* Icon buttons that delete a row (membership levels). */
.npmp-icon-button {
	color: #b32d2e;
	text-decoration: none;
	cursor: pointer;
}
.npmp-icon-button:hover,
.npmp-icon-button:focus {
	color: #8a2424;
}

/* ---- Overview (includes/npmp-admin-settings.php) ------------------- */

.npmp-main-container {
	display: flex;
	gap: 20px;
	margin-top: 20px;
}
.npmp-features-card {
	flex: 0 0 auto;
	background: #fff;
	border: 1px solid #c3c4c7;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
	padding: 20px;
}
.npmp-sidebar-card {
	flex: 0 0 calc(33.333% - 10px);
	background: #fff;
	border: 1px solid #c3c4c7;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
	padding: 20px;
}
.npmp-summary-container {
	display: flex;
	gap: 20px;
	margin-top: 20px;
}
.npmp-summary-card {
	flex: 1;
	background: #fff;
	border: 1px solid #c3c4c7;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
	padding: 20px;
}
.npmp-summary-card h3 {
	margin-top: 0;
	padding-bottom: 10px;
	border-bottom: 1px solid #c3c4c7;
}
.npmp-summary-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 15px;
}
.npmp-summary-table th,
.npmp-summary-table td {
	padding: 8px;
	text-align: left;
	border-bottom: 1px solid #ddd;
}
.npmp-summary-table th {
	font-weight: 600;
	color: #1d2327;
}
.npmp-summary-table td {
	color: #50575e;
}
.npmp-summary-table tr:last-child td,
.npmp-summary-table tr:last-child th {
	border-bottom: none;
}
.npmp-summary-value {
	font-weight: 600;
	color: #0f766e;
}
.npmp-features-card h2 {
	margin-top: 0;
	padding-bottom: 10px;
	border-bottom: 1px solid #c3c4c7;
}
.npmp-features-card .form-table {
	margin-top: 0;
}
.npmp-features-card .form-table th {
	width: 200px;
	padding: 8px 10px 8px 0;
}
.npmp-features-card .form-table td {
	padding: 8px 10px;
}
.npmp-sidebar-card h2 {
	margin-top: 0;
	font-size: 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid #c3c4c7;
}
.npmp-sidebar-card ul {
	margin: 10px 0 0 0;
}
.npmp-sidebar-card li {
	margin-bottom: 8px;
}
.npmp-upgrade-section {
	margin-top: 20px;
	background: #fff;
	border: 1px solid #c3c4c7;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
	padding: 20px;
}
.npmp-upgrade-section h2 {
	margin-top: 0;
}
.npmp-upgrade-box {
	background: #ecfdf5;
	border: 1px solid #0f766e;
	border-radius: 4px;
	padding: 20px;
	margin-top: 15px;
}
.npmp-upgrade-box h3 {
	margin-top: 0;
	color: #0f766e;
}
.npmp-upgrade-box .button-primary {
	margin-top: 10px;
}
@media screen and (max-width: 782px) {
	.npmp-main-container {
		flex-direction: column;
	}
	.npmp-features-card,
	.npmp-sidebar-card {
		flex: 0 0 100%;
	}
}
.npmp-quick-links__group {
	margin-top: 15px;
}

/* ---- Settings screens ---------------------------------------------- */

.npmp-field-gap {
	margin-top: 10px;
}
.npmp-card-divider {
	margin: 24px 0;
	border: none;
	border-top: 1px solid #dcdcde;
}

/* Membership levels (Membership Settings). */
.npmp-levels-table {
	max-width: 600px;
	margin: 16px 0;
}
.npmp-levels-table .npmp-levels-table__action {
	width: 90px;
	text-align: center;
}
.npmp-add-level-form {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-top: 15px;
}
.npmp-add-level-form input[type="text"] {
	flex: 1;
	max-width: 300px;
}

/* Setup status (Membership Settings). */
.npmp-status-table {
	max-width: 900px;
}
.npmp-status-table th[scope="row"] {
	width: 150px;
	font-weight: 600;
}
.npmp-status-table__state {
	width: 120px;
	white-space: nowrap;
}
.npmp-status-icon--ok { color: #0f766e; }
.npmp-status-icon--warning { color: #996800; }
.npmp-status-icon--error { color: #d63638; }

/* Dashboard cards (Membership Dashboard, Events Overview). */
.npmp-admin-page .card.npmp-dash-card {
	max-width: 900px;
	margin-top: 20px;
}
.npmp-dash-card__indent {
	padding-left: 24px !important;
}

/* ---- Contacts (includes/npmp-members-settings.php) ----------------- */

.npmp-col-110 { width: 110px; }
.npmp-col-120 { width: 120px; }
.npmp-col-140 { width: 140px; }
/* Right-align amounts on wide screens only. At phone width the cell shows
 * its label on the left, and right alignment pushed the label too. */
@media screen and (min-width: 783px) {
	.npmp-col-amount { text-align: right; }
}

/* ---- Newsletters ---------------------------------------------------- */

.npmp-filter-bar {
	margin-bottom: 20px;
}
.npmp-template-types {
	margin: 20px 0;
}

/* Dashboard widgets */
.npmp-summary-table {
	width: 100%;
	border-collapse: collapse;
}
.npmp-summary-table th,
.npmp-summary-table td {
	padding: 8px;
	text-align: left;
	border-bottom: 1px solid #dcdcde;
}
.npmp-summary-table th {
	font-weight: 600;
	color: #1d2327;
}
.npmp-summary-table tr:last-child th,
.npmp-summary-table tr:last-child td {
	border-bottom: none;
}
.npmp-summary-value {
	font-weight: 600;
	color: #0f766e;
}
.npmp-quick-form {
	margin: 10px 0;
}
.npmp-quick-form label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
}
.npmp-quick-form input[type="text"],
.npmp-quick-form input[type="email"],
.npmp-quick-form input[type="datetime-local"],
.npmp-quick-form select {
	width: 100%;
	max-width: none;
	margin-bottom: 12px;
}
.npmp-quick-form .button {
	margin-top: 5px;
}
.npmp-required {
	color: #d63638;
}

/* Donations */
.npmp-section-gap {
	margin-top: 2em;
}
.npmp-text-warning {
	color: #996800;
}
.npmp-text-error {
	color: #b32d2e;
}

/* Email Settings */
.npmp-email-card {
	background: #fff;
	border: 1px solid #c3c4c7;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
	padding: 20px;
	margin: 20px 0;
	max-width: 800px;
}
.npmp-email-card h2 {
	margin-top: 0;
	padding-bottom: 10px;
	border-bottom: 1px solid #c3c4c7;
	font-size: 18px;
}
.npmp-email-card .form-table {
	margin-top: 15px;
}
.npmp-email-card .form-table th {
	width: 180px;
	padding: 10px 10px 10px 0;
	font-weight: 600;
}
.npmp-email-card .form-table td {
	padding: 10px 10px;
}
.npmp-email-card hr {
	margin: 20px 0;
	border: none;
	border-top: 1px solid #e0e0e0;
}
.npmp-provider-help {
	background: #ecfdf5;
	border-left: 3px solid #10b981;
	padding: 12px 15px;
	margin-top: 15px;
}
.npmp-provider-help a {
	font-weight: 600;
}
.npmp-upgrade-notice {
	background: #fff9e6;
	border-left: 3px solid #ffb900;
	padding: 12px 15px;
	margin: 15px 0;
}
@media screen and (max-width: 782px) {
	.npmp-email-card .form-table th {
		width: 100%;
		padding-bottom: 0;
	}
}
.npmp-provider-title {
	margin-top: 20px;
}
.npmp-flush {
	margin: 0;
}
.npmp-error-detail {
	display: block;
	margin-top: 10px;
	background: #f5f5f5;
	padding: 10px;
	border-left: 3px solid #d63638;
}

/* Scheduled emails */
.npmp-scheduled-badge {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 6px;
	border-radius: 3px;
	border: 1px solid #a7f3d0;
	background: #ecfdf5;
	color: #0f766e;
	font-size: 11px;
	line-height: 1.6;
}

/* Events */
.npmp-admin-page .card.npmp-events-card {
	max-width: 900px;
	margin-bottom: 20px;
}
.npmp-admin-page .card.npmp-settings-narrow {
	max-width: 720px;
	margin-bottom: 20px;
}
.npmp-flush-top {
	margin-top: 0;
}
.npmp-settings-subhead {
	margin: 1.5em 0 0;
}

/* Social Sharing */
.npmp-social-grid { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
.npmp-social-card { flex: 0 0 calc(50% - 10px); background: #fff; border: 1px solid #c3c4c7; box-shadow: 0 1px 1px rgba(0,0,0,.04); padding: 20px; box-sizing: border-box; }
.npmp-social-card h3 { margin-top: 0; display: flex; align-items: center; gap: 8px; }
.npmp-social-badge { display: inline-block; padding: 2px 8px; border-radius: 8px; font-size: 11px; font-weight: 600; }
.npmp-social-badge--connected { background: #ecfdf5; color: #0f766e; border: 1px solid #a7f3d0; }
.npmp-social-badge--disconnected { background: #f6f7f7; color: #50575e; border: 1px solid #dcdcde; }
.npmp-social-badge--pro { background: #ecfdf5; color: #0f766e; border: 1px solid #a7f3d0; }
.npmp-social-settings { background: #fff; border: 1px solid #c3c4c7; box-shadow: 0 1px 1px rgba(0,0,0,.04); padding: 20px; margin-top: 20px; }
.npmp-social-settings h2 { margin-top: 0; }
.npmp-social-card .form-table th { width: 160px; padding: 6px 10px 6px 0; }
.npmp-social-card .form-table td { padding: 6px 10px; }
@media screen and (max-width: 782px) {
	.npmp-social-card { flex: 0 0 100%; }
}
.npmp-social-networks-title { margin-top: 30px; }
.npmp-inline-form { display: inline-block; margin-right: 8px; }

/* Pro feature pages */
.npmp-admin-page .card.npmp-upsell-card {
	max-width: 640px;
	padding: 20px 24px;
}
.npmp-upsell-line {
	font-size: 14px;
	margin: 0 0 1em;
}
.npmp-upsell-note {
	margin-left: 10px;
}
.npmp-admin-page .card.npmp-staff-access,
.card.npmp-staff-access {
	max-width: 820px;
	margin-top: 24px;
}

/* Import */
.npmp-import-url {
	width: 100%;
	max-width: 600px;
}
.npmp-import-cap-notice {
	margin-top: 20px;
	border-left-color: #10b981;
}
.npmp-import-cap-title {
	margin-top: .5em;
}

/* Organization identity card */
.npmp-org-city { width: 200px; }
.npmp-org-state { width: 80px; }
.npmp-org-zip { width: 120px; }
