/* Better Foar Letter — strak dashboard (scoped onder .bfl-dash) */

.bfl-dash {
	--bfl-green: #15803d;
	--bfl-green-dark: #14532d;
	--bfl-bg: #f4f6f8;
	--bfl-card: #ffffff;
	--bfl-line: #e6e9ee;
	--bfl-text: #1f2937;
	--bfl-muted: #6b7280;
	--bfl-sidebar-w: 248px;

	display: flex;
	min-height: 80vh;
	background: var(--bfl-bg);
	color: var(--bfl-text);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(15, 23, 42, .08);
	font-size: 15px;
	line-height: 1.45;
}

/* ---- Sidebar ---- */
.bfl-dash__sidebar {
	width: var(--bfl-sidebar-w);
	flex: 0 0 var(--bfl-sidebar-w);
	background: var(--bfl-green-dark);
	color: #e7f0e9;
	display: flex;
	flex-direction: column;
	padding: 1.25rem 0;
}
.bfl-dash__brand {
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: .2px;
	padding: 0 1.25rem 1.1rem;
	display: flex;
	align-items: center;
	gap: .55rem;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
	margin-bottom: .75rem;
}
.bfl-dash__brand .bi { font-size: 1.3rem; }
.bfl-dash__nav { list-style: none; margin: 0; padding: 0; flex: 1; }
.bfl-dash__nav a {
	display: flex;
	align-items: center;
	gap: .7rem;
	padding: .62rem 1.25rem;
	color: #cfe3d6;
	text-decoration: none;
	border-left: 3px solid transparent;
	transition: background .12s ease, color .12s ease;
}
.bfl-dash__nav a .bi { font-size: 1.05rem; width: 1.2rem; text-align: center; }
.bfl-dash__nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.bfl-dash__nav a.is-active {
	background: rgba(255, 255, 255, .12);
	color: #fff;
	border-left-color: #86efac;
	font-weight: 600;
}
.bfl-dash__nav .bfl-pill {
	margin-left: auto;
	background: #86efac;
	color: #14532d;
	border-radius: 999px;
	font-size: .72rem;
	font-weight: 700;
	padding: .05rem .45rem;
}
.bfl-dash__user {
	border-top: 1px solid rgba(255, 255, 255, .12);
	padding: .9rem 1.25rem 0;
	font-size: .85rem;
	color: #b9d3c2;
}
.bfl-dash__user a { color: #fff; text-decoration: underline; }

/* ---- Main ---- */
.bfl-dash__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bfl-dash__topbar {
	background: #fff;
	border-bottom: 1px solid var(--bfl-line);
	padding: 1rem 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.bfl-dash__topbar h1 { font-size: 1.25rem; margin: 0; font-weight: 700; }
.bfl-dash__content { padding: 1.5rem; }

/* ---- Cards ---- */
.bfl-dash .card,
.bfl-dash__panel {
	background: var(--bfl-card);
	border: 1px solid var(--bfl-line);
	border-radius: 12px;
	box-shadow: none;
}
.bfl-dash__panel { padding: 1.25rem; margin-bottom: 1.25rem; }
.bfl-dash__panel-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 1rem; }

/* ---- Stat tiles ---- */
.bfl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.bfl-stat {
	background: #fff;
	border: 1px solid var(--bfl-line);
	border-radius: 12px;
	padding: 1.1rem 1.25rem;
	display: flex;
	flex-direction: column;
	gap: .25rem;
}
.bfl-stat__label { color: var(--bfl-muted); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.bfl-stat__value { font-size: 1.9rem; font-weight: 800; line-height: 1.1; color: var(--bfl-green-dark); }
.bfl-stat__hint { color: var(--bfl-muted); font-size: .8rem; }
.bfl-stat .bi { float: right; font-size: 1.4rem; color: #cbd5e1; }

/* ---- Tables ---- */
.bfl-dash table { width: 100%; background: #fff; }
.bfl-dash .table thead th { background: #f8fafc; color: var(--bfl-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .4px; border-bottom: 2px solid var(--bfl-line); }
.bfl-dash .table td { vertical-align: middle; }

/* ---- Buttons / utilities ---- */
.bfl-dash .btn-success { background: var(--bfl-green); border-color: var(--bfl-green); }
.bfl-dash .btn-success:hover { background: var(--bfl-green-dark); border-color: var(--bfl-green-dark); }
.bfl-dash .btn { border-radius: 9px; }
.bfl-dash .form-control, .bfl-dash .form-select { border-radius: 9px; }

.bfl-dash__alert { border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1.25rem; font-weight: 500; }
.bfl-dash__alert--ok { background: #dcfce7; color: #166534; }
.bfl-dash__alert--err { background: #fee2e2; color: #991b1b; }

.bfl-status { display: inline-block; font-size: .74rem; font-weight: 700; padding: .18rem .55rem; border-radius: 999px; }
.bfl-status--ok { background: #dcfce7; color: #166534; }
.bfl-status--wait { background: #fef9c3; color: #854d0e; }
.bfl-status--off { background: #fee2e2; color: #991b1b; }
.bfl-status--info { background: #e0f2fe; color: #075985; }

.bfl-thumb { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; background: #f1f5f9; }
.bfl-gallery-thumbs { display: flex; flex-wrap: wrap; gap: 6px; }
.bfl-gallery-thumbs img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; }

/* ---- Mobile ---- */
@media (max-width: 782px) {
	.bfl-dash { flex-direction: column; border-radius: 12px; }
	.bfl-dash__sidebar { width: 100%; flex-basis: auto; flex-direction: column; }
	.bfl-dash__nav { display: flex; flex-wrap: wrap; }
	.bfl-dash__nav a { border-left: 0; border-bottom: 3px solid transparent; padding: .55rem .9rem; }
	.bfl-dash__nav a.is-active { border-left: 0; border-bottom-color: #86efac; }
	.bfl-pill { display: none; }
}
