
:root {
	--primary: #0284c7;
	--primary-dark: #0369a1;
	--bg-slate: #0f172a;
	--text-main: #0f172a;
	--text-muted: #64748b;
	--border-color: #e2e8f0;
}

body {
	margin: 0;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	background-color: #f8fafc;
	color: var(--text-main);
}

/* HEADER BAR */
.app-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.85rem 2rem;
	background-color: var(--bg-slate);
	color: #ffffff;
	border-bottom: 3px solid var(--primary);
}

.brand-group {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.logo-badge {
	background: linear-gradient(135deg, #0284c7, #2563eb);
	color: #ffffff;
	font-weight: 800;
	font-size: 1.1rem;
	padding: 0.35rem 0.75rem;
	border-radius: 6px;
	letter-spacing: 0.08em;
}

.logo-badge span {
	color: #38bdf8; /* Highlight the X */
}

.brand-titles {
	display: flex;
	flex-direction: column;
}

.app-title {
	font-weight: 600;
	font-size: 1.15rem;
	line-height: 1.2;
}

.app-subtitle {
	font-size: 1.25rem;
	color: #94a3b8;
}

.header-actions .btn-about {
	background: transparent;
	border: 1px solid #475569;
	color: #e2e8f0;
	padding: 0.4rem 0.85rem;
	border-radius: 6px;
	cursor: pointer;
	font-size: 0.85rem;
	transition: all 0.2s ease;
}

.header-actions .btn-about:hover {
	background: #334155;
	border-color: #94a3b8;
}

/* Header Dropdown Container */
.dropdown {
	position: relative;
	display: inline-block;
}

/* Button Styling with Caret */
.header-actions .btn-about {
	background: transparent;
	border: 1px solid #475569;
	color: #e2e8f0;
	padding: 0.45rem 0.85rem;
	border-radius: 6px;
	cursor: pointer;
	font-size: 0.85rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	transition: all 0.2s ease;
}

.header-actions .btn-about:hover,
.header-actions .btn-about.active {
	background: #334155;
	border-color: #94a3b8;
}

.caret {
	font-size: 0.65rem;
	transition: transform 0.2s ease;
}

/* Rotates the caret arrow when open */
.dropdown.show .caret {
	transform: rotate(180deg);
}

/* Dropdown Menu Box */
.dropdown-menu {
	display: none;
	position: absolute;
	right: 0;
	top: calc(100% + 0.5rem);
	background-color: #ffffff;
	min-width: 200px;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	border-radius: 6px;
	border: 1px solid #e2e8f0;
	padding: 0.35rem 0;
	z-index: 1000;
}

/* Show State */
.dropdown.show .dropdown-menu {
	display: block;
}

/* Menu Items */
.dropdown-item {
	color: #0f172a;
	padding: 0.6rem 1rem;
	text-decoration: none;
	display: block;
	font-size: 0.875rem;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover {
	background-color: #f1f5f9;
	color: #0284c7;
}

.dropdown-item:not(:last-child) {
	border-bottom: 1px solid #f1f5f9;
}

/* MAIN CONTAINER */
.dashboard-container {
	max-width: 1200px;
	margin: 2rem auto;
	padding: 0 1.5rem;
}

/* WELCOME / PHILOSOPHY BANNER (OPTION B) */
.philosophy-banner {
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	border-left: 4px solid var(--primary);
	border-radius: 6px;
	padding: 1rem 1.25rem;
	margin-bottom: 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.philosophy-banner p {
	margin: 0;
	font-size: 0.925rem;
	color: #0369a1;
}

.philosophy-banner a {
	color: var(--primary-dark);
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

/* TOOL GRID */
.tool-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.25rem;
}

.tool-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: #ffffff;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 1.25rem;
	text-decoration: none;
	color: inherit;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.tool-card:hover {
	transform: translateY(-2px);
	border-color: var(--primary);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* SPECIAL PHILOSOPHY CARD (OPTION C) */
.tool-card.featured-philosophy {
	background: #faf5ff;
	border-color: #e9d5ff;
}

.tool-card.featured-philosophy:hover {
	border-color: #9333ea;
}

.card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.tool-title {
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--text-main);
}

.tool-desc {
	margin: 0;
	font-size: 0.875rem;
	color: var(--text-muted);
	line-height: 1.4;
}

/* BADGES */
.badge {
	font-size: 0.7rem;
	font-weight: 600;
	padding: 0.2rem 0.45rem;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	white-space: nowrap;
}

.badge.federal { background: #e0f2fe; color: #0369a1; }
.badge.retirement { background: #fef3c7; color: #92400e; }
.badge.state { background: #dcfce7; color: #166534; }
.badge.general { background: #f1f5f9; color: #475569; }
.badge.about { background: #f3e8ff; color: #6b21a8; }
