/* Base layout */
.slb-dashboard {
    display: grid;
    grid-template-columns: 3fr 1.4fr;
    gap: 20px;
    color: #e5e7eb;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.slb-main-panel {
    background: #020617;
    border-radius: 16px;
    padding: 20px 20px 16px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
}

.slb-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
}

.slb-panel-title {
    font-size: 18px;
    font-weight: 600;
    color: #f9fafb;
}

.slb-panel-subtitle {
    font-size: 12px;
    color: #9ca3af;
}

/* Table */
.slb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.slb-table thead th {
    text-align: left;
    padding: 8px 6px;
    font-weight: 500;
    color: #9ca3af;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.slb-table tbody tr {
    border-bottom: 1px solid rgba(30, 64, 175, 0.4);
}

.slb-table tbody tr:last-child {
    border-bottom: none;
}

.slb-table tbody tr:hover {
    background: rgba(30, 64, 175, 0.16);
}

.slb-table td {
    padding: 10px 6px;
    vertical-align: middle;
}

.slb-rank {
    width: 28px;
    text-align: center;
    color: #9ca3af;
}

.slb-employee {
    min-width: 160px;
}

.slb-employee-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.slb-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid rgba(129, 140, 248, 0.6);
}

.slb-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slb-employee-name {
    font-weight: 500;
    color: #e5e7eb;
}

.slb-number {
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: #e5e7eb;
}

.slb-win {
    text-align: right;
}

/* Totals row */
.slb-table tfoot td {
    padding-top: 10px;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.slb-total-label {
    text-align: left;
    font-weight: 600;
    color: #e5e7eb;
}

/* Win rate pills */
.slb-win-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #f9fafb;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.2);
}

.slb-win-green {
    background: linear-gradient(90deg, #22c55e, #15803d);
}

.slb-win-orange {
    background: linear-gradient(90deg, #f97316, #c2410c);
}

.slb-win-red {
    background: linear-gradient(90deg, #ef4444, #b91c1c);
}

.slb-win-summary {
    background: linear-gradient(90deg, #4b5563, #111827);
}

/* Right side panels */
.slb-side-panels {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.slb-card {
    background: #020617;
    border-radius: 16px;
    padding: 18px 18px 16px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.9);
}

.slb-card-label {
    font-size: 13px;
    font-weight: 500;
    color: #e5e7eb;
}

.slb-card-sub {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

.slb-card-value {
    margin-top: 14px;
    font-size: 28px;
    font-weight: 700;
    color: #f9fafb;
}

.slb-card-block {
    margin-top: 12px;
}

/* Conversion card layout */
.slb-conversion-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.slb-card-header-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.slb-card-header-line-bottom {
    padding-top: 6px;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

/* Circular gauges */
.slb-gauge-circle {
    --size: 80px;               /* overall size */
    --thickness: 8px;           /* ring thickness (for future use) */
    --percent: 75;              /* default, can be overridden inline */
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at center,
            #020617 60%,
            transparent 60% 100%),
        conic-gradient(
            #22c55e calc(var(--percent) * 1%),
            rgba(30, 64, 175, 0.5) 0
        );
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9),
                0 10px 25px rgba(15, 23, 42, 0.9);
}

.slb-gauge-inner-text {
    position: relative;
    z-index: 1;
    font-size: 18px;
    font-weight: 700;
    color: #f9fafb;
}

/* Optional: subtle glow around high values */
.slb-gauge-circle[data-percent="75"],
.slb-gauge-circle[data-percent="68"] {
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.7),
                0 10px 25px rgba(15, 23, 42, 0.9);
}

/* Top 5 previous-month list */
.slb-top5-wrapper {
    margin-top: 10px;
}

.slb-top5-list {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
}

.slb-top5-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(30, 64, 175, 0.35);
}

.slb-top5-item:last-child {
    border-bottom: none;
}

.slb-top5-name {
    color: #e5e7eb;
    font-weight: 500;
}

.slb-top5-rate {
    color: #22c55e;
    font-weight: 600;
}

.slb-top5-empty {
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 900px) {
    .slb-dashboard {
        grid-template-columns: 1fr;
    }

    .slb-side-panels {
        flex-direction: row;
    }
}

@media (max-width: 640px) {
    .slb-dashboard {
        grid-template-columns: 1fr;
    }
    .slb-side-panels {
        flex-direction: column;
    }
}
