/**
 * Member panel dashboard styles.
 */

.bms-panel-body {
	margin: 0;
	background: #f3f5f9;
	font-family: "DM Sans", system-ui, sans-serif;
	color: #111827;
}

.bms-panel {
	display: grid;
	grid-template-columns: 260px 1fr;
	min-height: 100vh;
}

@media (max-width: 900px) {
	.bms-panel {
		grid-template-columns: 1fr;
	}
}

.bms-sidebar {
	background: #111827;
	color: #e5e7eb;
	display: flex;
	flex-direction: column;
	padding: 1.5rem 1.1rem;
}

.bms-sidebar-brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0 0.5rem 1.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	margin-bottom: 1rem;
}

.bms-sidebar-brand img {
	width: 42px;
	height: 42px;
	object-fit: contain;
	border-radius: 10px;
	background: #fff;
}

.bms-sidebar-brand span {
	font-weight: 700;
	font-size: 1rem;
}

.bms-nav {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	flex: 1;
}

.bms-nav a {
	color: #9ca3af;
	text-decoration: none;
	padding: 0.75rem 0.9rem;
	border-radius: 0.75rem;
	font-weight: 600;
	font-size: 0.9rem;
	transition: background 0.15s, color 0.15s;
}

.bms-nav a:hover,
.bms-nav a.is-active {
	background: rgba(79, 70, 229, 0.2);
	color: #fff;
}

.bms-sidebar-foot {
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	font-size: 0.85rem;
}

.bms-sidebar-foot a {
	color: #a5b4fc;
	text-decoration: none;
}

.bms-panel-main {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.bms-panel-top {
	padding: 1.5rem 1.75rem 0.5rem;
}

.bms-panel-top h1 {
	margin: 0;
	font-size: 1.6rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.bms-panel-content {
	padding: 1rem 1.75rem 2.5rem;
}

.bms-stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 1rem;
	margin-bottom: 1.25rem;
}

.bms-stat-card {
	background: #fff;
	border-radius: 1.1rem;
	padding: 1.25rem 1.35rem;
	box-shadow: 0 8px 30px -18px rgba(0, 0, 0, 0.18);
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.bms-stat-label {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #6b7280;
}

.bms-stat-value {
	font-size: 2rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: #111827;
}

.bms-panel-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}

.bms-panel-actions--between {
	justify-content: space-between;
	align-items: center;
}

.bms-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.7rem 1.15rem;
	border-radius: 0.75rem;
	background: #fff;
	color: #111827;
	border: 1px solid #e5e7eb;
	font: 700 0.875rem/1 "DM Sans", system-ui, sans-serif;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.bms-btn:hover {
	background: #f9fafb;
	transform: translateY(-1px);
}

.bms-btn--primary {
	background: linear-gradient(90deg, #4f46e5, #7c3aed);
	color: #fff;
	border-color: transparent;
	box-shadow: 0 10px 24px -10px rgba(79, 70, 229, 0.55);
}

.bms-btn--primary:hover {
	filter: brightness(1.05);
	color: #fff;
}

.bms-btn--sm {
	padding: 0.45rem 0.8rem;
	font-size: 0.8rem;
}

.bms-panel-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 1.25rem;
}

@media (max-width: 1000px) {
	.bms-panel-grid {
		grid-template-columns: 1fr;
	}
}

.bms-card {
	background: #fff;
	border-radius: 1.25rem;
	padding: 1.35rem 1.4rem;
	box-shadow: 0 8px 30px -18px rgba(0, 0, 0, 0.18);
}

.bms-card h2 {
	margin: 0 0 1rem;
	font-size: 1.1rem;
	font-weight: 800;
}

.bms-card-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
}

.bms-card-head h2 {
	margin: 0;
}

.bms-card-head a {
	font-size: 0.85rem;
	font-weight: 600;
	color: #4f46e5;
	text-decoration: none;
}

.bms-table-wrap {
	overflow-x: auto;
}

.bms-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.bms-table th {
	text-align: left;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #6b7280;
	padding: 0.55rem 0.4rem;
	border-bottom: 1px solid #eef2f7;
}

.bms-table td {
	padding: 0.85rem 0.4rem;
	border-bottom: 1px solid #f3f4f6;
	vertical-align: middle;
}

.bms-table a {
	color: #4f46e5;
	text-decoration: none;
	font-weight: 600;
}

.bms-badge {
	display: inline-block;
	padding: 0.25rem 0.55rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	background: #eef2ff;
	color: #4338ca;
}

.bms-badge--new {
	background: #eef2ff;
	color: #4338ca;
}

.bms-badge--contacted,
.bms-badge--in_progress {
	background: #fff7ed;
	color: #c2410c;
}

.bms-badge--converted {
	background: #ecfdf5;
	color: #047857;
}

.bms-badge--closed {
	background: #f3f4f6;
	color: #4b5563;
}

.bms-form-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.bms-form-list li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 0.85rem 0;
	border-bottom: 1px solid #f3f4f6;
}

.bms-form-list li:last-child {
	border-bottom: 0;
}

.bms-form-list strong {
	display: block;
}

.bms-form-list span {
	font-size: 0.8rem;
	color: #6b7280;
}

.bms-copy-input {
	width: min(100%, 320px);
	padding: 0.45rem 0.65rem;
	border-radius: 0.55rem;
	border: 1px solid #e5e7eb;
	background: #f8fafc;
	font-size: 0.8rem;
}

.bms-row-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	align-items: center;
}

.bms-inline-form {
	display: inline;
	margin: 0;
}

.bms-link-danger {
	background: none;
	border: none;
	padding: 0;
	color: #dc2626;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
}

.bms-edit-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.bms-edit-form label span {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b7280;
	margin-bottom: 0.4rem;
}

.bms-edit-form input,
.bms-edit-form select,
.bms-edit-form textarea {
	width: 100%;
	padding: 0.8rem 0.95rem;
	border: 1px solid #e5e7eb;
	border-radius: 0.75rem;
	background: #f8fafc;
	font: 500 0.95rem "DM Sans", system-ui, sans-serif;
}

.bms-edit-form input:focus,
.bms-edit-form select:focus,
.bms-edit-form textarea:focus {
	outline: none;
	border-color: #4f46e5;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.bms-hint {
	font-size: 0.85rem;
	color: #6b7280;
	margin: 0;
}

.bms-dl {
	margin: 0;
	display: grid;
	gap: 0.85rem;
}

.bms-dl > div {
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 0.75rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid #f3f4f6;
}

.bms-dl dt {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b7280;
}

.bms-dl dd {
	margin: 0;
	font-weight: 600;
}

.bms-danger-zone {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px dashed #fecaca;
}

.bms-filter-form select {
	padding: 0.65rem 0.9rem;
	border-radius: 0.75rem;
	border: 1px solid #e5e7eb;
	background: #fff;
	font: 600 0.875rem "DM Sans", system-ui, sans-serif;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}
