@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&family=Jost:wght@400;500;600;700&display=swap');

/* ===== ВЫРАВНИВАНИЕ СТИЛЕЙ ПОД ТЕМНУЮ ТЕМУ MOVERSPB ===== */
.worker-stats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 40px;
    font-family: 'Inter', 'Jost', sans-serif;
    color: #ffffff;
}

.stats-column {
    flex: 1;
    min-width: 300px;
    box-sizing: border-box;
    background: rgba(0, 5, 49, 0.45) !important;
    border: 1px solid rgba(9, 175, 244, 0.18) !important;
    border-radius: 16px !important;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-column:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px 0 rgba(9, 175, 244, 0.2);
    border-color: rgba(9, 175, 244, 0.35) !important;
}

.stats-column h2 {
    text-align: center;
    padding: 20px !important;
    background: linear-gradient(135deg, #000531 0%, #0d1857 100%) !important;
    margin: 0 !important;
    font-family: 'Outfit', 'Jost', sans-serif !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    letter-spacing: -0.5px !important;
    color: #ffffff !important;
    border-bottom: 2px solid rgba(9, 175, 244, 0.18) !important;
    text-transform: uppercase !important;
}

/* Различные цветные полосы для колонок */
.income-column h2 {
    border-bottom-color: #22c55e !important;
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.rating-column h2 {
    border-bottom-color: #09aff4 !important;
    text-shadow: 0 0 10px rgba(9, 175, 244, 0.3);
}

.workers-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.worker-item {
    display: flex;
    align-items: center;
    padding: 18px 20px !important;
    border-bottom: 1px solid rgba(9, 175, 244, 0.12) !important;
    position: relative;
    transition: background-color 0.3s ease;
    background: transparent !important;
}

.worker-item:last-child {
    border-bottom: none !important;
}

.worker-item:hover {
    background-color: rgba(9, 175, 244, 0.05) !important;
}

/* Красивые бейджи рангов с неоновым свечением */
.worker-rank {
    position: absolute !important;
    top: 50% !important;
    left: 20px !important;
    transform: translateY(-50%) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #09aff4 !important;
    font-family: 'Outfit', sans-serif !important;
    background: rgba(9, 175, 244, 0.1) !important;
    border: 1px solid rgba(9, 175, 244, 0.3) !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    box-shadow: 0 0 10px rgba(9, 175, 244, 0.2);
}

/* Первые 3 места выделяются особо */
.workers-list .worker-item:nth-child(1) .worker-rank {
    color: #ffd700 !important;
    background: rgba(255, 215, 0, 0.15) !important;
    border-color: rgba(255, 215, 0, 0.4) !important;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
}

.workers-list .worker-item:nth-child(2) .worker-rank {
    color: #c0c0c0 !important;
    background: rgba(192, 192, 192, 0.15) !important;
    border-color: rgba(192, 192, 192, 0.4) !important;
    box-shadow: 0 0 12px rgba(192, 192, 192, 0.3);
}

.workers-list .worker-item:nth-child(3) .worker-rank {
    color: #cd7f32 !important;
    background: rgba(205, 127, 50, 0.15) !important;
    border-color: rgba(205, 127, 50, 0.4) !important;
    box-shadow: 0 0 12px rgba(205, 127, 50, 0.3);
}

.worker-avatar {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    margin-right: 16px !important;
    margin-left: 45px !important;
    border: 2px solid rgba(9, 175, 244, 0.25) !important;
    box-shadow: 0 0 8px rgba(9, 175, 244, 0.15);
}

.worker-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.worker-info {
    flex: 1;
    display: grid !important;
    grid-template-areas: 
        "name stat"
        "role completed" !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    gap: 2px 12px !important;
}

.worker-name {
    grid-area: name;
    font-weight: 600 !important;
    font-size: 16px !important;
    color: #ffffff !important;
    margin: 0 !important;
    font-family: 'Outfit', sans-serif !important;
    text-align: left !important;
}

.worker-role {
    grid-area: role;
    color: #b8b8b8 !important;
    font-size: 13px !important;
    margin: 0 !important;
    text-align: left !important;
}

.worker-stat {
    grid-area: stat;
    font-weight: 700 !important;
    font-size: 18px !important;
    font-family: 'Outfit', sans-serif !important;
    text-align: right !important;
    margin: 0 !important;
}

.income-column .worker-stat {
    color: #22c55e !important;
}

.rating-column .worker-stat {
    color: #09aff4 !important;
}

.worker-completed {
    grid-area: completed;
    font-size: 12px !important;
    color: #64748b !important;
    text-align: right !important;
    margin: 0 !important;
}

.worker-stats-footer {
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: #64748b;
    margin-top: 20px;
    font-style: italic;
}

.worker-stats-error,
.worker-stats-empty {
    width: 100%;
    padding: 24px;
    background: rgba(0, 5, 49, 0.4);
    border: 1px solid rgba(9, 175, 244, 0.18);
    border-radius: 12px;
    text-align: center;
    color: #b8b8b8;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .worker-stats-container {
        gap: 16px;
    }
    .stats-column {
        width: 100%;
        margin-right: 0;
    }
    .worker-item {
        padding: 14px 16px !important;
    }
    .worker-rank {
        width: 28px !important;
        height: 28px !important;
        font-size: 13px !important;
        left: 12px !important;
    }
    .worker-avatar {
        width: 44px !important;
        height: 44px !important;
        margin-left: 32px !important;
        margin-right: 12px !important;
    }
    .worker-info {
        gap: 1px 8px !important;
    }
    .worker-name {
        font-size: 14px !important;
    }
    .worker-role {
        font-size: 12px !important;
    }
    .worker-stat {
        font-size: 15px !important;
    }
    .worker-completed {
        font-size: 11px !important;
    }
}