/* Expr3ss! Predict Fit – app layout: sticky header, left sidebar, main content, sticky footer */

:root {
	--header-height: 56px;
	--sidebar-width: 240px;
	--footer-height: 52px;
	--accent-orange: #e85d04;
	--accent-orange-hover: #d35400;
	--text-primary: #2c3e50;
	--text-muted: #6c757d;
	--border-light: #e9ecef;
	--bg-main: #f5f6f8;
}

* {
	box-sizing: border-box;
}

body {
	font-family: 'Source Sans Pro', 'Helvetica Neue', Helvetica, sans-serif;
	color: var(--text-primary);
	background: #fff;
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* ----- Header (sticky) ----- */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: var(--header-height);
	background: #fff;
	border-bottom: 1px solid var(--border-light);
	z-index: 1030;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.header-inner {
	height: 100%;
	max-width: 100%;
	padding: 0 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.header-logo {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.logo-img {
	height: 36px;
	width: auto;
	max-width: 160px;
	object-fit: contain;
}

.header-right {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.header-user {
	font-size: 0.9rem;
	color: var(--text-muted);
}

.header-user i {
	margin-right: 0.25rem;
}

/* ----- Sidebar (fixed, only when layout-app) ----- */
.site-sidebar {
	position: fixed;
	top: var(--header-height);
	left: 0;
	width: var(--sidebar-width);
	bottom: var(--footer-height);
	background: #fff;
	border-right: 1px solid var(--border-light);
	z-index: 1020;
	overflow-y: auto;
}

.sidebar-inner {
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.sidebar-nav {
	list-style: none;
	margin: 0;
	padding: 0.75rem 0;
}

.sidebar-nav-bottom {
	margin-top: auto;
	padding-top: 0;
}

.sidebar-nav li {
	margin: 0;
}

.sidebar-link {
	display: flex;
	align-items: center;
	padding: 0.65rem 1.25rem;
	color: var(--text-primary);
	text-decoration: none;
	font-size: 0.95rem;
	transition: background 0.15s, color 0.15s;
}

.sidebar-link:hover {
	background: var(--bg-main);
	color: var(--text-primary);
}

.sidebar-link.active {
	background: var(--accent-orange);
	color: #fff;
}

.sidebar-link i:first-of-type {
	width: 1.5rem;
	margin-right: 0.5rem;
	text-align: center;
}

.sidebar-chevron {
	margin-left: auto;
	font-size: 0.75rem;
	opacity: 0.7;
}

.sidebar-link.active .sidebar-chevron {
	opacity: 1;
}

.sidebar-divider {
	height: 1px;
	background: var(--border-light);
	margin: 0.5rem 1rem;
	list-style: none;
}

/* ----- Main content ----- */
.site-main {
	flex: 1;
	margin-top: var(--header-height);
	margin-bottom: var(--footer-height);
	min-height: calc(100vh - var(--header-height) - var(--footer-height));
}

/* App layout: content right of sidebar */
.site-main.has-sidebar {
	margin-left: var(--sidebar-width);
	padding: 1.5rem 2rem;
	background: var(--bg-main);
}

.site-main.has-sidebar .main-inner {
	max-width: 100%;
}

/* Guest layout: centered content, no sidebar */
.site-main.guest-content {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 2rem 1rem;
	background: var(--bg-main);
}

.site-main.guest-content .main-inner {
	width: 100%;
	max-width: 520px;
}

.site-main.guest-content .main-inner-checklist {
	max-width: 900px;
}

/* ----- Footer (sticky) ----- */
.site-footer {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	height: var(--footer-height);
	background: #fff;
	border-top: 1px solid var(--border-light);
	z-index: 1030;
	font-size: 0.8rem;
	color: var(--text-muted);
}

.layout-guest .site-footer {
	margin-left: 0;
}

.layout-app .site-footer {
	margin-left: 0;
}

.footer-inner {
	height: 100%;
	max-width: 100%;
	padding: 0 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.footer-left {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.footer-links a {
	color: var(--text-muted);
	margin-left: 0.5rem;
}

.footer-links a:hover {
	color: var(--text-primary);
}

.footer-logo {
	height: 24px;
	width: auto;
	opacity: 0.8;
}

/* Card styling in main (optional) */
.site-main .card {
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08);
	border: 1px solid var(--border-light);
}

.site-main .btn-primary {
	background-color: var(--accent-orange);
	border-color: var(--accent-orange);
}

.site-main .btn-primary:hover {
	background-color: var(--accent-orange-hover);
	border-color: var(--accent-orange-hover);
}

.site-main h1 {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 0.5rem;
}

.site-main .lead {
	color: var(--text-muted);
	font-weight: 400;
}

/* ----- Dashboard ----- */
.dashboard-page .dashboard-hero {
	padding-bottom: 0.25rem;
}

.dashboard-page .dashboard-title {
	font-size: 1.75rem;
	font-weight: 700;
	margin-bottom: 0.25rem;
}

.dashboard-page .dashboard-welcome {
	color: var(--text-muted);
	margin-bottom: 0;
	font-size: 1rem;
}

.dashboard-stat-card {
	border-radius: 10px;
	overflow: hidden;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-stat-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.dashboard-stat-card .card-body {
	padding: 1.25rem 1.25rem;
	position: relative;
}

.dashboard-stat-card .stat-icon {
	position: absolute;
	top: 1rem;
	right: 1rem;
	font-size: 1.5rem;
	opacity: 0.2;
}

.dashboard-stat-card .stat-value {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 0.15rem;
}

.dashboard-stat-card .stat-label {
	font-size: 0.875rem;
	color: var(--text-muted);
	font-weight: 500;
}

.dashboard-stat-card.stat-total .stat-value,
.dashboard-stat-card.stat-total .stat-icon { color: #0d6efd; }
.dashboard-stat-card.stat-completed .stat-value,
.dashboard-stat-card.stat-completed .stat-icon { color: #198754; }
.dashboard-stat-card.stat-pending .stat-value,
.dashboard-stat-card.stat-pending .stat-icon { color: #fd7e14; }
.dashboard-stat-card.stat-groups .stat-value,
.dashboard-stat-card.stat-groups .stat-icon { color: #6f42c1; }

.dashboard-chart-card .card-body {
	padding: 1.25rem 1.5rem;
}

.dashboard-chart-card .chart-wrap {
	position: relative;
	height: 220px;
	width: 100%;
}

.dashboard-page .recent-list .list-group-item {
	border-left: 0;
	border-right: 0;
}

.dashboard-page .recent-list .list-group-item:first-child {
	border-top: 0;
	padding-top: 0.5rem;
}

/* Report list/dashboard icons – document (Classic) and person (Heads Up) */
.report-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 4px;
	color: #fff;
	background-color: var(--accent-orange);
	text-decoration: none;
	margin-left: 0.25rem;
	transition: background-color 0.15s ease;
}
.report-icon:first-child {
	margin-left: 0;
}
.report-icon:hover {
	background-color: var(--accent-orange-hover);
	color: #fff;
}
.report-icon i {
	font-size: 1.1rem;
}
.report-icons-cell .report-icon {
	margin-left: 0.35rem;
}
.report-icons-cell .report-icon:first-child {
	margin-left: 0;
}

/* Report symbol tooltips (Classic & Heads Up) – custom styled */
.report-symbol-tooltip .tooltip-inner {
	max-width: 320px;
	padding: 0.75rem 1rem;
	font-size: 0.9rem;
	line-height: 1.45;
	font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, sans-serif;
	color: #2c3e50;
	text-align: left;
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.report-symbol-tooltip .tooltip-arrow::before {
	border-top-color: #fff;
	border-bottom-color: #fff;
	border-left-color: #fff;
	border-right-color: #fff;
	border-width: 0.4rem;
}
.report-symbol-tooltip .report-tooltip-hint {
	display: block;
	margin-top: 0.5rem;
	padding-top: 0.4rem;
	border-top: 1px solid #e9ecef;
	font-size: 0.8rem;
	color: #6c757d;
	font-weight: 500;
}
