/* Free Utility Tools — Age Calculator */

/* ── Tool shell ── */
.fut-age-calculator {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	max-width: 680px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid #e1e5e9;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

/* ── Header ── */
.fut-ac-header {
	padding: 22px 28px 18px;
	background: linear-gradient(135deg, #1a5fa3 0%, #2271b1 100%);
}
.fut-ac-title {
	margin: 0 0 5px;
	font-size: 20px;
	font-weight: 700;
	color: #fff;
}
.fut-ac-desc {
	margin: 0;
	font-size: 13px;
	color: rgba(255,255,255,.82);
}

/* ── Body ── */
.fut-ac-body {
	padding: 24px 28px;
}

/* ── Inputs ── */
.fut-ac-inputs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 18px;
}
@media (max-width: 520px) {
	.fut-ac-inputs { grid-template-columns: 1fr; }
}

.fut-ac-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.fut-ac-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #555d66;
}
.fut-ac-input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}
.fut-ac-dateinput {
	width: 100%;
	padding: 10px 44px 10px 14px;
	border: 1.5px solid #d0d5dd;
	border-radius: 8px;
	font-size: 15px;
	color: #1d2327;
	background: #fafbfc;
	box-sizing: border-box;
	cursor: pointer;
	transition: border-color .15s, box-shadow .15s;
}
.fut-ac-dateinput:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 3px rgba(34,113,177,.12);
	background: #fff;
}
.fut-ac-cal-btn {
	position: absolute;
	right: 10px;
	background: none;
	border: none;
	padding: 4px;
	cursor: pointer;
	color: #8a9ab0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: color .15s, background .15s;
}
.fut-ac-cal-btn:hover {
	color: #2271b1;
	background: #f0f6fc;
}

/* ── Buttons ── */
.fut-ac-actions {
	display: flex;
	gap: 10px;
	margin-bottom: 4px;
}
.fut-ac-calc-btn,
.fut-ac-clear-btn {
	padding: 10px 24px;
	border: none;
	border-radius: 7px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s, transform .08s;
}
.fut-ac-calc-btn {
	background: #2271b1;
	color: #fff;
}
.fut-ac-calc-btn:hover { background: #135e96; }
.fut-ac-calc-btn:active { transform: scale(.98); }
.fut-ac-clear-btn {
	background: #f0f0f1;
	color: #3c434a;
	border: 1px solid #dcdcde;
}
.fut-ac-clear-btn:hover { background: #dcdcde; }

/* ── Result ── */
.fut-ac-result { margin-top: 24px; }

/* Headline */
.fut-ac-headline-wrap {
	text-align: center;
	margin-bottom: 18px;
	padding: 16px 20px;
	background: #f0f6fc;
	border-radius: 10px;
	border: 1px solid #c8d8ea;
}
.fut-ac-headline {
	font-size: 22px;
	font-weight: 800;
	color: #2271b1;
	line-height: 1.3;
}

/* 3-stat row */
.fut-ac-stat-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 18px;
}
.fut-ac-stat {
	background: #fff;
	border: 1.5px solid #c8d8ea;
	border-radius: 10px;
	padding: 18px 10px 14px;
	text-align: center;
	box-shadow: 0 1px 4px rgba(34,113,177,.07);
}
.fut-ac-stat-val {
	display: block;
	font-size: 38px;
	font-weight: 800;
	color: #2271b1;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}
.fut-ac-stat-unit {
	display: block;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #8a9ab0;
	margin-top: 6px;
}

/* Breakdown table */
.fut-ac-breakdown {
	border: 1px solid #e1e5e9;
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 14px;
}
.fut-ac-brow {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 11px 16px;
	font-size: 14px;
	border-bottom: 1px solid #e1e5e9;
}
.fut-ac-brow:last-child { border-bottom: none; }
.fut-ac-brow:nth-child(odd) { background: #fafbfc; }
.fut-ac-brow:nth-child(even) { background: #fff; }
.fut-ac-blabel {
	color: #50575e;
	font-weight: 500;
}
.fut-ac-bval {
	font-weight: 700;
	color: #1d2327;
}

/* Birthday box */
.fut-ac-birthday-box {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	background: linear-gradient(135deg, #f0f6fc 0%, #e8f2fb 100%);
	border: 1.5px solid #c8d8ea;
	border-radius: 10px;
}
.fut-ac-bday-icon-wrap {
	color: #2271b1;
	flex-shrink: 0;
}
.fut-ac-bday-details {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.fut-ac-bday-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .4px;
	color: #8a9ab0;
}
.fut-ac-next-birthday {
	font-size: 15px;
	font-weight: 700;
	color: #1d2327;
}
.fut-ac-bday-countdown {
	text-align: right;
	flex-shrink: 0;
}
.fut-ac-bday-days {
	display: block;
	font-size: 26px;
	font-weight: 800;
	color: #2271b1;
	line-height: 1;
}
.fut-ac-bday-unit {
	font-size: 11px;
	color: #8a9ab0;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .3px;
}
@media (max-width: 400px) {
	.fut-ac-stat-val { font-size: 28px; }
	.fut-ac-headline { font-size: 17px; }
	.fut-ac-birthday-box { flex-direction: column; text-align: center; }
	.fut-ac-bday-countdown { text-align: center; }
}

/* Share row */
.fut-ac-share-row {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin-top: 14px;
	padding: 14px 16px;
	background: #fafbfc;
	border: 1px solid #e1e5e9;
	border-radius: 10px;
}
.fut-ac-share-wrap {
	display: flex;
	gap: 8px;
	align-items: center;
}
.fut-ac-share-url {
	flex: 1;
	padding: 8px 12px;
	border: 1.5px solid #d0d5dd;
	border-radius: 6px;
	font-size: 13px;
	color: #50575e;
	background: #fff;
	box-sizing: border-box;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: text;
}
.fut-ac-share-url:focus { outline: none; border-color: #2271b1; }
.fut-ac-copy-btn {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: #2271b1;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background .15s;
	flex-shrink: 0;
}
.fut-ac-copy-btn:hover { background: #135e96; }
.fut-ac-copy-btn.copied { background: #00a32a; }

/* ── Flatpickr theme overrides ── */
.flatpickr-calendar {
	border-radius: 10px !important;
	box-shadow: 0 6px 24px rgba(0,0,0,.15) !important;
	border: 1px solid #d0d5dd !important;
}
.flatpickr-months .flatpickr-month {
	background: #2271b1 !important;
	border-radius: 9px 9px 0 0;
	color: #fff !important;
}
.flatpickr-current-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
	color: #fff !important;
}
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
	fill: #fff !important;
	color: #fff !important;
}
.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
	fill: rgba(255,255,255,.7) !important;
}
.flatpickr-weekday {
	color: #2271b1 !important;
	font-weight: 700 !important;
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus {
	background: #2271b1 !important;
	border-color: #2271b1 !important;
	color: #fff !important;
}
.flatpickr-day.today {
	border-bottom-color: #2271b1 !important;
}
.flatpickr-day.today:hover {
	background: #f0f6fc !important;
	color: #1d2327 !important;
}
.flatpickr-day:hover {
	background: #f0f6fc !important;
}
.flatpickr-calendar.open { z-index: 99999 !important; }
