/* ==========================================================
   NC Water Tracker — reuses the theme's existing CSS custom
   properties (var(--green-700), var(--border), var(--radius-lg),
   etc.) instead of its own token set, same approach as the
   other NC tracking tools, so it matches the site for free.
   ========================================================== */

.ncwt-login-gate {
	max-width: 460px; margin: 0 auto; text-align: center;
	border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 48px 32px;
}
.ncwt-login-gate-icon { font-size: 40px; margin-bottom: 14px; }
.ncwt-login-gate h3 { font-size: 19px; font-weight: 800; margin: 0 0 10px; }
.ncwt-login-gate p { font-size: 14px; color: var(--text-600); line-height: 1.6; margin: 0 0 24px; }
.ncwt-login-gate-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.ncwt-shell { display: flex; flex-direction: column; gap: 22px; max-width: 480px; margin: 0 auto; }

.ncwt-unit-toggle {
	display: flex; gap: 4px; border: 1px solid var(--border); border-radius: 20px; padding: 3px;
	width: fit-content; margin: 0 auto;
}
.ncwt-unit-btn {
	border: none; background: none; padding: 6px 16px; border-radius: 16px; font-size: 12.5px;
	font-weight: 700; color: var(--text-600); cursor: pointer;
}
.ncwt-unit-btn.active { background: var(--green-700); color: #fff; }

/* ── Today card ── */
.ncwt-today-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; text-align: center; }

.ncwt-ring-wrap { position: relative; width: 180px; height: 180px; margin: 0 auto 18px; }
.ncwt-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ncwt-ring-track { fill: none; stroke: #eef0ec; stroke-width: 10; }
.ncwt-ring-progress {
	fill: none; stroke: var(--green-600); stroke-width: 10; stroke-linecap: round;
	transition: stroke-dasharray .4s ease, stroke .3s ease;
}
.ncwt-ring-center {
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ncwt-ring-amount { font-size: 28px; font-weight: 800; color: var(--text-900); line-height: 1; }
.ncwt-ring-unit { font-size: 12px; color: var(--text-400); font-weight: 600; margin-top: 2px; }

.ncwt-goal-row {
	display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13.5px;
	color: var(--text-600); margin-bottom: 6px;
}
.ncwt-goal-row strong { color: var(--text-900); }
.ncwt-edit-goal-btn {
	border: none; background: none; color: var(--green-700); font-size: 12.5px; font-weight: 700; cursor: pointer;
	text-decoration: underline;
}
.ncwt-goal-edit { display: flex; gap: 8px; justify-content: center; margin: 10px 0; }
.ncwt-goal-edit input {
	width: 110px; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 13.5px; text-align: center;
}

.ncwt-quickadd-row { display: flex; gap: 10px; margin-top: 20px; }
.ncwt-quickadd-btn {
	flex: 1; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff;
	padding: 14px 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px;
	transition: border-color .15s, background .15s;
}
.ncwt-quickadd-btn:hover { border-color: var(--green-600); background: #f7fbf8; }
.ncwt-quickadd-btn:active { transform: scale(.97); }
.ncwt-qa-icon { font-size: 22px; }
.ncwt-qa-label { font-size: 12px; font-weight: 700; color: var(--text-900); }
.ncwt-qa-amount { font-size: 11px; color: var(--text-400); }

.ncwt-manual-row { display: flex; gap: 8px; margin-top: 14px; align-items: center; justify-content: center; }
.ncwt-manual-row input {
	width: 110px; border: 1px solid var(--border); border-radius: 8px; padding: 9px 10px; font-size: 13.5px; text-align: center;
}
.ncwt-manual-unit { font-size: 13px; color: var(--text-600); font-weight: 600; }

.ncwt-status { font-size: 12.5px; color: var(--text-400); margin: 14px 0 0; min-height: 14px; }
.ncwt-status.ncwt-status--ok { color: var(--green-700); font-weight: 600; }
.ncwt-status.ncwt-status--error { color: #b23a3a; font-weight: 600; }

/* ── Log card ── */
.ncwt-log-card, .ncwt-history-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.ncwt-log-card h3, .ncwt-history-card h3 { font-size: 15px; font-weight: 800; margin: 0 0 14px; }

.ncwt-log-list { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; }
.ncwt-log-empty { color: var(--text-400); font-size: 13px; text-align: center; padding: 10px 0; }
.ncwt-log-row {
	display: flex; align-items: center; gap: 10px; background: #f6f5f1; border-radius: 8px; padding: 8px 12px; font-size: 13px;
}
.ncwt-log-icon { font-size: 15px; }
.ncwt-log-time { color: var(--text-400); font-size: 11.5px; }
.ncwt-log-amt { flex: 1; font-weight: 700; text-align: right; }
.ncwt-log-del { border: none; background: none; color: var(--text-400); cursor: pointer; font-size: 11px; padding: 0 2px; }
.ncwt-log-del:hover { color: #ef4444; }

/* ── 7-day history chart ── */
.ncwt-history-chart { display: flex; align-items: flex-end; gap: 8px; height: 140px; }
.ncwt-history-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; gap: 6px; }
.ncwt-history-bar { width: 100%; max-width: 30px; border-radius: 6px 6px 2px 2px; transition: height .3s ease; min-height: 3px; }
.ncwt-history-day { font-size: 10.5px; color: var(--text-400); font-weight: 700; }
.ncwt-history-val { font-size: 9.5px; color: var(--text-400); }

@media (max-width: 480px) {
	.ncwt-quickadd-row { gap: 6px; }
	.ncwt-qa-label { font-size: 11px; }
}
