/* ========================================================= */
/* ВИДЖЕТ: НИЗКАЯ АКТИВНОСТЬ (в стиле Style.css) */
/* ========================================================= */

.low-performers-widget {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 280px;
    z-index: 1000;
    
    /* Фон как у .leaderboard */
    background-color: rgba(24, 24, 24, 0.85);
    border-radius: 10px;
    border: 2px solid #7d8b9d;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    
    transition: box-shadow 0.3s ease;
}

.low-performers-widget:hover {
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.7), 0 0 15px rgba(255, 65, 54, 0.15);
}

/* ========================================================= */
/* ЗАГОЛОВОК С DRAG */
/* ========================================================= */

.widget-drag-handle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    
    /* Градиент как у кнопок навигации */
    background: linear-gradient(to bottom, #5a6470 0%, #4a5460 50%, #3a4450 100%);
    border-bottom: 2px solid #3a4450;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.4);
    user-select: none;
}

.widget-icon {
    font-size: 16px;
}

.widget-title {
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-grow: 1;
}

.widget-period {
    color: #b0b0b0;
    font-size: 0.7em;
    font-weight: 400;
    white-space: nowrap;
}

.widget-drag-icon {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    letter-spacing: 2px;
    cursor: grab;
    padding: 2px 0;
    transition: color 0.3s ease;
}

.widget-drag-icon:hover {
    color: #00FFFF;
}

.widget-drag-icon:active {
    cursor: grabbing;
    color: #ffffff;
}

/* ========================================================= */
/* ТЕЛО ВИДЖЕТА */
/* ========================================================= */

.widget-body {
    padding: 15px;
}

.widget-subtitle {
    color: #b0b0b0;
    font-size: 0.75em;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.widget-player-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 300px;
    overflow-y: auto;
}

.widget-player-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    
    /* Убираем стили ссылки */
    text-decoration: none;
    color: inherit;
    
    /* Строка как кнопка (неактивная) */
    background: linear-gradient(to bottom, rgba(90, 100, 112, 0.3) 0%, rgba(74, 84, 96, 0.3) 50%, rgba(58, 68, 80, 0.3) 100%);
    border-radius: 6px;
    border: 1px solid rgba(125, 139, 157, 0.2);
    transition: all 0.3s ease;
}

.widget-player-row:hover {
    background: linear-gradient(to bottom, rgba(122, 132, 144, 0.5) 0%, rgba(106, 116, 128, 0.5) 50%, rgba(90, 100, 112, 0.5) 100%);
    border-color: rgba(125, 139, 157, 0.5);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.widget-player-name {
    color: #ffffff;
    font-size: 0.85em;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 8px;
}

.widget-player-score {
    color: #00FFFF;
    font-size: 0.85em;
    font-weight: 600;
    font-family: 'Roboto', monospace;
    white-space: nowrap;
}

.widget-player-score small {
    color: #b0b0b0;
    font-size: 0.75em;
    font-weight: 400;
    margin-left: 2px;
}

.widget-no-data {
    color: #48bb78;
    font-size: 0.85em;
    text-align: center;
    padding: 10px 0;
    font-weight: 500;
}

/* Скроллбар в стиле сайта */
.widget-player-list::-webkit-scrollbar {
    width: 4px;
}

.widget-player-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.widget-player-list::-webkit-scrollbar-thumb {
    background: #4a5460;
    border-radius: 2px;
}

.widget-player-list::-webkit-scrollbar-thumb:hover {
    background: #5a6470;
}

/* ========================================================= */
/* МОБИЛЬНАЯ ВЕРСИЯ */
/* ========================================================= */

@media (max-width: 768px) {
    .low-performers-widget.widget-mobile {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        margin: 20px 0;
        border-radius: 8px;
    }
    
    .low-performers-widget.widget-mobile .widget-drag-handle {
        cursor: default;
    }
    
    .low-performers-widget.widget-mobile .widget-drag-icon {
        display: none;
    }
}