/* Master Light Theme for Planr — structurally identical to planning-dk.css */
* {
	box-sizing: border-box;
}

:root {
	/* Core palette */
	--bg:
		radial-gradient(1200px 800px at 70% -20%, rgba(100, 120, 255, 0.12), transparent 80%),
		radial-gradient(1000px 700px at 20% 120%, rgba(110, 255, 190, 0.08), transparent 80%),
		radial-gradient(900px 600px at 50% 50%, rgba(255, 140, 0, 0.05), transparent 85%),
		linear-gradient(180deg, #f8f9fb 0%, #f3f5f8 100%);
	--panel: rgba(255, 255, 255, .9);
	--panel-2: rgba(0, 0, 0, .04);
	--panel-3: rgba(0, 0, 0, .08);
	--ink: #1c1f26;
	--muted: #666;
	--line: rgba(0, 0, 0, .1);
	--round: 18px;
	--shadow: 0 14px 40px rgba(0, 0, 0, .15);
	--today: rgba(90, 120, 255, .1);
	--stripe: repeating-linear-gradient(90deg, rgba(0, 0, 0, .06) 0 1px, transparent 1px 36px);
	--row-h: 42px;
	--col-w: 36px;
	--sticky-w: 560px;
	--brand1: #2253F4;
	--brand2: #5a78ff;

	/* Status hues */
	--s-pending: #8a93b0;
	--s-inprogress: #6f7dff;
	--s-complete: #30d179;
	--s-blocked: #ff5f6f;
	--s-onhold: #f6a73b;

	/* Controls */
	--chip: #f8f9fb;
	--chip-ink: #1c1f26;
	--chip-line: rgba(0, 0, 0, .12);
}

input,
select,
textarea,
button {
	font-family: var(--font-ui);
}

/* Base */
* {
	box-sizing: border-box
}

html,
body {
	height: 100%;
	margin: 0;
	background: #f8f9fb;
	color: var(--ink);
	font: 300 14px var(--font-ui);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale
}

#app {
	display: flex;
	flex-direction: column;
	min-height: 100vh
}

/* === App Title Bar === */
.app-titlebar {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--brand1);
	padding: 0.75rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.app-titlebar h1 {
	margin: 0;
	font-size: 26px;
	font-weight: 400;
	color: #f3f5f2;
	letter-spacing: -0.01em;
	line-height: 1.3;
font-family:var(--font-title);
}

.app-titlebar .app-logo {
	height: 20px;
	width: auto;
	display: block;
}

body {
	background: var(--bg);
	color: var(--ink);
	transition: background 0.3s ease, color 0.3s ease;
}

/* Panels, modals, etc. */
.panel,
.modal,
.toolbar,
header,
footer {
	background: var(--panel);
	color: var(--ink);
	transition: background 0.3s ease, color 0.3s ease;
}

footer,
header {
	background: transparent !important;
}

/* === Theme Toggle UI (shared) === */
.theme-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
}

.theme-toggle .label {
	font-size: 14px;
	font-weight: 500;
	color: var(--ink);
}

.theme-toggle .toggle-pill {
	width: 48px;
	height: 26px;
	border-radius: 999px;
	border: 1px solid rgba(0, 0, 0, .16);
	background: rgba(0, 0, 0, .08);
	position: relative;
	cursor: pointer;
	transition: background 0.25s ease, border-color 0.25s ease;
}

/* Knob */
.theme-toggle .toggle-pill::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.25s ease, background 0.25s ease;
}

/* Toolbar */
.toolbar {
	position: sticky;
	top: 0;
	z-index: 100;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	background: var(--brand1);
	backdrop-filter: blur(22px) saturate(160%);
	height: 120px;
	color: #fff;
}

.sep {
	width: 1px;
	height: 24px;
	background: var(--line);
	margin: 0 8px
}

.btn {
	height: 34px;
	border-radius: 999px;
	border: none;
	background: rgba(0, 0, 0, .08);
	padding: 0 12px;
	color: var(--ink);
	cursor: pointer;
	font-size: 13px;
}

.btn.brand {
	background: var(--brand1);
	border: 0;
	color: #fff
}

.btn:hover {
	filter: brightness(1.06)
}

#btnNewClient {
	margin-left: 8px;
}

.left #projectSelect,
.statussel,
.assignee select {
	appearance: none;
	background: transparent;
	border-bottom: none;
	border-top: none;
	border-right: none;
	border-left: none;
	border-radius: 0px;
	padding: 4px 10px;
	font-size: 13px;
	min-width: 180px;
	transition: all 0.2s ease;
}

.left .small {
	display: block;
	font-size: 14px;
	font-weight: 400;
	color: #f3f5f2;
	letter-spacing: 0.05em;
}

.left #projectSelect {
	color: #f3f5f2;
}

.statussel,
.assignee select {
	color: var(--ink)
}

.statussel,
.assignee select {
	width: 118px;
}

/* === View Toggle — macOS 26 glass pill === */
.view-toggle {
	display: inline-flex;
	background: rgba(0, 0, 0, 0.06);
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 50px;
	padding: 4px;
	backdrop-filter: blur(12px);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
	width: auto;
	max-width: 260px;
	margin: 0 auto;
	margin-right: 16px;
}

.view-toggle .toggle-btn {
	flex: 1;
	font-size: 13px;
	font-weight: 500;
	padding: 8px 20px;
	background: transparent;
	border: none;
	color: #f3f5f2;
	cursor: pointer;
	border-radius: 50px;
	transition: all 0.25s ease;
}

.view-toggle .toggle-btn.active {
	background: var(--brand1);
	color: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.view-toggle .toggle-btn:hover:not(.active) {
	background: rgba(0, 0, 0, 0.08);
}

.view {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.view.active {
	opacity: 1;
	pointer-events: auto;
}

button {
	cursor: pointer;
	transition: .15s
}

.btn {
	border: 1px solid var(--chip-line);
	background: rgba(0, 0, 0, .04);
	color: var(--ink)
}

.btn:hover {
	background: rgba(0, 0, 0, .06)
}

.btn.brand {
	background: var(--brand1);
	color: #fff;
	border: 0;
	box-shadow: 0 6px 18px rgba(90, 120, 255, .25)
}

.btn.brand:hover {
	filter: brightness(1.06)
}

/* Grid shell */
.grid {
	flex: 1;
	min-height: 0;
	overflow: auto;
	background: rgba(0, 0, 0, 0.04)
}

.table {
	position: relative;
	min-width: 980px
}

/* Header rows */
.header-,
.header-days {
	backdrop-filter: blur(14px) saturate(160%);
	box-shadow: inset 0 -1px rgba(0, 0, 0, .06);
}

.header-months {
	position: sticky;
	top: 0;
	z-index: 8;
	background: rgba(0, 0, 0, .04);
	display: grid;
	grid-template-columns: var(--sticky-w) 1fr;
	border-bottom: 1px solid rgba(0, 0, 0, .08);
	height: 64px;
}

.header-months .month-sep {
	top: 0;
	bottom: 0;
	height: 64px !important;
}

.header-days {
	position: sticky;
	z-index: 8;
	background: rgba(0, 0, 0, 0.04);
	display: grid;
	grid-template-columns: var(--sticky-w) 1fr;
	border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.month-band {
	position: absolute;
	top: 0;
	height: 32px;
	border-left: 1px solid rgba(0, 0, 0, .08);
	padding: 6px 8px;
	color: #666;
	font-size: 12px;
	font-weight: 600;
}

.day {
	position: absolute;
	top: 0;
	height: 36px;
	width: var(--col-w);
	border-right: 1px solid rgba(0, 0, 0, .06);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #444;
	font-size: 12px;
	font-weight: 600;
}

.day.today {
	background: var(--today);
	border-right: 1px solid rgba(125, 139, 255, .45);
	color: #000;
}

.holiday-col {
	position: absolute;
	top: 0;
	bottom: 0;
	width: var(--col-w);
	background: linear-gradient(180deg, rgba(255, 170, 120, .08), rgba(255, 120, 120, .06));
	opacity: .9;
	pointer-events: auto;
	z-index: 1;
	cursor: pointer;
}

.rows {
	position: relative
}

.row {
	display: grid;
	grid-template-columns: 280px 160px 120px 1fr;
	min-height: var(--row-h);
	align-items: center;
	border-bottom: 1px dotted rgba(0, 0, 0, 0.1)
}

.row .cell {
	position: relative;
	padding: 8px 12px;
	transition: background .15s;
}

.row:hover .cell {
	background: rgba(0, 0, 0, .04)
}

.rows .row:nth-child(even) .cell {
	background: rgba(0, 0, 0, .02)
}

.rows .row:nth-child(odd) .cell {
	background: rgba(0, 0, 0, .015)
}

.row .cell.sticky0,
.row .cell.sticky1,
.row .cell.sticky2 {
	backdrop-filter: blur(12px) saturate(160%);
	height: 100%;
	align-content: center;
}

.row .cell.sticky0 {
	position: sticky;
	left: 0;
	z-index: 20;
	width: 280px;
	Background: rgba(0, 0, 0, 0.04);
	border-right: 1px solid rgba(0, 0, 0, .06);
}

.row .cell.sticky1 {
	position: sticky;
	left: 280px;
	z-index: 20;
	width: 160px;
	background: linear-gradient(90deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .88));
}

.row .cell.sticky2 {
	position: sticky;
	left: 440px;
	z-index: 20;
	width: 140px;
	background: linear-gradient(90deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .86));
}

.row--active {
	position: relative;
	z-index: 3;
	background: rgba(111, 125, 255, 0.08);
	transition: box-shadow .25s ease, background .25s ease;
}

.parent {
	font-weight: 720
}

.sub {
	padding-left: 26px
}

.chev {
	width: 18px;
	height: 18px;
	border-radius: 8px;
	border: 1px solid rgba(0, 0, 0, .16);
	display: inline-grid;
	place-items: center;
	margin-right: 8px;
	background: rgba(0, 0, 0, .04);
	cursor: pointer;
	transition: .15s;
}

.chev:hover {
	background: rgba(0, 0, 0, .08)
}

.ghost {
	opacity: .7;
	font-style: italic;
	cursor: pointer;
	color: #666
}

.assignee {
	display: flex;
	align-items: center;
	gap: 8px
}

.dot {
	min-width: 10px;
	min-height: 10px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .25);
	background: #6f7dff
}

.del-btn {
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, .12);
	background: rgba(0, 0, 0, .04);
	cursor: pointer;
	margin-left: 8px;
	margin-right: 18px;
	transition: .15s ease;
	padding: 0;
	position: relative;
}

.del-btn::before {
	content: '';
	width: 10px;
	height: 2px;
	background: #666;
	border-radius: 1px
}

.del-btn:hover {
	background: rgba(255, 95, 111, .12);
	border-color: #ff5f6f
}

.del-btn:hover::before {
	background: #ff5f6f
}

.bars {
	position: absolute;
	left: var(--sticky-w);
	right: 0;
	top: 0
}

.bar {
	position: absolute;
	height: 20px;
	border-radius: 999px;
	background: transparent !important;
	border: 1px solid var(--bar-color, #5a78ff);
	cursor: grab;
	display: flex;
	align-items: center;
	overflow: visible;
	transition: border-color .25s, box-shadow .25s;
	z-index: 11;
	pointer-events: auto;
	user-select: none;
}

.bar:hover {
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.15);
}

.bar .label {
	position: absolute;
	left: 24px;
	right: 10px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 12px;
	color: var(--ink);
	font-weight: 400;
	pointer-events: none;
}

.bar::before {
	content: "";
	position: absolute;
	left: 8px;
	top: 50%;
	transform: translateY(-50%);
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

.bar[data-status="Pending"]::before {
	background: #8a93b0;
}

.bar[data-status="In Progress"]::before {
	background: #6f7dff;
}

.bar[data-status="On Hold"]::before {
	background: #f6a73b;
}

.bar[data-status="Blocked"]::before {
	background: #ff5f6f;
}

.bar[data-status="Complete"]::before {
	background: #30d179;
}

.ctx {
	position: fixed;
	z-index: 100;
	min-width: 200px;
	background: rgba(255, 255, 255, 0.98);
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 14px;
	box-shadow: var(--shadow);
	overflow: hidden;
	backdrop-filter: blur(12px);
}

.ctx button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: transparent;
	border: 0;
	text-align: left;
	padding: 10px 14px;
	color: var(--ink);
	font-size: 12px;
	font-weight: 300;
	transition: background .12s ease;
	cursor: pointer;
}

.ctx button:hover {
	background: rgba(0, 0, 0, 0.06);
}

.modal {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 30;
	background: rgba(255, 255, 255, 0.55);
	backdrop-filter: blur(28px) saturate(180%);
}

.modal.show {
	display: flex;
}

.modal .card {
	position: relative;
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
	min-width: 540px;
	max-width: 680px;
	color: var(--ink);
	display: flex;
	flex-direction: column;
	border: none;
}

.card header {
	padding: 24px 28px 20px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	font-weight: 500;
	font-size: 20px;
	letter-spacing: 0.2px;
	line-height: 1.3;
}

.card section {
	padding: 28px;
	display: grid;
	gap: 20px;
}

.card footer {
	padding: 20px 28px;
	display: flex;
	justify-content: flex-end;
	gap: 14px;
}

.card input[type="text"],
.card input[type="date"],
.card select,
.card input[type="color"] {
	height: 42px;
	border-radius: 12px;
	border: none;
	background: rgba(0, 0, 0, 0.04);
	color: var(--ink);
	font-size: 15px;
	padding: 0 14px;
	width: 100%;
	box-sizing: border-box;
}

.card input[type="color"] {
	width: 25% !important;
}

.card input:focus,
.card select:focus {
	border-color: #7d8bff;
	box-shadow: 0 0 0 4px rgba(125, 139, 255, 0.18);
	outline: none;
}

.card select {
	padding-right: 36px;
}

/* Global field labels */
.field>label {
	display: block;
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 400;
	color: var(--ink);
	letter-spacing: 0.2px;
}

/* “Small” helper labels (keep them subtler) */
.field>label.small {
	margin-bottom: 4px;
	font-weight: 400;
	color: var(--muted);
}

/* Checkbox labels that wrap an input */
.field>label.checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	/* no bottom margin for inline checkbox rows */
	font-weight: 500;
}

#tmNotes,
#nmText,
#pdText {
	border: none !important;
	background: rgba(0, 0, 0, 0.04);
	font-size: 15px;
	line-height: 1.5;
	font-family: -apple-system, system-ui;
	color: var(--ink);
	border-radius: 12px;
	box-sizing: border-box;
	outline: none;
	Padding: 10px 14px;
}

.swatch-picker {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(34px, 1fr));
	gap: 10px;
	padding: 6px 0;
	margin-top: 6px;
}

.swatch {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
	position: relative;
	border: 2px solid rgba(0, 0, 0, 0.08);
}

.swatch:hover {
	transform: scale(1.08);
}

.swatch.selected {
	border: 3px solid #ffffff;
	transform: scale(1.1);
}

.swatch.selected::after {
	content: "✓";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #111;
	font-size: 16px;
	font-weight: 700;
	text-shadow: 0 1px 4px rgba(255, 255, 255, 0.4);
	pointer-events: none;
}

/* === Toast (Projects style) === */
.toast {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 22px;
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 14px;
	font-size: 14px;
	color: var(--ink);
	backdrop-filter: blur(14px);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
	opacity: 0;
	pointer-events: none;
	transition: all 0.35s ease;
	position: fixed;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%) translateY(20px);
	z-index: 2000;
}

.toast.show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
	pointer-events: auto;
}

.toast-icon svg {
	width: 20px;
	height: 20px;
	fill: var(--brand1);
}

.small {
	font-size: 12px;
	color: var(--muted);
}

.sep {
	width: 1px;
	height: 26px;
	background: var(--line);
	margin: 0 6px;
}

.contenteditable:focus {
	border-bottom: 1px solid #6f7dff;
}

.save-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	margin-left: 8px;
	border-radius: 50%;
	font-weight: 700;
	font-size: 14px;
	color: #9aa4bd;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	/* ✨ Remove all glow from the idle state */
	box-shadow: none;
	transition: all 0.12s ease;
	opacity: 0.65;
}

.save-check.saved {
	background: rgba(48, 209, 120, 0.25);
	color: #30d158;
	border-color: rgba(48, 209, 120, 0.45);
	box-shadow: 0 0 8px rgba(48, 209, 120, 0.4);
	opacity: 1;
}

/* === Icons ===*/
/* Flex lives inside */
.actions-wrap {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	height: 100%;
	/* fill the cell height */
	box-sizing: border-box;
}

/* === Base Icon Button === */
.icon-btn {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 60px;
	min-height: 60px;
	padding: 6px 4px;
	background: transparent;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	text-align: center;
	transition: background 0.15s ease, transform 0.15s ease;
	vertical-align: middle;
	/* ✅ Ensures centering in toolbar */
}

.toolbar .icon-btn {
	margin: 0 6px;
	/* ✅ Optional: consistent spacing between buttons */
}

.icon-btn:hover {
	background: rgba(255, 255, 255, 0.08);

}

.icon-btn:active {
	transform: translateY(0);
}

/* === Icon === */
.icon-btn .icon svg {
	width: 24px;
	height: 24px;
	display: block;
	fill: #f3f5f2;
	transition: fill 0.15s ease;
	transform: translateY(0);
}

.icon-btn:hover .icon svg {
	Opacity: 0.8;
	transform: translateY(0);
}

/* === Label (always visible + wrapping) === */
.icon-btn .label {
	margin-top: 4px;
	font-size: 10px;
	font-weight: 500;
	color: #f3f5f2;
	line-height: 1.2;
	max-width: 100%;
	white-space: normal;
	/* ✅ Allow wrapping */
	word-break: break-word;
	/* ✅ Handle longer words gracefully */
	text-align: center;
	pointer-events: none;
	transition: color 0.15s ease;
}

.icon-btn:hover .label {
	Opacity: 0.8;
	fill: #f3f5f2;

}

/* === Remove tooltip hover (no longer needed) === */
.icon-btn::after {
	display: none;
}

.icon-btn.is-busy {
	opacity: .6;
	pointer-events: none;
}

.toolbar .left,
.toolbar .right {
	display: flex;
	align-items: center;
	gap: 6px;
}

/* === Splash Screen === */
.splash {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f3f5f2;
	backdrop-filter: blur(24px) saturate(180%);
	opacity: 1;
	pointer-events: auto;
	transition: opacity 0.6s ease;
}

.splash.fade-out {
	opacity: 0;
	pointer-events: none;
}

.splash-inner {
	text-align: center;
	animation: splashFadeIn 1.5s ease forwards;
	Background: var(--brand1);
	Border-radius: 32px;
	padding: 64px;
}

.splash-inner h1 {
  font-size: 48px;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin: 0 0 160px 0 !important;
  color: #f3f5f2;
font-family: var(--font-title);
}

.splash-inner p {
	font-size: 0.9rem;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.6);
	Margin: 0;
}

@keyframes splashFadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.splash-logo {
	width: 180px;
	margin-bottom: 1rem;
}


/* === Status Bar === */
.foundry-footer-status {
	position: fixed;
	bottom: 12px;
	left: 20px;
	font-size: 0.75rem;
	font-weight: 300;
	letter-spacing: 0.3px;
	color: rgba(0, 0, 0, 0.55);
	pointer-events: none;
	z-index: 999;
	user-select: none;
	font-family: inherit;
}

.foundry-footer-status::before {
	content: "•";
	margin-right: 6px;
	opacity: 0.3;
}

/* ✅ Reset page container to use full viewport */
body,
html {
	margin: 0 !important;
	padding: 0 !important;
}

#page,
#siteWrapper,
.Site-inner,
.Content-outer {
	padding: 0 !important;
	margin: 0 !important;
	max-width: 100vw !important;
	width: 100vw !important;
}

/* === Universal focus cleanup === */
input:focus,
textarea:focus,
select:focus,
button:focus {
	outline: none;
	box-shadow: none;
	border-color: inherit;
}