@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

table {
    border-collapse: collapse;
    width: 50%; margin: 20px auto;
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
th, td {
    border: 1px solid #ccc;
    padding: 8px 12px;
    text-align: center;
}
th {
    background: #eee;
}

tr:nth-child(even) {
    background-color: #f8f8f8;
}

.section-title {
    text-align: center; color: #555; margin-top: 40px;
}

input[type="number"], input[type="text"] {
    width: 100px; padding: 5px; margin: 5px;
}

.filters {
    text-align: center; margin: 20px;
}

.toggle-button {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.toggle-button:hover {
    background-color: #e0e0e0;
}

body {
	font-family: 'Inter', sans-serif !important;
    background: #f7f7f7;
    padding: 20px;
}

#main {
	margin: auto;
	width: 70%;
}

@media (max-width: 992px) {
	#main {
		width: 95%;
	}
	#navlink {
		margin-right: auto;
	}
}

.topnav {
	text-align: center;
	padding: 12px 10px;
	font-size: 0.95em;
	border-bottom: 1px solid #e5e5e5;
	margin-bottom: 10px;
}
.topnav a { margin: 0 4px; text-decoration: none; }

/* Wide tables scroll instead of breaking the layout on small screens. */
@media (max-width: 768px) {
	table {
		width: 95%;
		display: block;
		overflow-x: auto;
		white-space: nowrap;
		font-size: 0.9em;
	}
}

/* --- Trace / explorer ------------------------------------------------- */
.search-box {
	text-align: center;
	margin: 24px auto;
	max-width: 720px;
}
.search-box input[type="text"] {
	width: 60%;
	max-width: 480px;
	padding: 10px;
	font-size: 15px;
}
.flow {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	justify-content: center;
	gap: 10px;
	margin: 20px auto;
	max-width: 1100px;
}
.node {
	background: white;
	box-shadow: 0 0 10px rgba(0,0,0,0.1);
	border-radius: 8px;
	padding: 12px 14px;
	min-width: 180px;
	max-width: 260px;
	font-size: 0.9em;
	text-align: left;
}
.node h4 {
	margin: 0 0 6px;
	font-size: 0.95em;
	color: #555;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.node .amt { font-size: 1.1em; font-weight: 600; }
.node a.tx { font-family: monospace; font-size: 0.8em; word-break: break-all; }
.node .addr { font-family: monospace; font-size: 0.8em; word-break: break-all; color: #444; }
.arrow {
	display: flex;
	align-items: center;
	font-size: 1.4em;
	color: #aaa;
	padding: 0 4px;
}
.hop {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0 6px;
	min-width: 90px;
	color: #888;
	font-size: 0.8em;
	text-align: center;
}
.badge {
	display: inline-block;
	padding: 1px 7px;
	border-radius: 10px;
	font-size: 0.78em;
	font-weight: 600;
	background: #eee;
	color: #444;
}
.badge.exchange { background: #ffe2d6; color: #b5532a; }
.badge.mixer, .badge.sanctioned { background: #ffd6d6; color: #b52a2a; }
.badge.service, .badge.pool { background: #dce8ff; color: #2a4fb5; }
.conf-high { color: #b52a2a; font-weight: 700; }
.conf-med { color: #b5532a; font-weight: 600; }
.conf-low { color: #888; }
