/* ============================================
   Sapling SMP Staff CMS — Custom Styles
   Minimal overrides on top of Tabler defaults
   ============================================ */

/* Brand icon in navbar */
.brand-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(69, 180, 108, 0.15);
    border-radius: 8px;
}

/* ========== Minecraft Avatar Styles ========== */
.avatar-mc,
.navbar .avatar,
.staff-avatar,
.staff-avatar-lg,
.staff-avatar-xl {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.staff-avatar {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
}

.staff-avatar-lg {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
}

.staff-avatar-xl {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    object-fit: cover;
}

/* ========== Rank Badge ========== */
.badge-rank {
    padding: 0.35em 0.65em;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    border-radius: 4px;
    display: inline-block;
}

/* ========== Stat Cards ========== */
.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.stat-card .stat-label {
    font-size: 0.8125rem;
    color: var(--tblr-secondary);
    margin-top: 0.25rem;
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
}

/* ========== Activity Bar ========== */
.activity-bar {
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.activity-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: var(--tblr-primary);
    transition: width 0.6s ease;
}

.activity-bar-fill.low { background: var(--tblr-danger); }
.activity-bar-fill.medium { background: var(--tblr-warning); }

/* ========== Empty State ========== */
.empty-state {
    padding: 3rem 1rem;
    text-align: center;
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--tblr-secondary);
    margin-bottom: 1rem;
}

/* ========== Card Hover ========== */
.card-hover:hover {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* ========== Page Enter Animation ========== */
.page-body {
    animation: fadeInPage 0.25s ease;
}

@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== Permission Matrix ========== */
.perm-matrix .form-check-input:checked {
    background-color: var(--tblr-primary);
    border-color: var(--tblr-primary);
}

.perm-category-header {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: var(--tblr-secondary);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--tblr-border-color);
}

/* ========== Chart Container ========== */
.chart-container {
    position: relative;
    height: 240px;
}

/* ========== Leaderboard Positions ========== */
.lb-position {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.lb-position.gold { background: rgba(255, 193, 7, 0.15); color: #ffc107; }
.lb-position.silver { background: rgba(173, 181, 189, 0.15); color: #adb5bd; }
.lb-position.bronze { background: rgba(205, 127, 50, 0.15); color: #cd7f32; }
.lb-position.default { background: rgba(255, 255, 255, 0.05); color: var(--tblr-secondary); }

/* ========== Trend Arrows ========== */
.trend-up { color: var(--tblr-success); }
.trend-down { color: var(--tblr-danger); }
.trend-same { color: var(--tblr-secondary); }

/* ========== Toast Container ========== */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    max-width: 380px;
}

.toast-container .toast {
    border-radius: var(--tblr-border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.22); }
