:root {
	--bg: #0b0e14;
	--panel: #121826;
	--muted: #9aa4b2;
	--text: #e5e7eb;
	--primary: #1a73e8;
	--danger: #ef4444;
	--today: #1f2937;
	--grid: #1f2937;
	--chip-bg: #111827;
	--grad-top: #b9ecff;
	--grad-mid: #6e78d9;
	--grad-bot: #0b1633;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
	margin: 0;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
	background: var(--bg);
	color: var(--text);
}

.app { max-width: 1200px; margin: 0 auto; padding: 16px; }

/* Landing that matches provided design */
.landing {
	min-height: 100dvh;
	display: grid;
	place-items: center;
	position: relative;
	padding: 60px 24px 120px;
	background: linear-gradient(180deg, var(--grad-top) 0%, #93c4f0 18%, #7a84db 40%, #3d438c 66%, var(--grad-bot) 100%);
}
.hero-icon {
	position: absolute;
	top: 10px;
	right: 10px;
	width: clamp(160px, 22vw, 300px);
	height: auto;
	opacity: .92;
}
.hero-hi {
	position: relative;
	margin-top: 10px;
	font-family: 'Great Vibes', 'Dancing Script', cursive;
	font-size: clamp(84px, 14vw, 160px);
	line-height: 1;
	color: #ffffff;
	text-shadow: 0 6px 18px rgba(0,0,0,.15);
}
.glass-card {
	margin-top: 10px;
	width: min(860px, 92vw);
	padding: clamp(18px, 4vw, 36px) clamp(18px, 5vw, 60px);
	border-radius: 28px;
	background: radial-gradient(1200px 600px at -10% -10%, rgba(255,255,255,.12), transparent 40%),
		rgba(14,17,40, .45);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255,255,255,.18);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 20px 60px rgba(10,18,40,.35);
	text-align: center;
}
.hero-title {
	margin: 10px 0 6px;
	font-family: 'Great Vibes', 'Dancing Script', cursive;
	font-size: clamp(40px, 6vw, 80px);
	font-weight: 600;
	letter-spacing: .5px;
}
.hero-subtitle { margin: 8px 0 0; color: #c9d2e0; font-size: clamp(14px, 2.2vw, 18px); }
.start-btn {
	margin-top: 28px;
	display: inline-block;
	font-weight: 800;
	letter-spacing: .5px;
	color: #ffffff;
	text-decoration: none;
	padding: 14px 24px;
	border-radius: 999px;
	background: linear-gradient(90deg, #a4e4ea, #c5b9ff 55%, #c7b3ff);
	box-shadow: 0 10px 24px rgba(22, 15, 61, .45), inset 0 1px 0 rgba(255,255,255,.6);
	border: 1px solid rgba(255,255,255,.5);
	transition: transform .08s ease, filter .08s ease;
}
.start-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.start-btn .arrow { margin-left: 10px; }

.topbar {
	display: flex; align-items: center; justify-content: space-between;
	gap: 12px; margin-bottom: 12px;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.month-label { font-size: 20px; font-weight: 600; margin: 0 4px; }

.btn, .icon-btn, .primary-btn, .danger-btn {
	border: 1px solid var(--grid);
	background: var(--panel);
	color: var(--text);
	padding: 8px 12px;
	border-radius: 8px;
	cursor: pointer;
}
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; }
.primary-btn { background: var(--primary); border-color: var(--primary); }
.danger-btn { background: var(--danger); border-color: var(--danger); }
.btn:disabled, .icon-btn:disabled, .primary-btn:disabled { opacity: .7; cursor: default; }
.nav-group { display: inline-flex; gap: 6px; }

.calendar { background: var(--panel); border: 1px solid var(--grid); border-radius: 12px; overflow: hidden; }
.weekdays { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--grid); }
.weekdays > div { padding: 10px; text-align: right; color: var(--muted); font-size: 12px; }

.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 120px; }

.day { border-right: 1px solid var(--grid); border-bottom: 1px solid var(--grid); padding: 6px; position: relative; overflow: hidden; }
.day:nth-child(7n) { border-right: none; }
.day-header { display: flex; align-items: center; justify-content: space-between; }
.day-number { font-size: 12px; color: var(--muted); }
.day.outside .day-number { opacity: 0.4; }
.day.today { background: linear-gradient(180deg, rgba(26,115,232,0.08), transparent 80%); }
.day.today .day-number { color: var(--text); font-weight: 600; background: var(--primary); padding: 2px 6px; border-radius: 999px; }

.events { margin-top: 6px; display: grid; gap: 4px; }
.event-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 6px; border-radius: 6px; background: var(--chip-bg); border: 1px solid var(--grid); cursor: grab; user-select: none; }
.event-chip:active { cursor: grabbing; }
.event-chip .event-time { opacity: .8; }

.hidden { display: none !important; }

/* Modal */
.modal { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.5); }
.modal.hidden { display: none; }
.modal-content { width: min(720px, 92vw); background: var(--panel); border: 1px solid var(--grid); border-radius: 12px; padding: 16px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.event-form { display: grid; gap: 12px; }
.form-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.form-field { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.form-field input, .form-field textarea { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--grid); background: #0b1220; color: var(--text); font-size: 14px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* Toast */
.toast { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: #111827; color: var(--text); border: 1px solid var(--grid); border-radius: 999px; padding: 8px 12px; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.toast.show { opacity: 1; }

@media (max-width: 800px) {
	.calendar-grid { grid-auto-rows: 100px; }
	.form-row { grid-template-columns: 1fr; }
}


