:root { --bmf-primary: #4f46e5; --bmf-primary-dark: #4338ca; --bmf-primary-light: #eef2ff; --bmf-ink: #16171d; --bmf-border: #e6e7eb; }

.bmf-app { border: 1px solid var(--bmf-border); border-radius: 14px; overflow: hidden; font-family: -apple-system, Segoe UI, Roboto, sans-serif; background: #fff; box-shadow: 0 4px 16px rgba(16,17,30,.06); color: var(--bmf-ink); }
.bmf-topbar { background: linear-gradient(135deg, #1b1c24, #2a2c3a); padding: 10px 20px; display: flex; align-items: center; }
.bmf-logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.bmf-logo img { height: 26px; width: auto; display: block; border-radius: 4px; }
.bmf-logo:hover { opacity: .9; }

.bmf-body { display: flex; height: 640px; }
.bmf-nav { width: 200px; flex-shrink: 0; background: #fafafa; border-right: 1px solid var(--bmf-border); padding: 16px 10px; overflow-y: hidden; min-height: 0; }
.bmf-nav-btn { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: none; border-left: 3px solid transparent; background: transparent; padding: 10px 12px; border-radius: 8px; font-size: 14px; margin-bottom: 4px; cursor: pointer; color: #3f3f46; transition: background .15s ease; }
.bmf-nav-btn .dashicons { font-size: 17px; width: 17px; height: 17px; }
.bmf-nav-btn:hover { background: #f0f0f5; }
.bmf-nav-btn.is-active { background: var(--bmf-primary-light); color: var(--bmf-primary); font-weight: 600; border-left-color: var(--bmf-primary); border-radius: 0 8px 8px 0; }

.bmf-panel { flex: 1; padding: 24px 28px; overflow-y: auto; min-height: 0; }
.bmf-panel h2 { margin: 0 0 16px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }

@media (max-width: 700px) {
	.bmf-body { flex-direction: column; height: auto; }
	.bmf-nav { width: 100%; display: flex; overflow-x: auto; overflow-y: visible; border-right: none; border-bottom: 1px solid var(--bmf-border); }
	.bmf-nav-btn { width: auto; white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; }
	.bmf-nav-btn.is-active { border-radius: 8px; border-left: none; border-bottom-color: var(--bmf-primary); }
}

.bmf-muted { color: #75757f; font-size: 13px; }
.bmf-card { background: #fff; border: 1px solid var(--bmf-border); border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; }
.bmf-card label { display: block; font-size: 13px; color: #52525b; margin-bottom: 12px; font-weight: 500; }
.bmf-card input[type=text], .bmf-card input[type=password], .bmf-card select, .bmf-card textarea {
	width: 100%; padding: 9px 11px; border: 1px solid #dcdce2; border-radius: 8px; margin-top: 5px; font-size: 14px; box-sizing: border-box; font-weight: 400; transition: border-color .15s ease, box-shadow .15s ease;
}
.bmf-card input:focus, .bmf-card select:focus, .bmf-card textarea:focus { outline: none; border-color: var(--bmf-primary); box-shadow: 0 0 0 3px var(--bmf-primary-light); }

.bmf-dropzone { border: 1.5px dashed #cfcfe0; border-radius: 10px; padding: 30px; text-align: center; color: #888; background: #fbfbfe; }
.bmf-dropzone .dashicons { font-size: 26px; width: 26px; height: 26px; color: var(--bmf-primary); }
.bmf-dropzone p { margin: 8px 0 14px; }

.bmf-btn { border: 1px solid #d8d8e2; background: #fff; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 500; color: #333; transition: background .15s ease, box-shadow .15s ease; }
.bmf-btn:hover { background: #f5f5f9; }
.bmf-btn-primary { background: var(--bmf-primary); color: #fff; border-color: var(--bmf-primary); }
.bmf-btn-primary:hover { background: var(--bmf-primary-dark); }

.bmf-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bmf-table th { text-align: left; color: #75757f; font-weight: 600; padding: 8px 6px; border-bottom: 1px solid #eee; }
.bmf-table td { padding: 9px 6px; border-bottom: 1px solid #f2f2f4; }
.bmf-table tr:hover td { background: #fafaff; }

.bmf-badge { padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.bmf-badge-approved, .bmf-badge-sent { background: #dcfce7; color: #15803d; }
.bmf-badge-pending, .bmf-badge-queued { background: #fef3c7; color: #92400e; }
.bmf-badge-rejected, .bmf-badge-failed { background: #fee2e2; color: #b91c1c; }

.bmf-session-row { cursor: pointer; border: 1px solid #eee; border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; transition: box-shadow .15s ease, border-color .15s ease; }
.bmf-session-row:hover { border-color: var(--bmf-primary); box-shadow: 0 2px 8px rgba(79,70,229,.08); }

.bmf-progress-track { background: #ececf3; border-radius: 8px; height: 12px; overflow: hidden; margin-top: 12px; }
.bmf-progress-fill { background: var(--bmf-primary); height: 100%; width: 0%; transition: width .4s ease; }
.bmf-progress-fill.bmf-done { background: #15803d; }
.bmf-mini-track { background: #ececf3; border-radius: 6px; height: 8px; width: 100px; display: inline-block; margin-right: 8px; vertical-align: middle; }
.bmf-mini-fill { background: var(--bmf-primary); height: 100%; border-radius: 6px; }

.bmf-modal-overlay { position: fixed; inset: 0; background: rgba(15,15,25,.5); display: flex; align-items: center; justify-content: center; z-index: 9999; }
.bmf-modal { background: #fff; border-radius: 14px; width: 560px; max-height: 80vh; overflow-y: auto; padding: 22px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.bmf-modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-weight: 700; font-size: 16px; }
.bmf-modal-filters { display: flex; gap: 8px; margin-bottom: 12px; }
.bmf-modal-filters input { flex: 1; padding: 7px 10px; border: 1px solid #dcdce2; border-radius: 8px; }
.bmf-modal-filters select { padding: 7px 10px; border: 1px solid #dcdce2; border-radius: 8px; }

/* Toasts */
.bmf-toast-host { position: fixed; top: 20px; right: 20px; z-index: 100000; display: flex; flex-direction: column; gap: 8px; }
.bmf-toast { background: #1b1c24; color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.2); opacity: 0; transform: translateY(-6px); animation: bmf-toast-in .25s ease forwards; max-width: 320px; }
.bmf-toast-success { background: #15803d; }
.bmf-toast-error { background: #b91c1c; }
.bmf-toast-out { animation: bmf-toast-out .3s ease forwards; }
@keyframes bmf-toast-in { to { opacity: 1; transform: translateY(0); } }
@keyframes bmf-toast-out { to { opacity: 0; transform: translateY(-6px); } }
