/* =========================================================
   Mukto Notes — Frontend Styles
   ========================================================= */

:root {
	--mn-low:      #22c55e;
	--mn-medium:   #f59e0b;
	--mn-high:     #ef4444;
	--mn-low-bg:   #f0fdf4;
	--mn-mid-bg:   #fffbeb;
	--mn-high-bg:  #fef2f2;
	--mn-border:   #e5e7eb;
	--mn-text:     #1f2937;
	--mn-muted:    #6b7280;
	--mn-radius:   10px;
}

.mukto-notes-wrap {
	max-width: 780px;
	margin: 0 auto;
	font-family: inherit;
}

/* ── Date heading ─────────────────────────────────────── */
.mukto-notes-date-heading {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--mn-muted);
	margin: 2rem 0 1rem;
}

.mukto-date-line {
	flex: 1;
	height: 1px;
	background: var(--mn-border);
}

.mukto-date-label {
	white-space: nowrap;
}

/* ── Note list ────────────────────────────────────────── */
.mukto-notes-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* ── Single note card ─────────────────────────────────── */
.mukto-note {
	background: #fff;
	border: 1px solid var(--mn-border);
	border-left: 4px solid var(--mn-border);
	border-radius: var(--mn-radius);
	padding: 18px 20px;
	transition: box-shadow 0.15s ease;
}

.mukto-note:hover {
	box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.mukto-note.mukto-priority-low    { border-left-color: var(--mn-low);    background: var(--mn-low-bg); }
.mukto-note.mukto-priority-medium { border-left-color: var(--mn-medium); background: var(--mn-mid-bg); }
.mukto-note.mukto-priority-high   { border-left-color: var(--mn-high);   background: var(--mn-high-bg); }

/* ── Note header ──────────────────────────────────────── */
.mukto-note-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.mukto-note-title {
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--mn-text);
	margin: 0;
	line-height: 1.4;
}

.mukto-note-meta-badges {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

/* ── Priority badge ───────────────────────────────────── */
.mukto-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.mukto-badge--low    { background: #dcfce7; color: #15803d; }
.mukto-badge--medium { background: #fef3c7; color: #b45309; }
.mukto-badge--high   { background: #fee2e2; color: #b91c1c; }

/* ── Category tag ─────────────────────────────────────── */
.mukto-category-tag {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 0.72rem;
	background: #f3f4f6;
	color: #374151;
	border: 1px solid #e5e7eb;
}

/* ── Note content ─────────────────────────────────────── */
.mukto-note-content {
	font-size: 0.95rem;
	color: #374151;
	line-height: 1.7;
	white-space: pre-wrap;
	word-break: break-word;
}

/* ── Note footer ──────────────────────────────────────── */
.mukto-note-footer {
	margin-top: 10px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.mukto-note-time {
	font-size: 0.78rem;
	color: var(--mn-muted);
}

/* ── Empty state ──────────────────────────────────────── */
.mukto-notes-empty {
	text-align: center;
	padding: 40px 20px;
	color: var(--mn-muted);
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 600px) {
	.mukto-note-header {
		flex-direction: column;
		gap: 8px;
	}
	.mukto-note {
		padding: 14px 16px;
	}
}
