:root {
	--bg-color: #0f172a;
	--card-bg: #1e293b;
	--text-primary: #f8fafc;
	--text-secondary: #94a3b8;
	--accent-color: #3b82f6;
	--accent-hover: #2563eb;
	--border-color: #334155;
	--table-stripe: #1e293b;
	--table-stripe-alt: #162032;
	/* Slightly darker */
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: 'Inter', 'Noto Sans JP', sans-serif;
	background-color: var(--bg-color);
	color: var(--text-primary);
	line-height: 1.5;
	display: flex;
	justify-content: center;
	min-height: 100vh;
	padding: 2rem 1rem;
}

.container {
	width: 100%;
	max-width: 600px;
}

header {
	text-align: center;
	margin-bottom: 2rem;
}

header h1 {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
	background: linear-gradient(135deg, #60a5fa 0%, #a855f7 100%);
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

header p {
	color: var(--text-secondary);
}

.card {
	background-color: var(--card-bg);
	border: 1px solid var(--border-color);
	border-radius: 1rem;
	padding: 1.5rem;
	margin-bottom: 1.5rem;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.input-section {
	display: flex;
	gap: 1rem;
}

.input-group {
	flex: 1;
	display: flex;
	flex-direction: column;
}

label {
	font-size: 0.875rem;
	color: var(--text-secondary);
	margin-bottom: 0.5rem;
}

input[type="number"] {
	background-color: var(--bg-color);
	border: 1px solid var(--border-color);
	color: var(--text-primary);
	padding: 0.75rem;
	border-radius: 0.5rem;
	font-size: 1.1rem;
	outline: none;
	transition: border-color 0.2s;
}

input[type="number"]:focus {
	border-color: var(--accent-color);
}

.table-container {
	overflow-x: auto;
}

table {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

th,
td {
	padding: 0.75rem;
	text-align: right;
	border-bottom: 1px solid var(--border-color);
}

th:first-child,
td:first-child {
	text-align: left;
}

th {
	font-weight: 600;
	color: var(--text-secondary);
	font-size: 0.875rem;
	white-space: nowrap;
}

.sub-text {
	font-size: 0.75rem;
	font-weight: 400;
}

tbody tr:nth-child(even) {
	background-color: var(--table-stripe-alt);
}

tbody tr:hover {
	background-color: rgba(59, 130, 246, 0.1);
}

.cost-highlight {
	color: #fbbf24;
	/* Amber for money */
	font-weight: 600;
}