body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}
.validator-card {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: #f9fafb;
    margin-bottom: 0.5rem;
    overflow-x: auto;
    max-width: 100%;
    transition: background-color 0.2s;
    text-decoration: none;
    color: inherit;
}
.validator-card:hover {
    background-color: #e0e7ff;
    cursor: pointer;
}
.validator-card .rank {
    margin-right: 1rem;
    font-weight: bold;
    min-width: 2rem;
    font-size: 1.1rem;
}
.validator-card img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-right: 1rem;
}
.validator-card .text-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-width: 300px;
}
.validator-card .text-container span {
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.validator-card .node-info {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 150px;
    max-width: 150px;
}
.validator-card .node-info span {
    margin-top: 0.25rem;
}
.foundation-node {
    background-color: #e6f0fa;
}
.community-node {
    background-color: #e6f3e6;
}
#leaderboard-btn, #loserboard-btn {
    height: 44px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
}
#leaderboard, #loserboard {
    padding-top: 1rem;
    margin-bottom: 1.5rem;
    max-height: 80vh;
    overflow-y: auto;
    padding-right: 1rem;
}
#leaderboard:empty, #loserboard:empty {
    height: 0;
    margin: 0;
    padding: 0;
    display: none;
}
.card-container {
    max-height: 70vh;
    overflow-y: auto;
}
.validator-card .alias-input,
.validator-card .avatar-select {
    max-width: 300px;
}
.month-calendar {
    margin-top: 0.5rem;
    width: 100%;
    font-size: 0.75rem;
}
.calendar-title {
    font-weight: bold;
    text-align: center;
    margin-bottom: 0.25rem;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.calendar-day-header {
    text-align: center;
    font-weight: bold;
    color: #4b5563;
}
.calendar-day {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}
.calendar-day.active {
    background-color: #22c55e;
    color: white;
    border-radius: 2px;
}
.calendar-day.inactive {
    background-color: #d1d5db;
    color: #6b7280;
    border-radius: 2px;
}
.calendar-day.empty {
    background-color: transparent;
}
#loading-bar {
    transition: all 0.3s ease;
}
#loading-bar div {
    transition: width 0.16s ease;
}
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 300px;
    margin-top: 0.5rem;
}
.search-input {
    padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    width: 100%;
}
.search-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.clear-search {
    position: absolute;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #6b7280;
    cursor: pointer;
    display: none;
}
.clear-search:hover {
    color: #2563eb;
}