/* =========================
	Variables / Theme
========================= */

:root {
	--bg: #f5f5f5;
	--text: #1a1a1a;
	--muted: #666;

	/* Card / surface */
	--card-bg: #ffffff;
	--muted-bg: #fafafa;

	/* Borders / radii / shadows */
	--border: #dddddd;
	--border-soft: #eeeeee;
	--radius: 8px;
	--radius-lg: 10px;

	--shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	--shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);

	/* Accents */
	--link: #5da5ce;
	--primary: #3366ff;
	--accent: #ff3366;

	/* Layout */
	--max-width: 80%;
}

/* Theme variants (optional) */
body.theme-dark {
	--bg: #121212;
	--text: #f0f0f0;
	--muted: #aaaaaa;

	--card-bg: #1e1e1e;
	--muted-bg: #161616;

	--border: #2a2a2a;
	--border-soft: #242424;

	--link: #79b8ff;
	--primary: #4d88ff;
	--accent: #ff4d88;

	--shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

body.theme-pop {
	--bg: #fff8f0;
	--text: #111111;
	--muted: #555555;

	--card-bg: #ffffff;
	--muted-bg: #fff1e4;

	--link: #ff6b00;
	--primary: #ff6b00;
	--accent: #00c2ff;
}

/* =========================
	Reset / Base
========================= */

*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	font-size: 15px;
}

body {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.3;
	color: var(--text);
	background: var(--bg);
	padding: 0.5rem 0 0 0.5rem; /* matches your old feel */
}

a {
	color: var(--link);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

/* =========================
	Typography
========================= */

h1, h2, h3, h4 {
	font-weight: 600;
	margin-bottom: 0.75rem;
	color: var(--text);
}

h1 {
	font-size: 2rem;
	margin-bottom: 1rem;
}

h2 {
	font-size: 1.5rem;
	margin-top: 1.5rem;
}

p {
	margin-bottom: 0.75rem;
}

small {
	font-size: 0.875rem;
	color: var(--muted);
}

ul {
	list-style: disc;
	margin-left: 2rem;
	margin-bottom: 0.5rem;
}

li {
	margin-bottom: 0.25rem;
}

/* =========================
	Layout / Container Card
========================= */

/* Your “container” look, but canonical class is .main */
main {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 1.5rem;
	background: var(--card-bg);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
}

header,
footer {
	padding: 1.5rem 1rem;
	text-align: center;
	color: var(--muted);
}

/* Basic flex helpers */
.row {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.col {
	flex: 1 1 0;
}

/* =========================
	Forms (basic)
========================= */

label {
	display: block;
	font-weight: 500;
	margin-bottom: 0.25rem;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="date"],
select,
textarea {
	padding: 0.35rem 0.5rem;
	border-radius: var(--radius);
	border: 1px solid var(--border);
	font-size: 0.95rem;
	background: var(--card-bg);
	color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 2px rgba(51, 102, 255, 0.2);
}

/* =========================
	Buttons (basic)
========================= */

.button,
.btn {
	display: inline-block;
	padding: 0.35rem 0.6rem;
	border-radius: var(--radius);
	border: 1px solid transparent;
	font-size: 0.95rem;
	cursor: pointer;
	text-decoration: none;
	background: var(--primary);
	color: #fff;
	transition: opacity 0.15s ease, transform 0.1s ease;
}

.button:hover,
.btn:hover {
	opacity: 0.92;
	transform: translateY(-1px);
}

/* =========================
	Code (basic)
========================= */

pre {
	font-family: monospace;
	overflow-x: auto;
	white-space: pre;
	margin: 0;
}

code {
	font-family: Consolas, "Courier New", monospace;
	font-size: 0.95rem;
	background: var(--muted-bg);
	color: var(--text);
	padding: 0.1rem 0.2rem;
	border-radius: var(--radius);
	border: 1px solid var(--border-soft);
}

/* =========================
	Tables (basic)
========================= */

table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 0.5rem;
	font-size: 0.95rem;
}

thead {
	background: var(--muted-bg);
}

th,
td {
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--border);
}

th {
	text-align: left;
	font-weight: 600;
}

tbody tr:nth-child(odd) {
	background: var(--muted-bg);
}

/* Chat-Card */
.chat-card{
    width:	min(520px, 100%);
    border:	1px solid #d1d5db;        /* darker border */
    border-radius:	16px;
    background:	#f3f4f6;               /* lighter neutral instead of mid grey */
    box-shadow:	0 8px 20px rgba(0,0,0,.06);
    overflow:	hidden;
    font-family:	system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    margin:	40px auto;
}

.chat-header{
    padding:	14px 16px;
    border-bottom:	1px solid #d1d5db;
    background:	linear-gradient(180deg, #f1f5f9, #ffffff);
}

.chat-title{
    font-weight:	700;
    font-size:	14px;
    color:		#111827;               /* strong text */
}

.chat-sub{
    font-size:	12px;
    opacity:	1;
    color:		#4b5563;               /* darker muted */
    margin-top:	2px;
}

.chat-log{
    height:		320px;
    overflow-y:	auto;
    padding:	14px 14px 6px 14px;
    background:	#ffffff;               /* clean white for contrast */
}

.msg{
    display:	flex;
    margin:		8px 0;
}

.bubble{
    max-width:	78%;
    padding:	10px 12px;
    border-radius:	14px;
    font-size:	13px;
    line-height:	1.45;                  /* slightly better readability */
    border:		1px solid #d1d5db;
    box-shadow:	0 2px 6px rgba(0,0,0,.03);
    color:		#111827;               /* default text dark */
}

.msg.bot{
    justify-content:	flex-start;
}

.msg.bot .bubble{
    background:	#f9fafb;               /* subtle contrast from white log */
    border-top-left-radius:	6px;
}

.msg.user{
    justify-content:	flex-end;
}

.msg.user .bubble{
    background:	#2563eb;               /* strong blue */
    border-color:	#2563eb;
    color:		#ffffff;               /* white text */
    border-top-right-radius:	6px;
}

.meta{
    font-size:	11px;
    opacity:	1;
    color:		#6b7280;               /* readable muted */
    margin-top:	6px;
}

.chat-choices{
    display:	flex;
    gap:		8px;
    flex-wrap:	wrap;
    padding:	12px 12px;
    border-top:	1px solid #d1d5db;
    background:	#ffffff;
    justify-content:	flex-end;   /* ← aligns buttons right */
}

.choice-btn{
    border:		1px solid #cbd5e1;
    background:	#ffffff;
    border-radius:	999px;
    padding:	8px 12px;
    font-size:	13px;
    cursor:		pointer;
    color:		#111827;
    transition:	transform 90ms ease, background 120ms ease;
}

.choice-btn:hover{
    background:	#f1f5f9;
}

.choice-btn:active{
    transform:	scale(.98);
}

.choice-btn[disabled]{
    opacity:	.55;
    cursor:		not-allowed;
}

/* Prank button style + hidden helper */
.nope-btn{
    position:	fixed;
    left:		50%;
    top:		60%;
    transform:	translate(-50%, -50%);
    padding:	12px 18px;
    border-radius:	12px;
    border:		1px solid #ccc;
    background:	#fff;
    cursor:		pointer;
    transition:	left 140ms linear, top 140ms linear, transform 140ms linear;
    user-select:	none;
    z-index:	9999;
}

.is-hidden{
    display:	none !important;
}