/* Tool: Umur Meong & Guguk. Komponen umum ada di assets/css/core.css. */

/* Pilih hewan */
.hmt-tool-umur-kucing-anjing .uk-species { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hmt-tool-umur-kucing-anjing .uk-opt { position: relative; margin: 0; }
.hmt-tool-umur-kucing-anjing .uk-opt input { position: absolute; opacity: 0; pointer-events: none; }
.hmt-tool-umur-kucing-anjing .uk-opt span { display: block; text-align: center; border: 1.5px solid var(--hmt-line); border-radius: 14px; padding: 12px 8px; cursor: pointer; font-weight: 700; font-size: 15px; transition: all .15s; }
.hmt-tool-umur-kucing-anjing .uk-opt span i { display: block; font-style: normal; font-size: 30px; line-height: 1.2; }
.hmt-tool-umur-kucing-anjing .uk-opt input:checked + span { border-color: var(--hmt-accent-text); background: var(--hmt-accent-soft); }
.hmt-tool-umur-kucing-anjing .uk-opt input:focus-visible + span { outline: 2px solid var(--hmt-accent); outline-offset: 2px; }

/* Stepper umur */
.hmt-tool-umur-kucing-anjing .uk-age { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hmt-tool-umur-kucing-anjing .uk-step { border: 1.5px solid var(--hmt-line); border-radius: 12px; background: var(--hmt-soft); padding: 6px; }
.hmt-tool-umur-kucing-anjing .uk-step small { display: block; text-align: center; font-size: 12px; color: var(--hmt-muted); }
.hmt-tool-umur-kucing-anjing .uk-step-row { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.hmt-tool-umur-kucing-anjing .uk-step button { flex: none; width: 40px; height: 40px; padding: 0; margin: 0; border-radius: 10px; border: 0; background: #fff; font-size: 22px; font-weight: 700; line-height: 1; color: var(--hmt-ink); cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.hmt-tool-umur-kucing-anjing .uk-step button:active { transform: scale(.95); }
.hmt-tool-umur-kucing-anjing .uk-step input { width: 100%; min-width: 0; height: auto; margin: 0; padding: 0 !important; text-align: center; border: 0; box-shadow: none; background: transparent; outline: none; font: inherit; font-size: 22px !important; font-weight: 700; color: var(--hmt-ink); -moz-appearance: textfield; appearance: textfield; }
.hmt-tool-umur-kucing-anjing .uk-step input::-webkit-outer-spin-button,
.hmt-tool-umur-kucing-anjing .uk-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Hasil */
.hmt-tool-umur-kucing-anjing .uk-result { text-align: center; }
.hmt-tool-umur-kucing-anjing .uk-cap { margin: 0; font-size: 15px; opacity: .8; }
.hmt-tool-umur-kucing-anjing .uk-big { font-size: 56px; letter-spacing: -.03em; line-height: 1.05; margin: 6px 0 2px; color: #fff; }
.hmt-tool-umur-kucing-anjing .uk-big small { font-size: 20px; font-weight: 700; letter-spacing: 0; }
.hmt-tool-umur-kucing-anjing .uk-badge { display: inline-block; margin: 10px 0 4px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 13px; font-weight: 700; }
.hmt-tool-umur-kucing-anjing .uk-desc { margin: 6px auto 0; max-width: 420px; font-size: 14px; opacity: .85; }
.hmt-tool-umur-kucing-anjing .uk-stages { display: flex; gap: 3px; margin: 18px 0 6px; }
.hmt-tool-umur-kucing-anjing .uk-stages section { flex: 1; height: 8px; border-radius: 4px; background: rgba(255,255,255,.2); transition: background .2s; }
.hmt-tool-umur-kucing-anjing .uk-stages section.on { background: var(--hmt-accent); }
.hmt-tool-umur-kucing-anjing .uk-stage-lbl { display: flex; justify-content: space-between; font-size: 11px; opacity: .6; }
.hmt-tool-umur-kucing-anjing .uk-tip { margin: 0; }

/* Tabel */
.hmt-tool-umur-kucing-anjing .uk-tbl { margin-top: 12px; }
.hmt-tool-umur-kucing-anjing .uk-table { width: 100%; margin: 0; border: 0; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.hmt-tool-umur-kucing-anjing .uk-table th,
.hmt-tool-umur-kucing-anjing .uk-table td { padding: 8px 6px; text-align: center; border: 0; border-bottom: 1px solid var(--hmt-line); background: transparent; }
.hmt-tool-umur-kucing-anjing .uk-table th { font-size: 12px; color: var(--hmt-muted); font-weight: 600; }
.hmt-tool-umur-kucing-anjing .uk-table td:first-child,
.hmt-tool-umur-kucing-anjing .uk-table th:first-child { text-align: left; font-weight: 600; }
.hmt-tool-umur-kucing-anjing .uk-table tr.uk-hl td { background: var(--hmt-accent-soft); font-weight: 700; }
.hmt-tool-umur-kucing-anjing .uk-table td.uk-hl-cell { color: var(--hmt-accent-text); }
.hmt-tool-umur-kucing-anjing .uk-tbl-note { font-size: 12px; color: var(--hmt-muted); margin: 10px 0 0; }

@media (min-width: 560px) {
	.hmt-tool-umur-kucing-anjing .uk-big { font-size: 64px; }
}

/* Kartu pamerin (gambar) */
.hmt-tool-umur-kucing-anjing .uk-flex-note { font-size: 14px; color: var(--hmt-muted); margin: -4px 0 14px; }
.hmt-tool-umur-kucing-anjing .uk-flex-actions { display: flex; gap: 8px; }
.hmt-tool-umur-kucing-anjing .uk-btn {
	flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; margin: 0 !important;
	padding: 12px 10px !important; border-radius: 12px !important; border: 1.5px solid transparent !important; box-shadow: none !important; min-height: 0 !important;
	font-family: inherit !important; font-size: 14px !important; font-weight: 700 !important; line-height: 1.2 !important; white-space: nowrap;
	text-transform: none !important; letter-spacing: normal !important; cursor: pointer;
}
.hmt-tool-umur-kucing-anjing .uk-btn:disabled { opacity: .6; cursor: wait; }
.hmt-tool-umur-kucing-anjing .uk-btn-main { background: var(--hmt-accent) !important; color: var(--hmt-ink) !important; }
.hmt-tool-umur-kucing-anjing .uk-btn-ghost { background: #fff !important; color: var(--hmt-ink) !important; border-color: var(--hmt-line) !important; }
.hmt-tool-umur-kucing-anjing .uk-btn-ghost:hover { background: var(--hmt-soft) !important; }
.hmt-tool-umur-kucing-anjing .uk-flex-msg { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--hmt-accent-text); }
.hmt-tool-umur-kucing-anjing .uk-flex-msg:empty { display: none; }
@media (min-width: 560px) { .hmt-tool-umur-kucing-anjing .uk-btn { flex: 0 0 auto; padding-left: 18px !important; padding-right: 18px !important; } }

/* Layar sempit: stepper umur lebih ringkas */
@media (max-width: 380px) {
	.hmt-tool-umur-kucing-anjing .uk-step button { width: 34px !important; height: 34px !important; font-size: 20px !important; }
	.hmt-tool-umur-kucing-anjing .uk-step input { font-size: 20px !important; }
	.hmt-tool-umur-kucing-anjing .uk-big { font-size: 48px; }
}
