/* ============================================================
	Global CSS for Entire Site
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');


:root {

	--font-main:			'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

	--bg-light: 			#F6F7FB;
	--bg-dark:        	#12172B;
	--bg-light-component:#FFFFFF;
	--bg-dark-component: #1E2242;
	--bg-sidebar: 			#0B1030;

	--text-primary: 		#475569;
	--text-dark: 			#111827;
	--text-muted: 			#8B93A7;
	--text-muted-alt: 	#C3C8E4;
	--text-accent:  		#C4B5FD;

	--accent-dark: 		#7C5CFF;
	--accent-light: 		#EDE9FF;
	--accent-border: 		#E5E7EB;
	--accent-green: 		#10B981;
	--accent-yellow: 		#F59E0B;
	--accent-red: 			#EF4444;
}


/* --- Main ------------------------------------------------- */
.main {
	flex: 1;                  /* takes all the width the sidebar doesn't */
	min-width: 0;             /* lets wide tables/charts shrink instead of overflowing */
	display: flex;
	flex-direction: column;   /* header on top, content below */
	position: relative;
	z-index: 2;
	overflow: hidden;
}

/* --- Body -------------------------------------------------- */
body {
	margin: 0;
	display: flex;            /* sidebar | main side by side */
	height: 100vh;
	overflow: hidden;         /* main handles scrolling, not the page */
	background: var(--bg-light);	
	font-family: var(--font-main);
}

/* --- Form Controls -------------------------------------------------- */
button, input, select, textarea {
	font-family: inherit;
}


/* --- Form Field ------------------------------------------- */
.field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin-bottom: 1.25rem;
}

.field-label {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-dark);
}

.field-input {
	width: 100%;
	box-sizing: border-box;         /* padding doesn't make it wider than its container */
	padding: 0.75rem 0.9rem;
	font-size: 1rem;
	color: var(--text-dark);
	background: var(--bg-light-component);
	border: 1px solid var(--accent-border);
	border-radius: 10px;
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.field-input::placeholder { color: var(--text-muted); }

.field-input:focus {
	border-color: var(--accent-dark);
	box-shadow: 0 0 0 3px var(--accent-light);
}


/* --- Input with icon -------------------------------------- */
.input-wrap { position: relative; }

.input-wrap > svg {
	position: absolute;
	left: 0.85rem;
	top: 50%;
	transform: translateY(-50%);
	width: 1.1rem;
	height: 1.1rem;
	color: var(--text-muted);
	pointer-events: none;
	transition: color 0.15s;
}
.input-wrap:focus-within > svg { color: var(--accent-dark); }

.input-wrap .field-input { padding-left: 2.6rem; }   /* room for the icon */


/* --- Checkbox --------------------------------------------- */
.checkbox {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: var(--text-primary);
	border-color: var(--text-muted);
	cursor: pointer;
	user-select: none;               /* double-clicking the text doesn't highlight it */
}

.checkbox input {
	width: 1rem;
	height: 1rem;
	margin: 0;
	accent-color: var(--accent-dark); /* purple when checked */
	cursor: pointer;
}


/* --- Divider ---------------------------------------------- */
.divider {
	border: none;                              /* clear the browser's default 3D line */
	border-top: 2px solid var(--accent-border);
	margin: 1rem 0;
}