/* 
 * Sentio Design System
 * Standard CSS (No @apply as we use Tailwind CDN)
 */

:root {
	--sidebar-width: 280px;
	--sidebar-collapsed-width: 80px;
	--header-height: 64px;
	--primary-indigo: #4f46e5;
	--primary-indigo-dark: #4338ca;
	--slate-900: #0f172a;
	--slate-800: #1e293b;
	--slate-300: #cbd5e1;
	--slate-100: #f1f5f9;
	--slate-50: #f8fafc;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	color: var(--slate-900);
	background-color: var(--slate-50);
	font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* Custom Scrollbar */
::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}

::-webkit-scrollbar-track {
	background: var(--slate-100);
}

::-webkit-scrollbar-thumb {
	background: var(--slate-300);
	border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
	background: #94a3b8;
}

/* Sidebar Styling */
.sentio-sidebar {
	width: var(--sidebar-width);
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	background-color: var(--slate-900);
	color: var(--slate-300);
	z-index: 50;
	transition: all 0.3s ease-in-out;
	border-right: 1px solid var(--slate-800);
}

.sentio-sidebar .nav-link {
	display: flex;
	items-align: center;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	margin: 0.25rem 0.5rem;
	border-radius: 0.5rem;
	transition: all 0.2s;
	text-decoration: none;
	color: inherit;
}

.sentio-sidebar .nav-link:hover {
	background-color: var(--slate-800);
	color: white;
}

.sentio-sidebar .nav-link.active {
	background-color: var(--primary-indigo);
	color: white;
	box-shadow: 0 10px 15px -3px rgba(49, 46, 129, 0.2);
}

.sentio-sidebar .nav-link i {
	font-size: 1.125rem;
	width: 1.5rem;
	text-align: center;
}

/* Content Area */
.sentio-content {
	min-height: 100vh;
	transition: all 0.3s ease-in-out;
}

/* Header / Topbar */
.sentio-header {
	height: var(--header-height);
	position: sticky;
	top: 0;
	background-color: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid #e2e8f0;
	z-index: 40;
	padding: 0 2rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* Animation */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.animate-fadeIn {
	animation: fadeIn 0.3s ease-out forwards;
}

.scroller {
	scrollbar-width: thin;
	scrollbar-color: var(--slate-300) transparent;
}

/* Mobile Sidebar Overlay Backdrop */
.sidebar-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 49;
	cursor: pointer;
}

/* ── Mobile Responsive (< 768px) ─────────────────────────────────── */
@media (max-width: 767px) {
	
	/* Sidebar: hide off-screen by default, slide in when .mobile-open */
	.sentio-sidebar {
		transform: translateX(-100%);
		width: var(--sidebar-width) !important;
		box-shadow: none;
	}
	
	.sentio-sidebar.mobile-open {
		transform: translateX(0);
		box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
	}
	
	/* Content area: always full-width on mobile */
	.sentio-content {
		margin-left: 0 !important;
	}
	
	/* Header: tighter padding */
	.sentio-header {
		padding: 0 1rem;
	}
	
	/* Topbar user info: hide tenant badge to save space */
	.sentio-header .tenant-badge {
		display: none;
	}
	
	/* Main content: reduce padding */
	.sentio-main {
		padding: 1rem;
	}
	
	/* Show backdrop when sidebar is open */
	.sidebar-overlay {
		display: block;
	}
}

/* Tablet (768px – 1023px): collapsed sidebar by default */
@media (min-width: 768px) and (max-width: 1023px) {
	.sentio-sidebar {
		width: var(--sidebar-collapsed-width) !important;
	}

	.sentio-content {
		margin-left: var(--sidebar-collapsed-width) !important;
	}
}

/* ── Status Indicators ───────────────────────────────────────────── */
@keyframes blink {
	0%, 100% { opacity: 1; }
	50%       { opacity: 0.3; }
}

.blink {
	animation: blink 1.5s ease-in-out infinite;
}

/* ── Dossier Opportunity Cards ───────────────────────────────────── */
.opportunity-card {
	padding: 16px;
	border-radius: 12px;
	margin-bottom: 16px;
	border: 1px solid transparent;
	transition: box-shadow 0.2s, transform 0.15s;
}

.opportunity-card:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Green — verified/confirmed */
.opp-confirmed {
	background-color: #f0fdf4;
	border-color: #bbf7d0;
}

/* Amber — AI draft, pending human review */
.opp-draft {
	background-color: #fffbeb;
	border-color: #fef3c7;
}

/* Red — critical / at-risk / lost */
.opp-critical {
	background-color: #fff1f2;
	border-color: #fecdd3;
}

.opp-topic {
	font-weight: bold;
	color: #0f172a;
	font-size: 1.05em;
	vertical-align: top;
}

.opp-status {
	text-align: right;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	vertical-align: top;
	white-space: nowrap;
}

.opp-confirmed .opp-status { color: #166534; }
.opp-draft .opp-status     { color: #92400e; }
.opp-critical .opp-status  { color: #9f1239; }

.opp-reasoning {
	font-size: 0.9em;
	color: #475569;
	margin-top: 8px;
	margin-bottom: 12px;
	line-height: 1.5;
}

.pitch-box {
	font-size: 0.875rem;
	background-color: white;
	padding: 12px;
	border: 1px solid #e2e8f0;
	font-style: italic;
	color: #334155;
	border-radius: 8px;
}

.pitch-label {
	color: #1e3a8a;
	font-weight: bold;
}
