/* Admin page - single-screen grid layout */
.admin-page {
    height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0.75rem 1rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

/* Subtle borders on all cards */
.admin-page .mud-paper {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-header-left {
    font-size: 1.5rem;
    font-weight: 500;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.admin-header-meta {
    font-size: 0.75rem;
    opacity: 0.6;
    text-align: right;
    line-height: 1.4;
}

/* Sidebar share box - QR and code side by side */
.admin-share-layout {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.admin-share-qr {
    flex-shrink: 0;
    width: 120px;
}

.admin-share-qr svg {
    width: 120px;
    height: 120px;
}

.admin-share-code {
    text-align: center;
    flex: 1;
}

.admin-share-code .code-value {
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--mud-palette-primary);
}

.admin-admin-code {
    font-family: monospace;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Compact member rows */
.admin-member-row {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-member-row:last-child {
    border-bottom: none;
}

/* View toggle header (graph vs progress wheel) */
.admin-view-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

/* Admin goal card (progress wheel view) */
.admin-page {
    --admin-ring-size: 180px;
}

.admin-goal-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px;
    gap: 24px;
}

.admin-goal-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-goal-label {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
}

.admin-goal-number-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.admin-goal-number {
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -2px;
}

.admin-goal-unit {
    font-size: 20px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
}

.admin-goal-period {
    font-size: 16px;
    font-weight: 600;
    color: var(--mud-palette-primary);
}

.admin-goal-ring-wrap {
    flex-shrink: 0;
    position: relative;
    width: var(--admin-ring-size);
    height: var(--admin-ring-size);
}

.admin-goal-ring-percent {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    pointer-events: none;
}

.admin-goal-count {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--mud-palette-primary);
    margin-top: 12px;
}

.admin-leaderboard-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-leaderboard-rank {
    font-size: 0.85rem;
    opacity: 0.5;
    min-width: 1.8em;
}

.admin-leaderboard-name {
    font-size: 0.95rem;
}

.admin-leaderboard-count {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mud-palette-primary);
}

.admin-fire-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.admin-feed-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    padding: 0.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-feed-item strong {
    flex: 1;
}

.admin-feed-item span {
    flex-shrink: 0;
}

/* Scrollable content areas */
.admin-scroll-area {
    overflow-y: auto;
    flex: 1;
}

.admin-sidebar-scroll {
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* Grid fill height */
.admin-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.admin-body .mud-grid {
    height: 100%;
}

.admin-body .mud-grid-item {
    height: 100%;
}

.admin-sidebar-col {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 0.75rem;
}

.admin-main-col {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 0.75rem;
}

.admin-main-col .mud-paper {
    flex-shrink: 0;
}

.admin-main-bottom {
    flex: 1;
    min-height: 0;
    display: flex;
    gap: 0.75rem;
}

.admin-main-bottom .mud-paper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Bounty list items */
.admin-bounty-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-bounty-item:last-child {
    border-bottom: none;
}

.admin-bounty-name {
    font-size: 0.9rem;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-bounty-type {
    font-size: 0.7rem;
    opacity: 0.5;
    text-transform: uppercase;
}

.admin-bounty-earned {
    font-size: 0.75rem;
    color: var(--mud-palette-warning);
}

/* Bounty detail expansion */
.admin-bounty-detail {
    padding: 0.5rem 0 0.5rem 1.5rem;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-bounty-reward {
    opacity: 0.7;
    font-style: italic;
    margin-bottom: 0.25rem;
}

.admin-bounty-earned-by {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-bounty-earner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-bounty-earner-name {
    font-weight: 500;
}

.admin-bounty-earner-date {
    font-size: 0.75rem;
    opacity: 0.5;
}

.admin-bounty-expand-icon {
    transition: transform 0.2s;
}

.admin-bounty-empty {
    opacity: 0.5;
    font-size: 0.8rem;
    padding: 4px 0;
}
